ArcGIS Runtime SDK for .NET Samples

Find service area (interactive)

Find service areas
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:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"
             x:Class="ArcGISRuntime.Samples.FindServiceArea.FindServiceArea"
             Title="Find service area (interactive">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Button x:Name="PlaceFacilityButton"
                        Grid.Row="0" Grid.Column="0"
                        Text="Place Facility"
                        Clicked="PlaceFacilityButton_Click"
                        HorizontalOptions="FillAndExpand" />
        <Button x:Name="DrawBarrierButton"
                        Grid.Row="0" Grid.Column="1"
                        Text="Draw Barrier"
                        Clicked="DrawBarrierButton_Click"
                        HorizontalOptions="FillAndExpand" />
        <Button x:Name="ShowServiceAreasButton"
                        Grid.Row="2"
                        Grid.ColumnSpan="2"
                        Text="Show Service Areas"
                        Clicked="ShowServiceAreasButton_Click"
                        HorizontalOptions="FillAndExpand" />
        <Button x:Name="ResetButton"
                        Grid.Row="3"
                        Grid.ColumnSpan="2"
                        Text="Reset"
                        Clicked="Reset_Click"
                        HorizontalOptions="FillAndExpand" />
        <esriUI:MapView x:Name="MyMapView"  
                        Grid.Row="4" 
                        Grid.ColumnSpan="2"/>
    </Grid>
</ContentPage>


In this topic
  1. Code