Constructor KmlDataset
KmlDataset(Uri)
Initializes a new instance of the KmlDataset class.
Declaration
public KmlDataset(Uri source)
Parameters
Type | Name | Description |
---|---|---|
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 - 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 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 Runtime 'Standard' license level.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.6 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.6 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.6 - 100.15 |
Xamarin.iOS | 100.6 - 100.15 |
UWP | 100.6 - 100.15 |
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.