aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-03 11:54:43 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-03 11:54:43 -0700
commitecc127dc62b9ae9a0fef7d614232c1a828575445 (patch)
treec361c5d41f26cf831034e8de18d28917b5779750
parenta78b32f7d59d51effe7f1419902637fe39a451b9 (diff)
downloadtrackermap-web-ecc127dc62b9ae9a0fef7d614232c1a828575445.tar.gz
trackermap-web-ecc127dc62b9ae9a0fef7d614232c1a828575445.tar.bz2
trackermap-web-ecc127dc62b9ae9a0fef7d614232c1a828575445.zip
Add OpenTopoMap support (fix #926)
-rw-r--r--modern/src/map/core/useMapStyles.js8
-rw-r--r--web/l10n/en.json3
2 files changed, 10 insertions, 1 deletions
diff --git a/modern/src/map/core/useMapStyles.js b/modern/src/map/core/useMapStyles.js
index 78b3cdee..365b4a61 100644
--- a/modern/src/map/core/useMapStyles.js
+++ b/modern/src/map/core/useMapStyles.js
@@ -62,6 +62,14 @@ export default () => {
available: true,
},
{
+ id: 'openTopoMap',
+ title: t('mapOpenTopoMap'),
+ style: styleCustom(
+ ['a', 'b', 'c'].map((i) => `https://${i}.tile.opentopomap.org/{z}/{x}/{y}.png`),
+ ),
+ available: true,
+ },
+ {
id: 'carto',
title: t('mapCarto'),
style: styleCustom(
diff --git a/web/l10n/en.json b/web/l10n/en.json
index f0c51f96..94d9ebee 100644
--- a/web/l10n/en.json
+++ b/web/l10n/en.json
@@ -273,7 +273,8 @@
"mapCustomArcgis": "Custom (ArcGIS)",
"mapCustomLabel": "Custom map",
"mapCarto": "Carto Basemaps",
- "mapOsm": "Open Street Map",
+ "mapOsm": "OpenStreetMap",
+ "mapOpenTopoMap": "OpenTopoMap",
"mapBingKey": "Bing Maps Key",
"mapBingRoad": "Bing Maps Road",
"mapBingAerial": "Bing Maps Aerial",