Wednesday, April 4, 2012

A Weather Layer for the Google Maps API


Google Maps developers can now add a weather layer to their maps directly from the Google Maps API. Here is an example map displaying the new CloudLayer with the 8-bit map tiles from Google April Fool's release, 8-bit Clouds.

The new weather layer includes two main classes, the WeatherLayer and CloudLayer classes. The WeatherLayer class adds weather symbols to your map (sun, clouds, rain etc) showing the current weather using data from weather.com. Enabling the cloud layer will add cloud coverage imagery to your map, visible at zoom levels 0 through 6.

You can now also add upcoming events to your map with new support for events in the Google Places API. The API describes the events service as "intended to provide notice and information about events that are happening currently, so that users can find and check-in to them. Events are included in Place Search results as soon as they are added, and expire after their set duration has elapsed. Results will include events added by your application".

No comments:

Post a Comment