import ElevationProfileLineGround from "@arcgis/core/analysis/ElevationProfile/ElevationProfileLineGround.js";const ElevationProfileLineGround = await $arcgis.import("@arcgis/core/analysis/ElevationProfile/ElevationProfileLineGround.js");- Inheritance:
- ElevationProfileLineGround→
ElevationProfileLine→ Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.34
Represents a profile line that samples elevation from the Ground of the Map currently set in the View.
The elevation profile is automatically recomputed whenever layers are added to or removed from the Ground, or when their visibility changes.
- See also
Example
// Create an elevation profile analysis with a ground profile lineconst analysis = new ElevationProfileAnalysis({ profiles: [{ type: "ground", title: "World elevation" // Optional custom label }]});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 | "ground" | |
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.