-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add vendor-option graphic-margin (#971)
- Loading branch information
1 parent
0093c6b
commit be950ea
Showing
8 changed files
with
183 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> | ||
<NamedLayer> | ||
|
||
<Name>Pattern polygon</Name> | ||
|
||
<UserStyle> | ||
<Name>pattern_polygon</Name> | ||
<Title>Pattern polygon</Title> | ||
<Abstract>Polygon with spaced purple circle symbols</Abstract> | ||
<FeatureTypeStyle> | ||
<Rule> | ||
<Name>Polygon with spaced purple circle symbols</Name> | ||
<Abstract>Polygon with spaced purple circle symbols</Abstract> | ||
<PolygonSymbolizer> | ||
<VendorOption name="graphic-margin">4,6,2,3</VendorOption> | ||
<Fill> | ||
<GraphicFill> | ||
<Graphic> | ||
<Mark> | ||
<WellKnownName>circle</WellKnownName> | ||
<Fill> | ||
<CssParameter name="fill">#880088</CssParameter> | ||
</Fill> | ||
</Mark> | ||
<Size>6</Size> | ||
</Graphic> | ||
</GraphicFill> | ||
</Fill> | ||
</PolygonSymbolizer> | ||
</Rule> | ||
</FeatureTypeStyle> | ||
</UserStyle> | ||
</NamedLayer> | ||
</StyledLayerDescriptor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,4 @@ const style: Style = { | |
] | ||
}; | ||
|
||
|
||
export default style; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Style } from 'geostyler-style'; | ||
|
||
const style: Style = { | ||
name: 'pattern_polygon', | ||
rules: [ | ||
{ | ||
name: 'Polygon with spaced purple circle symbols', | ||
symbolizers: [ | ||
{ | ||
kind: 'Fill', | ||
graphicFill: { | ||
kind: 'Mark', | ||
wellKnownName: 'circle', | ||
color: '#880088', | ||
radius: 3 | ||
}, | ||
graphicFillPadding: [4, 6, 2, 3], | ||
} | ||
] | ||
} | ||
] | ||
}; | ||
|
||
export default style; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters