laptop and a wrench

漏洞

The LayerList widget does not function correctly when layers are added as an array.

上次发布: January 12, 2016 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000093428
已提交January 11, 2016
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本3.15
操作系统Windows OS
操作系统版本7.0 64 Bit
状态Non-Reproducible

附加信息

This is not a bug. The layer in the array needs to be defined with a lower-case l as shown in the JSAPI documentation. The app should work if updated as shown below. var myWidget = new LayerList({ map: map, layers:[ { layer: featureL0, id: "Waterbodies", visibility: true }, { layer: featureL1, id: "Rivers" } ] },"layerList"); myWidget.startup(); In the above, the word "layer" needs to use a lower-case l.

重现步骤

漏洞 ID: BUG-000093428

软件:

  • ArcGIS API for JavaScript

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项