aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-05-11 08:09:57 -0700
committerAnton Tananaev <anton@traccar.org>2023-05-11 08:09:57 -0700
commit5a8450ed2a50213c692a319a63fd45f6c91c54d7 (patch)
tree54abe3dc611ed68e4922d680001aac109eacfdb5 /modern
parente16f7353e850f69b29f285c80e1a0f200e5992be (diff)
downloadtrackermap-web-5a8450ed2a50213c692a319a63fd45f6c91c54d7.tar.gz
trackermap-web-5a8450ed2a50213c692a319a63fd45f6c91c54d7.tar.bz2
trackermap-web-5a8450ed2a50213c692a319a63fd45f6c91c54d7.zip
Add railway map overlay
Diffstat (limited to 'modern')
-rw-r--r--modern/src/map/overlay/useMapOverlays.js6
-rw-r--r--modern/src/resources/l10n/en.json1
2 files changed, 7 insertions, 0 deletions
diff --git a/modern/src/map/overlay/useMapOverlays.js b/modern/src/map/overlay/useMapOverlays.js
index 3d539d32..fa5240e8 100644
--- a/modern/src/map/overlay/useMapOverlays.js
+++ b/modern/src/map/overlay/useMapOverlays.js
@@ -29,6 +29,12 @@ export default () => {
available: true,
},
{
+ id: 'openRaiwayMap',
+ title: t('mapOpenRaiwayMap'),
+ source: sourceCustom(['https://tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png']),
+ available: true,
+ },
+ {
id: 'openWeatherClouds',
title: t('mapOpenWeatherClouds'),
source: sourceOpenWeather('clouds_new', openWeatherKey),
diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json
index 9d76814d..69db954f 100644
--- a/modern/src/resources/l10n/en.json
+++ b/modern/src/resources/l10n/en.json
@@ -309,6 +309,7 @@
"mapOverlay": "Map Overlay",
"mapOverlayCustom": "Custom Overlay",
"mapOpenSeaMap": "OpenSeaMap",
+ "mapOpenRaiwayMap": "OpenRailwayMap",
"mapOpenWeatherKey": "OpenWeather API Key",
"mapOpenWeatherClouds": "OpenWeather Clouds",
"mapOpenWeatherPrecipitation": "OpenWeather Precipitation",