summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLAnnotationContainerView_Private.h
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-08-11 09:28:24 -0700
committerGitHub <noreply@github.com>2016-08-11 09:28:24 -0700
commit89190f8d891f7734a3db3267afb746cf83e872d5 (patch)
treec6a95f66552da44a3d9e5e98670dc15a7e1bbb98 /platform/ios/src/MGLAnnotationContainerView_Private.h
parentd782fc952ffacd7424479b6e905adfc2e17494bd (diff)
downloadqtlocation-mapboxgl-89190f8d891f7734a3db3267afb746cf83e872d5.tar.gz
[ios] Account for center offset when tapping annotation views (#5931)
This adjusts the tap point for the map's single tap gesture recognizer to use the coordinate to point translated point of the actual annotation the view represents. This fixes an issue where views that were offset in the point coordinate system were not selected when tapped since their associated annotations were actually at the origin of the offset.
Diffstat (limited to 'platform/ios/src/MGLAnnotationContainerView_Private.h')
-rw-r--r--platform/ios/src/MGLAnnotationContainerView_Private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/ios/src/MGLAnnotationContainerView_Private.h b/platform/ios/src/MGLAnnotationContainerView_Private.h
new file mode 100644
index 0000000000..007b03550b
--- /dev/null
+++ b/platform/ios/src/MGLAnnotationContainerView_Private.h
@@ -0,0 +1,14 @@
+#import "MGLAnnotationContainerView.h"
+#import "MGLAnnotationView.h"
+
+@class MGLAnnotationView;
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface MGLAnnotationContainerView (Private)
+
+@property (nonatomic) NS_MUTABLE_ARRAY_OF(MGLAnnotationView *) *annotationViews;
+
+@end
+
+NS_ASSUME_NONNULL_END