You can do something like this to get the directions:
directions.load("from: 53,-1 to: 54,-2");
If you have the locations stores as GLatLngs, then you'd write
directions.load("from: "+point1.toUrlValue(5)+" to: "
+point1.toUrlValue(5));
In order to suppress the steps, omit the second parameter when you
create the GDirections() instance.
One way to get the polyline without the markers is to omit the first
parameter when you create the GDirections instance, then use getPolyline
when the data comes back
var directions = new GDirections();
GEvent.addListener(directions, "load", function() {
var poly = dirn.getPolyline();
map.addOverlay(poly);
});
directions.load("from: "+point1.toUrlValue(5)+" to: "
+point1.toUrlValue(5), {getPolyline:true});
--
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
-~----------~----~----~----~------~----~------~--~---