laptop and a wrench

Error

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.

Última publicación: November 30, 2015 ArcGIS API for JavaScript
Número de ID del error NIM089693
EnviadoMarch 12, 2013
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada3.3
Lenguaje del programaJavaScript
EstadoDuplicate

Información adicional

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

Solución alternativa

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

Pasos para reproducir

ID del error: NIM089693

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga