tweak layout
parent
6a23b3cebc
commit
7d592f73d6
1 changed files with 7 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue