laptop and a wrench

Bogue

Layer visibility of map service layers in web maps is not honored in ArcGIS API for JavaScript 4.x.

Dernière publication: March 30, 2020 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000121406
EnvoiApril 2, 2019
Dernière modificationJuly 20, 2025
S’applique àArcGIS API for JavaScript
Version trouvée4.11
Système d’exploitationWindows OS
Version du système d’exploitationN/A
Version de correction4.15
StatutFixed

Solution de contournement

Modify a layer in the web map by changing the transparency (and then changing it back to 100%) which adds the layers attribute to the WebMap JSON and forces the JavaScript WebMap class to respect the visibleLayers attribute.

For example, see the following WebMap JSON by replacing the ID in: https://www.arcgis.com/sharing/content/items/6a98eb44a463454eb17d3ed2b312bcc8/data?f=pjson

Étapes pour reproduire

ID de bogue: BUG-000121406

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