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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.4 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.4 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.4 - 100.15 |
Xamarin.iOS | 100.4 - 100.15 |
UWP | 100.4 - 100.15 |
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 |
---|---|
System.ArgumentNullException | source |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.4 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.4 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.4 - 100.15 |
Xamarin.iOS | 100.4 - 100.15 |
UWP | 100.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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.4 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.4 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.4 - 100.15 |
Xamarin.iOS | 100.4 - 100.15 |
UWP | 100.4 - 100.15 |
Relevant samples
Display KML: Display KML from a URL, portal item, or local KML file.