For the past month, I have been lucky enough to work as an intern on the Google Maps API team in Sydney. I’ve had a great time so far, and I’m looking forward to my remaining two months. For now, I’d like to share with you the fruits of my first project, which was to bring the weather layer from Google Maps to the Maps API.
The weather layer was launched on Google Maps in August 2011, with cloud imagery from the U.S. Naval Research Lab and weather forecast information from weather.com. Since then, access to the weather layer in the Maps API has been a feature frequently requested by developers.
The weather layer is now provided in the Maps API by the
weather library, which consists of two classes:
WeatherLayer class displays the current weather conditions at various locations, as well as a forecast for the next four days when a user clicks on one of the icons. You can configure the units of temperature (degrees Celsius or Fahrenheit) and wind speed (km/h, mph, or m/s), just like maps.google.com. The
CloudLayer class displays satellite imagery of cloud coverage. Try out the demo below.
We hope you find the weather layers useful, and we look forward to seeing them used in applications around the web. I had a fantastic time implementing them, and learned a lot – many thanks to my colleagues in the Maps API team for all their help and support!