tweak layout

Jez Nicholson 2018-01-23 13:03:25 +00:00
parent 6a23b3cebc
commit 7d592f73d6

@ -1,5 +1,10 @@
## Configuration Options for LinePatternSymbolizer
[[Symbolizer|SymbologySupport]] that specifies rendering of repeated png, tiff, or svg symbol to create a line. For example, a cliff edge.
Used as an alternative to a [[LineSymbolizer]].
![Showing a cliff on openstreetmap.org](http://a.tile.openstreetmap.org/18/141423/87855.png)
## Configuration Options
| *parameter* | *value* | *default* | *accepts expressions* |
|---|---|---|---|
| file | path to image file | none | mapnik >= 2.0 |
@ -12,29 +17,20 @@
*Note* that the line direction matters!
## Examples
A natural=cliff tag on an OpenStreetMap tile, rendered with LinePatternSymbolizer.
![Showing a cliff on openstreetmap.org](http://a.tile.openstreetmap.org/18/141423/87855.png)
### Default
#### XML
### XML
```xml
<LinePatternSymbolizer width="16" height="16" type="png" file="/path/to/icon.png"/>
```
#### Python
```python
l = LinePatternSymbolizer('/path/to/icon.png','png',10,10) # file, type, width, height
```
#### C++
```cpp
rule_type rule;
rule.append(line_pattern_symbolizer("/path/to/icon.png", "png", 20, 20)); // file, type, width, height