Senturia / android-maps-extensions

Automatically exported from code.google.com/p/android-maps-extensions
0 stars 0 forks source link

Cluster ClusterMarker if they are very close together #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If all the Markers inside of two different clusters are located near to the 
cluster boarder of the two clusters the Cluster Markers overlaps.
If the ClusterMarkers are close together they should be clustered together.

It woulb be nice if you could add such a feature.

Original issue reported on code.google.com by J.Kalmb...@gmail.com on 22 Sep 2013 at 5:15

Attachments:

GoogleCodeExporter commented 8 years ago
Hello Joachim,
This is a general problem with grid-based clustering.

One way to solve this would be to position cluster in the center of square like 
here: 
https://developers.google.com/maps/articles/toomanymarkers#gridbasedclustering
Not too much code changes would be required if you like it that way.

If it happens to you only when the amount of markers in a cluster is small, 
consider using a workaround from Issue 17.

If your markers don't move (e.g. shops loaded from a webservice) you may try to 
adjust ClusteringSettings.clusterSize. You would then completly change the 
grid, so these 4 markers are always clustered together and only separate when 
it makes more sense.

Please tell me, if anything above worked for you. It may take some time before 
I implement distance-based clustering.

Original comment by maciek.g...@gmail.com on 23 Sep 2013 at 11:26