Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
allow offsetting FOLLOW labels #4399
Currently labels with
The feature will be activated with
in the same way that offset works for STYLE, i.e. a positive x offsets to the right of the curve, and a negative x offsets to the left of the curve.
The implementation will require the presence of GEOS of at least version 3.3.0, where the GEOSOffsetCurve is present.
above/below is going to be more or less ill-defined for some line configurations. If looking at the start and end point of the line to determine if it's mostly left-to-right or right-to-left is sufficient, then it would be simple enough to force the label to be on top or under the curve. Could be activated with
unsurprisingly it was my fault in incorrectly using GEOSOffsetCurve with negative offset, which is now fixed. I have also added the possibility to offset the label above or below the line instead of just left or right.