textLayout property
The layout of the text, which can be either horizontal, straight, perpendicular, or follow the line feature.
Optional specification of whether, once the text is positioned, it should be written:
- Horizontally
- Straight (i.e. parallel) to the tangent to the line feature
- Straight in line with the point feature positioning angle
- Perpendicular to the tangent or positioning angle
- following the geometry of the line feature
The default is LabelTextLayout.automatic, which will be interpreted as:
- LabelTextLayout.horizontal for labels attached to point features
- LabelTextLayout.followFeature for labels attached to line features
- LabelTextLayout.horizontal for labels attached to polygon features