I've created a script that plots a series of waypoints and the
directions between them.  I'm experiencing a strange problem where the
directions are not being plotted correctly on the first page load.  If
the display function is called again without reloading the page, it
works fine.  In this test case there are four waypoints.  It seems to
be drawing the directions between two of the waypoints three times
while ignoring the other ones.  Calling the function again makes it
work correctly...

It seems to be related to an "a is not defined" error.  Does anyone
know what "a" is?

You can see the code and reproduce the problem here:
http://www.holdemacademy.com/maps_test.php

You'll see that a dark blue line connects the first and last points on
page load.  If you click the "Request New Data" link, it will reload
the XML file and display the data correctly.

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.

Thanks for any help you can provide!






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