pi

open fun pi(): Expression

Returns the mathematical constant pi.

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(product(literal(10.0f), pi()))
);

Return

expression

See also

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