laptop and a wrench

漏洞

If the BasemapGallery widget is initialized with a basemap that has a reference service for labels, the labels continue to display even after switching to other basemaps.

上次发布: November 30, 2015 ArcGIS API for JavaScript
漏洞 ID 编号 NIM089693
已提交March 12, 2013
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本3.3
编程语言JavaScript
状态Duplicate

附加信息

Duplicate of BUG-000089550 : This is a duplicate of existing bug that is open and is estimated to be fixed for 4.0.

解决办法

After initializing the gallery, set the basemap to the desired basemap option:dojo.connect(basemapGallery, "onLoad", function(){ dojo.forEach(basemapGallery.basemaps, function(basemap) { //Add a menu item for each basemap, when the menu items are selected dijit.byId("basemapMenu").addChild( new dijit.MenuItem({ label: basemap.title, onClick: dojo.hitch(this, function() { this.basemapGallery.select(<a href="http://basemap.id" target="_blank">basemap.id</a>); }) }) ); }); basemapGallery.select("basemap_3"); // workaround

重现步骤

漏洞 ID: NIM089693

软件:

  • ArcGIS API for JavaScript

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项