When sketching with snapping on a 2D map, I'd like to achieve the same effect as in ArcGIS Pro. That is, the Z coordinate would be taken from the clicked vertex of another object, or if we click an edge, it would be calculated based on the vertices of the clicked edge.
Can this behavior be achieved using Sketch or SketchViewModel from the ArcGIS Maps SDK for JavaScript?
There is a video in the attachment showing the behavior in ArcGIS Pro.