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.UWP.Samples.LineOfSightLocation.LineOfSightLocation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls">
    <Grid>
        <esriUI:SceneView x:Name="MySceneView" />
        <Border HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="300"
                BorderBrush="Black" BorderThickness="1" Background="White">
            <TextBlock Text="Tap to set a start point. Tap again to set an end point."
                       TextAlignment="Center" TextWrapping="Wrap" FontWeight="SemiBold" />
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Instructions
  2. Code