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"

MistrBurns 2018-07-31 11:11:09 +02:00
parent 5bdb5994b5
commit 74053a3808

@ -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.