On Apr 26, 8:59 am, Zach Lanich <[email protected]> wrote: > I'm building a marketing websitefor restaurants and each Marketing > Group will contain 15 restaurants. If a user selects a group in his/ > her area, I clear all Group Pushpins and show the Pushpins for each > Restaurant in that Group. I would like to set the viewport/zoom level > to show all visible Restaurant Pushpins in that Group. How do I set > the viewport to the outer bounds of all my visible Pushpins?
add them all to a bounds object with .extend call map.fitBounds() http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLngBounds -- Larry -- 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.
