usmanrana07 / android-maps-extensions

Automatically exported from code.google.com/p/android-maps-extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Markers with the same position always appear clustered

GoogleCodeExporter opened this issue · comments

This is not so much of a bug (and certainly is of a lowest priority), but still 
might be in line with AMEs' mission of "improving GMaps":

Due to anomalies in my geospatial data, several markers appear to have exactly 
the same lat/long. When they are plotted on the map, they're always kept 
together as a cluster, clicking on which gives no visual feedback (btw, that's 
wonderful idea in the sample app to reposition camera to scale to the cluster 
content on click).

Any idea how to work around such situation?

Original issue reported on code.google.com by estee...@gmail.com on 25 Jul 2013 at 10:49

If you create markers with exactly the same LatLng there is not much clustering 
lib can do.

For a very close markers see Issue 16.

When Issue 10 is done, users could easily create something like this: 
http://jawj.github.io/OverlappingMarkerSpiderfier/demo.html

Original comment by maciek.g...@gmail.com on 25 Jul 2013 at 11:29

For any kind of action on this it would be nice to have some suggestions 
regarding implementation.

Original comment by maciek.g...@gmail.com on 8 Aug 2013 at 2:52

  • Changed state: NeedsMoreInfo
Issue 10 is done, so I added a demo that shows one possible way to handle such 
situations.

https://github.com/mg6maciej/android-maps-extensions/blob/develop/android-maps-e
xtensions-demo/src/pl/mg6/android/maps/extensions/demo/DeclusterificationExample
Activity.java#L70

Original comment by maciek.g...@gmail.com on 21 Aug 2013 at 1:12