Wasn't it aldebaran who wrote:
>
>A little question...
>I have loaded a file kml with GGeoXml function. Is it possible after
>the load file an automatic move with zoom in the zone with markup?
>I've tried gotoDefaultViewport(map:GMap2) but not work for me....
>sob.
>I should calculate min and max and correct zoom with a parsing on file
>kml?

Your code should look something like this:
  GEvent.addListener)gdir,"load",function() {
    gdir.gotoDefaultViewport(map);
  });
where "map" is a reference to your map and "gdir" is a reference to your
GDirections instance.


-- 
Mike Williams
http://econym.org.uk/gmap



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