The KML module for Drupal allows people to access spatially enabled information through the Google Earth interface.
KML is short for Keyhole Markup Language. It is a form of XML that is widely used for transferring geographic information, chiefly to Google Earth but also to other systems that can understand KML (NASA's World Wind and ESRI's ArcGIS Explorer are both adding support for reading KML feeds). The format can be used to transfer points, lines and shapes - both 2D and 3D - though this module simply adds points to the map based on the location information that has been saved against a node in Drupal.
The module supports the use of Network Links, basically a pointer to the latest available information in the Drupal site, refreshing when you stop moving the globe in Google Earth.
Features
- Add a KML link to the bottom of all spatially enabled nodes
When a user clicks on the link, it fires up Google Earth and zooms them in to the location - View all spatially enabled nodes in Google Earth
- View nodes tagged with a certain term
- View nodes from within a group
- View search results
- Determine order of nodes that are displayed in Google Earth, allowing for alphabetical or time-based flythroughs of nodes for example.
Examples
Check out the module in action in the geoblog section of the site. Open up a node and click on the KML button. You can also see an example of the KML feed for nodes with the tag geotagged, for example.
Coming features
- View users' locations in Google Earth
- Option to limit nodes returned to just those in view within Google Earth (a bounding box stops nodes being sent from Drupal unnecessarily)
- Views-enabling of the module to allow display of any defined view (using views module) in KML
Requirements
Download
The code is available on the KML module project page at drupal.org