import VisibleElements from "@arcgis/core/widgets/DirectionalPad/VisibleElements.js";const VisibleElements = await $arcgis.import("@arcgis/core/widgets/DirectionalPad/VisibleElements.js");- Inheritance:
- VisibleElements→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The visible elements that are displayed within the widget.
This provides the ability to turn individual elements of the widget's display on/off.
Alternatively, developers may also use CSS (e.g. display: none) to show/hide elements, such as labels.
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 | ||
| | ||
| | ||
| |
directionalButtons
Property
- Type
- boolean
Indicates whether to display the directional pad buttons. This can be disabled if only the map rotation slider is needed
- Default value
- true
rotationResetButton
Property
- Type
- boolean
Indicates whether to display the button to reset the rotation angle. If rotation slider is hidden, rotation reset button will be hidden too.
- Default value
- false
rotationSlider
Property
- Type
- boolean
Indicates whether to display the map rotation slider.
This can be disabled if only the directional buttons are needed. Note, this is independent of the
view.constraints.rotationEnabled setting.
- Default value
- false