I'm getting the hang of this, but am confused about when I can use certain
functions. For instance, why does bounds here return undefined? It seems like I
have to wait for the map to fully appear, but I don't understand...does the map
loading completely trigger an event I can use to put my code after?
function initialize(lat,lng,zoom){
var centerLatLng = new google.maps.LatLng(lat,lng);
var myOptions = {
zoom: zoom,
center: centerLatLng,
mapTypeId: google.maps.MapTypeId.TERRAIN
}
var map = new google.maps.Map(document.getElementById("main_map"),
myOptions);
alert(map.getBounds());
}
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.