Guys i have a div inside my page, div id = "route". all the directions are showing in this div. i don't know how they are showing? i want to change its contents when Travel Mode is changes. i have two Travel Mode:
1 By Walking, 2 By Car
when any mode is selected, route div contents shows "Walking directions are in beta. etc" i want when By Car mode is selected, it should "Driving Directions are in beta. etc"
map = new GMap2(document.getElementById("map_canvas"));
directionsPanel = document.getElementById("route");
ClientPostCode += " United Kingdom";
map.setCenter(new GLatLng(49.496675, -102.65625), 3);
directions = new GDirections(map, directionsPanel);
if (travelMode == "Walking")
{
directions.load("from: " + ClientPostCode + " to: " + serviceAddress, { travelMode: G_TRAVEL_MODE_WA ...
Go to the complete details ...