Super Simple code. I do know that latlng and poiLatLon are both
populated with valid google.maps.LatLng as they are used to add
Markers to the Map, and that's happening with no issues.
I've added my key to the JavaScript. And alert('Done Dudes') is as
simple as it gets for testing, if I get the callback. Nada. Any
ideas?
//ToDo: Make Travel Mode Dynamic
var dirRequest = {
origin: latlng,
destination: poiLatLon,
travelMode: google.maps.DirectionsTravelMode.WALKING
}
//Create a new Directions Service
document.getElementById('pnlLocationDirections').dirService = new
google.maps.DirectionsService();
//Make the Route Request
document.getElementById('pnlLocationDirections').dirService.route(dirRequest,
function (result, status) {
alert("Done Dudes");
});
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.