How to handle multiple markers on Google Maps with same location?

前端 未结 5 658
遇见更好的自我
遇见更好的自我 2020-12-24 13:43

I use Google Maps in an app and it is likely that multiple markers are attached to same location where each marker represent a person. In this situation user will not know t

5条回答
  •  萌比男神i
    2020-12-24 14:24

    Maybe you should take a look at marker clustering. It's a common solution for showing a lot of markers on the same place. Google article about it: https://developers.google.com/maps/articles/toomanymarkers

    There are also existing libraries to do this, e.g.:

    • https://code.google.com/p/android-maps-extensions/
    • https://github.com/twotoasters/clusterkraf

提交回复
热议问题