Play tours in KML files.
KML, the file format used by Google Earth, supports creating tours, which can control the viewpoint of the scene, hide and show content, and play audio. Tours allow you to easily share tours of geographic locations, which can be augmented with rich multimedia. Runtime allows you to consume these tours using a simple API.
The sample will load the KMZ file from ArcGIS Online. When a tour is found, the Play button will be enabled. Use Play and Pause to control the tour. Use the Reset button to return the tour to the unplayed state.
This sample is graphics intensive and includes audio. Performance may be poor on emulated and remote devices. Run the sample on a physical device for best performance.
- Load the KML file and add it to a layer.
- Create the KML tour controller. Wire up the buttons to the
PlayPause
andReset
methods. - Explore the tree of KML content to find the first KML tour. Once a tour is found, provide it to the KML tour controller.
- Enable the buttons to allow the user to play, pause, and reset the tour.
- KmlTour
- KmlTour.PropertyChanged
- KmlTour.TourStatus
- KmlTourController
- KmlTourController.Pause()
- KmlTourController.Play()
- KmlTourController.Reset()
- KmlTourController.Tour
Data will be downloaded by the sample viewer automatically.
This sample uses a custom tour created by a member of Esri. When you play the tour, you'll see a journey through some of Esri's offices.
See Touring in KML in Keyhole Markup Language for more information.
animation, interactive, KML, narration, pause, play, story, tour