downcase

Returns the input string converted to lowercase.

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(downcase(get("key-to-string-value")))
);

Return

expression

Parameters

input

expression input

See also

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

open fun downcase(@NonNull input: String): Expression

Returns the input string converted to lowercase.

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("key-to-string-value"))
);

Return

expression

Parameters

input

string to downcase

See also

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