summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/map/map.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index 7e7d0417b9..f94075a519 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -253,10 +253,6 @@ void Map::Impl::update() {
annotationManager->updateData();
}
- if (updateFlags & Update::Layout) {
- style->relayout();
- }
-
if (updateFlags & Update::Classes) {
style->cascade(timePoint, mode);
}
@@ -265,6 +261,10 @@ void Map::Impl::update() {
style->recalculate(transform.getZoom(), timePoint, mode);
}
+ if (updateFlags & Update::Layout) {
+ style->relayout();
+ }
+
style::UpdateParameters parameters(pixelRatio,
debugOptions,
transform.getState(),