From 53764bc122458f1b9b7f850f64f3da0041058506 Mon Sep 17 00:00:00 2001 From: Julian Rex Date: Tue, 2 Apr 2019 11:35:24 -0400 Subject: Partial revert of 12895: remove presentsWithTransaction, disable implicit actions --- platform/ios/src/MGLMapView.mm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index bf2421521f..2cf104913b 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -695,9 +695,6 @@ public: _glView.layer.opaque = _opaque; _glView.delegate = self; - CAEAGLLayer *eaglLayer = MGL_OBJC_DYNAMIC_CAST(_glView.layer, CAEAGLLayer); - eaglLayer.presentsWithTransaction = YES; - [_glView bindDrawable]; [self insertSubview:_glView atIndex:0]; _glView.contentMode = UIViewContentModeCenter; @@ -6142,6 +6139,9 @@ public: return; } + [CATransaction begin]; + [CATransaction setDisableActions:YES]; + // If the map is pitched consider the viewport to be exactly the same as the bounds. // Otherwise, add a small buffer. CGFloat largestWidth = MAX(_largestAnnotationViewSize.width, CGRectGetWidth(self.frame)); @@ -6236,6 +6236,8 @@ public: } } } + + [CATransaction commit]; } - (void)updateCalloutView -- cgit v1.2.1