DDRBoxman/google-maps-ios-utils

Tapping on a cluster vs tapping on a marker

Closed this issue · 5 comments

How do we detect the difference between tapping on a cluster or a market in - (BOOL)mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker

I am also facing same issue. So please help me out on this.

@DDRBoxman @christophernassar Please help me on it.

  • (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

Thanks a lot.

Can you please help me out solving one more issue. I have already opened a issue for the same.
Unable to Show Pins when on Same Location while clustering #28

i am Still Waiting for your reply
Unable to Show Pins when on Same Location while clustering #28