Cluster markers with osmdroid

2019-07-11 02:37发布

问题:

I am new to osmdroid. I am using offline maps using mbtiles. I am using too many markers on the map that make my map very slow. I read it some where that clustering would be helpful but i am not getting any useful example of how to make cluster marker in osmdroid. please help.

回答1:

Now there is a ready-to-use solution: in OSMBonusPack (an add-on to osmdroid), there is a MarkerClusterer.

The tutorial is here: http://code.google.com/p/osmbonuspack/wiki/Tutorial_3