pow

open fun pow(@NonNull first: Expression, @NonNull second: Expression): Expression

Returns the result of raising the first input to the power specified by the second.

Example usage:


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

Return

expression

Parameters

first

the first number

second

the second number

See also

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

open fun pow(@NonNull first: Number, @NonNull second: Number): Expression

Returns the result of raising the first input to the power specified by the second.

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(pow(5.0f, 2.0f))
);

Return

expression

Parameters

first

the first number

second

the second number

See also

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