Adding KML/GeoRSS layers

Keyhole Markup Language (KML) has been introduced in Google Earth, which was originally named Keyhole Earth Viewer before Google bought it. KML became an OGC standard in 2008. It is an XML notation for showing features in geo-enabled viewers. GeoRSS is also an emerging standard for sharing Earth features to show in geo-enabled viewers mostly used by web feeds or services. Both these standards can be consumable with the Google Maps JavaScript API.

In this recipe, dynamic services will be consumed via the Google Maps JavaScript API. We will use the U.S. Geological Survey (USGS) web services to show recent earthquakes on maps. These services are updated regularly to reflect recent events.

Getting ready

In this recipe, we will ...

Get Google Maps JavaScript API Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.