The arrival of Google Maps leads to an explosion in the world of GIS and web mapping. Google introduced not only an API but also some file formats.
The Keyhole Markup Language (KML) had become one of the most extensively used formats, and finally it became an OGC standard.
This recipe will show you how easy it is to add features from a KML file. You can find the necessary files in the KML format attached to the source code of this book available on the Packt Publishing website.
DOMelement that will hold the map: ...