diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-14 08:41:57 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-14 08:41:57 -0700 |
commit | daea8361ee612f8cdd0723e24b74d07afd564170 (patch) | |
tree | 9a77df72d1ce03d074e45dde5b481cc5e68b7b8c /modern/src/map/overlay/useMapOverlays.js | |
parent | eb850b4a17fd0eb8e02668ed4330de5c88e79880 (diff) | |
download | trackermap-web-daea8361ee612f8cdd0723e24b74d07afd564170.tar.gz trackermap-web-daea8361ee612f8cdd0723e24b74d07afd564170.tar.bz2 trackermap-web-daea8361ee612f8cdd0723e24b74d07afd564170.zip |
Fix weather overlay
Diffstat (limited to 'modern/src/map/overlay/useMapOverlays.js')
-rw-r--r-- | modern/src/map/overlay/useMapOverlays.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modern/src/map/overlay/useMapOverlays.js b/modern/src/map/overlay/useMapOverlays.js index d82397d6..e6311202 100644 --- a/modern/src/map/overlay/useMapOverlays.js +++ b/modern/src/map/overlay/useMapOverlays.js @@ -30,35 +30,35 @@ export default () => { { id: 'openWeatherClouds', title: t('mapOpenWeatherClouds'), - source: sourceOpenWeather('clouds_new', 'openWeatherKey'), + source: sourceOpenWeather('clouds_new', openWeatherKey), available: !!openWeatherKey, attribute: 'openWeatherKey', }, { id: 'openWeatherPrecipitation', title: t('mapOpenWeatherPrecipitation'), - source: sourceOpenWeather('precipitation_new', 'openWeatherKey'), + source: sourceOpenWeather('precipitation_new', openWeatherKey), available: !!openWeatherKey, attribute: 'openWeatherKey', }, { id: 'openWeatherPressure', title: t('mapOpenWeatherPressure'), - source: sourceOpenWeather('pressure_new', 'openWeatherKey'), + source: sourceOpenWeather('pressure_new', openWeatherKey), available: !!openWeatherKey, attribute: 'openWeatherKey', }, { id: 'openWeatherWind', title: t('mapOpenWeatherWind'), - source: sourceOpenWeather('wind_new', 'openWeatherKey'), + source: sourceOpenWeather('wind_new', openWeatherKey), available: !!openWeatherKey, attribute: 'openWeatherKey', }, { id: 'openWeatherTemperature', title: t('mapOpenWeatherTemperature'), - source: sourceOpenWeather('temp_new', 'openWeatherKey'), + source: sourceOpenWeather('temp_new', openWeatherKey), available: !!openWeatherKey, attribute: 'openWeatherKey', }, |