I should have made it clear that I am not using the .setPanel method on the DirectionsRenderer, I am trying to handle the display of directions with my own function.
On Sep 20, 2:31 am, bmcf <brian.mcf...@gmail.com> wrote: > I would like to have the map show alternate routes on demand. It > initially shows the first route in the "result" by default (there are > three routes). I tried calling .setRouteIndex(1) and > then .setDirections(result) on the DirectionsRenderer object but the > second route was not rendered on the map. Is this not the way to do > it? > > Thanks. -- 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.