The weather layer now available in the Google Maps API and is provided by the weather library, which consists of two classes: WeatherLayer and CloudLayer.
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 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. And, the CloudLayer class displays satellite imagery of cloud coverage,” explains Joey Scarr, Google Maps API team.
Try out the demo below:
Check out the documentation for more information.
Also, Google today launched a new “Demographics Layer” in Google Maps API v3, making the U.S. demographics visualization accessible and easy for Maps API for Business customers.
Data is available for 2010 and 2011, in addition to projected data for 2015 and 2016.
“Google Maps API for Business applications using the Demographics Layer can control how the data is styled, such as defining color thresholds or gradients, and also define style rules based on expressions across statistics that are evaluated in real time,” posted Thor Mitchell, Product Manager, Google Maps API.
Developers can select from 34 statistics to display on the map at state, county, census tract or block group granularity, including:
- marital status
- housing status
For more information on how to add the Demographics Layer to your applications please see the documentation.
Also, Google just released Analytics for Google Maps API for Business, which shows you how visitors interact with your website.
“With Analytics for Google Maps API for Business delivers reports for map interactions, services, the Places, and Street View. Make changes to your map and immediately see how these enhance user behavior, allowing you to quickly customize your map to the needs of your customers,” informs Daniel Schramm, Associate Product Manager Intern, Google Maps API.
“Analytics for Google Maps is a feature included with your license of Google Maps API for Business. You can enable Analytics for Google Maps API for Business for your maps with the click of a button in the Google Enterprise Support Portal. All information recorded is anonymized and aggregated to protect the privacy of users,” Schramm added.
For more information on how to enable and access Analytics for Maps API for Business, see this Maps API for Business Developer Guide.