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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.4 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.4 - 200.6 |
Xamarin.Android | 100.4 - 100.15 |
Xamarin.iOS | 100.4 - 100.15 |
UWP | 100.4 - 200.6 |
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.4 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.4 - 200.6 |
Xamarin.Android | 100.4 - 100.14 |
Xamarin.iOS | 100.4 - 100.15 |
UWP | 100.4 - 200.6 |
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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.4 - 200.6 |
Xamarin.Android | 100.4 - 100.15 |
Xamarin.iOS | 100.4 - 100.15 |
UWP | 100.4 - 200.6 |
Relevant samples
Display KML: Display KML from a URL, portal item, or local KML file.