I thought I did - ok back to the drawing board...

On Jan 10, 1:48 pm, "[email protected]" <[email protected]>
wrote:
> On Jan 10, 4:27 am, dipens <[email protected]> wrote:
>
> > Hi,
>
> > I have got this far:
>
> >http://www.differentum.com/map-test.html
>
> > As you can see, my alternative route is not working.
> > The route on the right should be starting at point A and not in
> > 'Swanley'.
>
> > Does anyone know what I am doing wrong?
>
> Did you try either of my two suggestions?  You are currently using the
> same directions renderer to display all the routes, I wouldn't expect
> that to work.
>
>   -- Larry
>
>
>
> > Just spent the whole of yesterday trying to resolve this issue.
>
> > Thanks
> > Dipen
>
> > On Jan 5, 7:07 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Jan 5, 9:02 am, dipens <[email protected]> wrote:
>
> > > > Hi,
>
> > > > I am calling the directions API to draw a route.
> > > > If I set provideRouteAlternatives: true, I want to display all the
> > > >alternativeroutesthat are returned.
>
> > > > I know that this has something to do with setting the route index - but 
> > > > am
> > > > completely lost in how to do this.
> > > > I don't want to hard code anything and I want to show all thealternative
> > > >routesas polylines (can be any number) that are returned.
>
> > > > How do I do this?
>
> > > I think I have an example that displays alternateroutesone at a time
> > > using the directionRenderer (or there might be a google example that
> > > does that), I don't know where mine is right now, if I have time to
> > > find and post it I will.
>
> > > I can think of 2 options:
> > > 1. make a directionRenderer for however many alternateroutesare
> > > returned and set each one to display one of the alternatives
> > > 2. process the DirectionsResult object, iterating through each
> > > returned route and displaying it yourself.
> > > (I have examples that do that to various levels of detail for
> > > route[0])
>
> > >   -- Larry
>
> > > > Thanks
>
> > > >  map.js
> > > > 1KViewDownload- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

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