I'm not sure I follow what you expect to happen and what is happening
when provideTripAlternatives is true.

Here is a demo I have with a directions request when
provideTripAlternatives is true.  The renderer shows the first trip on
the map and a selectable trip list that changes the trip on the map
when a different trip is selected.  If I wanted to change the trip
manually I could call DirectionsRenderer.setTripList().

        var map = new google.maps.Map(document.getElementById("map"));
        map.setMapTypeId(google.maps.MapTypeId.ROADMAP);

        var directionsService = new google.maps.DirectionsService;
        var directionsRenderer = new google.maps.DirectionsRenderer({
          map: map, panel: document.getElementById("directions")});

        directionsService.route({
          origin: "Sydney",
          destination: "Brisbane",
          provideTripAlternatives:true,
          travelMode: google.maps.DirectionsTravelMode.DRIVING
        }, function(result, status) {
          if (status == google.maps.DirectionsStatus.OK) {
            directionsRenderer.setDirections(result);
          }
        });

Hope this helps,
Susannah

--

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


Reply via email to