Hello everyone,
By using the basemap widget, the user selects one base map and can change the base maps. Now, the user wants to clear base map from the base map widget.
Is it possible? If yes, How its can anyone share the code. M using the base map gallery sample Basemap gallery | ArcGIS API for JavaScript 3.20
Thanks for the help.
Solved! Go to Solution.
Works with minor correction:
layer[i].title
Instead of removing the base map. I added another base map and set the transparency level 100% in the base map gallery widget that resolved my problem.
layers: [new esri.dijit.BasemapLayer({
URL: "http://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer",
opacity: "0"
})