Weather now available in Google Maps API (v3)
Weather now available in Google Maps API (v3)
Add the weather layer easily via Google Map API.
The concepts within this section refer to features only available within the
google.maps.weather
library. This
library is not loaded by default when you load the Maps Javascript API
but must be explicitly specified through use of a libraries
bootstrap parameter.
See the Libraries Overview for more information.
You can enable the display of weather data or cloud imagery on your map via
the
WeatherLayer
and CloudLayer
classes 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 featureDetails
property of the WeatherMouseEvent
object. The below example detects when you click on an icon, and displays
the current temperature at that location.
Weather Layer information
Weather Layer Options (Wind Speed, mph,kph etc)
Via
0 Comments:
Post a Comment
<< Home