From e7995f3b7a6b0828b81bebaf556ef7afb59bef61 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 11 Jun 2022 18:32:36 -0700 Subject: Automatically add map keys --- modern/src/map/core/useMapStyles.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modern/src/map') 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', -- cgit v1.2.3