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/ReplayPathMap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/map/ReplayPathMap.js') diff --git a/modern/src/map/ReplayPathMap.js b/modern/src/map/ReplayPathMap.js index feab071..b40aa69 100644 --- a/modern/src/map/ReplayPathMap.js +++ b/modern/src/map/ReplayPathMap.js @@ -1,4 +1,4 @@ -import mapboxgl from 'mapbox-gl'; +import maplibregl from 'maplibre-gl'; import { useEffect } from 'react'; import { map } from './Map'; @@ -46,7 +46,7 @@ const ReplayPathMap = ({ positions }) => { }, }); if (coordinates.length) { - const bounds = coordinates.reduce((bounds, item) => bounds.extend(item), new mapboxgl.LngLatBounds(coordinates[0], coordinates[0])); + const bounds = coordinates.reduce((bounds, item) => bounds.extend(item), new maplibregl.LngLatBounds(coordinates[0], coordinates[0])); map.fitBounds(bounds, { padding: { top: 50, bottom: 250, left: 25, right: 25 }, }); -- cgit v1.2.3