I'm finding the same thing... The strange part is that it works
correctly when strTravelMode is set to G_TRAVEL_MODE_DRIVING, however
when I go into WALKING MODE, I get an Error Code 500.
When I look at the firebug response for the JS call, I can't
distinguish any failure of the nav.js (see included)
Here is the code I'm using:
....
// Set Avoid Highway
var bolAvoidHighway = false;
if ($("#chkAvoidHighways").attr("checked") === true) {
bolAvoidHighway = true;
}
// Travel Mode
var strTravelMode = G_TRAVEL_MODE_DRIVING;
if ($("#chkUseWalkingDirections").attr("checked") === true) {
strTravelMode = G_TRAVEL_MODE_WALKING;
}
// Load Google Directions
oDirections.load(dirStr, {locale: "en_US", getPolyline: true,
getSteps: true, travelMode: strTravelMode, avoidHighways:
bolAvoidHighway });
....
I'm using v2 for the Google Map API
-Kevin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---