By default, each GDirections instance zooms so that its route fits in
the viewport. To stop it doing that, you can use
{preserveViewport:true}.
You can obtain the bounds of each route with GDirections.getBounds()
after the results have arrived. You can then .extend() one of them with
the corners of the other to obtain a GLatLngBounds that contains both,
and then zoom to fit that extended bounds.
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---