From dfda9982199eb1769d3b1a103d26940517949874 Mon Sep 17 00:00:00 2001 From: Christian Riksvold Date: Fri, 8 Nov 2024 14:31:52 +0100 Subject: [PATCH] fix: preserve visibility in line symbolizer during cloning --- src/MapboxStyleParser.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MapboxStyleParser.ts b/src/MapboxStyleParser.ts index e3e914e..78061db 100644 --- a/src/MapboxStyleParser.ts +++ b/src/MapboxStyleParser.ts @@ -1309,6 +1309,7 @@ export class MapboxStyleParser implements StyleParser> symbolizerClone = structuredClone(symbolizer as FillSymbolizer); const lineSymbolizer: LineSymbolizer = { kind: 'Line', + visibility: symbolizerClone?.visibility, color: symbolizerClone?.outlineColor, opacity: symbolizerClone?.outlineOpacity, width: symbolizerClone?.outlineWidth,