[Google Maps API v3] Re: using .setRouteIndex to render alternate path

2017-06-25 Thread Praveen C. Naik
i have the same exact problem , but your code is in jquery and mine is pure Javascript , so can i get some help here..! On Thursday, 23 September 2010 08:39:44 UTC+5:30

[Google Maps API v3] Re: using .setRouteIndex to render alternate path

2010-09-22 Thread bmcf
Thanks, Larry, that works. To answer your question, I didn't know that setting the route index was sufficient to have the alternate path rendered. Thank you for pointing that out to me. Brian On Sep 21, 1:37 pm, "geocode...@gmail.com" wrote: > On Sep 21, 1:03 pm, bmcf wrote: > > > Larry, > > >

[Google Maps API v3] Re: using .setRouteIndex to render alternate path

2010-09-21 Thread geocode...@gmail.com
On Sep 21, 1:03 pm, bmcf wrote: > Larry, > > My example is here: > > http://www.brianmcfann.com/examples/example.htm > > I am setting the route index directly by assigning to > directionsDisplay.routeIndex rather than calling > directionsDisplay.setRouteIndex() because the latter seems not to work

[Google Maps API v3] Re: using .setRouteIndex to render alternate path

2010-09-21 Thread bmcf
Larry, My example is here: http://www.brianmcfann.com/examples/example.htm I am setting the route index directly by assigning to directionsDisplay.routeIndex rather than calling directionsDisplay.setRouteIndex() because the latter seems not to work when I use a variable or function that resolves

[Google Maps API v3] Re: using .setRouteIndex to render alternate path

2010-09-21 Thread geocode...@gmail.com
On Sep 21, 10:19 am, bmcf wrote: > No, I am using the DirectionsRenderer to display the routes on the > map, but I am handling the display of instuctions with my own > function. The basic problem seems to be that calling setRouteIndex(1) > or setRouteIndex(2) on the DirectionsRenderer object befor

[Google Maps API v3] Re: using .setRouteIndex to render alternate path

2010-09-21 Thread bmcf
No, I am using the DirectionsRenderer to display the routes on the map, but I am handling the display of instuctions with my own function. The basic problem seems to be that calling setRouteIndex(1) or setRouteIndex(2) on the DirectionsRenderer object before calling setDirections(result) has no eff

[Google Maps API v3] Re: using .setRouteIndex to render alternate path

2010-09-21 Thread stu
Hi I'd guess that if you are rendering the results to the map yourself, that you can't then use DirectionsRenderer to get to routes. I presume you are getting the results object and either using the overview_path or going through the legs, steps etc to build the polyline, In that case you *can* us

[Google Maps API v3] Re: using .setRouteIndex to render alternate path

2010-09-20 Thread bmcf
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 wrote: > I would like to have the map show alternate routes on demand. It > initially shows the first rout