MarkerClusterer – New Feature - minClusterSize

108 views
Skip to first unread message

Andrew Bidochko

unread,
Aug 20, 2010, 12:58:21 AM8/20/10
to google-maps-utility-library-v3
I’d like to discuss a new feature which might be added to
MarkerClusterer – it’s an option to control minimum number of markers
which should be rendered as a cluster. A new feature will allow us to
accomplish 2 goals:
- Allow some fine-tuning in cases (per say locations) where markers
density is low.
- Display uniform clusters when minClusterSize is set to 1. In this
case, all individual markers will be rendered as a cluster labeled
‘1’.

Based on my implementation @
http://demo.mashuptechnologies.com/maps/markerclusterer/src/markerclusterer-custom.js
(r175 source) there will no performance impact which is very important
for a clusterer.
Here’s an advance example http://demo.mashuptechnologies.com/maps/markerclusterer/minclustersize/
with links to speed tests.

To archive backward compatibility minClusterSize will be set to 2 by
default.

So what do you think? Should minClusterSize option be included into a
trunk?

~ Andrew Bidochko
http://mapbuilder.net
Reply all
Reply to author
Forward
0 new messages