|
|
|
@ -1,24 +1,23 @@
|
|
|
|
|
|
|
|
import debounce from "lodash.debounce";
|
|
|
|
import maplibregl from "maplibre-gl";
|
|
|
|
import maplibregl from "maplibre-gl";
|
|
|
|
import Map, {MapProvider} from "react-map-gl";
|
|
|
|
|
|
|
|
import { useEffect, useRef, useState } from "react";
|
|
|
|
import { useEffect, useRef, useState } from "react";
|
|
|
|
import {Sidebar} from "../modules/Sidebar/Sidebar";
|
|
|
|
import Map, { MapProvider } from "react-map-gl";
|
|
|
|
import {Layers} from "../dzkh-features/Layers/Layers.jsx";
|
|
|
|
|
|
|
|
import {MapPopup} from "./Popup/Popup";
|
|
|
|
|
|
|
|
import {Basemap} from "./Basemap";
|
|
|
|
|
|
|
|
import debounce from "lodash.debounce";
|
|
|
|
|
|
|
|
import {usePopup} from "../stores/usePopup";
|
|
|
|
|
|
|
|
import {useClickedPointConfig} from "../stores/useClickedPointConfig";
|
|
|
|
|
|
|
|
import {Legend} from "../dzkh-features/Legend.jsx";
|
|
|
|
|
|
|
|
import {TableWrapper} from "../modules/Table/TableWrapper";
|
|
|
|
|
|
|
|
import {SidebarControl} from "./SidebarControl";
|
|
|
|
|
|
|
|
import {useTable} from "../stores/useTable";
|
|
|
|
|
|
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
import {ImportDataModal} from "../dzkh-features/ImportDataModal.jsx";
|
|
|
|
import { AccidentSimulationResults } from "../dzkh-features/AccidentSimulationResults.jsx";
|
|
|
|
import { ImportDataButton } from "../dzkh-features/ImportDataButton.jsx";
|
|
|
|
import { ImportDataButton } from "../dzkh-features/ImportDataButton.jsx";
|
|
|
|
|
|
|
|
import { ImportDataModal } from "../dzkh-features/ImportDataModal.jsx";
|
|
|
|
|
|
|
|
import { Layers } from "../dzkh-features/Layers/Layers.jsx";
|
|
|
|
|
|
|
|
import { Legend } from "../dzkh-features/Legend.jsx";
|
|
|
|
import { WeatherSlider } from "../dzkh-features/WeatherSlider/WeatherSlider.jsx";
|
|
|
|
import { WeatherSlider } from "../dzkh-features/WeatherSlider/WeatherSlider.jsx";
|
|
|
|
import { LAYER_IDS } from "../dzkh-features/constants.js";
|
|
|
|
import { LAYER_IDS } from "../dzkh-features/constants.js";
|
|
|
|
import {AccidentSimulationResults} from "../dzkh-features/AccidentSimulationResults.jsx";
|
|
|
|
|
|
|
|
import { icons } from "../icons/icons-config.js";
|
|
|
|
import { icons } from "../icons/icons-config.js";
|
|
|
|
|
|
|
|
import { Sidebar } from "../modules/Sidebar/Sidebar";
|
|
|
|
|
|
|
|
import { TableWrapper } from "../modules/Table/TableWrapper";
|
|
|
|
|
|
|
|
import { useClickedPointConfig } from "../stores/useClickedPointConfig";
|
|
|
|
|
|
|
|
import { usePopup } from "../stores/usePopup";
|
|
|
|
|
|
|
|
import { useTable } from "../stores/useTable";
|
|
|
|
|
|
|
|
import { MapPopup } from "./Popup/Popup";
|
|
|
|
|
|
|
|
import { SidebarControl } from "./SidebarControl";
|
|
|
|
|
|
|
|
|
|
|
|
export const MapComponent = () => {
|
|
|
|
export const MapComponent = () => {
|
|
|
|
const mapRef = useRef(null);
|
|
|
|
const mapRef = useRef(null);
|
|
|
|
@ -138,6 +137,7 @@ export const MapComponent = () => {
|
|
|
|
onMouseEnter={handleMouseEnter}
|
|
|
|
onMouseEnter={handleMouseEnter}
|
|
|
|
onMouseLeave={handleMouseLeave}
|
|
|
|
onMouseLeave={handleMouseLeave}
|
|
|
|
id="map"
|
|
|
|
id="map"
|
|
|
|
|
|
|
|
mapStyle="https://raw.githubusercontent.com/gtitov/basemaps/refs/heads/master/positron-nolabels.json"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{popup && (
|
|
|
|
{popup && (
|
|
|
|
<MapPopup
|
|
|
|
<MapPopup
|
|
|
|
@ -156,7 +156,6 @@ export const MapComponent = () => {
|
|
|
|
<SidebarControl toggleCollapse={toggleCollapseSidebar} />
|
|
|
|
<SidebarControl toggleCollapse={toggleCollapseSidebar} />
|
|
|
|
<WeatherSlider />
|
|
|
|
<WeatherSlider />
|
|
|
|
|
|
|
|
|
|
|
|
<Basemap />
|
|
|
|
|
|
|
|
<Layers />
|
|
|
|
<Layers />
|
|
|
|
|
|
|
|
|
|
|
|
<Legend />
|
|
|
|
<Legend />
|
|
|
|
|