summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-11-04 13:36:33 -0800
committerMinh Nguyễn <mxn@1ec5.org>2015-11-04 13:36:33 -0800
commitd00f8e37c78b47b014d1909fd35921d33903271f (patch)
treeb6eef6189e3487bf642d095b7316697881861b54
parent4956c05042d81fa46fdef756fe4275466849ba13 (diff)
downloadqtlocation-mapboxgl-d00f8e37c78b47b014d1909fd35921d33903271f.tar.gz
Disable callout view dimming when tap is a no-op
Fixes #2634.
-rw-r--r--platform/ios/MGLMapView.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm
index e805f84f08..81b8fc886b 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:)])