On Dec 11, 12:07 pm, mtweldon <[email protected]> wrote: > Hmm, I'm not entirely sure how to solve this problem or what you mean > by using the asynchronous data within its callback function. Any hints > on where to begin ? > > I believe I understand that the initialize function finishes up, but > how can I get it to not skip over the marker manager and send in > blanks?
You don't call it in the initialize function, you call it in the callback function to GDownloadUrl (after making sure that your map variable is global). That is when the data to populate it is available. -- Larry > > Thanks in advance for your responses. > > On Dec 11, 3:01 pm, Rossko <[email protected]> wrote: > > > > Added in the code for the custom icon to both pages and it made no > > > difference.. also added in code to split the downloading of tiles over > > > 5 domains to make it faster Larry. > > > GDownloadUrl is asynchronous. When you call it, it sends the request > > for your XML. > > Javascript execution does not stop, and your code carries on to > > eventually add empty marker arrays to MarkerManager. > > Much later on, your XML data returns and the arrays are populated, but > > these are never added to MarkerManager because your initialize() > > function finished long ago. > > You must use asynchronous data within its callback function. -- 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.
