textField

open override fun textField(textField: Formatted): SymbolLayer

Value to use for a text label. If a plain string is provided, it will be treated as a formatted with default/inherited formatting options. SDF images are not supported in formatted text and will be ignored.

Use static method SymbolLayer.defaultTextField to set the default property.

Parameters

textField

value of textField


open override fun textField(textField: Expression): SymbolLayer

Value to use for a text label. If a plain string is provided, it will be treated as a formatted with default/inherited formatting options. SDF images are not supported in formatted text and will be ignored.

Use static method SymbolLayer.defaultTextFieldAsExpression to set the default property.

Parameters

textField

value of textField as Expression


open override fun textField(textField: String): SymbolLayer

Value to use for a text label. If a plain string is provided, it will be treated as a formatted with default/inherited formatting options. SDF images are not supported in formatted text and will be ignored.

Set the TextField property as String.

Use static method SymbolLayer.defaultTextFieldAsString to set the default property.

Parameters

textField

value of textField as String


open override fun textField(block: Formatted.() -> Unit): SymbolLayer

DSL for construct Formatted textField.


Value to use for a text label. If a plain string is provided, it will be treated as a formatted with default/inherited formatting options. SDF images are not supported in formatted text and will be ignored.