js-markerclusterer
js-markerclusterer copied to clipboard
MarkerClusterer: unnecessary rerendering of clusters when nothing has changed
Steps to reproduce
- use MarkerClusterer
- Optional: use vector maps with fractional zoom and animated cluster markers to see the effect even more
- clusters get rerendered when zooming even when they havent changed, this causes minor flickering for default maps, but really bad experience if you use fractional zoom vector maps and animated clusters
Video examples
Video example with vector maps, fractional zoom and animated clusters (lots of unnecessary rerendering and animating)
https://github.com/googlemaps/js-markerclusterer/assets/74653168/3f988f04-e303-4f0c-83ac-f1d24e0c6ba0
Video example with vector maps, fractional zoom and non-animated clusters (flickering)
https://github.com/googlemaps/js-markerclusterer/assets/74653168/d0411743-3e5f-4afe-a3de-2df118c96855
Video example without fractional zoom and animated clusters (sometimes unnecessary rerendering and animating)
https://github.com/googlemaps/js-markerclusterer/assets/74653168/a1a93a22-2ab1-4383-8c19-cf8c40db590f
PR
I am creating a PR for this myself, the fix seems pretty straightforward at first glance.
If you would like to upvote the priority of this issue, please comment below or react on the original post above with :+1: so we can see what is popular when we triage.
@ixam1 Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:
- Check the issue tracker - bugs and feature requests for Google Maps Platform APIs and SDKs
- Open a support case - Get 1:1 support in Cloud Console.
- Discord - chat with other developers
- StackOverflow - use the
google-mapstag
This is an automated message, feel free to ignore.