diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2024-01-05 11:33:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-05 11:33:08 -0800 |
commit | ed55053544cba0aa5fad08fbb0f530e4f67d8561 (patch) | |
tree | 0c7b2057cef4a6e346c76549d566e17e267c069e | |
parent | 6b74ea793333313ae578d7f7203aad0e5b854f7d (diff) | |
parent | 4d4e501843b95754921034effb9788d297f02a66 (diff) | |
download | trackermap-web-ed55053544cba0aa5fad08fbb0f530e4f67d8561.tar.gz trackermap-web-ed55053544cba0aa5fad08fbb0f530e4f67d8561.tar.bz2 trackermap-web-ed55053544cba0aa5fad08fbb0f530e4f67d8561.zip |
Merge pull request #1205 from juniormelo26/Add-MapBox-Dark-to-useMapStyle
Add MapBox Dark to useMapStyle
-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", |