There is a bug in the sample of interactive viewshed analysis:
https://developers.arcgis.com/javascript/latest/sample-code/analysis-viewshed/
The preview from the camera (in the right lower corner) is wider than the result of the viewshed analysis. The viewshed field of view does not match well the camera view in the corner. The tower shouldn't be visible in the preview window, because it is out of the viewshed.
Hi @GISExpertPL, thanks for posting your question here. It looks like that line near the circled building is an angled height line, and does not encompass that circled building. It also looks like that circled building is not included because it is still white (like the buildings in the background) and not green/red like the buildings inside the viewshed analysis.
The tall white building isn't included in the analysis (it's not green/red), so why is it visible in the preview window in the lower right corner? The preview window should show FPV from the observer's location, but it shows a wider angle than the red/green viewshed - why?