max
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())))
);
Content copied to clipboard
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>
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))
);
Content copied to clipboard
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>