diff options
author | Julian Rex <julian.rex@mapbox.com> | 2018-09-13 15:50:55 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2018-09-25 18:41:01 -0700 |
commit | 2d21cddc565d519d8f94ec0db458fba8829f43e5 (patch) | |
tree | 71d330294af533c5db7463e6663f8ccb3cd3957e | |
parent | 0762ddab17535952517994e1f4cfddbdf8258def (diff) | |
download | qtlocation-mapboxgl-2d21cddc565d519d8f94ec0db458fba8829f43e5.tar.gz |
Move update of UIKit elements prior to GL rendering
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index bf50079eca..807db1be6e 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -989,8 +989,6 @@ public: if ( ! self.dormant || ! _rendererFrontend) { _rendererFrontend->render(); - - [self updateUserLocationAnnotationView]; } } @@ -1121,6 +1119,11 @@ public: { _needsDisplayRefresh = NO; + // Update UIKit elements, prior to rendering + [self updateUserLocationAnnotationView]; + [self updateAnnotationViews]; + [self updateCalloutView]; + [self.glView display]; } @@ -5713,8 +5716,7 @@ public: _isChangingAnnotationLayers = NO; [self.style didChangeValueForKey:@"layers"]; } - [self updateAnnotationViews]; - [self updateCalloutView]; + if ([self.delegate respondsToSelector:@selector(mapViewDidFinishRenderingFrame:fullyRendered:)]) { [self.delegate mapViewDidFinishRenderingFrame:self fullyRendered:fullyRendered]; |