laptop and a wrench

Bug

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.

Last Published: November 30, 2015 ArcGIS API for JavaScript
Bug ID Number NIM089693
SubmittedMarch 12, 2013
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found3.3
Program languageJavaScript
StatusDuplicate

Additional Information

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

Workaround

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

Steps to Reproduce

Bug ID: NIM089693

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options