heya,

Ok, that's a bit silly, it seems it can work, you just need a separate
GDirection object for each set. There's no way to recycle the same
GDirection object, and pass it a different array each time, is there?

I only ask because I won't know in advance how many routes I'll have to
plot, so I'll have to create these objects dynamically at runtime.

Also, is there any way to easily override the colour of the plotted
polylines? Or am I really better off taking the polyline from GDirection,
and plotting this myself manually?

Cheers,
Victor

2009/10/30 Victor Hooi <[email protected]>

> heya,
>
> I'm trying to load multiple GDirection routes on one map, using
> multiple calls to loadFromWaypoints() with different arrays.
>
> However, it only appears to display the last call.
>
> I couldn't seem to find anything in the API docs on whether this was a
> restriction of loadFromWaypoints itself?
>
> I know that GDirection is asynchronous, however, I assumed that the
> multiple calls would just fire one after the other?
>
> Is there any other way to load the different routes from GDirection
> onto one map? (e.g. should I get the polylines returned, and plot them
> manually?)
>
> Cheers,
> Vicotr

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to