diff options
author | Jesse Bounds <jesse@rebounds.net> | 2016-08-11 09:28:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-11 09:28:24 -0700 |
commit | 89190f8d891f7734a3db3267afb746cf83e872d5 (patch) | |
tree | c6a95f66552da44a3d9e5e98670dc15a7e1bbb98 /platform/ios/src/MGLAnnotationContainerView_Private.h | |
parent | d782fc952ffacd7424479b6e905adfc2e17494bd (diff) | |
download | qtlocation-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.h | 14 |
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 |