log2
Returns the base-two logarithm of the input.
Example usage:
CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
circleRadius(log2(pi()))
);
Content copied to clipboard
Return
expression
Parameters
number
the number to take base-two logarithm from
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#log2">Style specification</a>
Returns the base-two logarithm of the input.
Example usage:
CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
circleRadius(log2(2))
);
Content copied to clipboard
Return
expression
Parameters
number
the number to take base-two logarithm from
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#log2">Style specification</a>