Hello All, I need help on solving problem regarding Line Of Sight Widget's lines. I was using ArcGIS Javascript 4.33. And I was using the Line Of Sight widget on my code, like:
const lineOfSight = new LineOfSight({
view: view,
container: "losWidget",
});
However, the lines that comes from the LOS widget seems weird. They are not completely hidden, nor completely showed. This is what happen when I created the observer and the target from clicking the points on the map:
However, I also tried to use the same WebScene (all the layers are the same), and created and used the LOS widget by using WebExperience. The result is different. LOS Widget from the Experience Builder created the lines properly after creating the observer point and target point on the map. These lines below were created from Experience Builder's LOS widget.
Does anyone know why the results are different between LOS Widget from Javascript and LOS Widget from Experience Builder? Does anyone know any reference I can read/follow to produce the proper LOS lines using Javscript API like the one from Experience Builder's LOS Widget?