diff options
-rw-r--r-- | modern/src/map/core/useMapStyles.js | 10 | ||||
-rw-r--r-- | modern/src/resources/l10n/en.json | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/modern/src/map/core/useMapStyles.js b/modern/src/map/core/useMapStyles.js index f1837dab..733d8d33 100644 --- a/modern/src/map/core/useMapStyles.js +++ b/modern/src/map/core/useMapStyles.js @@ -217,6 +217,16 @@ export default () => { attribute: 'mapboxAccessToken', }, { + id: 'mapboxStreetsDark', + title: t('mapMapboxStreetsDark'), + style: styleCustom({ + tiles: [`https://api.mapbox.com/styles/v1/mapbox/dark-v11/tiles/{z}/{x}/{y}?access_token=${mapboxAccessToken}`], + maxZoom: 22, + }), + available: !!mapboxAccessToken, + attribute: 'mapboxAccessToken', + }, + { id: 'mapboxOutdoors', title: t('mapMapboxOutdoors'), style: styleCustom({ diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json index 2e92ba92..8ba25991 100644 --- a/modern/src/resources/l10n/en.json +++ b/modern/src/resources/l10n/en.json @@ -358,6 +358,7 @@ "mapWikimedia": "Wikimedia", "mapOrdnanceSurvey": "Ordnance Survey", "mapMapboxStreets": "Mapbox Streets", + "mapMapboxStreetsDark": "Mapbox Streets Dark", "mapMapboxOutdoors": "Mapbox Outdoors", "mapMapboxSatellite": "Mapbox Satellite", "mapMapboxKey": "Mapbox Access Token", |