summaryrefslogtreecommitdiff
path: root/src/mbgl/style
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-09-24 12:32:23 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-09-26 11:47:34 +0200
commit2ed81bbaaeecab12ea50813275269a3b1778f8ea (patch)
tree38b2ad27135371878140e48aa85f5e6dd81dcad1 /src/mbgl/style
parentae3a02babe557867b115ad69bb83ae3da2cfe43f (diff)
downloadqtlocation-mapboxgl-2ed81bbaaeecab12ea50813275269a3b1778f8ea.tar.gz
[core] Trigger Update::RecalculateStyle when toggling layer visibility
Diffstat (limited to 'src/mbgl/style')
-rw-r--r--src/mbgl/style/style.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/style.cpp b/src/mbgl/style/style.cpp
index a82cdec572..a684db62d5 100644
--- a/src/mbgl/style/style.cpp
+++ b/src/mbgl/style/style.cpp
@@ -520,7 +520,7 @@ void Style::onLayerFilterChanged(Layer& layer) {
void Style::onLayerVisibilityChanged(Layer& layer) {
layer.accept(QueueSourceReloadVisitor { updateBatch });
- observer->onUpdate(Update::Layout);
+ observer->onUpdate(Update::RecalculateStyle | Update::Layout);
}
void Style::onLayerPaintPropertyChanged(Layer&) {