Tapping on a cluster vs tapping on a marker
Closed this issue · 5 comments
christophernassar commented
How do we detect the difference between tapping on a cluster or a market in - (BOOL)mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker
OMK265 commented
I am also facing same issue. So please help me out on this.
OMK265 commented
@DDRBoxman @christophernassar Please help me on it.
christophernassar commented
(BOOL)mapView:(GMSMapView *)mapView didTapMarker:(CustomGMSMarker *)marker {
[self resignResponder];if(marker.count > 1){
NSLog(@"cluster tapped");
} else {
NSLog(@"simple marker tapped");
}return YES;
}
//Remember you need to customize your GMSMarker and insert the number of markers into the clusters in order to differentiate between them later like in this case