laptop and a wrench

漏洞

The visibility of a FeatureLayer cannot be toggled in the MapView when the 'visible' property is initially set to 'false' in ArcGIS API for JavaScript 4.0.

上次发布: July 20, 2016 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000097737
已提交July 13, 2016
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本4.0
操作系统N/A
操作系统版本N/A
修正版本4.1
状态Fixed

解决办法

1. In the sample application at https://jsfiddle.net/gkj4hhrv/, change the 'visible' property of the FeatureLayer to 'true' at Line 37. 2. In the HTML section at Line 6, after the 'id' attribute for 'checkbox', add the following attribute: checked="true", and the toggling works as expected.

重现步骤

漏洞 ID: BUG-000097737

软件:

  • ArcGIS API for JavaScript

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项