GDirections is asynchronous. A request is fired off to Google and javascript execution continues. You have only one gdir object which gets trampled on by the next loop iteration. Ages later, one of the gdir results comes back (not necessarily the first one fired off) and nobody knows what they're doing to whom.
You've some homework to do on asynchronous programming :) Also you need to know that there are speed limits on the rate at which you can fire requests to Google. All this is in Mike's ever useful econym tutorial cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
