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

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"             
             xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"
             x:Class="ArcGISRuntimeXamarin.Samples.LineOfSightLocation.LineOfSightLocation">
  <Grid>
    <esriUI:SceneView x:Name="MySceneView"/>
  </Grid>
</ContentPage>


In this topic
  1. Instructions
  2. Code