M
M
maryoleksiuk2014-08-05 10:17:35
JavaScript
maryoleksiuk, 2014-08-05 10:17:35

How to add weather to google maps in infowindow?

How to display the weather at least for the current location? Assuming that the user is in a big city

var weatherLayer = new google.maps.weather.WeatherLayer({
  temperatureUnits: google.maps.weather.TemperatureUnit.FAHRENHEIT
});
weatherLayer.setMap(map);


Using the function weatherLayer.setMap(map); all points with weather are added to the map .. How to make a point only for the current location?

Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question