sqrt

open fun sqrt(@NonNull number: Expression): Expression

Returns the square root of the input

Example usage:


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

Return

expression

Parameters

number

the number to take the square root from

See also

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

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

Returns the square root of the input

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(sqrt(25.0f))
);

Return

expression

Parameters

number

the number to take the square root from

See also

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