Hi , I can't obtain "walking directions " from the method load, is
there nobody that know what is wrong?
////////**********///////////
code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-
microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/
>
<title>Google Maps JavaScript API Example: Advanced Directions</
title>
<script src="
http://maps.google.com/?file=api&v=2.x&key=ABQIAAAA7BV-hkHfZEG2J1Jt6F5LrxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTDq4F-lPqPDzAI8A0jDPi9msOELQ"
type="text/javascript"></script>
var map
var gdir;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
setDirections( "45.676921478 12.25168704","45.660157296 12.24130153");
}
function setDirections(fromAddress, toAddress) {
gdir.load("from: " + fromAddress + " to: " + toAddress,
{travelMode:G_TRAVEL_MODE_WALKING});
}
...
It could be a problem with the version (v=2.x)written near the google
maps key?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---