updated to mapnik 2.0 syntax (see https://groups.google.com/forum/#!msg/mapnik/1I2mp8mqL9E/d5vxvMoqXPgJ )
parent
988da70ab5
commit
9f133da00b
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ See [[XMLGettingStarted]] for more XML example uses of TextSymbolizer.
|
|||
|
||||
|
||||
```python
|
||||
t = TextSymbolizer('[FIELD_NAME]', 'DejaVu Sans Book', 10, Color('black'))
|
||||
t = TextSymbolizer(Expression('[FIELD_NAME]'), 'DejaVu Sans Book', 10, Color('black'))
|
||||
t.halo_fill = Color('white')
|
||||
t.halo_radius = 1
|
||||
t.label_placement = label_placement.LINE_PLACEMENT # POINT_PLACEMENT is default
|
||||
|
|
Loading…
Reference in a new issue