diff options
author | Jason Wray <jason@mapbox.com> | 2016-08-06 17:59:35 -0700 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2016-08-06 17:59:35 -0700 |
commit | ae88c01c9455654038341eee5baaaece71796b35 (patch) | |
tree | bec1320625421c7c839faf230975e8b629d135c3 /platform/ios/src/MGLUserLocationAnnotationView.h | |
parent | b928ac5bd407efb8e4fad1e47d843eb203014841 (diff) | |
download | qtlocation-mapboxgl-ae88c01c9455654038341eee5baaaece71796b35.tar.gz |
[ios] Hit test the user location annotation dot specifically
Rather than try to exclude layers in the touch hit test, this
specifically only checks against the main layer for the user dot or
puck.
Back-port of e4a9173a2a5c585dda3fa7a0f955cff1552f8d25.
Diffstat (limited to 'platform/ios/src/MGLUserLocationAnnotationView.h')
-rw-r--r-- | platform/ios/src/MGLUserLocationAnnotationView.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/src/MGLUserLocationAnnotationView.h b/platform/ios/src/MGLUserLocationAnnotationView.h index 1eb50b7740..8ab9ea6e79 100644 --- a/platform/ios/src/MGLUserLocationAnnotationView.h +++ b/platform/ios/src/MGLUserLocationAnnotationView.h @@ -14,6 +14,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, weak) MGLMapView *mapView; @property (nonatomic) MGLUserLocation *annotation; @property (nonatomic, readonly, nullable) CALayer *haloLayer; +@property (nonatomic, readonly) CALayer *hitTestLayer; - (instancetype)initInMapView:(MGLMapView *)mapView NS_DESIGNATED_INITIALIZER; - (void)setupLayers; |