laptop and a wrench

漏洞

A reference layer from multiple basemaps stay on a map when the basemap is switched in the basemap gallery.

上次发布: June 29, 2015 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000085714
已提交February 27, 2015
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本3.12
操作系统Windows OS
操作系统版本7 64 Bit
状态Known Limit

附加信息

This is a known limit with 3.x and will be addressed in 4.x.

解决办法

Set one of the basemaps as a starting basemap, and add the following code in the application : var bool = true; // declare this globally basemapGallery.on("selection-change", function() { if(bool == true){ map.removeLayer(map.getLayer("layer1")); bool = false; // Since this happens only ones we don't need it anymore. } });

重现步骤

漏洞 ID: BUG-000085714

软件:

  • ArcGIS API for JavaScript

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项