itowns icon indicating copy to clipboard operation
itowns copied to clipboard

Oriented labels

Open zarov opened this issue 5 years ago • 0 comments

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).

zarov avatar May 27 '20 12:05 zarov