import NavigationActionMap from "@arcgis/core/views/navigation/NavigationActionMap.js";const NavigationActionMap = await $arcgis.import("@arcgis/core/views/navigation/NavigationActionMap.js");- Inheritance:
- NavigationActionMap→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.32
The navigation action map defines the default behavior of the navigation controls.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
| | ||
| | ||
| | ||
| |
dragPrimary
- Type
- DragAction
The primary drag navigation action. On a mouse, this corresponds to a drag while the primary button (usually the
left button) is pressed. On a touch device, this corresponds to a single touch drag.
The zoom action is only supported in a SceneView
- Default value
- "pan"
dragSecondary
- Type
- DragAction
The secondary drag navigation action. On a mouse, this corresponds to a drag while the secondary button (usually
the right button) is pressed. On a touch device, this corresponds to a two-finger twist gesture.
The zoom action is only supported in a SceneView
- Default value
- "rotate"
dragTertiary
- Type
- DragAction
The tertiary drag navigation action. On a mouse, this corresponds to a drag while the tertiary button (usually the middle button) is pressed. On a touch device, this corresponds to a two-finger pinch gesture. This is only supported in a SceneView.
- Default value
- "zoom"
mouseWheel
- Type
- MouseWheelAction
The mouse wheel zoom action. This action is triggered when the mouse wheel is scrolled.
- Default value
- "zoom"