textWritingModes property

NSExpression get textWritingModes

The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant.

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.

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

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

Constant MLNTextWritingMode array values Constant array, in which each element is any of the following constant string values: horizontal: If a text's language supports horizontal writing mode, symbols with point placement would be laid out horizontally. vertical: If a text's language supports vertical writing mode, symbols with point placement would be laid out vertically. 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 textWritingModes {
  final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_textWritingModes);
  return NSExpression.castFromPointer(_ret, retain: true, release: true);
}
set textWritingModes (NSExpression value)

The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant.

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.

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

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

Constant MLNTextWritingMode array values Constant array, in which each element is any of the following constant string values: horizontal: If a text's language supports horizontal writing mode, symbols with point placement would be laid out horizontally. vertical: If a text's language supports vertical writing mode, symbols with point placement would be laid out vertically. 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 textWritingModes(NSExpression value) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_setTextWritingModes_, value.ref.pointer);

}