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:
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.