[core] Force style-sourced annotations to be visible

This commit is contained in:
John Firebaugh
2015-11-19 19:50:29 -08:00
parent afa04de152
commit d08861daf4
2 changed files with 4 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -11,6 +11,9 @@
"type": "fill",
"source": "fake",
"source-layer": "fake",
"layout": {
"visibility": "none"
},
"paint": {
"fill-color": "rgba(255,0,0,1)"
}