aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/core
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-11 18:32:36 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-11 18:32:36 -0700
commite7995f3b7a6b0828b81bebaf556ef7afb59bef61 (patch)
treebd9aebc2ed24253ca0bb2a604ac65ae96730a3d1 /modern/src/map/core
parent0aecbc3bf856b17f42e363eff2bac4fb0ce1f7ed (diff)
downloadtrackermap-web-e7995f3b7a6b0828b81bebaf556ef7afb59bef61.tar.gz
trackermap-web-e7995f3b7a6b0828b81bebaf556ef7afb59bef61.tar.bz2
trackermap-web-e7995f3b7a6b0828b81bebaf556ef7afb59bef61.zip
Automatically add map keys
Diffstat (limited to 'modern/src/map/core')
-rw-r--r--modern/src/map/core/useMapStyles.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/modern/src/map/core/useMapStyles.js b/modern/src/map/core/useMapStyles.js
index f635e15c..944cd3ea 100644
--- a/modern/src/map/core/useMapStyles.js
+++ b/modern/src/map/core/useMapStyles.js
@@ -78,12 +78,14 @@ export default () => {
title: t('mapLocationIqEarth'),
uri: styleLocationIq('earth', locationIqKey),
available: !!locationIqKey,
+ attribute: 'locationIqKey',
},
{
id: 'locationIqHybrid',
title: t('mapLocationIqHybrid'),
uri: styleLocationIq('hybrid', locationIqKey),
available: !!locationIqKey,
+ attribute: 'locationIqKey',
},
{
id: 'osm',
@@ -102,30 +104,35 @@ export default () => {
title: t('mapMapboxStreets'),
uri: styleMapbox('streets-v11'),
available: !!mapboxAccessToken,
+ attribute: 'mapboxAccessToken',
},
{
id: 'mapboxOutdoors',
title: t('mapMapboxOutdoors'),
uri: styleMapbox('outdoors-v11'),
available: !!mapboxAccessToken,
+ attribute: 'mapboxAccessToken',
},
{
id: 'mapboxSatellite',
title: t('mapMapboxSatellite'),
uri: styleMapbox('satellite-v9'),
available: !!mapboxAccessToken,
+ attribute: 'mapboxAccessToken',
},
{
id: 'mapTilerBasic',
title: t('mapMapTilerBasic'),
uri: styleMapTiler('basic', mapTilerKey),
available: !!mapTilerKey,
+ attribute: 'mapTilerKey',
},
{
id: 'mapTilerHybrid',
title: t('mapMapTilerHybrid'),
uri: styleMapTiler('hybrid', mapTilerKey),
available: !!mapTilerKey,
+ attribute: 'mapTilerKey',
},
{
id: 'custom',