diff --git a/src/Map/Layers/Layers.jsx b/src/Map/Layers/Layers.jsx index a30bfa5..e3cae51 100644 --- a/src/Map/Layers/Layers.jsx +++ b/src/Map/Layers/Layers.jsx @@ -9,7 +9,7 @@ import {transliterate} from "../../utils.js"; import {useUpdateLayerCounter} from "../../stores/useUpdateLayerCounter.js"; export const Layers = ({ postGroups, otherGroups }) => { - const { updatePVZLayer } = useUpdateLayerCounter(); + const { updateCounter, updatePVZLayer } = useUpdateLayerCounter(); return ( <> @@ -45,7 +45,7 @@ export const Layers = ({ postGroups, otherGroups }) => { @@ -62,7 +62,7 @@ export const Layers = ({ postGroups, otherGroups }) => { diff --git a/src/Map/Layers/Points.jsx b/src/Map/Layers/Points.jsx index 5d8847b..7d210e5 100644 --- a/src/Map/Layers/Points.jsx +++ b/src/Map/Layers/Points.jsx @@ -9,7 +9,7 @@ import { CancelledPoints } from "./CancelledPoints"; import { useEffect } from "react"; export const Points = () => { - const { updateCounter, toggleUpdateCounter } = useUpdateLayerCounter(); + const { updateCounter, toggleUpdateCounter, updatePVZLayer } = useUpdateLayerCounter(); const layer = useSourceLayerName(); useEffect(() => { toggleUpdateCounter(); @@ -20,7 +20,7 @@ export const Points = () => {