AnsweredAssumed Answered

How to get elevation by a "click" event

Question asked by tmwang on Sep 24, 2015
Latest reply on Oct 19, 2015 by brysageek

I was trying to develop a web application using ArcGIS API and Javasrcipt. I need to get the elevation value using a click event. I found an example for getting a elevation profile (see code below),

map.on("load", init);
function init() {
  var eleList = ["Polyline", "FreehandPolyline"];
  for (var ele in eleList) {
  on(dom.byId(eleList[ele]), "click", function (evt) {
  initToolbar(evt.target.id.toLowerCase());
  });
  }

but I could not find a sample to get elevation for a point location.

 

There is some description about this function at: https://developers.arcgis.com/rest/elevation/api-reference/summarize-elevation.htm, but I have no idea how to use it. Any help is appreciated.

 

 

Outcomes