Skip To Content ArcGIS for Developers Sign In Dashboard

ArcGIS Local Tiled Layer

Download Samples Repository

Description

Demonstrates adding a local tiled layer from a tile package (.tpk) to a Map in XAML.

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

Sample Code

<UserControl x:Class="ArcGISRuntime.Samples.Desktop.ArcGISLocalTiledLayerSample"
			 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>
            <esri:Map>
                <esri:ArcGISLocalTiledLayer Path="..\..\..\samples-data\basemaps\campus.tpk" />
            </esri:Map>
        </esri:MapView>
    </Grid>
</UserControl>
using System.Windows.Controls;

namespace ArcGISRuntime.Samples.Desktop
{
    /// <summary>
    /// Demonstrates adding a local tiled layer from a tile package (.tpk) to a Map in XAML.
    /// </summary>
    /// <title>ArcGIS Local Tiled Layer</title>
	/// <category>Layers</category>
	/// <subcategory>Tiled Layers</subcategory>
	public partial class ArcGISLocalTiledLayerSample : UserControl
    {
        public ArcGISLocalTiledLayerSample()
        {
            InitializeComponent();
        }
    }
}
Feedback on this topic?