Web SDKv1.0.0

navigation.zoomPresets

Zoom menu levels and button steps (1 = 100%), kept inside minZoom–maxZoom. The default applies when the option is left out (it is not a key of DEFAULT_CONFIG). Presets are sorted and de-duplicated; a level outside minZoom–maxZoom is left out with a console warning. When none is left, the default levels inside the range are used, and when none of those fits either, the range's two ends — the zoom menu never offers a level the viewer will not reach.
readonly number[]default 0.5, 0.75, 1, 1.25, 1.5, 2, 3

Example

zoomPresetsTypeScript
navigation: { zoomPresets: [0.5, 1, 1.5, 2] }

More in Navigation bar