ArcGIS API for Windows Phone - Library Reference
KmlLayer Class
Members  See Also  Send comments on this topic
ESRI.ArcGIS.Client.Toolkit.DataSources Namespace : KmlLayer Class

Extracts features from KML source and render as a graphics layer.

Object Model

KmlLayer Class

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class KmlLayer 
   Inherits ESRI.ArcGIS.Client.GraphicsLayer
   Implements ILegendSupport 
C# 
public sealed class KmlLayer : ESRI.ArcGIS.Client.GraphicsLayer, ILegendSupport  

Remarks

The KmlLayer class provides native, client-side support for KML files and targets Google Maps level support for the KML specification.  The following table lists the KML elements supported by the KmlLayer class, and provides additional notes for elements that are conditionally supported.

 

Supported KML Element Supportability Notes
<atom:author>
<atom:link>
<atom:name>
<BalloonStyle> Only <text> is supported
<color>
<coordinates>
<Data>
<description> HTML content is allowed but is sanitized to protect from cross-browser attacks; entity replacements of the form $[dataName] are unsupported.
<Document>
<ExtendedData> Untyped <Data> only, no <SimpleData> or <Schema>, and entity replacements of the form $[dataName] are unsupported.
<fill>
<Folder>
<heading> Supported when part of an IconStyle element for proper rotation of a point's image.
<hotSpot>
<href>
<Icon> Supported. Only the "href" element of this complex element is supported. Rotation and scaling are also supported now.
<IconStyle>
<innerBoundaryIs> Supported, but only for a single interior ring. Needs to be fixed.
<kml>
<LinearRing> Supported, but only makes use of the Coordinates sub element.
<LineString> Supported, but only makes use of the Coordinates sub element.
<LineStyle>
<Link> Supported, but only makes use of the Href sub element.
<MultiGeometry>
<name>
<NetworkLink> Supported, but only makes use of the Link sub element.
<outerBoundaryIs>
<outline>
<Placemark>
<Point> Supported, but only makes use of the Coordinates sub element.
<Polygon> Supported, but only makes use of the OuterBoundaryIs and InnerBoundaryIs sub elements.
<PolyStyle>
<Style> Supported, but only IconStyle, LineStyle and Polystyle are supported.
<text>
<value>
<width>

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      ESRI.ArcGIS.Client.Layer
         ESRI.ArcGIS.Client.GraphicsLayer
            ESRI.ArcGIS.Client.Toolkit.DataSources.KmlLayer

Requirements

Target Platforms: Windows Vista, Windows 7

See Also

© ESRI, Inc. All Rights Reserved.