google-maps-ios-utils
google-maps-ios-utils copied to clipboard
didTapMarker: determine if the marker is in clustered state for a zoom level
A marker should be able to have different behaviors based on whether its in a clustered state or not. I need a method in, say, NonHierarchicalDistanceBasedAlgorithm that can provide a bool for a marker at a specific zoom. I'm a new swift developer, so lost creating this function:
- (BOOL)isClustered:(GMSMarker*)item andZoom: (float)zoom {
NSSet *clusters = [self getClusters:zoom];
// ???
return YES;
}
Can anyone help?