textAnchor property
Part of the text placed closest to the anchor.
The default value of this property is an expression that evaluates to center.
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, and
textVariableAnchor is set to nil. Otherwise, it is ignored.
You can set this property to an expression containing any of the following:
Constant MLNTextAnchor values
Any of the following constant string values:
center: The center of the text is placed closest to the anchor.
left: The left side of the text is placed closest to the anchor.
right: The right side of the text is placed closest to the anchor.
top: The top of the text is placed closest to the anchor.
bottom: The bottom of the text is placed closest to the anchor.
top-left: The top left corner of the text is placed closest to the
anchor.
top-right: The top right corner of the text is placed closest to the
anchor.
bottom-left: The bottom left corner of the text is placed closest to the
anchor.
bottom-right: The bottom right corner of the text is placed closest to
the anchor.
Predefined functions, including mathematical and string operators
Conditional expressions
Variable assignments and references to assigned variables
Interpolation and step functions applied to the $zoomLevel variable and/or
feature attributes
Implementation
NSExpression get textAnchor {
final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_textAnchor);
return NSExpression.castFromPointer(_ret, retain: true, release: true);
}
Part of the text placed closest to the anchor.
The default value of this property is an expression that evaluates to center.
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, and
textVariableAnchor is set to nil. Otherwise, it is ignored.
You can set this property to an expression containing any of the following:
Constant MLNTextAnchor values
Any of the following constant string values:
center: The center of the text is placed closest to the anchor.
left: The left side of the text is placed closest to the anchor.
right: The right side of the text is placed closest to the anchor.
top: The top of the text is placed closest to the anchor.
bottom: The bottom of the text is placed closest to the anchor.
top-left: The top left corner of the text is placed closest to the
anchor.
top-right: The top right corner of the text is placed closest to the
anchor.
bottom-left: The bottom left corner of the text is placed closest to the
anchor.
bottom-right: The bottom right corner of the text is placed closest to
the anchor.
Predefined functions, including mathematical and string operators
Conditional expressions
Variable assignments and references to assigned variables
Interpolation and step functions applied to the $zoomLevel variable and/or
feature attributes
Implementation
set textAnchor(NSExpression value) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_setTextAnchor_, value.ref.pointer);
}