AnsweredAssumed Answered

Line of Sight with Javascript API

Question asked by delwp_jm7t on Dec 5, 2019

I am trying to implement a 'Line of Sight' function with ArcGIS javascript API 4.  What I want to achieve is, letting user click 2 points on the 3D map, then show him the result like below screenshot. Can this function be implemented with Javascript API?

 

This screenshot is from the hitTest exmaple SceneView - hitTest | ArcGIS API for JavaScript 4.13 . The end result is quite interesting, however it works very differently from what I need. Seems to be it only links the viewpoint to a screen click.

Outcomes