Maps Platform
Product updates, customer stories, and tips and tricks on Google Maps Platform
Weather Layer now available in the Google Maps API
Wednesday, April 4, 2012
Please note that the weather layer is no longer available in the Google Maps JavaScript API. For more information, see the blog post on
sunsetting the Weather and Panoramio libraries
.
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
and
CloudLayer
. 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
. The
CloudLayer
class 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!
Joey Scarr, Google Maps API team
Labels
5 Great Maps
ads
advertising
africa
Andorra
Android
App Engine
art
Australia
Autocomplete
Boston
brazil
Bruce Springsteen
Bulgaria
Campus Map
Chrome
City 24/7
Code for America
COM API
Computerlogy
creative advertising campaigns
Custom Map Types
design
developer
Developer Challenge
Developer stories
Directions API
Drawing Tools
Driving Directions
Earth
Earth API
Elevation API
environment
epungo
Estonia
Europe
Fab Friday
flash
Fusion Tables
GAE
games
GDAL
Gears
geo
Geodesic Lines
Germany
Gibraltar
GIS
Global Economy
gme
Google Analytics
Google App Engine
Google Earth
Google Earth API
Google I/O
Google Maps
Google Maps API
Google Maps Engine
Google Places API
Google Places API Developer Challenge
Google Street View API
government
Hackathon
Hamburg
heat map
heatmap
hiking
Hungary
iOS
JavaScript
jQuery
kenya
KML
Latitude API
Latvia
launch
Lithuania
local search
London
Mac
Map of the Week
maps
Maps API
Maps API for Flash
Maps Data API
Maps Zen
Marker Clusterer
Marketing
Mars
meetup
mobile
moca
modern art
More Than a Map
Morethanamap
Movies
Neighborhoods
New York City
Office Hours
Olympics
Panoramio
photos
Place Summaries
Places API
Plus
polygons
Premier
public transit
public transit layer
Python
real estate
rock
sao paulo
screencast
SketchUp
Slovakia
Slovenia
South Africa
Spain
Spatial Data Files
Static Maps API
street view
Styled Maps
Sydney
Track
traffic layer
Transportation
Tripline
Twitter
UN
United Nations
V3
Vancouver Olympics
visualizations
Volkswagen
VW
web
youtube
Archive
2018
Nov
Jul
Jun
May
Mar
Feb
2017
Nov
Jun
May
Apr
Mar
Feb
Jan
2016
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Feb
2015
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2014
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
2013
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2012
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2011
Dec
Nov
Oct
Sep
Aug
Jul
May
Apr
Mar
Feb
Jan
2010
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2009
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Feed
Follow @GMapsPlatform
Follow
Google Maps Platform Website
Give us feedback in our
Product Forums
.