Skip to content
import ElevationProfileVisibleElements from "@arcgis/core/widgets/ElevationProfile/ElevationProfileVisibleElements.js";
Inheritance:
ElevationProfileVisibleElementsAccessor
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. The visual elements in this widget are the legend, chart, settingsButton, sketchButton, and selectButton. These are all set to true by default.

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.

chart

Property
Type
boolean

When set to false, the chart is not displayed.

Default value
true

clearButton

Property
Type
boolean

When set to false the button used to clear the current elevation profile is not displayed.

Default value
true

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.

legend

Property
Type
boolean

When set to false, the legend (which includes statistics) is not displayed.

Default value
true

selectButton

Property
Type
boolean

When set to false, the button used to select a path is not displayed.

Default value
true

settingsButton

Property
Type
boolean

When set to false, the button used to open the settings popup is not displayed.

Default value
true

sketchButton

Property
Type
boolean

When set to false, the button used to start drawing/sketching is not displayed.

Default value
true

uniformChartScalingToggle

Property
Type
boolean

When set to false, the element used to toggle uniform chart scaling on or off is not displayed.

Default value
true

unitSelector

Property
Type
boolean

When set to false, the dropdown used to select the units is not displayed.

Default value
true