googlemaps / googlemaps/google-maps-ios-utils

Clustering : Cluster Markers do not initially hide their items on the map

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

Description

When we first open the map and start the **cluster** algorithm, the clusters appear rendered with their assigned items still visible.
It is not until you zoom all the way in and back out do the clusters hide their associated items.

In **GMUDefaultClusterRenderer::- (void)renderCluster:(id)cluster animated:(BOOL)animated**
I recommend adding the following code at line 286 :
```
for (id item in cluster.items) {
GMSMarker *marker;
if ([item class] == [GMSMarker class]) {
marker = (GMSMarker *)item;
marker.map = nil;
}
}
```
This causes the initial Cluster renders to hide their items from the map.

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.