I'm guilty of trying to simplify my question to the point of it being a little deeper than it appears. My application needs to consider each leg of the directions as separate legs and we can't assume that the ends of each leg connect with the previous or the next leg. Think of it as the Tour De France where you have a series of stages that are not always contiguous. The only way I could figure out how to do that was to do a separate GDirections object for each leg.
On Nov 28, 5:47 pm, Esa <[EMAIL PROTECTED]> wrote: > On Nov 29, 2:50 am, kenja <[EMAIL PROTECTED]> wrote: > > > > > If you wonder the code is structured as it is... We do not know how > > many waypoints there will be in advance. There can be up to 10, so I > > created 10 listeners. I could not figure out how to create a variable > > number of listeners on the fly. If you know how, let me know. > > A single GDirections object and a single listener will do. You can put > up to 25 waypoints to the query string or in the array of > loadFromWaypoints(). > > http://code.google.com/apis/maps/documentation/reference.html#GDirect... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
