Getting a reference to a map object with dojo.byId

Discussion created by josephacox on Nov 29, 2012
Latest reply on Nov 29, 2012 by DSwingley-esristaff
I was wondering if there is a method to get a reference to the map object without having to have a global variable for the map. If you do: var x = dojo.byId("map") x is a reference to the DIV that contains the map but I don't know how to pull the map out of that, or if I should even be trying to reference the map in this way.