Skip to content

MarkerClusterer: unnecessary rerendering of clusters when nothing has changed #801

@ixam1

Description

@ixam1

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)

Screen.Recording.2023-11-17.at.10.24.32.mov

Video example with vector maps, fractional zoom and non-animated clusters (flickering)

fractional.no.animation.not.fixed.mov

Video example without fractional zoom and animated clusters (sometimes unnecessary rerendering and animating)

normal.not.fixed.mov

PR

I am creating a PR for this myself, the fix seems pretty straightforward at first glance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions