aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-20 21:14:53 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-20 21:14:53 -0600
commitcb9728775b0e5eca8c705c0e2c61f9171b7068d9 (patch)
tree045635a126c10b019df933992bc32c161f6635ff /modern/src/map
parent7bf059a2bb5423fe85bcd59938acd4a40671f14b (diff)
downloadetbsa-traccar-web-cb9728775b0e5eca8c705c0e2c61f9171b7068d9.tar.gz
etbsa-traccar-web-cb9728775b0e5eca8c705c0e2c61f9171b7068d9.tar.bz2
etbsa-traccar-web-cb9728775b0e5eca8c705c0e2c61f9171b7068d9.zip
Upgraded http-proxy-middleware to 2.0.1 and fixed reports
Diffstat (limited to 'modern/src/map')
-rw-r--r--modern/src/map/Map.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/modern/src/map/Map.js b/modern/src/map/Map.js
index 8c9bf51..326d8d0 100644
--- a/modern/src/map/Map.js
+++ b/modern/src/map/Map.js
@@ -87,8 +87,6 @@ const Map = ({ children }) => {
const [mapReady, setMapReady] = useState(false);
const mapboxAccessToken = useAttributePreference('mapboxAccessToken');
- const mapTilerKey = useAttributePreference('mapTilerKey');
- const locationIqKey = useAttributePreference('locationIqKey', 'pk.0f147952a41c555a5b70614039fd148b');
useEffect(() => {
maplibregl.accessToken = mapboxAccessToken;
@@ -96,14 +94,13 @@ const Map = ({ children }) => {
useEffect(() => {
switcher.updateStyles([
- { id: 'locationIqStreets', title: t('mapLocationIqStreets'), uri: styleLocationIq('streets', locationIqKey) },
{ id: 'osm', title: t('mapOsm'), uri: styleOsm() },
{ id: 'carto', title: t('mapCarto'), uri: styleCarto() },
{ id: 'gmapsStreets', title: t('mapGmapsStreets'), uri: styleGmapsStreets() },
{ id: 'gmapsSatellite', title: t('mapGmapsSatellite'), uri: styleGmapsSatellite() },
{ id: 'gmapsHybrid', title: t('mapGmapsHybrid'), uri: styleGmapsHybrid() },
], 'gmapsStreets');
- }, [locationIqKey]);
+ }, []);
useEffect(() => {
const listener = (ready) => setMapReady(ready);