|
|
|
@ -1,12 +1,12 @@
|
|
|
|
|
|
|
|
import { useEffect } from "react";
|
|
|
|
import { Source } from "react-map-gl";
|
|
|
|
import { Source } from "react-map-gl";
|
|
|
|
import { BASE_URL, useSourceLayerName } from "../../api";
|
|
|
|
import { useSourceLayerName } from "../../api";
|
|
|
|
import { useUpdateLayerCounter } from "../../stores/useUpdateLayerCounter";
|
|
|
|
import { useUpdateLayerCounter } from "../../stores/useUpdateLayerCounter";
|
|
|
|
import { PendingPoints } from "./PendingPoints";
|
|
|
|
import { CancelledPoints } from "./CancelledPoints";
|
|
|
|
|
|
|
|
import { FilteredWorkingPoints } from "./FilteredWorkingPoints";
|
|
|
|
import { OnApprovalPoints } from "./OnApprovalPoints";
|
|
|
|
import { OnApprovalPoints } from "./OnApprovalPoints";
|
|
|
|
|
|
|
|
import { PendingPoints } from "./PendingPoints";
|
|
|
|
import { WorkingPoints } from "./WorkingPoints";
|
|
|
|
import { WorkingPoints } from "./WorkingPoints";
|
|
|
|
import { FilteredWorkingPoints } from "./FilteredWorkingPoints";
|
|
|
|
|
|
|
|
import { CancelledPoints } from "./CancelledPoints";
|
|
|
|
|
|
|
|
import { useEffect } from "react";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const Points = () => {
|
|
|
|
export const Points = () => {
|
|
|
|
const { updateCounter, toggleUpdateCounter, updatePVZLayer } = useUpdateLayerCounter();
|
|
|
|
const { updateCounter, toggleUpdateCounter, updatePVZLayer } = useUpdateLayerCounter();
|
|
|
|
@ -22,7 +22,7 @@ export const Points = () => {
|
|
|
|
type="vector"
|
|
|
|
type="vector"
|
|
|
|
key={`points-${updateCounter}-${updatePVZLayer}`}
|
|
|
|
key={`points-${updateCounter}-${updatePVZLayer}`}
|
|
|
|
tiles={[
|
|
|
|
tiles={[
|
|
|
|
`${BASE_URL}/martin/${layer}/{z}/{x}/{y}.pbf`,
|
|
|
|
`https://postamates.spatialsystems.ru/martin/${layer}/{z}/{x}/{y}.pbf`,
|
|
|
|
]}
|
|
|
|
]}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<PendingPoints />
|
|
|
|
<PendingPoints />
|
|
|
|
|