From d187ed9b1ffa1835c5498ff5f2e3652447d7c68c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 4 Jul 2021 10:34:53 -0700 Subject: Migrate to MapLibre --- modern/src/map/CurrentLocationMap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/map/CurrentLocationMap.js') diff --git a/modern/src/map/CurrentLocationMap.js b/modern/src/map/CurrentLocationMap.js index 31e6e28..06aaad0 100644 --- a/modern/src/map/CurrentLocationMap.js +++ b/modern/src/map/CurrentLocationMap.js @@ -1,10 +1,10 @@ -import mapboxgl from 'mapbox-gl'; +import maplibregl from 'maplibre-gl'; import { useEffect } from 'react'; import { map } from './Map'; const CurrentLocationMap = () => { useEffect(() => { - const control = new mapboxgl.GeolocateControl({ + const control = new maplibregl.GeolocateControl({ positionOptions: { enableHighAccuracy: true, timeout: 5000, -- cgit v1.2.3