From 2179dd19dd0dbdded0b62d0d31ba1b3162ee145f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 12 Jun 2022 09:34:33 -0700 Subject: Add HERE maps and traffic --- modern/src/map/overlay/useMapOverlays.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modern/src/map/overlay/useMapOverlays.js') diff --git a/modern/src/map/overlay/useMapOverlays.js b/modern/src/map/overlay/useMapOverlays.js index e7ea7322..d82397d6 100644 --- a/modern/src/map/overlay/useMapOverlays.js +++ b/modern/src/map/overlay/useMapOverlays.js @@ -17,6 +17,7 @@ export default () => { const openWeatherKey = useAttributePreference('openWeatherKey'); const tomTomKey = useAttributePreference('tomTomKey'); + const hereKey = useAttributePreference('hereKey'); const customMapOverlay = useSelector((state) => state.session.server?.overlayUrl); return [ @@ -75,6 +76,15 @@ export default () => { available: !!tomTomKey, attribute: 'tomTomKey', }, + { + id: 'hereFlow', + title: t('mapHereFlow'), + source: sourceCustom( + [1, 2, 3, 4].map((i) => `https://${i}.traffic.maps.ls.hereapi.com/maptile/2.1/flowtile/newest/normal.day/{z}/{x}/{y}/256/png8?apiKey=${hereKey}`), + ), + available: !!hereKey, + attribute: 'hereKey', + }, { id: 'custom', title: t('mapOverlayCustom'), -- cgit v1.2.3