KML and GeoRSS Support Added to the Google Maps API
location based services
One of the things I love most about Google Maps and Google Earth is that it's easy for anyone to create and display new geographically referenced content. Whether it's pictures from your vacation, favorite places on the globe, or the hiking trails you like to visit, all you have to do is create a KML file (using Google Earth or any other tool) and load it up. This idea that you can view data from external sources inside Google Maps and Earth is really exciting to us, and I'm pleased to announce two major new features in this area.
To start we now support GeoRSS as a data format for geographic content in Google Maps. We want to enable users to create data in whatever format is most convenient for them, and feel that by supporting both KML and GeoRSS we can enable a wider variety of people and applications to contribute content to Google Maps. We've built support for the Simple, GML, and W3C Geo encodings of GeoRSS -- all you have to do is enter the full URL of a GeoRSS file into the Maps query box to load the file. For example, take a look at SlashGeo's GeoRSS on Google Maps.
Most importantly, we've extended support for displaying geographic data -- both KML and GeoRSS -- into the Google Maps API. Now in addition to programatically adding content to a Maps API site, you can create your content as KML or GeoRSS and load it into the Map with a simple function call. This means that the more than 1 million KML files that are available from all over the web can easily be mashed up with the map on your site. For example, you can add some vacation photos from Japan with the following code:
var gx = new GGeoXml("http://kml.lover.googlepages.com/my-vacation-photos.kml");
map.addOverlay(gx);
This makes it easier for API sites to maintain content in a flexible format that can be accessed via the API or in a number of other tools directly, and makes it simpler to create a rich API site with declarative content, instead of a lot of code.
Below is an example that shows KML and GeoRSS layers rendered on a Google Maps API powered map. You can toggle on and off the sample layers, or feel free to enter a URL to your favorite KML or GeoRSS content and hit the 'Add' button to see it on the map.
More information about how to use these new features can be found in the Maps API documentation. Google Maps currently supports KML files with points, lines, polygons, styles, icons, and network links (without view-based refresh). We plan to add support for ground overlays, screen overlays, folders, and visibility in the near future.
We're eager to hear from the developer community on what you think of this new API, and additions you'd like to see to make it even easier to use KML and GeoRSS content on your site.
Links to this post:
posted by werio_clon @ 9:01 PM
posted by Haochi @ 8:06 PM
posted by tom.coup @ 3:28 PM
posted by Csaba @ 3:13 PM
posted by Renaud @ 3:00 PM
posted by Ionut Alex. Chitu @ 1:05 PM
posted by Jens @ 11:51 AM
posted by tyke @ 11:31 AM
posted by Greg Sterling @ 9:22 AM
posted by harrychen @ 9:21 AM
posted by admin @ 9:22 AM
posted by atomek @ 7:58 AM
posted by jlbarrera @ 6:48 AM
posted by @ 6:25 AM
posted by borillo @ 6:25 AM
posted by jcorbett @ 6:23 AM
posted by Mike Pegg @ 5:57 AM
posted by Matthew Hurst @ 5:41 AM
posted by arsgeek @ 5:39 AM
posted by videoday @ 5:22 AM
posted by c.lamanna@html.it (Cesare Lamanna) @ 5:03 AM
posted by Sebastian Schuster @ 3:49 AM
posted by thilo @ 3:27 AM
posted by @ 2:34 AM
posted by niyari @ 2:33 AM
posted by flix @ 2:17 AM
posted by admin @ 2:02 AM
posted by Trevor F. Smith @ 1:21 AM
posted by feed2feed @ 12:06 AM
posted by charlesc @ 9:19 PM
posted by @ 8:59 PM
posted by Henri Willox @ 8:41 PM
posted by RevDanCatt @ 8:33 PM
posted by aidan @ 7:36 PM
posted by Pete Cashmore @ 7:09 PM
posted by BillyG @ 6:18 PM
posted by @ 6:03 PM
posted by Simon Willison @ 6:03 PM
posted by Jonathan Crowe @ 6:30 PM
posted by Ed @ 5:09 PM
posted by @ 3:25 PM
posted by Christian @ 3:20 PM
posted by FrankTaylor @ 3:19 PM
posted by Brady Forrest @ 2:32 PM
posted by Barry Schwartz @ 2:14 PM
posted by Esa @ 2:07 PM
posted by gkarten @ 1:35 PM
posted by Barry @ 1:31 PM
posted by mikel @ 9:54 AM
posted by Sean Gillies @ 9:48 AM
Create a Link