Line of sight from location

This sample demonstrates a LocationLineOfSight analysis that shows segments that are visible or obstructed along a line drawn from observer to target.

Line of sight between point locations

Instructions

Click to define a location for the observer, then again to define the target. The result will show visible segments in cyan and obstructed ones in magenta.

Code

<UserControl x:Class="ArcGISRuntime.WPF.Samples.LineOfSightLocation.LineOfSightLocation"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
    <Grid>
        <esri:SceneView x:Name="MySceneView"/>
    </Grid>
</UserControl>


In this topic
  1. Instructions
  2. Code