Personal tools


From MohidWiki

Jump to: navigation, search

KML is the Keyhole Markup Language. It's an xml-based language that allows to create content for Google Earth and Google Maps.

It allows to create viewpoints, placemarks, paths, shapes, image overlays and 3D buildings. It also allows to embed customized html code in the placemarks.

Sample kml file

Placemarks with custom html code

Here's a simple kml file that adds a placemark, a viewpoint for it, and embeds some custom html code:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="">





   <name>Portugal Beach Cams</name>


     Live data from <a href="">Beachcam_PT</a> 
     and <a href="">SurfTotal webcams</a>.
     Best viewed when using GE built-in web browser.
     Tools -> Options -> Preferences -> Navigation bar -> Uncheck "Show web results in external  browser".



     <name>Praia do Guincho</name>




         Looking from Praia do Guincho.
         <img src="">
         Surf report <a href="">here</a>.
         Live cam <a href="">here</a>.





Network links

Network links can be very useful when providing early releases of beta services. This way, the developper may continue to upgrade the production version of the kml file, by providing to the users a file that contains a link to it.

Here's a simple kml file that adds a network link to another kml file:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="">

Image overlays




Kml2Mohid is a little ruby program that converts Google Earth kml files into Mohid GIS data files.

External References