ksrikanth189 / android-maps-extensions

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

Inhibit clustering of marker #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add a field and methods to the marker interface that would allow markers to be 
excluded from clusters.

e.g.
void excludeFromClusters(boolean exclude);

Then, modify other clustering classes to check this property before clustering.

Original issue reported on code.google.com by baron.k....@gmail.com on 4 Dec 2013 at 6:09

GoogleCodeExporter commented 9 years ago
This is already implemented with a bit more powerful interface:

    Marker.setClusterGroup(int)

Negative int means it will never be clustered. Same non-negative cluster 
together.

e.g.

    marker.setClusterGroup(ClusterGroup.NOT_CLUSTERED);

See Issue 10 and Issue 16 for some additional info and check out 
ClusterGroupsActivity demo: 
http://code.google.com/p/android-maps-extensions/source/browse/android-maps-exte
nsions-demo/src/pl/mg6/android/maps/extensions/demo/ClusterGroupsActivity.java

Original comment by maciek.g...@gmail.com on 4 Dec 2013 at 6:22