Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sets outline and opacity defaults for polygon fill
- Loading branch information
1 parent
76a2173
commit 20fe693
Showing
4 changed files
with
60 additions
and
1 deletion.
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,19 @@ | ||
LAYER | ||
NAME "polygon_simple_polygon_outline" | ||
TYPE POLYGON | ||
DATA "../shapes/polygons.shp" | ||
EXTENT -180 -90 180 90 | ||
METADATA | ||
"wms_title" "polygon_simple_polygon_outline.map" | ||
"wms_srs" "EPSG:4326" | ||
END | ||
CLASS | ||
STYLE | ||
COLOR 0 255 0 | ||
END | ||
STYLE | ||
OUTLINECOLOR 85 85 85 | ||
OUTLINEWIDTH 0.1 | ||
END | ||
END | ||
END |
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,20 @@ | ||
import { Style } from 'geostyler-style'; | ||
|
||
const polygonStyle: Style = { | ||
name: 'polygon_simple_polygon_outline', | ||
rules: [ | ||
{ | ||
name: '', | ||
symbolizers: [ | ||
{ kind: 'Fill', outlineOpacity: 0, color: '#00FF00' }, | ||
{ | ||
kind: 'Fill', | ||
outlineColor: '#555555', | ||
fillOpacity: 0, | ||
outlineWidth: 0.1 | ||
} | ||
] | ||
} | ||
] | ||
}; | ||
export default polygonStyle; |
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