I have a div with id="mapCanvas"
I create a map inside the div
var map = new google.maps.Map(document.getElementById("mapCanvas"),
myOptions);
Assuming that the function that creates the map has completed and I
have now lost the map var.
How do I get a reference back to the existing map when I only know the
div it is in?
var oldmap = document.getElementById("mapCanvas").theMapInisdeThisDiv;
--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to
google-map...@googlegroups.com.
To unsubscribe from this group, send email to
google-maps-js-a...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.