Merge branch 'fix/update-layers' into 'dev'

update pvz and other postamates layers

See merge request spatial/postamates_frontend!69
dev
Platon Yasev 2 years ago
commit deb268d2bd

@ -6,8 +6,11 @@ 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 (
<>
<Source
@ -42,6 +45,7 @@ export const Layers = ({ postGroups, otherGroups }) => {
<Source
id="pvz"
key={`pvz-${updateCounter}`}
type="vector"
tiles={[`${BASE_URL}/martin/public.service_post_and_pvz/{z}/{x}/{y}.pbf`]}
>
@ -58,6 +62,7 @@ export const Layers = ({ postGroups, otherGroups }) => {
<Source
id="other"
key={`other-${updateCounter}`}
type="vector"
tiles={[`${BASE_URL}/martin/public.service_otherobjects/{z}/{x}/{y}.pbf`]}
>

Loading…
Cancel
Save