On Feb 15, 4:43 pm, midin <[email protected]> wrote:
> Hello,
> i'm trying to put a large amount of markers to a map through
> markerclusterer. Anyway, it's not working (nothing's shown) and I
> can't figure out why. If you have one minute, please look at the code
> athttp://googlemaps.ic.cz. I'm doing some check alerts() there. Don't
> know where the problem could be. Thanks, it'd really help me.

Might I suggest removing the alerts?  I find click through alerts to
see what is going on annoying (although I will admit I used to do that
all the time).  If you are posting it for help, you could replace the
alerts with GLog.write if you think they are valuable.

It looks to me like you don't understand how asynchronous processing
works (the "A" of AJAX: Asynchronous Javascript And Xml).

You can't add the markers to the markerClusterer until they have come
back from the server (which is inside the callback function).

See Mike Williams' explanation in his tutorial:
Javascript Concepts
Part 2 Asynchronous I/O
http://econym.org.uk/gmap/async.htm

  -- Larry

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

Reply via email to