itowns
itowns copied to clipboard
Oriented labels
Currently, only point Feature (that contains sufficient properties) are rendered into Label. Line Feature are not rendered into it, but should be, as they are often used (for a street for example).
A first implementation would be to get a mean orientation from each segment of the line, and then align the Label on it.
The following step is a repetition of the Label, in case of a relatively long line.
And then, having a deformation on the text so that it follows the path of the line would be the last thing to do, but I find it rather complicated to do in CSS.
To transform a Label, consider the use of matrix3d or skew (see here).