Closed crystalgeek closed 9 years ago
Hi I'm using the example route option and having trouble adding waypoints. Can you tell me where im going wrong?
$('#start_travel').click(function(e){ e.preventDefault(); map.travelRoute({ //LatLng origin: [51.53228, -0.10605], destination: [51.545611, -0.102782], travelMode: 'bicycling', waypoints: [51.540967, -0.105958], step: function(e){ $('#instructions').append('
Hi, you need to set the waypoints this way: https://developers.google.com/maps/documentation/javascript/examples/directions-waypoints?hl=es
Hi I'm using the example route option and having trouble adding waypoints. Can you tell me where im going wrong?
$('#start_travel').click(function(e){ e.preventDefault(); map.travelRoute({ //LatLng origin: [51.53228, -0.10605], destination: [51.545611, -0.102782], travelMode: 'bicycling', waypoints: [51.540967, -0.105958],
step: function(e){ $('#instructions').append('