resolved Locale
Returns the IETF language tag of the locale being used by the provided collator. This can be used to determine the default system locale, or to determine if a requested locale was successfully loaded.
Example usage:
CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
circleColor(switchCase(
eq(literal("it"), resolvedLocale(collator(true, true, Locale.ITALY))), literal(ColorUtils.colorToRgbaString
(Color.GREEN)),
literal(ColorUtils.colorToRgbaString(Color.RED))))
);
Content copied to clipboard
Return
expression
Parameters
collator
the collator expression
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#resolved-locale">Style specification</a>