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"
parent
5bdb5994b5
commit
74053a3808
1 changed files with 3 additions and 1 deletions
|
@ -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
|
| 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)
|
| | 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
|
||||||
`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.
|
`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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue