Dynamic Layer

This sample demonstrates how to add a local dynamic layer to a map using Extensible Application Markup Language (XAML). A local dynamic layer allows you to work with a dynamic map service resource serving local data content exposed by the ArcGIS Runtime.

A local dynamic layer generates images on the fly and does not have a cache of tiles. The supported source is an ArcGIS Map Package (.mpk), which can be authored in ArcGIS for Desktop. An ArcGIS Map Package contains a map document (.mxd) and the data referenced by the layers it contains, packaged into one convenient, portable file.

Local dynamic layers perform slower than tiled layers. Only use local dynamic layers for operational layers which change frequently or include real time data.

Download Sample Application
XAML C# VB.NET
<UserControl x:Class="ArcGISWPFSDK.LocalDynamicMapLayer"
    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:sys="clr-namespace:System;assembly=mscorlib">
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
        </Grid.Resources>
        <esri:Map x:Name="MyMap" Background="#FFE3E3E3">
            <esri:ArcGISLocalDynamicMapServiceLayer Path="..\\Data\\MPKS\\USCitiesStates_Lambert_Conformal_Conic.mpk"/>
        </esri:Map>
        <ProgressBar x:Name="MyProgressBar" IsIndeterminate="True" VerticalAlignment="Bottom" Width="200" Height="20" Margin="10" Visibility="{Binding Path=IsBusy, Converter={StaticResource BooleanToVisibilityConverter}}"></ProgressBar>
    </Grid>
</UserControl>


Sample code usage restrictions
5/16/2014