sum
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()))
);
Content copied to clipboard
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>
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))
);
Content copied to clipboard
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>