aaronkilbey

setBasemap() not working on webmap with string or object value

Discussion created by aaronkilbey on Jul 11, 2013
Latest reply on Jun 16, 2017 by stevenfabijanski
http://www.portlandmaps.com/arcmaps/setBasemap.html

You can see in console both map objects reflect the change of basemap in _basemap and _layers has the new layer, but neither the string value 'topo' or an object of type esri/utils/Basemap work as a param to setBasemap() to successfully swap it out. what am i missing here?

Outcomes