Create new GLatLngBounds() For each polyline: getBounds().getSouthWest() add it to the new GLatLngBounds() with the .extend method getBounds().getNorthEast() add it to the new GLatLngBounds() with the .extend method Set the zoom using the new GLatLngBounds().
-- Marcelo - http://maps.forum.nu -- On Apr 20, 5:03 pm, Kontaktschmied <[email protected]> wrote: > In this applicationhttp://tools.webmasterei.com/kmlkalender/you can > see polylines of my tours by clicking in calendar. > > I wish to autozoom the map. With single polyline I can get the bounds > width the command getBounds(). How I can get the bounds if I have > multiple polylines in my overlay? > > The polylines are generated with encoding via Ajax/PHP-class. > > Rainer --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
