In this Script how to add diretction panel?? thanks you
function initialize() {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(22.627474,120.314241), 13);
//path
var route1 = 'from: 22.625,120.314241 to:
22.625,120.315424 to: 22.617,120.301049 ';
var route2 = 'from: 22.7,120.314241 to:22.6240,120.315
to:
22.624409,120.315424 ';
var route3 = 'from: 22.624,120.268 to:22.624,120.26955
';
var routes = [route1, route2, route3];
for(j = 0; j < routes.length; j++) {
directionsArray[j] = new GDirections();
GEvent.addListener(directionsArray[j], "load",
onGDirectionsLoad);
directionsArray[j].load(routes[j],
{getPolyline:true});
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---