From 45369418a8f9c562039ed0d94b2de8fe53a4533d Mon Sep 17 00:00:00 2001 From: springmeyer Date: Mon, 30 Jul 2012 18:35:28 -0700 Subject: [PATCH] Updated API changes between v2.0 and v2.1 (markdown) --- API-changes-between-v2.0-and-v2.1.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/API-changes-between-v2.0-and-v2.1.md b/API-changes-between-v2.0-and-v2.1.md index 9a09845..c10b058 100644 --- a/API-changes-between-v2.0-and-v2.1.md +++ b/API-changes-between-v2.0-and-v2.1.md @@ -10,9 +10,12 @@ * `MarkersSymbolizer` * `width` and `height` are now optional expressions rather than raw floats and their values represent diameter in pixels not radii. If not set they will be `None`, but the default ellipse has a `radius` of `10` meaning that if you set `width="20"` and `height="20"` then there will be no change in the rendering size of the ellipse. The arrow default dimensions can be maintained with `width="27" height="12"`. Altering width or height will scale the marker, but ideally you should use `transform="scale(x,y)" instead. + * `opacity` setting now affects (overrides) the opacity of any fill and stroke - use `fill-opacity` and `stroke-opacity` to set each of these opacities individually. This change ensures Mapnik's marker properties and svg rendering matches the svg as close as possible. ## Added - + * `MarkersSymbolizer` + * `fill-opacity` is new. + * `opacity` value now works to set the alpha of bitmap images. * `Expression` - you can now use the built in keyword of `[mapnik::geometry_type]` to filter features by geometry type either by name or integer key. The mapping is `0:no geometry`, `1:point`, '2:linestring`, `3:polygon`, and `4:collection`. A collection indicates that the `Feature` has more than one geometry of different types. So a `Feature` with three linestrings will be reported as `linestring` but a `Feature` with a point and a linestring will be reported as a `collection`. - for more details see [#546](https://github.com/mapnik/mapnik/issues/546) * To All symbolizers (in most cases) * `comp-op` - All symbolizers now support compositing in the AGG and Cairo renderers