js-markerclusterer icon indicating copy to clipboard operation
js-markerclusterer copied to clipboard

MarkerClusterer: unnecessary rerendering of clusters when nothing has changed

Open ixam1 opened this issue 2 years ago • 1 comments

Steps to reproduce

  1. use MarkerClusterer
  2. Optional: use vector maps with fractional zoom and animated cluster markers to see the effect even more
  3. 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.

ixam1 avatar Nov 17 '23 09:11 ixam1

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:

This is an automated message, feel free to ignore.

wangela avatar Nov 17 '23 09:11 wangela