googlemaps / googlemaps/google-maps-ios-utils
Clustering : Cluster Markers do not initially hide their items on the map
- 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
Assessment
This issue has not been assessed yet.