textRotationAlignment property
In combination with symbolPlacement, determines the rotation behavior of the
individual glyphs forming the text.
The default value of this property is an expression that evaluates to auto.
Set this property to nil to reset it to the default value.
This property is only applied to the style if text is non-nil. Otherwise,
it is ignored.
You can set this property to an expression containing any of the following:
Constant MLNTextRotationAlignment values
Any of the following constant string values:
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.
Predefined functions, including mathematical and string operators
Conditional expressions
Variable assignments and references to assigned variables
Step functions applied to the $zoomLevel variable
This property does not support applying interpolation functions to the
$zoomLevel variable or applying interpolation or step functions to feature
attributes.
Implementation
NSExpression get textRotationAlignment {
final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_textRotationAlignment);
return NSExpression.castFromPointer(_ret, retain: true, release: true);
}
In combination with symbolPlacement, determines the rotation behavior of the
individual glyphs forming the text.
The default value of this property is an expression that evaluates to auto.
Set this property to nil to reset it to the default value.
This property is only applied to the style if text is non-nil. Otherwise,
it is ignored.
You can set this property to an expression containing any of the following:
Constant MLNTextRotationAlignment values
Any of the following constant string values:
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.
Predefined functions, including mathematical and string operators
Conditional expressions
Variable assignments and references to assigned variables
Step functions applied to the $zoomLevel variable
This property does not support applying interpolation functions to the
$zoomLevel variable or applying interpolation or step functions to feature
attributes.
Implementation
set textRotationAlignment(NSExpression value) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_setTextRotationAlignment_, value.ref.pointer);
}