Skip to content

Clustering: Unclustered markers disappear after updating camera when animatesClusters is true #534

@jonmindtrip

Description

@jonmindtrip

Environment details

  1. Specify the API at the beginning of the title (for example, "Places: ...")
  2. OS type and version: iOS 18.2
  3. Library version and other environment information: Maps sdk 9.3.0, GoogleMapsUtils v6.1.0

Steps to reproduce

  1. Open and run the provided sample app, which has 18 map markers in locations around paris.
  2. Drag the map to make a few of the unclustered map markers
  3. Tap on the retarget button appears in the bottom right corner of the map.

EXPECTED: map recenters to the original viewport, with all markers visible.
ACTUAL: map recenters to the original viewport, but after a short delay some of markers flicker out. Moving the map at all immediately fixes the problem.

here is a video of the behavior:
https://github.com/user-attachments/assets/cd787c8a-1470-418c-b353-f4e9049b9d58

Also worth noting: setting renderer.animatesClusters = false resolves the issue.

Code example

See attached sample project.

MapMarkerBug.zip

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