We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa9e0cd commit db85cdfCopy full SHA for db85cdf
src/mapboxgl/overlay/symbol/SingleSymbolRender.js
@@ -17,7 +17,9 @@ class SingleSymbolRender {
17
* @param {*} before
18
*/
19
addLayer(layer, symbol, before) {
20
- delete symbol.layout?.visibility;
+ if(layer.layout && layer.layout.visibility === 'none') {
21
+ Object.assign(layer.layout, {visibility: 'visible'});
22
+ }
23
layer.paint && Object.assign(symbol.paint ?? {}, layer.paint);
24
layer.layout && Object.assign(symbol.layout ?? {}, layer.layout);
25
this.map.addLayerBySymbolBak({ ...layer, ...symbol }, before);
0 commit comments