diff --git a/src/Map/Layers/Layers.jsx b/src/Map/Layers/Layers.jsx index 8f3677f..4063be8 100644 --- a/src/Map/Layers/Layers.jsx +++ b/src/Map/Layers/Layers.jsx @@ -1,13 +1,16 @@ -import { Points } from "./Points"; -import { Layer, Source } from "react-map-gl"; -import { aoLayer, rayonLayer } from "./layers-config"; -import { BASE_URL } from "../../api"; -import { PVZ } from "./PVZ"; -import { OtherPostamates } from "./OtherPostamates"; -import { SelectedRegion } from "./SelectedRegion"; -import { transliterate } from "../../utils.js"; +import {Points} from "./Points"; +import {Layer, Source} from "react-map-gl"; +import {aoLayer, rayonLayer} from "./layers-config"; +import {BASE_URL} from "../../api"; +import {PVZ} from "./PVZ"; +import {OtherPostamates} from "./OtherPostamates"; +import {SelectedRegion} from "./SelectedRegion"; +import {transliterate} from "../../utils.js"; +import {useUpdateLayerCounter} from "../../stores/useUpdateLayerCounter.js"; export const Layers = ({ postGroups, otherGroups }) => { + const { updateCounter } = useUpdateLayerCounter(); + return ( <> { @@ -58,6 +62,7 @@ export const Layers = ({ postGroups, otherGroups }) => {