summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-11-19 19:50:29 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-11-19 19:50:29 -0800
commitd08861daf4ba3e9d178f14c204ed40c0868d6a7f (patch)
treefa80249a7cb6d4796e18398f088c33df0bb74fc9 /src
parentafa04de15286cdfa1cedc756d8fbe46a42e319a5 (diff)
downloadqtlocation-mapboxgl-d08861daf4ba3e9d178f14c204ed40c0868d6a7f.tar.gz
[core] Force style-sourced annotations to be visible
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/annotation/shape_annotation_impl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/annotation/shape_annotation_impl.cpp b/src/mbgl/annotation/shape_annotation_impl.cpp
index 6941c59c38..4b60c667aa 100644
--- a/src/mbgl/annotation/shape_annotation_impl.cpp
+++ b/src/mbgl/annotation/shape_annotation_impl.cpp
@@ -74,6 +74,7 @@ void ShapeAnnotationImpl::updateStyle(Style& style) {
layer->id = layerID;
layer->source = AnnotationManager::SourceID;
layer->sourceLayer = layer->id;
+ layer->visibility = VisibilityType::Visible;
style.addLayer(std::move(layer), sourceLayer->id);
}