diff options
author | Julian Rex <julian.rex@mapbox.com> | 2018-02-09 16:28:57 -0500 |
---|---|---|
committer | Julian Rex <julian.rex@mapbox.com> | 2018-02-09 16:34:49 -0500 |
commit | 0faad452a96ce6644cfc4ac07ec0e0c76e136935 (patch) | |
tree | 235e878fd06f62d8fe2a4af1b9debc661949ee55 /platform/ios/src/MGLMapView.mm | |
parent | 7b14455f749db73ef70c58cc2307d2c619633ddf (diff) | |
download | qtlocation-mapboxgl-0faad452a96ce6644cfc4ac07ec0e0c76e136935.tar.gz |
[ios] Removed mapView:didSingleTapAtCoordinate:
Diffstat (limited to 'platform/ios/src/MGLMapView.mm')
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 126acb8f0f..d2496d8627 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -1579,7 +1579,6 @@ public: [self deselectAnnotation:self.selectedAnnotation animated:YES]; UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nextElement); - // Should we call mapView:didSingleTapAtCoordinate: here? If so, what coordinate? return; } @@ -1594,17 +1593,6 @@ public: { [self deselectAnnotation:self.selectedAnnotation animated:YES]; } - else - { - // An annotation wasn't selected or deselected. - if ([self.delegate respondsToSelector:@selector(mapView:didSingleTapAtCoordinate:)]) - { - CGPoint pointInView = [singleTap locationInView:singleTap.view]; - CLLocationCoordinate2D tapCoordinate = [self convertPoint:pointInView toCoordinateFromView:singleTap.view]; - - [self.delegate mapView:self didSingleTapAtCoordinate:tapCoordinate]; - } - } } /** @@ -1983,8 +1971,7 @@ public: { id<MGLAnnotation>annotation = [self annotationForGestureRecognizer:(UITapGestureRecognizer*)gestureRecognizer persistingResults:NO]; if(!annotation) { - // Only allow this gesture to be recognized if the delegate implements the single tap method - return [self.delegate respondsToSelector:@selector(mapView:didSingleTapAtCoordinate:)]; + return NO; } } } |