描述
Use this layer with your WPF application based on the ArcGIS API for WPF.
It supports reading both exploded and compact tile caches directly from disk and display it within the WPF Map Control.
Example:
<Window x:Class="TestApp.MainWindow" 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"
xmlns:samples="clr-namespace:ESRI.ArcGIS.Client.Samples"
Title="MainWindow" Height="400" Width="800">
<Grid>
<esri:Map x:Name="map1">
<samples:LocalTileCacheLayer
TileCacheFilePath="c:ArcGISServerarcgiscacheMyCompactCache_WorldWorld" />
</esri:Map>
</Grid>
</Window>
Set the TileCachePath to the folder where the conf.cdi and conf.xml files resides within your cache folders.
Click the attachment below to download the code for the layer.