> But there's no luck 4 me . :( > > can please please look into this issue?
Code snippets are pretty useless really, without the context of your whole page. Have you seen the posting guidelines, or are you just iignoring them? http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines Your directions load function appears to use a global polyAll variable, which probably isn't a good idea. Banging off multiple GDirections will almost always fail when you exceed the 'speed limit', to prevent abuse. It's the same as geocoding - http://econym.org.uk/gmap/geomulti.htm Checking any errors returned from GDirections would be a good idea, then you'd have half an idea what's going wrong. cheers, Ross K > > On Mar 5, 3:30 pm, Andrew Leach <[email protected]> wrote: > > > > > 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- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
