|
|
|
@ -9,7 +9,7 @@ import {transliterate} from "../../utils.js";
|
|
|
|
import {useUpdateLayerCounter} from "../../stores/useUpdateLayerCounter.js";
|
|
|
|
import {useUpdateLayerCounter} from "../../stores/useUpdateLayerCounter.js";
|
|
|
|
|
|
|
|
|
|
|
|
export const Layers = ({ postGroups, otherGroups }) => {
|
|
|
|
export const Layers = ({ postGroups, otherGroups }) => {
|
|
|
|
const { updatePVZLayer } = useUpdateLayerCounter();
|
|
|
|
const { updateCounter, updatePVZLayer } = useUpdateLayerCounter();
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|
@ -45,7 +45,7 @@ export const Layers = ({ postGroups, otherGroups }) => {
|
|
|
|
|
|
|
|
|
|
|
|
<Source
|
|
|
|
<Source
|
|
|
|
id="pvz"
|
|
|
|
id="pvz"
|
|
|
|
key={`pvz-${updatePVZLayer}`}
|
|
|
|
key={`pvz-${updateCounter}-${updatePVZLayer}`}
|
|
|
|
type="vector"
|
|
|
|
type="vector"
|
|
|
|
tiles={[`${BASE_URL}/martin/public.service_post_and_pvz/{z}/{x}/{y}.pbf`]}
|
|
|
|
tiles={[`${BASE_URL}/martin/public.service_post_and_pvz/{z}/{x}/{y}.pbf`]}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
@ -62,7 +62,7 @@ export const Layers = ({ postGroups, otherGroups }) => {
|
|
|
|
|
|
|
|
|
|
|
|
<Source
|
|
|
|
<Source
|
|
|
|
id="other"
|
|
|
|
id="other"
|
|
|
|
key={`other-${updatePVZLayer}`}
|
|
|
|
key={`other-${updateCounter}-${updatePVZLayer}`}
|
|
|
|
type="vector"
|
|
|
|
type="vector"
|
|
|
|
tiles={[`${BASE_URL}/martin/public.service_otherobjects/{z}/{x}/{y}.pbf`]}
|
|
|
|
tiles={[`${BASE_URL}/martin/public.service_otherobjects/{z}/{x}/{y}.pbf`]}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|