[core] Force style-sourced annotations to be visible
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
3
test/fixtures/api/annotation.json
vendored
3
test/fixtures/api/annotation.json
vendored
@@ -11,6 +11,9 @@
|
||||
"type": "fill",
|
||||
"source": "fake",
|
||||
"source-layer": "fake",
|
||||
"layout": {
|
||||
"visibility": "none"
|
||||
},
|
||||
"paint": {
|
||||
"fill-color": "rgba(255,0,0,1)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user