AnsweredAssumed Answered

Hiding, Removing, or Changing AGOL Basemap

Question asked by DanielTrone on May 28, 2013
Latest reply on May 28, 2013 by bradleyscollins

I'm using the Javascript API to load map layers from a Web Map.  I know this Web Map requires a default Basemap.  However, if I want to remove this basemap programmatically later, how would I do that? 

Right now I'm creating WebTiledLayer(s) and adding them with map.addLayer(basemap). 

Of course, this just adds another basemap on top of the default basemap defined in the WebMap.  (You can tell the default basemap is still there when panning around the map).
Is there a quick statement I can use to disable or remove the default basemap?