min

open fun min(@Size(min = 1) numbers: Array<Expression>): Expression

Returns the minimum value of the inputs.

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(min(pi(), literal(3.14f), literal(3.15f)))
);

Return

expression

Parameters

numbers

varargs of numbers to get the minimum from

See also

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

open fun min(@Size(min = 1) numbers: Array<Number>): Expression

Returns the minimum value of the inputs.

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(min(3.141, 3.14f, 3.15f))
);

Return

expression

Parameters

numbers

varargs of numbers to get the minimum from

See also

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