From 74053a3808d89dafd1be933a7ac8142db9ef78c8 Mon Sep 17 00:00:00 2001 From: MistrBurns Date: Tue, 31 Jul 2018 11:11:09 +0200 Subject: [PATCH] With my version of mapnik (3.1.0) and XML styling, unlock_image="true" had no effect and the symbols were also moving with the text (dx/dy). Fix was to use attribute unlock-image="true" --- ShieldSymbolizer.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ShieldSymbolizer.md b/ShieldSymbolizer.md index 0ed34fb..7a8be62 100644 --- a/ShieldSymbolizer.md +++ b/ShieldSymbolizer.md @@ -27,7 +27,7 @@ to refer to /home/bar/baz/bridge. ### dx, dy To draw labeled points configure `placement="point"` (which is the default) and set dx/dy to move the text. -dx, dy from TextSymbolizer moves only the text, and not the shield. This behavior will be changed in a future release of mapnik. (See below). +dx, dy from TextSymbolizer moves only the text, and not the shield. This behavior will be changed in a future release of mapnik. (See below). #### New interface in HarfBuzz branch | *parameter* | *value* | *default* @@ -38,6 +38,8 @@ dx, dy from TextSymbolizer moves only the text, and not the shield. This behavio | unlock_image | True: Shield base point is always the input line/point (usecase: labeling bus stations). | 0 | | False: Shield base point is the center of the text (i.e. depends on dx,dy,vertical-alignment, horizontal-alignment) (usecase: highway shields) +When symbols are still moving with dx/dy after setting unlock_image = true, try unlock-image="true" instead. + ### placement `placement="line"` only means placement along a line for ShieldSymbolizer, whereas for TextSymbolizer it rotates the text too. Add the `spacing` parameter to get the ShieldSymbolizer to repeat along the line, otherwise `placement="line"` and `placement="point"` will look the same.