I am trying to pass the geometry of a polyline from a map service layer to the elevation profile widget. Normally, when using a polyline generated from the Draw tool, we can grab the event geometry upon drawing end:
this._toolbar.on("draw-end", (e: any) => this.refreshElevationProfile(e));
refreshElevationProfile(evt): void {
this._elevationProfileWidget.set("profileGeometry", evt.geometry);
};
Using an identify task, I can get the layers in my map service layer upon map click. But does anyone know how to get specifically the geometry from a feature from one of the layers? (Say the top-most layer for example)