summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLUserLocationAnnotationView.m
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-01-24 22:21:41 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-03-10 12:03:26 -0800
commit29688e2cd8291f0352ac00d24bf54024501eb92f (patch)
treecc21987bfffb4cb15efbea408b5fa0e647f75238 /platform/ios/src/MGLUserLocationAnnotationView.m
parentd04d6d8f9394ebef856e1822acdd57b33954c26b (diff)
downloadqtlocation-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.m10
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