The documentation states a way to preserver the viewport:

http://code.google.com/apis/maps/documentation/reference.html#GDirectionsOptions.preserveViewport

2009/9/7 Rossko <[email protected]>

>
> > The GDirections, always reset the map?
> > Is there any way to force it to mantaining the zoom level?
>
> See the documentation
>
> http://code.google.com/apis/maps/documentation/reference.html#GDirectionsOptions.preserveViewport
>
> > Because if
> > the user refreshes the map, the position and zoom will be reset every
> > time...
>
> Getting the same GDirections every time the map zooms is clearly a
> waste of resource, and you may run into problems with numbers of
> requests.   Save it.
>
> >
>


-- 
Bjorn Brala
----------------
www.GeoStart.nl/english/ - Google maps - Swis Webdesign
www.twitter.com/bbrala

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to