[ios] Disable implicit animation of user dot bounds

ref #1125
This commit is contained in:
Minh Nguyễn
2016-01-24 22:21:41 -08:00
committed by Minh Nguyễn
parent d04d6d8f93
commit 29688e2cd8
2 changed files with 11 additions and 0 deletions

View File

@@ -507,4 +507,14 @@ const CGFloat MGLUserLocationAnnotationArrowSize = MGLUserLocationAnnotationPuck
return ovalPath;
}
- (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