laptop and a wrench

Error

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

Última publicación: March 30, 2020 ArcGIS API for JavaScript
Número de ID del error BUG-000121406
EnviadoApril 2, 2019
Última modificaciónJuly 20, 2025
Relacionado conArcGIS API for JavaScript
Versión encontrada4.11
Sistema operativoWindows OS
Versión de sistema operativoN/A
Versión corregida4.15
EstadoFixed

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000121406

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga