There's a list of state bounding boxes you can copy out of the PolyGonzo source code:
http://code.google.com/p/polygonzo/source/browse/trunk/code/polymap.js Search the code for PolyMap.states for the list, and search for zoomToBounds to see an example of using one of the bounding boxes. <http://code.google.com/p/polygonzo/source/browse/trunk/code/polymap.js> -Mike On Fri, Apr 1, 2011 at 4:03 PM, matt wilson <[email protected]> wrote: > Is there a straight forward way to querying the bounds of a state? > > When I plot markers and I come across situations where they're all in > the same state, I don't want the zoom to come in tighter than the > whole state. > > I understand the long hand way would be to find and store two opposing > lat,lngs for every state and include those in my bounds, but I was > looking for a less grueling method. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
