aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/core/useMapStyles.js
diff options
context:
space:
mode:
authorjunior <juniormelo26@hotmail.com>2024-01-05 15:14:58 -0300
committerjunior <juniormelo26@hotmail.com>2024-01-05 15:14:58 -0300
commit15435d5d682c5a343312b1571d5e10a7b883e793 (patch)
treee0e461d7ff14ee007aa63cd29761256234e6da06 /modern/src/map/core/useMapStyles.js
parent6b74ea793333313ae578d7f7203aad0e5b854f7d (diff)
downloadtrackermap-web-15435d5d682c5a343312b1571d5e10a7b883e793.tar.gz
trackermap-web-15435d5d682c5a343312b1571d5e10a7b883e793.tar.bz2
trackermap-web-15435d5d682c5a343312b1571d5e10a7b883e793.zip
Add MapBox Dark to useMapStyle
Diffstat (limited to 'modern/src/map/core/useMapStyles.js')
-rw-r--r--modern/src/map/core/useMapStyles.js10
1 files changed, 10 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({