laptop and a wrench

Error

map.allLayers.on("change", function(event)) doesn't provide the list of the operational layers and the sub layers using event.added.

Última publicación: November 3, 2017 ArcGIS API for JavaScript
Número de ID del error BUG-000108390
EnviadoSeptember 28, 2017
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada4.4
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoWill Not Be Addressed

Información adicional

This is not intended to work with sublayers this way. In order to listen for sublayers within the MapImageLayer, you must listen for layer.allSublayers.on("change"...) not map.allLayers.on("change"...)

Solución alternativa

event.moved provides the list of the operational and sublayers.

Pasos para reproducir

ID del error: BUG-000108390

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