From 4ff5bcc1815c7d666ae5993c910352d3775a246f Mon Sep 17 00:00:00 2001 From: Benjamin Gerber Date: Tue, 12 Nov 2024 11:20:27 +0100 Subject: [PATCH] fix: missing graphic-fill processSymbolLayerIfCharacterMarker results was not used. Therefor GraphicFill was always missing. --- .eslintrc.cjs | 11 ++++------- src/processSymbolReference.ts | 12 ++++++++++-- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 4a0ad7c..a2f162e 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,13 +1,10 @@ module.exports = { - extends: [ - '@terrestris/eslint-config-typescript', - 'prettier' - ], + extends: ["@terrestris/eslint-config-typescript", "prettier"], rules: { - 'no-shadow': 'off', - '@typescript-eslint/no-shadow': ['error'], + "no-shadow": "off", + "@typescript-eslint/no-shadow": ["error"], camelcase: [ - 'off', + "off", { ignoreImports: true, }, diff --git a/src/processSymbolReference.ts b/src/processSymbolReference.ts index dc596b6..1bb2c01 100644 --- a/src/processSymbolReference.ts +++ b/src/processSymbolReference.ts @@ -51,9 +51,17 @@ export const processSymbolReference = ( layer.type, ) ) { - processSymbolLayerIfCharacterMarker(symbol, layer, symbolizer, options); + symbolizers.push( + ...processSymbolLayerIfCharacterMarker( + symbol, + layer, + symbolizer, + options, + ), + ); + } else { + symbolizers.push(symbolizer); } - symbolizers.push(symbolizer); }); return symbolizers; };