sdk-maps / com.tomtom.online.sdk.map.style.expression / FormatExpressionSection / formatSection

formatSection

static fun formatSection(@NonNull text: Expression, @Nullable fontScale: Expression?, @Nullable textFont: Expression?): FormatExpressionSection!

Creates a FormatExpressionSection containing provided text, formatted according to provided fontScale and textFont.

Parameters

text - Expression: The text to display. Currently supports Literal expression with String Value.

fontScale - Expression?: The scaling factor for the size of text, relative to text size specified by the TextSettings. Currently supports LiteralExpression with double Value.

textFont - Expression?: The font to use to display text. Overrides font settings from the TextSettings. Currently supports Literal expression with String Value.

Return
FormatExpressionSection!: FormatExpressionSection containing provided text, formatted according to provided fontScale and textFont.