I need to split map (with directions) into multiple tabs.
For this, 2nd tab routing paths should start from ending letter in previous
tab. (for example, tab 1, A-F) (tab 2 should start from F to k)
How to change start letter in directions map
My Code
function calcRoute() {
var start, end;
var waypts = [];
start = stopovers[0];
end = stopovers[stopovers.length - 1];
for (var i = 1; i < stopovers.length - 1; i++) {
waypts.push({
location: stopovers[i],
stopover: true
});
}
var request = {
origin: start,
destination: end,
waypoints: waypts,
optimizeWaypoints: true,
travelMode: google.maps.DirectionsTravelMode.DRIVING
};
directionsService.route(request, routeReceived);
}
--
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.