diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-11-19 19:50:29 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-11-19 19:50:29 -0800 |
commit | d08861daf4ba3e9d178f14c204ed40c0868d6a7f (patch) | |
tree | fa80249a7cb6d4796e18398f088c33df0bb74fc9 /src | |
parent | afa04de15286cdfa1cedc756d8fbe46a42e319a5 (diff) | |
download | qtlocation-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.cpp | 1 |
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); } |