This sample includes a Map and a ArcGISLocalTiledLayer and demonstrates how to add an ArcGISLocalTiledLayer to the Map using Extensible Application Markup Language (XAML).
The source property is the ArcGISLocalTiledLayer class, which has a Path property. The supported source is an ArcGIS Tile Package ( .tpk), which can be authored in ArcGIS for Desktop. When a local tile package is the source, the ArcGIS Runtime SDK for WPF will start a new map service and provide the images of the tile package through a map cache service to the application.
ArcGIS Tile packages can be used for easy sharing of cached maps between colleagues in a work group, accross departments in an organization, or with any other ArcGIS user via ArcGIS online. ArcGIS Tile packages are ideal in disconnected environments where you still need access to the data.
If the data you need to show on your basemap must be live, with no time delay acceptable, then tile packaging is not appropriate. Because a tile package represents a snapshot of your map at one point in time, the package works best with maps that do not change frequently, such as street maps, imagery, and terrain maps.Download Sample Application
<UserControl x:Class="ArcGISWPFSDK.LocalMap" 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/client/2009"> <Grid x:Name="LayoutRoot" > <esri:Map x:Name="MyMap" WrapAround="True" MinimumResolution="2445.98490512499" Extent="-15000000,2000000,-7000000,8000000" Background="#FFE3E3E3"> <esri:ArcGISLocalTiledLayer ID="BaseMap" Path="..\\Data\\TPKs\\Topographic.tpk"/> </esri:Map> </Grid> </UserControl>