My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

kmltree is a javascript tree widget that can be used in conjunction with the Google Earth API. It replicates the functionality of the Google Earth desktop client, and is fast, extensible, and stable for use in advanced web applications. It's built utilizing the earth-api-utility-library and jQuery.

Some choice features include:

  • The ability to render complex KML documents very quickly
  • NetworkLinks can be expanded to reveal their contents, and their features can be accessed programmatically
  • The state of the tree can be restored after reload of the tree or refreshing the browser
  • Event handlers can be assigned to listen for interaction with the tree
  • Placemark icons can be displayed as well as KML ItemIcons
  • Full JS/CSS/HTML content can be displayed from KML description tags, safely sandboxed within an iframe
  • Selection events and visual indicators can be used to build editing applications
  • List styles such as checkHideChildren, checkOffOnly, and radioFolder are all supported
  • Can control built-in layers like Roads and 3d Buildings
  • It's beautiful out of the box
  • and has a well-maintained unit test suite.

This library is a spinoff of the MarineMap Decision Support Tool and is supported by the MarineMap Consortium. The aim is to provide a well-maintained library to help develop more applications utilizing the Google Earth API and KML.

Try out examples or view your own kml files here.

Alternative implementations that served as inspiration and might be considered include:

Powered by Google Project Hosting