textTranslation property

NSExpression get textTranslation

Distance that the text's anchor is moved from its original placement.

This property is measured in points.

The default value of this property is an expression that evaluates to an NSValue object containing a CGVector struct set to 0 points rightward and 0 points downward. 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-translate layout property in the MapLibre Style Spec.

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

Constant CGVector values 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

This property does not support applying interpolation or step functions to feature attributes.

Implementation

NSExpression get textTranslation {
  final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_textTranslation);
  return NSExpression.castFromPointer(_ret, retain: true, release: true);
}
set textTranslation (NSExpression value)

Distance that the text's anchor is moved from its original placement.

This property is measured in points.

The default value of this property is an expression that evaluates to an NSValue object containing a CGVector struct set to 0 points rightward and 0 points downward. 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-translate layout property in the MapLibre Style Spec.

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

Constant CGVector values 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

This property does not support applying interpolation or step functions to feature attributes.

Implementation

set textTranslation(NSExpression value) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_setTextTranslation_, value.ref.pointer);

}