From 9f133da00bdebd22c29dc463adedc395ea72d78c Mon Sep 17 00:00:00 2001 From: Ylannl Date: Mon, 28 May 2012 12:56:44 -0700 Subject: [PATCH] updated to mapnik 2.0 syntax (see https://groups.google.com/forum/#!msg/mapnik/1I2mp8mqL9E/d5vxvMoqXPgJ ) --- TextSymbolizer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TextSymbolizer.md b/TextSymbolizer.md index 931d0d7..e752a73 100644 --- a/TextSymbolizer.md +++ b/TextSymbolizer.md @@ -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