Skip to content
import ElevationProfileLineInput from "@arcgis/core/analysis/ElevationProfile/ElevationProfileLineInput.js";
Inheritance:
ElevationProfileLineInputElevationProfileLineAccessor
Since
ArcGIS Maps SDK for JavaScript 4.34

Represents a profile line that samples the ElevationProfileAnalysis.geometry of the analysis directly. This is typically used for lines that have z values.

If the elevation info is configured to be "on-the-ground", the elevation is sampled from the Ground, provided the scene has ground layers.

Note: In 2D, this profile line can only be used when the analysis ElevationProfileAnalysis.geometry has z values, hasZ===true, and no elevation info is set.

See also
Example
const analysis = new ElevationProfileAnalysis({
geometry: new Polyline({ }), // The input line with z values
profiles: [
{ type: "input", color: "orange" },
]
});

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.

chartOptions

autocast inherited Property
Type
ElevationProfileLineChartOptions
Inherited from: ElevationProfileLine

Options for visualizing the profile line in a chart.

color

autocast Property
Type
Color

Color of the line on the chart and in the view.

Default value
"#00c8c8"

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

enabled

inherited Property
Type
boolean
Inherited from: ElevationProfileLine

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

Default value
true

id

inherited Property
Type
string
Inherited from: ElevationProfileLine

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

title

inherited Property
Type
string | null | undefined
Inherited from: ElevationProfileLine

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

type

readonly Property
Type
"input"

The line type.

viewOptions

autocast inherited Property
Type
ElevationProfileLineViewOptions
Inherited from: ElevationProfileLine

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.