[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:
Jason Wray
2016-08-30 17:49:31 -04:00
parent 57e7cc97d0
commit fcee1a85cd
2 changed files with 0 additions and 20 deletions

View File

@@ -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 {

View File

@@ -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