import ElevationProfileLineInput from "@arcgis/core/analysis/ElevationProfile/ElevationProfileLineInput.js";const ElevationProfileLineInput = await $arcgis.import("@arcgis/core/analysis/ElevationProfile/ElevationProfileLineInput.js");- Inheritance:
- ElevationProfileLineInput→
ElevationProfileLine→ Accessor
- 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
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
chartOptions inherited | ||
| | ||
declaredClass readonly inherited | ||
enabled inherited | ||
id inherited | ||
title inherited | ||
type readonly | "input" | |
viewOptions inherited |
chartOptions
Options for visualizing the profile line in a chart.
enabled
- Type
- boolean
Indicates whether the line should be computed and displayed in the chart and view.
- Default value
- true
id
- Type
- string
Unique identifier for the profile line. This value is automatically generated unless specified.
title
Title of the line, shown in the chart tooltip and legend.
viewOptions
Options for visualizing the profile line in the view.
Methods
| Method | Signature | Class |
|---|---|---|
clone inherited | clone(): this |
clone
- Signature
-
clone (): this
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.