List the contents of a KML file.
KML files can contain a hierarchy of features, including network links to other KML content. A user may wish to traverse through the contents of KML nodes to know what data is contained within each node and, recursively, their children.
The contents of the KML file are shown in a tree. Select a node to zoom to that node. Not all nodes can be zoomed to (e.g. screen overlays).
- Add the KML file to the scene as a layer.
- Explore the root nodes of the
KmlDataset
recursively explored to create a view model.
- Each node is enabled for display at this step. KML files may include nodes that are turned off by default.
- When a node is selected, use the node's
Extent
to determine a viewpoint and set theSceneView
object's viewpoint do it.
- KmlContainer
- KmlDataset
- KmlDocument
- KmlFolder
- KmlGroundOverlay
- KmlLayer
- KmlNetworkLink
- KmlNode
- KmlPlacemark
- KmlScreenOverlay
This is an example KML file meant to demonstrate how Runtime supports several common features.
Keyhole, KML, KMZ, layers, OGC