import SnappingControlsViewModel from "@arcgis/core/widgets/support/SnappingControls/SnappingControlsViewModel.js";const SnappingControlsViewModel = await $arcgis.import("@arcgis/core/widgets/support/SnappingControls/SnappingControlsViewModel.js");- Inheritance:
- SnappingControlsViewModel→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.21
Provides the logic for the SnappingControls widget.
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 |
|---|---|---|
declaredClass readonly inherited | ||
| | ||
state readonly | | |
| |
snappingOptions
autocast
Property
- Type
- SnappingOptions
The SnappingOptions for sketching. It supports self and feature snapping.
view
Property
- Type
- MapViewOrSceneView | null | undefined
The view associated with the SnappingControls widget instance.