Elevation profile of a route

07-30-2017 11:31 AM
New Contributor

Hi guys.

I am new to JavaScript and HTML but trying to make api.

I did upto showing direction using custom network analyst.

I am trying to add elevation profile of the route result.

I made a gray box below but I do not know how to make it show elevation profile.

Attatched is the HTML. I changed the server url.

What script should I add?

0 Kudos
1 Reply
Esri Frequent Contributor

You can use the elevation profile widget to display the profile for the route. Here's a sample from the help showing how this widget works. 

ElevationProfile widget - user-specified input geometry | ArcGIS API for JavaScript 3.21 

0 Kudos