Hello
I am trying to store path direction (Direction text) in a variable as
in below mentioned code , it seems I am doing some thing wrong, Please
advise
*-----------
<body onLoad="initialize();"onunload="GUnload"()>
<!-- you can use tables or dive for the overall layout -->
<div id="map_canvas" style="width: 70%; height: 600px; float:left;
display:none;border:1px solid black;" ></div>
<div id="route" style="width: 70%; height: 100%; float:bottom;
border:1px solid black;"></div>
<script type="text/javascript">
var map;
var directionsPanel;
var directions;
var startLoc;
function initialize() {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(33.973933, -84.554027), 15);
map.setUIToDefault();
var officeLoc = new GLatLng(33.973933, -84.554027);
map.addOverlay(new GMarker(officeLoc));
directionsPanel = document.getElementById("route");
directions = new GDirections(map, directionsPanel);
directions.load("from: 246 Port Richmond Ave Staten Island, NY
10302
to: 777 Washington Rd, Parlin, NJ 08859 ");
var ak1 = directions.load("from: 246 Port Richmond Ave Staten
Island, NY 10302 to: 777 Washington Rd, Parlin, NJ 08859 ");
alert(ak);
}
</script> </body>
*---------
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---