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
weatherlibrary, which consists of two classes:
WeatherLayerclass 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
CloudLayerclass displays satellite imagery of cloud coverage. Try out the demo below.
Check out the documentation for more information. If you need any extra assistance or information, we recommend you post your questions to Stack Overflow using the google-maps-api-3 tag.
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!