On Mar 13, 8:11 am, ianus <[email protected]> wrote:
> I have a route planner embedded into a page, but the intial zoom level
> prevents you from seeing the whole route.
>
> How can I set the initial zoom to be further out?

Works for me:
http://www.geocodezip.com/example_geo2.asp?addr1=Coolsingel,%20Rotterdam&addr2=Boogerdweg%2010,%20Kerkwerve&geocode=1&geocode=2

>
> This is the first part of the js which initialises the route from
> Rotterdam to Kerkwerve:
>
>     var map;
>     var gdir;
>     var geocoder = null;
>     var addressMarker;
>
>     function load() {
>       if (GBrowserIsCompatible()) {
>         map = new GMap2(document.getElementById("map"));
>                 map.addControl(new GSmallMapControl());
>         gdir = new GDirections(map, document.getElementById
> ("directions"));
>         GEvent.addListener(gdir, "load", onGDirectionsLoad);
>         GEvent.addListener(gdir, "error", handleErrors);
>         setDirections("Coolsingel, Rotterdam", "Boogerdweg 10,
> Kerkwerve", "nl_NL");
>       }
>     }
>
> Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
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