aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/core/useMapStyles.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map/core/useMapStyles.js')
-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',