Skip to content

Commit 912d742

Browse files
authored
Merge pull request #45 from mapycz/line-offset-info
more detailed info about offsetting lines
2 parents c32099b + ff9004f commit 912d742

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

_posts/blog/2015-07-11-3.0-cartographer.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,17 @@ For PostGIS datasources with polygons that follow the left-hand rule instead, if
4242

4343
The existing `line-offset` in the stylesheet will need to be inverted.
4444

45-
### Text offsetting from lines
45+
### Offsetting from lines
46+
Direction of all offsets from lines is inverted. These properties have to be changed to achieve compatibility between 2.2 and 3.0:
4647

47-
Handling of text offset from lines has changed. To get consistent behavior between 2.2 and 3.0, use `vertical-alignment: middle`. This may require adjustments to the `text-dy` value.
48+
* `TextSymbolizer` with line placement
49+
* swap `top` and `bottom` values in `vertical-alignment`
50+
* multiple `dy` by -1
51+
* Take care of `vertical-alignment` and `dy` in `Layout` and `Placement` nodes.
52+
* `LineSymbolizer`, `LinePatternSymbolizer`, `MarkersSymbolizer` with line placement
53+
* multiple `offset` by -1
54+
55+
Special attention should be taken to `TextSymbolizer` when `dy` is not zero and `vertical-alignment` is not set. In such situation `vertical-alignment="middle"` needs to be set to get consistent behavior between 2.2 and 3.0.
4856

4957
### Harfbuzz support
5058

0 commit comments

Comments
 (0)