textRotationAlignment property
dynamic
textRotationAlignment
final
In combination with symbol-placement, determines the rotation
behavior of the individual glyphs forming the text.
Type: enum
default: auto
Options:
"map"
When symbol-placement is set to point, aligns text east-west.
When symbol-placement is set to line or line-center, aligns
text x-axes with the line.
"viewport"
Produces glyphs whose x-axes are aligned with the x-axis of the
viewport, regardless of the value of symbol-placement.
"auto"
When symbol-placement is set to point, this is equivalent to
viewport. When symbol-placement is set to line or
line-center, this is equivalent to map.
Sdk Support: basic functionality with js, android, ios, macos
Implementation
final dynamic textRotationAlignment;