laptop and a wrench

漏洞

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

上次发布: April 23, 2015 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000086608
已提交April 2, 2015
上次修改时间January 2, 2021
适用范围ArcGIS API for JavaScript
找到的版本3.13
服务器平台Windows
客户端平台7 64 Bit
Version Fixed3.14
状态Fixed

解决办法

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

重现步骤

漏洞 ID: BUG-000086608

软件:

  • ArcGIS API for JavaScript

从 ArcGIS 专家处获得帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项

发现关于本主题的更多内容