floor
Returns the largest integer that is less than or equal to the input.
Example usage:
CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
circleRadius(floor(pi()))
);
Content copied to clipboard
Return
expression
Parameters
expression
number expression to get value from
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#abs">Style specification</a>
Returns the largest integer that is less than or equal to the input.
Example usage:
CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
circleRadius(floor(pi()))
);
Content copied to clipboard
Return
expression
Parameters
number
number to get value from
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#abs">Style specification</a>