WMTS layer

This sample demonstrates how to display a WMTS layer on a map via a Uri and WmtsLayerInfo.

Map with a WMTS layer

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.WMTSLayer.WMTSLayer">
  <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="60" />
            <RowDefinition Height="60" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Button x:Name="Button1" Text="WMTSLayer via Uri" Clicked="Button1_Click" Grid.Row="0"/>
        <Button x:Name="Button2" Text="WMTSLayer via WmtsLayerInfo" Clicked="Button2_Click" Grid.Row="1"/>
        <esriUI:MapView x:Name="MyMapView" Grid.Row="2"/>
    </Grid>
</ContentPage>


In this topic
  1. Code