diff --git a/platform/ios/src/MGLAnnotationView.mm b/platform/ios/src/MGLAnnotationView.mm index c37adc556..96ed8c733 100644 --- a/platform/ios/src/MGLAnnotationView.mm +++ b/platform/ios/src/MGLAnnotationView.mm @@ -246,16 +246,6 @@ return otherGestureRecognizer == _longPressRecognizer || otherGestureRecognizer == _panGestureRecognizer; } -- (id)actionForLayer:(CALayer *)layer forKey:(NSString *)event -{ - // Allow mbgl to drive animation of this view’s bounds. - if ([event isEqualToString:@"bounds"] || [event isEqualToString:@"position"]) - { - return [NSNull null]; - } - return [super actionForLayer:layer forKey:event]; -} - #pragma mark UIAccessibility methods - (BOOL)isAccessibilityElement { diff --git a/platform/ios/src/MGLUserLocationAnnotationView.m b/platform/ios/src/MGLUserLocationAnnotationView.m index cda269531..3b8d97614 100644 --- a/platform/ios/src/MGLUserLocationAnnotationView.m +++ b/platform/ios/src/MGLUserLocationAnnotationView.m @@ -97,14 +97,4 @@ } } -- (id)actionForLayer:(CALayer *)layer forKey:(NSString *)event -{ - // Allow mbgl to drive animation of this view’s bounds. - if ([event isEqualToString:@"bounds"]) - { - return [NSNull null]; - } - return [super actionForLayer:layer forKey:event]; -} - @end