ArcGIS Runtime SDK for .NET Samples

Nearest vertex

Show the nearest vertex on a polygon from a tap point
Loading

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:forms="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"
             x:Class="ArcGISRuntime.Samples.NearestVertex.NearestVertex">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Label x:Name="ResultsLabel"
               Grid.Row="0" HorizontalTextAlignment="Center"
               TextColor="Red">Tap to see the nearest vertex and point.</Label>
        <forms:MapView Grid.Row="1" x:Name="MyMapView" />
    </Grid>
</ContentPage>


In this topic
  1. Code