From b149041d92f2b5df06852c760d39e4df21f45511 Mon Sep 17 00:00:00 2001 From: dbauszus-glx Date: Tue, 5 Mar 2024 12:17:37 +0000 Subject: [PATCH] type icon fillColor assignment --- lib/layer/styleParser.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/layer/styleParser.mjs b/lib/layer/styleParser.mjs index d8f8170b9..406199ead 100644 --- a/lib/layer/styleParser.mjs +++ b/lib/layer/styleParser.mjs @@ -143,5 +143,10 @@ export default layer => { cat.style.icon[key] = cat.style[key] }) + // The fillColor will only be required by svgSymbols type icons, e.g. 'dot' + if (defaultStyle.icon?.type) { + cat.style.icon.fillColor = cat.style.fillColor + } + } } \ No newline at end of file