Updated TextSymbolizer (markdown)
parent
badba86901
commit
fa51e1f1d5
1 changed files with 5 additions and 1 deletions
|
@ -73,7 +73,7 @@
|
||||||
</TextSymbolizer>
|
</TextSymbolizer>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Python
|
### Python (Mapnik 2)
|
||||||
|
|
||||||
```python
|
```python
|
||||||
t = TextSymbolizer(Expression('[FIELD_NAME]'), 'DejaVu Sans Book', 10, Color('black'))
|
t = TextSymbolizer(Expression('[FIELD_NAME]'), 'DejaVu Sans Book', 10, Color('black'))
|
||||||
|
@ -83,6 +83,10 @@ t.label_placement = label_placement.LINE_PLACEMENT # POINT_PLACEMENT is default
|
||||||
dir(t) # for the rest of the attributes
|
dir(t) # for the rest of the attributes
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Python (Mapnik 3)
|
||||||
|
|
||||||
|
*No support.*
|
||||||
|
|
||||||
### C++
|
### C++
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
|
|
Loading…
Reference in a new issue