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
|
@ -27,7 +27,7 @@ to refer to /home/bar/baz/bridge.
|
||||||
### dx, dy
|
### dx, dy
|
||||||
To draw labeled points configure `placement="point"` (which is the default) and set dx/dy to move the text.
|
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
|
#### New interface in HarfBuzz branch
|
||||||
| *parameter* | *value* | *default*
|
| *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
|
| 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