Google Maps API - load the US

Posted by hjk on Stack Overflow See other posts from Stack Overflow or by hjk
Published on 2010-05-29T23:32:02Z Indexed on 2010/05/29 23:42 UTC
Read the original article Hit count: 158

Filed under:
|

I am new to google maps api. I'd like suggestions on achieving the following functionality: whenever the page loads, the map will load centered around the US. Imagine a box around the US with given lat/longs specifying the minimum and maximum boundaries. I need the map to load at the appropriate zoom (and zoom needs to be disabled) such that this box composes the entire map.

Basically, I'm wondering if there is a function that loads the map based on lat/long boundaries (or some way to acheive this), rather then loading the map given a zoom level.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about google-maps-api