$scale function

Returns the current scale of the map canvas.
Note: This function is only available in some contexts and will be 0 otherwise.

Syntax

$scale

Example

$scale → 10000