Skip to content
import ElevationProfileLine from "@arcgis/core/analysis/ElevationProfile/ElevationProfileLine.js";
Inheritance:
ElevationProfileLineAccessor
Subclasses:
ElevationProfileLineGround, ElevationProfileLineInput, ElevationProfileLineQuery, ElevationProfileLineScene
Since
ArcGIS Maps SDK for JavaScript 4.34

Base class for configuring a single line in an elevation profile analysis.

Each profile line represents a different source or method for sampling elevation along the input path. Subclasses define the specific behavior for ground, input geometry, custom elevation sources, or scene content.

See also

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

chartOptions

autocast Property
Type
ElevationProfileLineChartOptions

Options for visualizing the profile line in a chart.

color

autocast Property
Type
Color

Color of the line as displayed in the chart and in the view.

Default value
"#000000"

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

enabled

Property
Type
boolean

Indicates whether the line should be computed and displayed in the chart and view.

Default value
true

id

Property
Type
string

Unique identifier for the profile line. This value is automatically generated unless specified.

title

Property
Type
string | null | undefined

Title of the line, shown in the chart tooltip and legend.

type

readonly Property
Type
ElevationProfileLineType

The type of profile line. This property is set by subclasses and determines the source of elevation data for the line.

viewOptions

autocast Property
Type
ElevationProfileLineViewOptions

Options for visualizing the profile line in the view.

Methods

MethodSignatureClass
clone
inherited
clone(): this

clone

inherited Method
Signature
clone (): this
Inherited from: ClonableMixin

Creates a deep clone of this object. Any properties that store values by reference will be assigned copies of the referenced values on the cloned instance.

Returns
this

A deep clone of the class instance that invoked this method.