Until the map ready event fires you can't add overlays because the container 
for overlays has yet to be created, so you get this error.  The way to get 
around this one isn't too bad, just move your for loop into a third function 
that both the map ready and your result handler call.  Create two booleans, 
one for isMapReady and one for isDataLoaded, in your third function before 
running the loop check that both of those booleans have been set to true 
(set them to true in your existing functions, the map ready handler and the 
result handler, and have each call the third function).  The third function 
will serve as a blocking point to stop the overlays from being added if 
either the map isn't ready for overlays or the data isn't loaded.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api-for-flash/-/vZ2915N0IegJ.
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-for-flash?hl=en.

Reply via email to