Placing thousands of pins on google map in android app

落爺英雄遲暮 提交于 2019-12-05 07:52:59

问题


I'm working with my programmers and have an issue that we're trying to find a simple / opensource solution to as i'm sure others have come across the same issue before...

In simple terms we're trying to place thousands of pins on a google map within an android application....

We managed to solve the problem of placing thousands of pins on a google map within xcode by using a clustering algorithm that placed them in clusters and gave the number of pins in a particular area, then as you zoom in , the pins specifically appear in their locations.

However, when trying to use this same algorithm within the android space, we're finding it slow and unstable, with the application crashing and becoming unusable.

clearly just trying to populate all the pin locations on the map is not the solution, but another solution along the lines of clustering or loading pins when at different zoom levels....if you can help by directing me to what someone else has done to solve this problem or suggest a solution, I would be very grateful,


回答1:


You can see this answer AndroidMapCluster and another project SampleClusterMapActivity



来源:https://stackoverflow.com/questions/12483065/placing-thousands-of-pins-on-google-map-in-android-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!