aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/core/useMapStyles.js
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 /modern/src/map/core/useMapStyles.js
parenta78b32f7d59d51effe7f1419902637fe39a451b9 (diff)
downloadtrackermap-web-ecc127dc62b9ae9a0fef7d614232c1a828575445.tar.gz
trackermap-web-ecc127dc62b9ae9a0fef7d614232c1a828575445.tar.bz2
trackermap-web-ecc127dc62b9ae9a0fef7d614232c1a828575445.zip
Add OpenTopoMap support (fix #926)
Diffstat (limited to 'modern/src/map/core/useMapStyles.js')
-rw-r--r--modern/src/map/core/useMapStyles.js8
1 files changed, 8 insertions, 0 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(