Show / Hide Table of Contents

Constructor KmlLayer

KmlLayer(KmlDataset)

Initializes a new instance of the KmlLayer class with the given dataset.

Declaration
public KmlLayer(KmlDataset dataset)
Parameters
Type Name Description
KmlDataset dataset

The KML dataset to visualize.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.4 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.4 - 200.7
Xamarin.Android100.4 - 100.15
Xamarin.iOS100.4 - 100.15
UWP100.4 - 200.7
Relevant samples
Create and save KML file: Construct a KML document and save it as a KMZ file.
Display KML network links: Display a file with a KML network link, including displaying any network link control messages at launch.
Edit KML ground overlay: Edit the values of a KML ground overlay.
Identify KML features: Show a callout with formatted content for a KML feature.
List KML contents: List the contents of a KML file.

KmlLayer(Uri)

Initializes a new instance of the KmlLayer class with a URI to a KML file.

Declaration
public KmlLayer(Uri source)
Parameters
Type Name Description
System.Uri source

The URI to the KML resource.

Exceptions
Type Condition
System.ArgumentNullException

source

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.4 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.4 - 200.7
Xamarin.Android100.4 - 100.14
Xamarin.iOS100.4 - 100.15
UWP100.4 - 200.7
Relevant samples
Display KML: Display KML from a URL, portal item, or local KML file.

KmlLayer(Item)

Initializes a new instance of the KmlLayer class from an ArcGIS Item.

Declaration
public KmlLayer(Item item)
Parameters
Type Name Description
Item item

The ArcGIS Item of KML type.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.4 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.4 - 200.7
Xamarin.Android100.4 - 100.15
Xamarin.iOS100.4 - 100.15
UWP100.4 - 200.7
Relevant samples
Display KML: Display KML from a URL, portal item, or local KML file.
In This Article
Back to top Copyright © 2022 Esri.