On Mar 5, 10:20 am, jey jey <[email protected]> wrote: > I am using the above code to display the directions based on the > values loaded from the xml file. they are in array called markers. But > while loading them its not displaying all location directions, few > direction are missed out. Could please help me to find the issue > behind this.
You are re-using "directionsAll". One directions-load may not have completed before the loop goes round again and issues another request. >From the documentation; "If a previous load() request has not completed when a new call to load() is invoked, the previous request is cancelled. Thus, you can use a single GDirections object to issue directions requests serially, but to generate multiple requests in parallel, you must use multiple GDirections objects." Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
