laptop and a wrench

Bogue

The visibility of a FeatureLayer cannot be toggled in the MapView when the 'visible' property is initially set to 'false' in ArcGIS API for JavaScript 4.0.

Dernière publication: July 20, 2016 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000097737
EnvoiJuly 13, 2016
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée4.0
Système d’exploitationN/A
Version du système d’exploitationN/A
Version de correction4.1
StatutFixed

Solution de contournement

1. In the sample application at https://jsfiddle.net/gkj4hhrv/, change the 'visible' property of the FeatureLayer to 'true' at Line 37. 2. In the HTML section at Line 6, after the 'id' attribute for 'checkbox', add the following attribute: checked="true", and the toggling works as expected.

Étapes pour reproduire

ID de bogue: BUG-000097737

Logiciel:

  • ArcGIS API for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement