> See the map here:http://www.nevus.org/nevus-maps_id567.php
>
> For some reason, each time the page is loaded it is a mystery whether
> the markers will load or not. Sometimes they do. Sometimes they don't.

Sounds like a timing race.

Noted that your 'map' variable is undeclared, and because your
MarkerManager is created in some other function and attached, I've no
idea if 'map' will be in scope or not in all browsers.

But the bad timing is here ; you create a new marker manager, then
kick off an XML download.  When the XML is returned, the callback
function processes it.  Then it creates a listener for MM 'loaded'
event.  If that event then occurs, your markers are handed to MM for
display.

Any reason to think that MM won't be finished loading some time
_before_ you set up a listener for its 'loaded' event, so it'll never
get triggered?

One approach would be to wait for MM loaded, and then do the XML fetch

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to