I want the natural elevation at each point in a polyline (using SketchWidget in arcGIS SDK for Javascript). For example if the polyline runs over a mountain , I'd want the z values of each point in the polyline to be different, to reflect the natural elevation
I tried changing the elevationInfo mode of the GraphicsLayer for the SketchWidget to all of the possible settings.
With "absolute-height" - the elevation of the first point in the polyline is set as the z value of all the points (even though the elevation changes as my polyline runs over mountains)...
With "relative-to-ground", "relative-to-scene", and "on-the-ground", the z value of each point is 0. (Which makes sense, as it is giving the altitude RELATIVE to the terrain...)
No option seems to give the natural terrain elevation at each point.
Thanks for the help!