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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.4 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.4 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.4 - 100.14
Xamarin.iOS100.4 - 100.14
UWP100.4 - 100.14
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
Uri source

The URI to the KML resource.

Exceptions
Type Condition
ArgumentNullException

source

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.4 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.4 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.4 - 100.14
Xamarin.iOS100.4 - 100.14
UWP100.4 - 100.14
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 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.4 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.4 - 100.14
Xamarin.iOS100.4 - 100.14
UWP100.4 - 100.14
Relevant samples
Display KML: Display KML from a URL, portal item, or local KML file.
In This Article
Back to top Copyright © 2021 Esri.