Display Device Location

This sample demonstrates how you can enable location services and switch between different types of auto pan modes.

Display device location

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"
             xmlns:mapping="clr-namespace:Esri.ArcGISRuntime.Mapping;assembly=Esri.ArcGISRuntime" 
             x:Class="ArcGISRuntimeXamarin.Samples.DisplayDeviceLocation.DisplayDeviceLocation">
  <ContentPage.ToolbarItems>
    <ToolbarItem Name="StopButton" Activated="OnStopClicked"  Order="Primary" Priority="0" Text="Stop"/>
    <ToolbarItem Name="StartButton" Activated="OnStartClicked"  Order="Primary" Priority="1" Text="Start" />
  </ContentPage.ToolbarItems>
  <Grid>
    <esriUI:MapView x:Name="MyMapView"/>
  </Grid>
</ContentPage>


In this topic
  1. Code