GeoRSS is the easiest and most effective way to share and build maps. GeoRSS is supported by
Yahoo!,
worldKit, and many others, and is on its way to
standardization. Wouldn't it be great if Google joined up and supported a common way to communicate place on the web? How 'bout it Google?
This extension integrates basic GeoRSS support directly into Google Maps. This work is public domain.
How: Adding GeoRSS to your Google Map is as simple as the following Javascript.
Omit the second argument to MGeoRSS.load if the GeoRSS file is on your local server.
<script src="mgeorss.js"></script>
<script>
map = new GMap(document.getElementById("map"));
georss = new MGeoRSS();
map.addMGeoRSS(georss);
georss.load("http://earthquake.usgs.gov/eqcenter/recenteqsww/catalogs/eqs7day-M5.xml", "proxy.pl?");
</script>
Download: A proxy is required to work around browser security and load remote GeoRSS files. A simple proxy in
perl or
php is available. Rename to proxy.pl/proxy.php and place in the same directory as your GMap application. The javascript is
mgeorss.js
Contact: I am reachable at [mikel_maron yahoo com]. My
weblog.
Updates:
- 2007/01/23: properly handle CDATA in <description> (thanks to Brandon Wolfe)
- 2006/08/16: Support for GeoRSS Simple
Todos (help welcome!):
- Full support of the standard at http://georss.org
- RSS 1.0 and Atom
- RSS Extensions to customize Google Maps display, perhaps through and tags