upcase

open fun upcase(@NonNull string: Expression): Expression

Returns the input string converted to uppercase.

Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.

Example usage:


SymbolLayer symbolLayer = new SymbolLayer("layer-id", "source-id");
symbolLayer.setProperties(
    textField(upcase(get("key-to-string-value")))
);

Return

expression

Parameters

string

the string to upcase

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#upcase">Style specification</a>

open fun upcase(@NonNull string: String): Expression

Returns the input string converted to uppercase.

Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.

Example usage:


SymbolLayer symbolLayer = new SymbolLayer("layer-id", "source-id");
symbolLayer.setProperties(
    textField(upcase("text"))
);

Return

expression

Parameters

string

string to upcase

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#upcase">Style specification</a>