Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 7 down vote accepted

What about getBounds() method on the Map object:

share|improve this answer
Thank you - yes that is it exactly. I must have missed it! – djq Dec 9 '10 at 14:44
FYI Geocoding response >Viewport also returns this info too.… – Mapperz Dec 9 '10 at 15:16

Your Answer


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.