[ios] Allow implicit animation of annotation views
- Allows the user location annotation to again animate its movements while no tracking mode is enabled.
This commit is contained in:
@@ -246,16 +246,6 @@
|
||||
return otherGestureRecognizer == _longPressRecognizer || otherGestureRecognizer == _panGestureRecognizer;
|
||||
}
|
||||
|
||||
- (id<CAAction>)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 {
|
||||
|
||||
@@ -97,14 +97,4 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (id<CAAction>)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
|
||||
|
||||
Reference in New Issue
Block a user