laptop and a wrench

Erro

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

Última Publicação: April 23, 2015 ArcGIS API for JavaScript
Número de ID do Erro BUG-000086608
EnviadoApril 2, 2015
Última ModificaçãoJanuary 2, 2021
Aplica-se àArcGIS API for JavaScript
Versão encontrada3.13
Plataforma do servidorWindows
Plataforma do cliente7 64 Bit
Version Fixed3.14
StatusFixed

Solução Provisória

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); } }

Etapas para Reproduzir

ID do Erro: BUG-000086608

Software:

  • ArcGIS API for JavaScript

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com suporte técnico

Baixe o Esri Support App

Ir para opções de download

Descubra mais sobre este tema