textJustification property

NSExpression get textJustification

Text justification options.

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. Otherwise, it is ignored.

This attribute corresponds to the text-justify layout property in the MapLibre Style Spec.

You can set this property to an expression containing any of the following:

Constant MLNTextJustification values Any of the following constant string values: auto: The text is aligned towards the anchor position. left: The text is aligned to the left. center: The text is centered. right: The text is aligned to the right. 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 textJustification {
  final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_textJustification);
  return NSExpression.castFromPointer(_ret, retain: true, release: true);
}
set textJustification (NSExpression value)

Text justification options.

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. Otherwise, it is ignored.

This attribute corresponds to the text-justify layout property in the MapLibre Style Spec.

You can set this property to an expression containing any of the following:

Constant MLNTextJustification values Any of the following constant string values: auto: The text is aligned towards the anchor position. left: The text is aligned to the left. center: The text is centered. right: The text is aligned to the right. 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 textJustification(NSExpression value) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_setTextJustification_, value.ref.pointer);

}