Should be pretty simple to iterate over the markers and track the min/ max lat/lon, then use that as you bounding box...ask the API to tell you the min zoom to encompass that box (can't remember the call off the top of my head, but search for "bounds" or some such) and use the center of the box as your map center.
-G On Jul 8, 2009, at 7:44 PM, steve wrote: > > Hey Guys, > > I have an application were I'm loading a bunch of markers onto the > map, then I'd like to zoom in to automatically show the area where > there are markers. > > I'm not exactly sure about the best way to go about this. Any help > would be greatly appreciated. > > Steve > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
