AnsweredAssumed Answered

Error on Removing all map layers

Question asked by enigma2522 on Feb 14, 2013
Latest reply on Feb 15, 2013 by enigma2522
I am seeing the following error:

TypeError: is undefined
https://<Machine Name>/arcgis-js/3.3/js/esri/dijit/Scalebar.js
Line 19

When I remove all layers from the map and add new layers. Is this expected behavior? If so, has anyone found a work around. The only thing solving it for me is to add a layer to map, OSM, as invisible and never removing it. This is not a good solution for me as I may be in an environment with no outside internet access where I am simply using graphics layers within the map. Can this be done with a graphics layer to satisfy the map and get around this error?