Weather now available in Google Maps API (v3)
The concepts within this section refer to features only available within the
See the Libraries Overview for more information.
CloudLayerclasses of the google.maps.weather library. Enabling the cloud layer will add cloud coverage imagery to your map, visible at zoom levels 0 through 6. Enabling the weather layer will show current weather conditions from weather.com on your map, including icons that denote sun, clouds, rain and so on. Clicking on the weather icon for a particular area will open an info window with detailed data such as current humidity and wind conditions, as well as a four-day forecast. You can access this detailed data through the
featureDetailsproperty of the
WeatherMouseEventobject. The below example detects when you click on an icon, and displays the current temperature at that location.