diff --git a/mapcache-ios/map/MCMapViewController.m b/mapcache-ios/map/MCMapViewController.m index f532842..867aa74 100644 --- a/mapcache-ios/map/MCMapViewController.m +++ b/mapcache-ios/map/MCMapViewController.m @@ -559,6 +559,11 @@ -(void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated{ - (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view { NSLog(@"Tapped map point"); + + if (![view isKindOfClass:MKPinAnnotationView.class]) { + return; + } + [self zoomToPointWithOffset:view.annotation.coordinate]; [self.mapActionDelegate showDetailsForAnnotation:(GPKGMapPoint *)view.annotation]; }