textVariableAnchor property
To increase the chance of placing high-priority labels on the map, you can
provide an array of textAnchor locations: the renderer will attempt to place
the label at each location, in order, before moving onto the next label. Use
textJustify: auto to choose justification based on anchor position. To apply
an offset, use the textRadialOffset or the two-dimensional textOffset.
This property is only applied to the style if text is non-nil, and
symbolPlacement is set to an expression that evaluates to or
MLNSymbolPlacementPoint. Otherwise, it is ignored.
You can set this property to an expression containing any of the following:
Constant MLNTextAnchor array values
Constant array, in which each element is 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
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 textVariableAnchor {
final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_textVariableAnchor);
return NSExpression.castFromPointer(_ret, retain: true, release: true);
}
To increase the chance of placing high-priority labels on the map, you can
provide an array of textAnchor locations: the renderer will attempt to place
the label at each location, in order, before moving onto the next label. Use
textJustify: auto to choose justification based on anchor position. To apply
an offset, use the textRadialOffset or the two-dimensional textOffset.
This property is only applied to the style if text is non-nil, and
symbolPlacement is set to an expression that evaluates to or
MLNSymbolPlacementPoint. Otherwise, it is ignored.
You can set this property to an expression containing any of the following:
Constant MLNTextAnchor array values
Constant array, in which each element is 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
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 textVariableAnchor(NSExpression value) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_setTextVariableAnchor_, value.ref.pointer);
}