What sort of elevation profile feature are you asking for? These samples encompass the elevation-focused samples we have: Elevations Samples | ArcGIS API for JavaScript 4.15
I wanted to have this type of elevation profile data. as we select the trail the left panel opens up and the chart is generated.
if this feature is not available any other api which takes request of latitude and longitude and return the data of elevation profile data.
The code behind this site is available here:
GitHub - Esri/hiking-trails-app: 3D hiking trails map built with ArcGIS API for JavaScript
Read the blog Raluca Nicola wrote about creating this:
https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/creating-3d-hiking-map/
thanks for response , let me try it and get back.
Hi Ken,
Is there any method or engine in arcgis which provides co-ordinates to lat long conversion or,
generate polyline with paths array as shown below.
{
"hasZ": true,
"spatialReference": {
"latestWkid": 3857,
"wkid": 102100
},
"paths": [
[
[
-11449671.806310652,
5472867.5448955465,
901.8050191612002
],
[
-11191494.529025545,
5229050.775396283,
883.9843240519092
],
[
-11476634.219017386,
5167190.201268736,
1273.7545271309903
],
[
-11780248.67119628,
5387914.133268331,
1583.7379729805868
],
[
-11450257.893759662,
5467190.162428008,
908.682608176291
]
]
]
}
Even if there currently isn't an elevation profile widget, there are many resources and techniques that can help you create one. Sometimes the geometries already contain Z values and then it's just a matter of sending those elevation values to your favorite charting library. Other times we can use the Elevation Sampler api class to extract elevation values from the current display or elevation layer, and then chart those values. In some cases you might want to use elevation values derived from an elevation service, and to help you do that you can use some of the Esri Elevation Analysis services.
Here's an old demo which uses the Sketch tools to define the geometry and then uses the ElevationSampler class to get elevations used in the current display view:
Demo: Elevation Profiles & Interesting Places
GitHub: Create Elevation Profiles
We hope this helps.