Skip to content

Commit 3f6ed69

Browse files
authored
Merge pull request #120 from geostyler/63-support-mark-outlineDasharray
feat: support dasharray as mark effect
2 parents 1e043a0 + b4576cb commit 3f6ed69

File tree

4 files changed

+85
-22
lines changed

4 files changed

+85
-22
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ This parser is still in an early stage. It can read Lyrx files and write GeoStyl
88

99
This project is originally based on the GeoCat/bridge-style (MIT license).
1010

11-
## :rocket: GeoStyler Code Sprint 2025
12-
13-
We are happy to announce the next GeoStyler Code Sprint from **02.-06.06.2025** in Switzerland. Be part of it! More infos on https://geostyler.org/.
14-
1511
## <a name="funding"></a>Funding & financial sponsorship
1612

1713
Maintenance and further development of this code can be funded through the

package-lock.json

Lines changed: 82 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"lint:typecheck:test": "npm run lint && npm run typecheck && npm run test"
3838
},
3939
"dependencies": {
40-
"geostyler-style": "^10.0.0"
40+
"geostyler-style": "^10.1.0"
4141
},
4242
"devDependencies": {
4343
"@babel/cli": "^7.25.7",
@@ -67,4 +67,4 @@
6767
"not ie < 9"
6868
],
6969
"funding": "https://opencollective.com/geostyler"
70-
}
70+
}

src/processSymbolLayer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,7 @@ const processSymbolHatchFill = (layer: SymbolLayer): Symbolizer[] => {
650650

651651
let effects = extractEffect(symbolLayers[0]);
652652
if ("dasharray" in effects) {
653-
// @ts-ignore FIXME see issue #63
654-
fillSymbolizer.graphicFill!.outlineDasharray = effects.dasharray;
653+
markSymbolizer.strokeDasharray = effects.dasharray;
655654
// In case of dash array, the size must be at least as long as the dash pattern sum.
656655
if (separation > 0) {
657656
const dasharrayValues = effects.dasharrayValues as number[];

0 commit comments

Comments
 (0)