diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-01-24 22:21:41 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-03-10 12:03:26 -0800 |
commit | 29688e2cd8291f0352ac00d24bf54024501eb92f (patch) | |
tree | cc21987bfffb4cb15efbea408b5fa0e647f75238 /platform/ios/src/MGLUserLocationAnnotationView.m | |
parent | d04d6d8f9394ebef856e1822acdd57b33954c26b (diff) | |
download | qtlocation-mapboxgl-29688e2cd8291f0352ac00d24bf54024501eb92f.tar.gz |
[ios] Disable implicit animation of user dot bounds
ref #1125
Diffstat (limited to 'platform/ios/src/MGLUserLocationAnnotationView.m')
-rw-r--r-- | platform/ios/src/MGLUserLocationAnnotationView.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/ios/src/MGLUserLocationAnnotationView.m b/platform/ios/src/MGLUserLocationAnnotationView.m index b59f4586b3..a7ca352bc0 100644 --- a/platform/ios/src/MGLUserLocationAnnotationView.m +++ b/platform/ios/src/MGLUserLocationAnnotationView.m @@ -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 |