googlemaps / googlemaps/js-markerclusterer

MarkerClusterer: unnecessary rerendering of clusters when nothing has changed

Open
#801 1 comment 4 reactions 0 assignees View on GitHub
triage me type: bug
Dominant language
TypeScript
Stars
293
Forks
104
Avg merge
3m
Merged PRs (30d)
18

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.