JavaScript - How to change a dom node back to an existing Google Map?
- by David Robertson
I set a div to a class which shows a spinning animated when the map is loading some data, the question is, how can I set the div back to the map (I don't want to load a new map, but load the existing one, which is assigned to a var 'map')?
//map is assigned originally like this:
map = new google.maps.Map(document.getElementById('map3'),options);
…