tweak layout
parent
7d592f73d6
commit
aaedf9bb0b
1 changed files with 6 additions and 10 deletions
|
@ -1,8 +1,10 @@
|
|||
<!-- Name: PolygonSymbolizer -->
|
||||
## Configuration Options for PolygonSymbolizer
|
||||
[[Symbolizer|SymbologySupport]] that specifies rendering of an area enclosed by a polygon.
|
||||
|
||||
A PolygonSymbolizer is often used to render the area enclosed by a [polygon](http://en.wikipedia.org/wiki/Polygon). For example, the `rundemo.py` and `rundemo.cpp` applications use PolygonSymbolizer objects to "fill-in" [Canadian provinces with different colors and to make bodies of water look blue](https://raw.githubusercontent.com/wiki/mapnik/mapnik/images/demo256.png).
|
||||
For example, the `rundemo.py` and `rundemo.cpp` applications use PolygonSymbolizer objects to "fill-in" Canadian provinces with different colors and to make bodies of water look blue.
|
||||
|
||||
[[/images/demo256.png]]
|
||||
|
||||
## Configuration Options
|
||||
| *parameter* | *value* | *default* | * description * | *accepts expressions* |
|
||||
-------------|---------|------------|----------------|-----------------------|
|
||||
| fill | CSS colour | "grey" | Fill color to assign to a polygon, defaults to rgba(128,128,128,1) which means gray and fully opaque (alpha = 1), same as rgb(128,128,128) | mapnik >= 3.0 |
|
||||
|
@ -54,10 +56,4 @@ A PolygonSymbolizer is often used to render the area enclosed by a [polygon](htt
|
|||
polygon_symbolizer p(color("steelblue"));
|
||||
p.set_gamma(0.65);
|
||||
p.set_opacity(0.7);
|
||||
```
|
||||
|
||||
----
|
||||
|
||||
Example output of the `rundemo.py` utilizing the PolygonSymbolizer for provinces and water bodies:
|
||||
|
||||
[[/images/demo256.png]]
|
||||
```
|
Loading…
Reference in a new issue