Skip to content

Commit

Permalink
Merge pull request #73 from geostyler/fix-graphic-fill
Browse files Browse the repository at this point in the history
fix: missing graphic-fill
  • Loading branch information
ger-benjamin authored Nov 14, 2024
2 parents 30eccc2 + 2b8e5e1 commit 0ccb932
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
11 changes: 4 additions & 7 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -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,
},
Expand Down
17 changes: 14 additions & 3 deletions src/processSymbolReference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,30 @@ export const processSymbolReference = (
if (!symbolizer) {
return;
}
const layerSymbolizers = [symbolizer];
if (
["CIMVectorMarker", "CIMPictureFill", "CIMCharacterMarker"].includes(
layer.type,
)
) {
processSymbolLayerIfCharacterMarker(symbol, layer, symbolizer, options);
const symbolizerWithSubSymbolizer = processSymbolLayerWithSubSymbol(
symbol,
layer,
symbolizer,
options,
);
if (symbolizerWithSubSymbolizer.length) {
// Replace symbolizer by a more complete one.
layerSymbolizers.length = 0;
layerSymbolizers.push(...symbolizerWithSubSymbolizer);
}
}
symbolizers.push(symbolizer);
symbolizers.push(...layerSymbolizers);
});
return symbolizers;
};

const processSymbolLayerIfCharacterMarker = (
const processSymbolLayerWithSubSymbol = (
symbol: CIMSymbol,
layer: SymbolLayer,
symbolizer: Symbolizer,
Expand Down

0 comments on commit 0ccb932

Please sign in to comment.