import ZoomViewModel from "@arcgis/core/widgets/Zoom/ZoomViewModel.js";const ZoomViewModel = await $arcgis.import("@arcgis/core/widgets/Zoom/ZoomViewModel.js");- Inheritance:
- ZoomViewModel→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.0
Provides the logic for the Zoom widget.
- See also
Zoom widget - Deprecated since 4.32. Use the Zoom component instead.
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
See the properties table for a list of all the
properties that may be passed into the constructor.
Properties
Any properties can be set, retrieved or listened to. See the
Watch for changes
topic.
| Property | Type | Class |
|---|---|---|
canZoomIn readonly | | |
canZoomOut readonly | | |
declaredClass readonly inherited | ||
state readonly | | |
| |
state
readonly Property
- Type
- ZoomViewModelState
The current state of the widget.
- Default value
- "disabled"