aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-12 09:59:52 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-12 09:59:52 -0700
commit5a685addb8e1a9ff9b03399d3b06c3cc60d73e9b (patch)
tree03d3239ba264d1290afefa3ed7484a2bf61dc9b0
parent135d60e8308011f52e3ca03c3f69caa2d06aa082 (diff)
downloadtrackermap-web-5a685addb8e1a9ff9b03399d3b06c3cc60d73e9b.tar.gz
trackermap-web-5a685addb8e1a9ff9b03399d3b06c3cc60d73e9b.tar.bz2
trackermap-web-5a685addb8e1a9ff9b03399d3b06c3cc60d73e9b.zip
Remove mapbox layers
-rw-r--r--modern/src/map/core/useMapStyles.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/modern/src/map/core/useMapStyles.js b/modern/src/map/core/useMapStyles.js
index a172744b..bbdf0ea9 100644
--- a/modern/src/map/core/useMapStyles.js
+++ b/modern/src/map/core/useMapStyles.js
@@ -23,7 +23,6 @@ const styleCustom = (urls, attribution) => ({
export default () => {
const t = useTranslation();
- const mapboxAccessToken = useAttributePreference('mapboxAccessToken');
const mapTilerKey = useAttributePreference('mapTilerKey');
const locationIqKey = useAttributePreference('locationIqKey');
const bingMapsKey = useAttributePreference('bingMapsKey');
@@ -71,27 +70,6 @@ export default () => {
available: true,
},
{
- id: 'mapboxStreets',
- title: t('mapMapboxStreets'),
- style: 'mapbox://styles/mapbox/streets-v11',
- available: !!mapboxAccessToken,
- attribute: 'mapboxAccessToken',
- },
- {
- id: 'mapboxOutdoors',
- title: t('mapMapboxOutdoors'),
- style: 'mapbox://styles/mapbox/outdoors-v11',
- available: !!mapboxAccessToken,
- attribute: 'mapboxAccessToken',
- },
- {
- id: 'mapboxSatellite',
- title: t('mapMapboxSatellite'),
- style: 'mapbox://styles/mapbox/satellite-v9',
- available: !!mapboxAccessToken,
- attribute: 'mapboxAccessToken',
- },
- {
id: 'mapTilerBasic',
title: t('mapMapTilerBasic'),
style: `https://api.maptiler.com/maps/basic/style.json?key=${mapTilerKey}`,