Document offset parameter and update XML example for Mapnik 2.0

homme 2012-11-19 01:59:27 -08:00
parent 988086ca1e
commit 78fe0fb83c

@ -10,6 +10,7 @@ A LineSymbolizer is used to render a "stroke" along a linear geometry.
| stroke-linejoin | miter, round, bevel | See [SVG stroke-linejoin](http://www.w3.org/TR/SVG/painting.html#StrokeLinejoinProperty) for an example for each value | - | miter | | stroke-linejoin | miter, round, bevel | See [SVG stroke-linejoin](http://www.w3.org/TR/SVG/painting.html#StrokeLinejoinProperty) for an example for each value | - | miter |
| stroke-linecap | round, butt, square | See [SVG stroke-linecap](http://www.w3.org/TR/SVG/painting.html#StrokeLinecapProperty) for an example for each value | - | butt | | stroke-linecap | round, butt, square | See [SVG stroke-linecap](http://www.w3.org/TR/SVG/painting.html#StrokeLinecapProperty) for an example for each value | - | butt |
| stroke-dasharray | 0.0 - n,0.0 - n | A pair of length values [a,b], where (a) is the dash length and (b) is the gap length respectively. More than two values are supported as well (e.g. to start the line not with a stroke, but with a gap). | pixels | none | | stroke-dasharray | 0.0 - n,0.0 - n | A pair of length values [a,b], where (a) is the dash length and (b) is the gap length respectively. More than two values are supported as well (e.g. to start the line not with a stroke, but with a gap). | pixels | none |
| offset | n | Line offset (can be a negative value) | pixels | none |
## Examples ## Examples
@ -19,10 +20,11 @@ A LineSymbolizer is used to render a "stroke" along a linear geometry.
``` ```
#### XML #### XML
```xml ```xml
<LineSymbolizer> <LineSymbolizer
<CssParameter name="stroke">#0000ff</CssParameter> stroke="rgba(205,235,235,255)"
<CssParameter name="stroke-width">4</CssParameter> stroke-width="3"
</LineSymbolizer> stroke-linejoin="round"
stroke-linecap="round"/>
``` ```
#### Python #### Python