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.
15 lines
281 B
Objective-C
15 lines
281 B
Objective-C
#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
|