aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/core/useMapStyles.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-12 07:56:31 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-12 07:56:31 -0700
commit29433f9dea1aad1611ccc2a02b93aeb4eb1d0912 (patch)
treef55e80307194951a3c7ee844a46665a573878045 /modern/src/map/core/useMapStyles.js
parent672d7828afefa07faca7954dfd55b683ae7a68fc (diff)
downloadtrackermap-web-29433f9dea1aad1611ccc2a02b93aeb4eb1d0912.tar.gz
trackermap-web-29433f9dea1aad1611ccc2a02b93aeb4eb1d0912.tar.bz2
trackermap-web-29433f9dea1aad1611ccc2a02b93aeb4eb1d0912.zip
Add TomTom map
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 013772b3..963ffead 100644
--- a/modern/src/map/core/useMapStyles.js
+++ b/modern/src/map/core/useMapStyles.js
@@ -60,6 +60,7 @@ export default () => {
const mapTilerKey = useAttributePreference('mapTilerKey');
const locationIqKey = useAttributePreference('locationIqKey');
const bingMapsKey = useAttributePreference('bingMapsKey');
+ const tomTomKey = useAttributePreference('tomTomKey');
const customMapUrl = useSelector((state) => state.session.server?.mapUrl);
return [
@@ -152,6 +153,13 @@ export default () => {
attribute: 'bingMapsKey',
},
{
+ id: 'tomTomBasic',
+ title: t('mapTomTomBasic'),
+ uri: `https://api.tomtom.com/map/1/style/20.0.0-8/basic_main.json?key=${tomTomKey}`,
+ available: !!tomTomKey,
+ attribute: 'tomTomKey',
+ },
+ {
id: 'custom',
title: t('mapCustom'),
uri: styleCustom(customMapUrl),