Constructor KmlDataset
KmlDataset(Uri)
Initializes a new instance of the KmlDataset class.
Declaration
public KmlDataset(Uri source)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | source | URI to a local or remote KML or KMZ file. |
Remarks
KML content can be distributed as XML (.kml) or a zipped archive (.kmz) containing KML files and supporting resources. You can read .kml and .kmz files from disk or the network.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
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 network links: Display a file with a KML network link, including displaying any network link control messages at launch.
Identify KML features: Show a callout with formatted content for a KML feature.
List KML contents: List the contents of a KML file.
KmlDataset(KmlNode)
Initializes a new instance of the KmlDataset class, with the given KmlNode as its root node.
Declaration
public KmlDataset(KmlNode rootNode)
Parameters
Type | Name | Description |
---|---|---|
KmlNode | rootNode | The KmlNode to use as the first root node. |
Remarks
KML dataset is the source of KML information backing a KML layer. Use the KML dataset to interact with the contents of a KML layer. Licensing for KML depends on the method of access. Creating a KML dataset from a root node requires an ArcGIS Maps SDK for .NET 'Standard' license level.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.6 - 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.6 - 200.6 |
Xamarin.Android | 100.6 - 100.15 |
Xamarin.iOS | 100.6 - 100.15 |
UWP | 100.6 - 200.6 |
Relevant samples
Create and save KML file: Construct a KML document and save it as a KMZ file.
Edit KML ground overlay: Edit the values of a KML ground overlay.