On Apr 5, 4:30 am, Tajammal Ali <[email protected]> wrote:
> 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);
>         }

I believe the only way to do that is to manage the markers yourself
(supressMarkers: true, then add whatever markers with whatever icons
you want to the correct places).

Example with custom markers icons:
http://www.geocodezip.com/v3_directions_custom_iconsC.html

  -- Larry

-- 
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.

Reply via email to