From 2abc848492427d09c20ede89ece830923890d655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Thu, 10 Jul 2014 18:53:56 -0700 Subject: [PATCH] add information about expressions support --- PointSymbolizer.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/PointSymbolizer.md b/PointSymbolizer.md index 2c6a757..fc041de 100644 --- a/PointSymbolizer.md +++ b/PointSymbolizer.md @@ -10,16 +10,16 @@ If you want to draw a graphic symbol and a text you would better use a ShieldSym Some options described here are not available in mapnik versions < 2.0. -| *parameter* | *value* | *default* | ---------------|---------|-----------| -| file | path to image file | none | -| width **(removed)** | px | 4 | -| height **(removed)** | px | 4 | -| type **(removed)** | png tiff svg | none | -| allow-overlap | allow text to overlap the point image; true/false | false | -| opacity | Opacity of the symbolizer: 0.0 - 1.0 | 1.0 | -| transform | [SVG transform](http://www.w3.org/TR/SVG/coords.html#TransformAttribute) | identity | -| ignore-placement | allow subsequent point/shield symbolizers to overlap this symbol; true/false | false | +| *parameter* | *value* | *default* | *accepts expressions* | +--------------|---------|-----------|-----------------------| +| file | path to image file | none | mapnik >= 2.0 | +| width **(removed)** | px | 4 | | +| height **(removed)** | px | 4 | | +| type **(removed)** | png tiff svg | none | | +| allow-overlap | allow text to overlap the point image; true/false | false | no | +| opacity | Opacity of the symbolizer: 0.0 - 1.0 | 1.0 | no | +| transform | [SVG transform](http://www.w3.org/TR/SVG/coords.html#TransformAttribute) | identity | mapnik >= 3.0
you have to specify transform, but you can use expressions for its parameters, e.g. `"rotate([value1]) scale([value2])"` | +| ignore-placement | allow subsequent point/shield symbolizers to overlap this symbol; true/false | false | no | ## Examples