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.

Zuletzt veröffentlicht: November 30, 2015 ArcGIS API for JavaScript
Bug-ID-Nummer NIM089693
EingereichtMarch 12, 2013
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for JavaScript
Gefunden in Version3.3
ProgrammspracheJavaScript
StatusDuplicate

Zusätzliche Informationen

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

Schritte zur Reproduzierung

Bug-ID: NIM089693

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln