Markercluster in V3

218 views
Skip to first unread message

Répás Zoltán

unread,
Aug 22, 2011, 8:39:58 AM8/22/11
to google-map...@googlegroups.com
Hello!

I'd like to show 34614 points in google maps with markercluster, and I'd like to make a preloading… message before it shows. 

Are there a markerCluster.finished-printing-markers event? :)
And if not, how can i handle it?

Thanks for the help,
Répás Zoltán
marh...@gmail.com

Gary Little

unread,
Aug 23, 2011, 11:30:40 AM8/23/11
to Google Maps JavaScript API v3
First of all, performance will be very slow when handling this number
of markers. I would guess that Internet Explorer, the slowest of the
browsers, would be totally unusable.

To answer your question: MarkerClusterer does not trigger events when
it starts (and ends) clustering.

However, MarkerClustererPlus does support such events. The events are
called clusteringbegin and clusteringend. See the documentation at
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/docs/reference.html
Providing handlers for these events should allow you to display (and
hide) a status message at the appropriate times.

The MarkerClustererPlus library is located at
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/src/

See also Issue 82.

Gary
> marhar...@gmail.com

Al Black

unread,
Aug 23, 2011, 12:49:59 PM8/23/11
to google-map...@googlegroups.com
Gary, in the example MarkerClustererPlus goes up to 1000 markers no sweat - would it be able to handle large numbers like 50,000-70,000? 

Cheers 

Gary Little

unread,
Aug 24, 2011, 12:55:06 AM8/24/11
to Google Maps JavaScript API v3
It can probably handle it, though you may not be satisfied the
performance, even with a fast browser. IE would be totally unusable.
Reply all
Reply to author
Forward
0 new messages