KML
This sample demonstrates adding data in the KML format to a Map control. The KmlLayer Class extracts features from a KML source and renders them as a graphics layer. The samples uses the ProxyUrl Property to demonstrate how a proxy service brokers web requests between the WPF client and the KML file. Use a proxy service when the KML file is not hosted on a site that provides a cross domain policy file (clientaccesspolicy.xml or crossdomain.xml).
Download Sample Application<UserControl x:Class="ArcGISWPFSDK.KmlLayerSimple" 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"> <esri:Map.Extent> <esri:Envelope XMin="-122.090" YMin="37.419" XMax="-122.079" YMax="37.424"> <esri:Envelope.SpatialReference> <esri:SpatialReference WKID="4326"/> </esri:Envelope.SpatialReference> </esri:Envelope> </esri:Map.Extent> <esri:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer" /> <esri:KmlLayer ID="KmlLayer" Url="http://kml-samples.googlecode.com/svn/trunk/KML_Samples.kml" /> </esri:Map> </Grid> </UserControl>
5/16/2014