How do we add the weather overlay option to a Google map, just like on Google my maps?
I’ve searched for it, but i can’t find the answer.
Do i have to call a weather web service?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can display the WeatherLayerdev-guide on your map by taking two steps:
First, load the WeatherLayer library by adding the
librariesparameter to the URL you use to load the map:Then, you must create an instance of the
google.maps.weather.WeatherLayerapi-doc class, passing any options in aWeatherLayerOptionsapi-doc object, and attach theWeatherLayerto the map:In addition to the WeatherLayer, there is also a separate
google.maps.weather.CloudLayerapi-doc class that you may create in a similar way:There is no separate library that you must load to use the CloudLayer; adding the
libraries=weatherparameter to the URL that loads the map makes both the WeatherLayer and the CloudLayer available on your map. There as a Google Maps JavaScript API v3 Example: Weather Layer, that shows the usage of both layers.