laptop and a wrench

Error

Reordered layers in a map service sample works incorrectly when all the layers are turned off.

Última publicación: April 23, 2015 ArcGIS API for JavaScript
Número de ID del error BUG-000086608
EnviadoApril 2, 2015
Última modificaciónJanuary 2, 2021
Relacionado conArcGIS API for JavaScript
Versión encontrada3.13
Plataforma del servidorWindows
Plataforma cliente7 64 Bit
Version Fixed3.14
EstadoFixed

Solución alternativa

Find the attached sample. Replace the code for Toggle Layers function with the following: function toggleLayer(e) { showLoading(); for (var info in infos) { var i = infos[info]; if (i.name === e.target.name) { i.visible = !i.visible; } } var visible = getVisibleLayers(); if (visible.length === 0) { usaLayer.setVisibleLayers([-1]); } else { usaLayer.setDynamicLayerInfos(visible); } }

Pasos para reproducir

ID del error: BUG-000086608

Software:

  • ArcGIS API for JavaScript

Obtener ayuda de expertos en ArcGIS

Contactar con soporte técnico

Descargar la aplicación de soporte de Esri

Ir a las opciones de descarga

Descubrir más sobre este tema