ln

open fun ln(number: Expression): Expression

Returns the natural logarithm of the input.

Example usage:


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

Return

expression

Parameters

number

the number to take natural logarithm from

See also

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

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

Returns the natural logarithm of the input.

Example usage:


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

Return

expression

Parameters

number

the number to take natural logarithm from

See also

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