|
|
|
@ -6,6 +6,7 @@ import Map, {
|
|
|
|
ScaleControl,
|
|
|
|
ScaleControl,
|
|
|
|
GeolocateControl,
|
|
|
|
GeolocateControl,
|
|
|
|
} from "react-map-gl/maplibre";
|
|
|
|
} from "react-map-gl/maplibre";
|
|
|
|
|
|
|
|
import 'maplibre-gl/dist/maplibre-gl.css';
|
|
|
|
import { useState, useEffect, useRef } from "react";
|
|
|
|
import { useState, useEffect, useRef } from "react";
|
|
|
|
import Fuse from "fuse.js";
|
|
|
|
import Fuse from "fuse.js";
|
|
|
|
|
|
|
|
|
|
|
|
@ -89,6 +90,11 @@ export function KartaPage() {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
zoom: 10,
|
|
|
|
zoom: 10,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
mapRef.current?.flyTo({
|
|
|
|
|
|
|
|
center: [35, 57],
|
|
|
|
|
|
|
|
zoom: 5,
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, [selected]);
|
|
|
|
}, [selected]);
|
|
|
|
|
|
|
|
|
|
|
|
|