Skip to content
import VisibleElements from "@arcgis/core/widgets/DirectionalPad/VisibleElements.js";
Inheritance:
VisibleElementsAccessor
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
ParameterTypeDescriptionRequired
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.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

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