Updated PolygonPatternSymbolizer (markdown)
parent
2fbbef305a
commit
013654ab8f
1 changed files with 9 additions and 7 deletions
|
@ -21,24 +21,26 @@
|
|||
|
||||
#### XML
|
||||
|
||||
#!xml
|
||||
```xml
|
||||
<PolygonPatternSymbolizer width="16" height="16" type="png" file="/path/to/icon.png"/>
|
||||
```
|
||||
|
||||
#### Python
|
||||
|
||||
|
||||
#!python
|
||||
```python
|
||||
p = PolygonPatternSymbolizer('/path/to/icon.png','png',10,10) # file, type, width, height
|
||||
```
|
||||
|
||||
mapnik2:
|
||||
|
||||
|
||||
#!python
|
||||
```python
|
||||
p = PolygonPatternSymbolizer(PathExpression('/path/to/icon.png'))
|
||||
```
|
||||
|
||||
#### C++
|
||||
|
||||
|
||||
#!cpp
|
||||
```cpp
|
||||
ruly_type rule;
|
||||
rule.append(polygon_pattern_symbolizer("path/to/icon.png", "png", 20, 20)); // file, type, width, height
|
||||
rule.append(polygon_pattern_symbolizer("path/to/icon.png", "png", 20, 20)); // file, type, width, height
|
||||
```
|
Loading…
Add table
Reference in a new issue