sum

open fun sum(@Size(min = 2) numbers: Array<Expression>): Expression

Returns the sum of the inputs.

Example usage:


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

Return

expression

Parameters

numbers

the numbers to calculate the sum for

See also

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

open fun sum(@Size(min = 2) numbers: Array<Number>): Expression

Returns the sum of the inputs.

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(sum(10.0f, 5.0f, 3.0f))
);

Return

expression

Parameters

numbers

the numbers to calculate the sum for

See also

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