WMTS Layer

Download Samples Repository

Description

Demonstrates adding a WMTS layer to a Map in XAML.

"Desktop" "Store" "Phone" Available for Desktop, Store, Phone

Sample Code

<UserControl x:Class="ArcGISRuntime.Samples.Desktop.WmtsLayerSample"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
    <Grid>
        <esri:MapView WrapAround="True">
            <esri:Map>
                <esri:WmtsLayer ServiceUri="http://basemap.nationalmap.gov/arcgis/rest/services/USGSHydroNHD/MapServer/WMTS" />
            </esri:Map>
        </esri:MapView>

    </Grid>
</UserControl>
using System.Windows.Controls;

namespace ArcGISRuntime.Samples.Desktop
{
	/// <summary>
	/// Demonstrates adding a WMTS layer to a Map in XAML.
	/// </summary>
	/// <title>WMTS Layer</title>
	/// <category>Layers</category>
	/// <subcategory>Tiled Layers</subcategory>
	public partial class WmtsLayerSample : UserControl
	{
		public WmtsLayerSample()
		{
			InitializeComponent();
		}
	}
}
Feedback on this topic?