laptop and a wrench

漏洞

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

上次发布: March 30, 2020 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000121406
已提交April 2, 2019
上次修改时间July 20, 2025
适用范围ArcGIS API for JavaScript
找到的版本4.11
操作系统Windows OS
操作系统版本N/A
修正版本4.15
状态Fixed

解决办法

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

重现步骤

漏洞 ID: BUG-000121406

软件:

  • ArcGIS API for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项