googlemaps / googlemaps/google-maps-ios-utils

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

Open
#534 1 comment 0 reactions 0 assignees View on GitHub
triage me type: bug
Dominant language
Objective-C
Stars
778
Forks
441
PR merge metrics
No merged PRs in 30d

Description

#### 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](https://github.com/user-attachments/files/18890493/MapMarkerBug.zip)

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.