Rightpoint / BentoMap

Map Clustering for Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pins moving back into cluster after increasing zoom level

aodhol opened this issue · comments

Is it expected behaviour for a pin to become part of a cluster after zooming in. This behaviour is sometimes observed. See screenshots:

simulator screen shot 2 jan 2017 14 41 20 . simulator screen shot 2 jan 2017 14 41 27

In the first screenshot, at zoom level A, there are two clusters with 3 pins each. In the second screenshot at zoom level B (more zoomed in), one of the pins has once again become part of a cluster even though the map is more zoomed in that previously. This would be counter intuitive from a user's perspective. Is there a way to rectify it?

Thanks very much!

@aodhol if you link the bucket size to the zoom scale (not done in the demo app, and the exact math for doing it is what feels right). https://robots.thoughtbot.com/how-to-handle-large-amounts-of-data-on-maps gets into depth in a lot of the details of how to fine tune these behaviors in the "Drawing the annotations" section.