logo       

Latitude Longitude on Zoomend: msg#03251

GoogleMapsAPI

Subject: Latitude Longitude on Zoomend


Hey Guys,
I'm trying to create an event listener to update a stored range for
latitude and longitude for zoomend... So far I have the following:
GEvent.addListener(map, "zoomend", function() {
mapCenterLat = map.getCenter().lat();
mapCenterLng = map.getCenter().lng();
});

However, I would like to ideally have the latitude and longitude range
that is being displayed by the map after that zoomend event... so
let's say the map was showing everything from -120 to -90 on the
longitude, it would somehow be able to store:
mapLatLeft = -120;
mapLatRight = -90;

Is this possible? Or am I going to have to just estimate it with the
zoomlevel and the map center?

Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to Google-Maps-API@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
Google-Maps-API+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise