Options for the MapNavigatorConstraints.scale constraint.

Hierarchy

  • ScaleConstraintOptions

Properties

Properties

maxScale?: number | [number, number]

The maximum scale value. When a single Number is used, the maximum scale is applied to both the x and y axis. By setting an array with two elements (e.g. [1e-3, 1e-3]), the maximum scale can be configured differently for the x and y axis. The Default value is [Infinity, Infinity]

minScale?: number | [number, number]

The minimum scale value. When a single Number is used, the minimum scale is applied to both the x and y axis. By setting an array with two elements (e.g. [2e-8, 2e-8]), the minimum scale can be configured differently for the x and y axis. The Default value is [0, 0]