Hi I have been messing with the code below on the Ajax API playground
http://code.google.com/apis/ajax/playground/?exp=maps#map_directions_simple
I am trying to set it up so I can add multiple destinations. As you
see below the code will only show you the directions between marker a
and marker b. I want to add another marker c after Fenway Park.
Anyone know how to do this? I tried simply adding another address
after the Fenway park, but its not working. Any ideas?
// Create a directions object and register a map and DIV to hold the
// resulting computed directions
var map;
var directionsPanel;
var directions;
function initialize() {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(42.351505,-71.094455), 15);
directionsPanel = document.getElementById("route");
directions = new GDirections(map, directionsPanel);
directions.load("from: 500 Memorial Drive, Cambridge, MA to: 4
Yawkey Way, Boston, MA 02215 (Fenway Park)");
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---