ceil

open fun ceil(expression: Expression): Expression

Returns the smallest integer that is greater than or equal to the input.

Example usage:


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

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>

open fun ceil(@NonNull number: Number): Expression

Returns the smallest integer that is greater than or equal to the input.

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(ceil(3.14159265359))
);

Return

expression

Parameters

number

number to get value from

See also

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