switch(basemap) { case "Leaf Collection Map": { lyr.visible = true; lyr2.visible = false; lyr3.visible = false; SiteContainer.dispatchEvent(new AppEvent(AppEvent.SET_BASEMAP, false, false, "Leaf Collection Map")); break; } case "Recycle Collection Map": { lyr.visible = false; lyr2.visible = true; lyr3.visible = false; SiteContainer.dispatchEvent(new AppEvent(AppEvent.SET_BASEMAP, false, false, "Recycle Collection Map")); break; } case "Garbage Collection Map": { lyr.visible = false; lyr2.visible = false; lyr3.visible = true; SiteContainer.dispatchEvent(new AppEvent(AppEvent.SET_BASEMAP, false, false, "Garbage Collection Map")); break; } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.