user1985512
user1985512

Reputation: 45

api v3 weather layer is showing m/s but I want mph

Using code below.. weather shows m/s (meters/sec) but I want mph

snip:

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

Question: is this a bug?.. or am I doing something wrong?

thanks, Dennis

Upvotes: 0

Views: 181

Answers (1)

Dr.Molle
Dr.Molle

Reputation: 117334

it has to be windSpeedUnits (the 's' at the end is missing)

Upvotes: 1

Related Questions