谷歌地图标记集群的Andr​​oid [英] Google Maps marker clusters in Android

查看:238
本文介绍了谷歌地图标记集群的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有实现标记集群谷歌地图以任何常见的方式的 Android应用程序?

Is there any common way to implement marker clusters for Google Maps in Android apps?

我有大约10000位置的数据库,想显示他们更智能的方式不仅仅是倾倒数千标志显示这是很少超过一个火柴盒大的... 理想情况下,它应该是可能的,如果使用通常的异步功能,即使使从一个可用性的角度感从一个网站的网址检索标记,但我不知道。

I have a database of about 10,000 locations and would like to display them in more intelligent ways than just dumping thousands of markers on a display that's rarely larger than a match box... Ideally, it should be possible to retrieve the markers from a website URL, though I'm not sure if using the usual Async functions for that even makes sense from a usability point of view.

推荐答案

Clusterkraf 会为你工作。其中一个在示例应用程序的高级模式选项是集群万随机点世界各地。聚类完成后在后台线程,所以它的工作原理相当不错,即使在较旧的设备。关键要使其与大型数据集执行是设置了扩大范围因子(透支)为0。苍蝇在我的Galaxy Nexus的。

Clusterkraf would work for you. One of the options in Advanced Mode in the sample app is to cluster 10,000 random points worldwide. The clustering is done on a background thread, so it works reasonably well even on older devices. The key to make it perform with large data sets is to set the "expand bounds factor (overdraw)" to 0. It flies on my Galaxy Nexus.

这篇关于谷歌地图标记集群的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆