[英]android-map-extensions weird clustering behavior
I'm currently using android-map-extensions
to cluster markers on google map. 我目前正在使用
android-map-extensions
对Google地图上的标记进行聚类。 However, sometimes two markers are clustered when they are really far, sometimes they have to be almost overlapping each other to be clustered together. 但是,有时两个标记在距离很远时会聚在一起,有时它们必须彼此几乎重叠才能聚在一起。 I've been trying to wrap my head around this for a couple of days and haven't figured it out.
几天来我一直在努力寻找解决方案,但没有弄清楚。 Below is the examples (btw, sorry for the bad english and I don't have enough reputation to post images so imgur to the rescue):
以下是示例(顺便说一句,对不起,英语不好,我没有足够的声誉来发布图像,以免发生救援):
How can I fix this, changing the clusterSize as document does not really help 我该如何解决,将clusterSize更改为文档并没有真正的帮助
Android Maps Extensions uses grid based clustering and what you describe is part of how it works. Android Maps Extensions使用基于网格的群集,您所描述的内容是其工作方式的一部分。
You have a couple of options: 您有两种选择:
clusterSize
for your case; clusterSize
; this might work if all your markers have fixed and static positions; Disclosure: I'm a developer of Android Maps Extensions 披露:我是Android Maps Extensions的开发人员
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.