Skip to content

Commit

Permalink
Update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebRas committed Oct 19, 2024
1 parent 6770316 commit 643186b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Shared/Samples/List contents of KML file/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

List the contents of a KML file.

![Image of list contents of KML file](ListContentsOfKMLFile.jpg)
![Screenshot of List contents of KML file sample](list-contents-of-kml-file.png)

## Use case

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.

## How to use the sample

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).
The contents of the KML file are shown in a tree. Tap on a disclosure to reveal a node's children. Tap on a node to open it in a scene zoomed to that node. Not all nodes can be zoomed to (e.g., screen overlays).

## How it works

1. Add the KML file to the scene as a layer.
2. 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.
3. When a node is selected, use the node's `Extent` to determine a viewpoint and set the `SceneView` object's viewpoint do it.
* Each node is enabled for display at this step. KML files may include nodes that are turned off by default.
3. When a node is selected, use the node's `extent` to create a `Viewpoint` and pass it to the `SceneView`.

## Relevant API

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"category": "Edit and Manage Data",
"description": "List the contents of a KML file.",
"ignore": false,
"images": [],
"images": [
"list-contents-of-kml-file.png"
],
"keywords": [
"KML",
"KMZ",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 643186b

Please sign in to comment.