max

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

Returns the maximum value of the inputs.

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(max(pi(), product(pi(), pi())))
);

Return

expression

Parameters

numbers

varargs of numbers to get the maximum from

See also

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

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

Returns the maximum value of the inputs.

Example usage:


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

Return

expression

Parameters

numbers

varargs of numbers to get the maximum from

See also

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