Thanks for your help Rossko. But as far as I understand the array is not empty at all. MarkerClusterer() is called right after mjdDownloadUrl() and the constructor parameters are filled in correctly.
This is a screenshot of the firebug variables. You can see clearly that the parameter values are filled in correctly. http://dl.dropbox.com/u/5629939/capture_20110314_085851.jpg I'm still searching for a solution. On Mar 13, 2:03 pm, Rossko <ros...@culzean.clara.co.uk> wrote: > > 4. At the end: > > // Creating a MarkerClusterer object and adding the markers array to > > it. > > var mymarkerclusterer = new MarkerClusterer( mymap, > > mymarkersforclustering ); > > But it's not at the end of the loop, it is outside your XML callback. > It will get excuted while the array is still empty, before the XML > data has returned -- 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 google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.