> but i notice that the program will run delay function first!!!!
> and when the program finished...it start to run directions.......

Don't use delay.  GDirections is asynchronous, and the results don't
arrive at the browser until after the delay has started - so they
don't get drawn until after the delay has expired.
Use setTimeout to trigger the next call without stopping the browser.

--~--~---------~--~----~------------~-------~--~----~
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