From b7a3b3805c87319bf9f77f949d7c2a59520256cc Mon Sep 17 00:00:00 2001 From: Tyler Burgett Date: Wed, 7 Apr 2021 17:07:43 -0600 Subject: [PATCH] Bug fix for user location --- mapcache-ios/map/MCMapViewController.m | 5 +++++ 1 file changed, 5 insertions(+) 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]; }