format
Returns a formatted string for displaying mixed-format text in the textField
property (see dev.sargunv.maplibrecompose.compose.layer.SymbolLayer). The input may contain a string literal or expression, including an image expression.
Example:
format(
span(
feature.get("name").asString().substring(0, 1).uppercase(),
textScale = const(1.5f),
),
span(feature.get("name").asString().substring(1))
)
Content copied to clipboard
Capitalizes the first letter of the features' property "name" and formats it to be extra-large, the rest of the name is written normally.