From d00f8e37c78b47b014d1909fd35921d33903271f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Wed, 4 Nov 2015 13:36:33 -0800 Subject: [PATCH] Disable callout view dimming when tap is a no-op Fixes #2634. --- platform/ios/MGLMapView.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index e805f84f0..81b8fc886 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -1453,6 +1453,11 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration) } } +- (BOOL)calloutViewShouldHighlight:(__unused SMCalloutView *)calloutView +{ + return [self.delegate respondsToSelector:@selector(mapView:tapOnCalloutForAnnotation:)]; +} + - (void)calloutViewClicked:(__unused SMCalloutView *)calloutView { if ([self.delegate respondsToSelector:@selector(mapView:tapOnCalloutForAnnotation:)])