romaonthego / REMarkerClusterer

REMarkerClusterer creates and manages per-zoom-level clusters for large amounts of markers.
MIT License
195 stars 30 forks source link

Lots of pins slows things down considerably #39

Open markkrenek opened 8 years ago

markkrenek commented 8 years ago

If you populate the map with lots of pins, which kinda is the point, the clusterize function isn't smart enough to only create annotations for the visible portion of the map. This is fine when zoomed out, since there won't be that many pins. But if you zoom way in, it's going to create pins for the non-visible areas and if you're dropped a 1000 pins on the map, then it may add all those to the map. This completely clogs the map.

Is there an easy approach to only generating annotations for the visible area?

I really like this library, especially its distribution of the cluster pins, but this issue is going to block my usage of it.