On May 31, 7:32 am, bkjanes <[email protected]> wrote:
>
> Is there something else that I'm missing?
>

yeah there is a race condition in your code, because the MarkerManager
isn't ready immediately after construction.

Internally the MarkerManager generates a 'ready' event to signify the
projection() is available, and then it initializes() and finally
raises a 'loaded' event.

So the race condition error occurs when the marker XML is downloaded
before the MarkerManager is ready.

you will need to change your code like this:

google.maps.event.addListener(mgr, 'loaded', function() {
  downloadUrl("ALDOTTrafficMarkers.xml", function(data) {
  });
});

...

this page has some examples:
http://google-maps-utility-library-v3.googlecode.com/svn/tags/markermanager/1.0/docs/examples.html

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