aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/Map.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map/Map.js')
-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);