Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is it possible to get the bounding coordinates of a google map that a user has zoomed to using Javascript? I see that it can be done using the Google App Engine but I don't know if is possible using the Google Maps API (Version 3).

share|improve this question

1 Answer 1

up vote 7 down vote accepted

What about getBounds() method on the Map object: http://code.google.com/intl/fr/apis/maps/documentation/javascript/reference.html#Map

share|improve this answer
    
Thank you - yes that is it exactly. I must have missed it! –  djq Dec 9 '10 at 14:44
1  
FYI Geocoding response >Viewport also returns this info too. code.google.com/intl/fr/apis/maps/documentation/javascript/… –  Mapperz Dec 9 '10 at 15:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.