AnsweredAssumed Answered

Turn on/off base map in 3.3?

Question asked by huhao.esri on Jan 22, 2013
Latest reply on Jan 23, 2013 by huhao.esri
In 3.3, switching between different base maps can be done by setBasemap() function. But if I want to add an option---set the base map to none, is it still possible to use that function? Or is there any better way I can do that?

My code is like this,

map = new esri.Map("map",
            {
                basemap: "streets",
                extent: initExtent,
            });

How can I write the code to turn off the base map, and another code to turn on later? Thanks in advance.

Outcomes