How do setBounds in Google Maps API v2?

Posted by Matthew Lock on Stack Overflow See other posts from Stack Overflow or by Matthew Lock
Published on 2010-05-14T03:56:43Z Indexed on 2010/05/14 4:14 UTC
Read the original article Hit count: 381

Filed under:
|

I'm upgrading some code written for Google Maps API v2, and I wish to set the bounds of the map (top, left, bottom, right), rather than the centre.

I notice that there's a GMap2.getBounds but I can't seem to find a method which allows me to set the bounds.

How can I do this in Google Maps?

© Stack Overflow or respective owner

Related posts about google-maps

Related posts about JavaScript