Solved! Go to Solution.
How can I write the code to turn off the base map, and another code to turn on later?
var bm = map.getLayer("layer0"); bm.setVisibility(false); //to switch off bm.setVisibility(true); //to switch on
How can I write the code to turn off the base map, and another code to turn on later?
var bm = map.getLayer("layer0"); bm.setVisibility(false); //to switch off bm.setVisibility(true); //to switch on