diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-04 10:34:53 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-04 10:34:53 -0700 |
commit | d187ed9b1ffa1835c5498ff5f2e3652447d7c68c (patch) | |
tree | 9980db1c83d4c659151915879ca85c47eb3db6df /modern/src/map/CurrentLocationMap.js | |
parent | f2c65d56b20998384c1539b5d1c62c0605a0b8f8 (diff) | |
download | trackermap-web-d187ed9b1ffa1835c5498ff5f2e3652447d7c68c.tar.gz trackermap-web-d187ed9b1ffa1835c5498ff5f2e3652447d7c68c.tar.bz2 trackermap-web-d187ed9b1ffa1835c5498ff5f2e3652447d7c68c.zip |
Migrate to MapLibre
Diffstat (limited to 'modern/src/map/CurrentLocationMap.js')
-rw-r--r-- | modern/src/map/CurrentLocationMap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/map/CurrentLocationMap.js b/modern/src/map/CurrentLocationMap.js index 31e6e285..06aaad0f 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, |