diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-06-08 14:25:08 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-06-08 14:25:08 -0700 |
commit | 4e808994cb7611090c234875cffc18f0f3ef8088 (patch) | |
tree | 592e710efa85a05d605be4f77398fd7c36d657df | |
parent | 0b6daae05d88ca821f60af9760ade712ca3bb204 (diff) | |
download | qtlocation-mapboxgl-4e808994cb7611090c234875cffc18f0f3ef8088.tar.gz |
[ios] Update annotation views before informing delegate (#5287)
On each frame update, update annotation views before informing the delegate of the new frame. This allows the delegate to manipulate annotation views without fear of the SDK overriding those modifications.
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 5d1bcb1109..f5720af665 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -4454,11 +4454,11 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration) case mbgl::MapChangeDidFinishRenderingFrame: case mbgl::MapChangeDidFinishRenderingFrameFullyRendered: { + [self updateAnnotationViews]; if ([self.delegate respondsToSelector:@selector(mapViewDidFinishRenderingFrame:fullyRendered:)]) { [self.delegate mapViewDidFinishRenderingFrame:self fullyRendered:(change == mbgl::MapChangeDidFinishRenderingFrameFullyRendered)]; } - [self updateAnnotationViews]; break; } } |