AnsweredAssumed Answered

can the basemap be hidden

Question asked by hingkyzer on Feb 13, 2013
Latest reply on Feb 15, 2017 by kitty.hurley_mndnr
When creating a map I've been unable to add layers or do anything if not defining the map.basemap property.  Once I do define a basemap, is there way to hide it or get rid of it and have no basemap?  I just ask because when panning or zooming after another layer is added on top of the basemap, the map loads the basemap tiles/graphics first then loads the layers on top.  In my case I don't want the basemap tiles to have to load at all, seems like extra bandwidth and it looks bad imo when the layer your not supposed to see pops out briefly on zooming or panning.

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

works, but:

map = new esri.Map("map");

results in a page where I can't add any layers or see anything at all but the ESRI logo in the bottom right.

Outcomes