diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-03 11:54:43 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-03 11:54:43 -0700 |
commit | ecc127dc62b9ae9a0fef7d614232c1a828575445 (patch) | |
tree | c361c5d41f26cf831034e8de18d28917b5779750 | |
parent | a78b32f7d59d51effe7f1419902637fe39a451b9 (diff) | |
download | trackermap-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.js | 8 | ||||
-rw-r--r-- | web/l10n/en.json | 3 |
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", |