laptop and a wrench

Bug

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

Zuletzt veröffentlicht: June 29, 2015 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000085714
EingereichtFebruary 27, 2015
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for JavaScript
Gefunden in Version3.12
BetriebssystemWindows OS
Betriebssystemversion7 64 Bit
StatusKnown Limit

Zusätzliche Informationen

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

Workaround

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. } });

Schritte zur Reproduzierung

Bug-ID: BUG-000085714

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