Export tiles

This sample demonstrates how to export tiles from a map server.

Export tiles for an extent

Instructions

  1. Pan and zoom until the area you want tiles for is within the red box.
  2. Click Export Tiles.
  3. Pan and zoom to see the area covered by the downloaded tiles in the preview box.

Code

<UserControl x:Class="ArcGISRuntime.WPF.Samples.ExportTiles.ExportTiles"
             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 x:Name="MyMapView" />
        <Border
                Background="White" BorderBrush="Black" BorderThickness="1"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="375">
            <StackPanel>
                <Button Content="Export Tiles" x:Name="MyExportButton" Click="MyExportButton_Click" IsEnabled="False" />
                <ProgressBar x:Name="MyProgressBar" Visibility="Collapsed" MinHeight="10" IsIndeterminate="True" />
                <esri:MapView x:Name="MyPreviewMapView" Width="375" Height="400" Visibility="Collapsed" />
                <Button Content="Close Preview" Click="ClosePreview_Click" Visibility="Collapsed" x:Name="MyClosePreviewButton" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Instructions
  2. Code