@carto/ps-react-maps 3.0.0-canary.2 → 3.0.0-canary.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1768 -1876
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/editable/lasso-tools/const.d.ts +1 -0
- package/dist/types/editable/lasso-tools/lasso-tools.d.ts +1 -1
- package/dist/types/editable/lasso-tools/util.d.ts +4 -0
- package/dist/types/editable/measurement-tools/measurement-tools.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/models/categories.d.ts +1 -1
- package/dist/types/models/features.d.ts +1 -1
- package/dist/types/models/formula.d.ts +1 -1
- package/dist/types/models/histogram..d.ts +1 -1
- package/dist/types/models/range.d.ts +1 -1
- package/dist/types/models/scatter.d.ts +1 -1
- package/dist/types/models/table.d.ts +1 -1
- package/dist/types/models/time-series.d.ts +1 -1
- package/dist/types/models/use-widget-model.d.ts +1 -1
- package/dist/types/provider.d.ts +11 -0
- package/dist/types/providers/sources/types.d.ts +45 -6
- package/dist/types/types.d.ts +5 -5
- package/dist/types/use-layers.d.ts +2 -2
- package/dist/types/use-spatial-filter.d.ts +15 -0
- package/dist/types/zoom-controls.d.ts +1 -1
- package/package.json +28 -27
package/dist/index.js
CHANGED
|
@@ -1,206 +1,209 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
1
|
+
var yt = Object.defineProperty;
|
|
2
|
+
var ht = (o, e, t) => e in o ? yt(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var te = (o, e, t) => ht(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { jsx as j, jsxs as St } from "react/jsx-runtime";
|
|
5
5
|
import { c as C } from "react/compiler-runtime";
|
|
6
|
-
import { useState as
|
|
7
|
-
import { DeckGL as
|
|
8
|
-
import { Map as
|
|
9
|
-
import { Map as
|
|
10
|
-
import { CompositeMode as
|
|
11
|
-
import { create as
|
|
12
|
-
import { FlyToInterpolator as
|
|
13
|
-
import { GeoJsonLayer as
|
|
14
|
-
import { DataFilterExtension as
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
6
|
+
import { useState as Se, useEffect as X, useImperativeHandle as vt, createContext as xe, useContext as $e, useMemo as ue, useCallback as q, useRef as ke } from "react";
|
|
7
|
+
import { DeckGL as bt } from "@deck.gl/react";
|
|
8
|
+
import { Map as Lt, MapProvider as Tt, useMap as Mt } from "react-map-gl/maplibre";
|
|
9
|
+
import { Map as _t, APIProvider as Pt, limitTiltRange as Et, useMap as kt } from "@vis.gl/react-google-maps";
|
|
10
|
+
import { CompositeMode as Ct, TranslateMode as wt, ModifyMode as Ft, DrawPolygonByDraggingMode as Ot, DrawCircleFromCenterMode as Je, DrawRectangleMode as At, DrawPolygonMode as Rt, EditableGeoJsonLayer as et, MeasureAreaMode as Dt, getPickedEditHandle as Ut, MeasureDistanceMode as qt } from "@deck.gl-community/editable-layers";
|
|
11
|
+
import { create as tt, createStore as Ve, useStore as je } from "zustand";
|
|
12
|
+
import { FlyToInterpolator as xt, WebMercatorViewport as $t } from "@deck.gl/core";
|
|
13
|
+
import { GeoJsonLayer as Vt } from "@deck.gl/layers";
|
|
14
|
+
import { DataFilterExtension as jt, MaskExtension as Nt } from "@deck.gl/extensions";
|
|
15
|
+
import { useShallow as st } from "zustand/shallow";
|
|
16
|
+
import { area as Ie, centroid as It, lineIntersect as Bt } from "@turf/turf";
|
|
17
|
+
import { formatNumber as nt, formatCurrency as Ht } from "@carto/ps-utils";
|
|
18
|
+
import Qt from "convert-units";
|
|
19
|
+
import Kt from "convert-units/definitions/length";
|
|
20
|
+
import { WidgetRasterSource as Wt, WidgetTilesetSource as Gt, TileFormat as Zt, WidgetTableSource as zt, WidgetQuerySource as Yt, createViewportSpatialFilter as Xt } from "@carto/api-client";
|
|
19
21
|
import { useQuery as de } from "@tanstack/react-query";
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
+
import Jt from "html2canvas";
|
|
23
|
+
import { multiPolygon as es } from "@turf/helpers";
|
|
24
|
+
const Oe = {
|
|
22
25
|
roadmap: "roadmap",
|
|
23
26
|
satellite: "satellite",
|
|
24
27
|
hybrid: "hybrid"
|
|
25
|
-
},
|
|
28
|
+
}, Y = {
|
|
26
29
|
darkMatter: "darkMatter",
|
|
27
30
|
positron: "positron",
|
|
28
31
|
voyager: "voyager"
|
|
29
|
-
},
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
},
|
|
32
|
+
}, Ae = {
|
|
33
|
+
[Y.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
34
|
+
[Y.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
35
|
+
[Y.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
36
|
+
}, ce = {
|
|
34
37
|
maplibre: "maplibre",
|
|
35
38
|
googleMaps: "google-maps"
|
|
36
|
-
},
|
|
37
|
-
[
|
|
38
|
-
url:
|
|
39
|
-
type:
|
|
39
|
+
}, ot = {
|
|
40
|
+
[Y.positron]: {
|
|
41
|
+
url: Ae[Y.positron],
|
|
42
|
+
type: ce.maplibre
|
|
40
43
|
},
|
|
41
|
-
[
|
|
42
|
-
url:
|
|
43
|
-
type:
|
|
44
|
+
[Y.voyager]: {
|
|
45
|
+
url: Ae[Y.voyager],
|
|
46
|
+
type: ce.maplibre
|
|
44
47
|
},
|
|
45
|
-
[
|
|
46
|
-
url:
|
|
47
|
-
type:
|
|
48
|
+
[Y.darkMatter]: {
|
|
49
|
+
url: Ae[Y.darkMatter],
|
|
50
|
+
type: ce.maplibre,
|
|
48
51
|
dark: !0
|
|
49
52
|
},
|
|
50
|
-
[
|
|
51
|
-
type:
|
|
53
|
+
[Oe.roadmap]: {
|
|
54
|
+
type: ce.googleMaps
|
|
52
55
|
},
|
|
53
|
-
[
|
|
54
|
-
type:
|
|
56
|
+
[Oe.satellite]: {
|
|
57
|
+
type: ce.googleMaps
|
|
55
58
|
},
|
|
56
|
-
[
|
|
57
|
-
type:
|
|
59
|
+
[Oe.hybrid]: {
|
|
60
|
+
type: ce.googleMaps
|
|
58
61
|
}
|
|
59
62
|
};
|
|
60
|
-
function
|
|
61
|
-
isDragging:
|
|
63
|
+
function ts({
|
|
64
|
+
isDragging: o,
|
|
62
65
|
isHovering: e
|
|
63
66
|
}) {
|
|
64
|
-
return
|
|
67
|
+
return o ? "grabbing" : e ? "pointer" : "grab";
|
|
65
68
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
68
|
-
html: `<div class='map-tooltip__content'>${
|
|
69
|
+
function ss(o) {
|
|
70
|
+
return o.html ? {
|
|
71
|
+
html: `<div class='map-tooltip__content'>${o.html}</div>`,
|
|
69
72
|
style: {
|
|
70
73
|
padding: "0",
|
|
71
74
|
background: "none"
|
|
72
75
|
}
|
|
73
76
|
} : null;
|
|
74
77
|
}
|
|
75
|
-
function
|
|
76
|
-
var pe,
|
|
78
|
+
function ns(o) {
|
|
79
|
+
var pe, M, Ne;
|
|
77
80
|
const e = C(66);
|
|
78
|
-
let t,
|
|
79
|
-
e[0] !==
|
|
81
|
+
let t, n, s, r, i, a, c, m, l, p, d, u, g, f;
|
|
82
|
+
e[0] !== o ? ({
|
|
80
83
|
instanceRef: t,
|
|
81
84
|
overlayRef: r,
|
|
82
|
-
basemap:
|
|
83
|
-
controller:
|
|
84
|
-
id:
|
|
85
|
+
basemap: c,
|
|
86
|
+
controller: m,
|
|
87
|
+
id: l,
|
|
85
88
|
layers: p,
|
|
86
|
-
parameters:
|
|
87
|
-
gmapsProps:
|
|
88
|
-
getCursor:
|
|
89
|
-
getTooltip:
|
|
90
|
-
onLoad:
|
|
91
|
-
onResize:
|
|
89
|
+
parameters: i,
|
|
90
|
+
gmapsProps: d,
|
|
91
|
+
getCursor: u,
|
|
92
|
+
getTooltip: g,
|
|
93
|
+
onLoad: n,
|
|
94
|
+
onResize: s,
|
|
92
95
|
onViewStateChange: f,
|
|
93
96
|
...a
|
|
94
|
-
} =
|
|
95
|
-
const
|
|
96
|
-
let
|
|
97
|
-
e[15] !== p ? (
|
|
98
|
-
const
|
|
99
|
-
let
|
|
100
|
-
e[17] !==
|
|
97
|
+
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] = s, e[4] = r, e[5] = i, e[6] = a, e[7] = c, e[8] = m, e[9] = l, e[10] = p, e[11] = d, e[12] = u, e[13] = g, e[14] = f) : (t = e[1], n = e[2], s = e[3], r = e[4], i = e[5], a = e[6], c = e[7], m = e[8], l = e[9], p = e[10], d = e[11], u = e[12], g = e[13], f = e[14]);
|
|
98
|
+
const T = c === void 0 ? Y.positron : c, h = m === void 0 ? !0 : m, y = l === void 0 ? "deck-gl-map" : l;
|
|
99
|
+
let L;
|
|
100
|
+
e[15] !== p ? (L = p === void 0 ? [] : p, e[15] = p, e[16] = L) : L = e[16];
|
|
101
|
+
const S = L;
|
|
102
|
+
let v;
|
|
103
|
+
e[17] !== d ? (v = d === void 0 ? {
|
|
101
104
|
apiKey: ""
|
|
102
|
-
} :
|
|
103
|
-
let
|
|
104
|
-
e[19] !==
|
|
105
|
-
apiKey:
|
|
106
|
-
APIProviderProps:
|
|
107
|
-
...
|
|
108
|
-
} =
|
|
109
|
-
const
|
|
110
|
-
let
|
|
111
|
-
e[23] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
112
|
-
const [
|
|
105
|
+
} : d, e[17] = d, e[18] = v) : v = e[18];
|
|
106
|
+
let P, k, w;
|
|
107
|
+
e[19] !== v ? ({
|
|
108
|
+
apiKey: w,
|
|
109
|
+
APIProviderProps: P,
|
|
110
|
+
...k
|
|
111
|
+
} = v, e[19] = v, e[20] = P, e[21] = k, e[22] = w) : (P = e[20], k = e[21], w = e[22]);
|
|
112
|
+
const F = u === void 0 ? ts : u, b = g === void 0 ? ss : g, _ = f === void 0 ? ls : f;
|
|
113
|
+
let E;
|
|
114
|
+
e[23] === Symbol.for("react.memo_cache_sentinel") ? (E = [!1, !1], e[23] = E) : E = e[23];
|
|
115
|
+
const [A, x] = Se(E);
|
|
116
|
+
let N;
|
|
117
|
+
e[24] !== A ? (N = A.every(as), e[24] = A, e[25] = N) : N = e[25];
|
|
118
|
+
const $ = N;
|
|
113
119
|
let V;
|
|
114
|
-
e[
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
let Se, X;
|
|
125
|
-
e[28] !== b ? (X = b.filter(yn).map(pn), e[28] = b, e[29] = X) : X = e[29], Se = X;
|
|
126
|
-
const me = Se;
|
|
120
|
+
e[26] !== s ? (V = (ge) => {
|
|
121
|
+
s == null || s(ge);
|
|
122
|
+
}, e[26] = s, e[27] = V) : V = e[27];
|
|
123
|
+
const se = V, {
|
|
124
|
+
url: I,
|
|
125
|
+
type: Te
|
|
126
|
+
} = ot[T], Q = Te === ce.googleMaps;
|
|
127
|
+
let ve, J;
|
|
128
|
+
e[28] !== S ? (J = S.filter(is).map(rs), e[28] = S, e[29] = J) : J = e[29], ve = J;
|
|
129
|
+
const me = ve;
|
|
127
130
|
let ne;
|
|
128
|
-
e[30] !==
|
|
129
|
-
const
|
|
130
|
-
...
|
|
131
|
-
viewState:
|
|
132
|
-
} :
|
|
133
|
-
|
|
134
|
-
}, e[30] =
|
|
135
|
-
const
|
|
136
|
-
let
|
|
137
|
-
e[33] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
}, e[33] =
|
|
141
|
-
const
|
|
142
|
-
let
|
|
143
|
-
e[34] !==
|
|
144
|
-
|
|
145
|
-
},
|
|
146
|
-
let
|
|
147
|
-
e[38] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
131
|
+
e[30] !== Q || e[31] !== _ ? (ne = (ge) => {
|
|
132
|
+
const Fe = Q ? {
|
|
133
|
+
...ge,
|
|
134
|
+
viewState: Et(ge)
|
|
135
|
+
} : ge;
|
|
136
|
+
_(Fe);
|
|
137
|
+
}, e[30] = Q, e[31] = _, e[32] = ne) : ne = e[32];
|
|
138
|
+
const oe = ne;
|
|
139
|
+
let K;
|
|
140
|
+
e[33] === Symbol.for("react.memo_cache_sentinel") ? (K = (ge) => {
|
|
141
|
+
const Fe = ge.type === "deckgl" ? 0 : 1;
|
|
142
|
+
x((mt) => mt.map((pt, gt) => gt === Fe ? !0 : pt));
|
|
143
|
+
}, e[33] = K) : K = e[33];
|
|
144
|
+
const re = K;
|
|
145
|
+
let ie, ae;
|
|
146
|
+
e[34] !== $ || e[35] !== n ? (ie = () => {
|
|
147
|
+
n == null || n($);
|
|
148
|
+
}, ae = [$, n], e[34] = $, e[35] = n, e[36] = ie, e[37] = ae) : (ie = e[36], ae = e[37]), X(ie, ae);
|
|
149
|
+
let ee;
|
|
150
|
+
e[38] === Symbol.for("react.memo_cache_sentinel") ? (ee = () => re({
|
|
148
151
|
type: "deckgl"
|
|
149
|
-
}), e[38] =
|
|
150
|
-
let
|
|
151
|
-
e[39] !==
|
|
152
|
+
}), e[38] = ee) : ee = e[38];
|
|
153
|
+
let Z;
|
|
154
|
+
e[39] !== i ? (Z = {
|
|
152
155
|
depthTest: !1,
|
|
153
|
-
...
|
|
154
|
-
}, e[39] =
|
|
155
|
-
let
|
|
156
|
-
e[41] !== r ? (
|
|
156
|
+
...i
|
|
157
|
+
}, e[39] = i, e[40] = Z) : Z = e[40];
|
|
158
|
+
let W;
|
|
159
|
+
e[41] !== r ? (W = /* @__PURE__ */ j(cs, { overlayRef: r }), e[41] = r, e[42] = W) : W = e[42];
|
|
157
160
|
let z;
|
|
158
|
-
e[43] !==
|
|
161
|
+
e[43] !== k || e[44] !== T || e[45] !== Q || e[46] !== I || e[47] !== a ? (z = Q ? /* @__PURE__ */ j(_t, { mapTypeId: T, reuseMaps: !0, renderingType: "RASTER", ...k, defaultCenter: {
|
|
159
162
|
lat: ((pe = a.initialViewState) == null ? void 0 : pe.latitude) ?? 0,
|
|
160
|
-
lng: ((
|
|
161
|
-
}, defaultZoom: ((
|
|
163
|
+
lng: ((M = a.initialViewState) == null ? void 0 : M.longitude) ?? 0
|
|
164
|
+
}, defaultZoom: ((Ne = a.initialViewState) == null ? void 0 : Ne.zoom) ?? 0, onTilesLoaded: () => re({
|
|
162
165
|
type: "load"
|
|
163
|
-
}) }) : /* @__PURE__ */
|
|
166
|
+
}) }) : /* @__PURE__ */ j(Lt, { reuseMaps: !0, mapStyle: I, onLoad: () => re({
|
|
164
167
|
type: "load"
|
|
165
|
-
}), onRender:
|
|
166
|
-
let
|
|
167
|
-
e[49] !== me || e[50] !==
|
|
168
|
-
|
|
168
|
+
}), onRender: os }), e[43] = k, e[44] = T, e[45] = Q, e[46] = I, e[47] = a, e[48] = z) : z = e[48];
|
|
169
|
+
let G;
|
|
170
|
+
e[49] !== me || e[50] !== h || e[51] !== F || e[52] !== b || e[53] !== se || e[54] !== oe || e[55] !== y || e[56] !== t || e[57] !== a || e[58] !== Z || e[59] !== W || e[60] !== z ? (G = /* @__PURE__ */ j(Tt, { children: /* @__PURE__ */ j("div", { className: "deckgl-map", children: /* @__PURE__ */ St(bt, { controller: h, id: y, ref: t, layers: me, getCursor: F, getTooltip: b, onLoad: ee, onResize: se, onViewStateChange: oe, parameters: Z, ...a, children: [
|
|
171
|
+
W,
|
|
169
172
|
z
|
|
170
|
-
] }) }) }), e[49] = me, e[50] =
|
|
171
|
-
let
|
|
172
|
-
return e[62] !==
|
|
173
|
+
] }) }) }), e[49] = me, e[50] = h, e[51] = F, e[52] = b, e[53] = se, e[54] = oe, e[55] = y, e[56] = t, e[57] = a, e[58] = Z, e[59] = W, e[60] = z, e[61] = G) : G = e[61];
|
|
174
|
+
let le;
|
|
175
|
+
return e[62] !== P || e[63] !== w || e[64] !== G ? (le = /* @__PURE__ */ j(Pt, { apiKey: w, ...P, children: G }), e[62] = P, e[63] = w, e[64] = G, e[65] = le) : le = e[65], le;
|
|
173
176
|
}
|
|
174
|
-
function
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
+
function os() {
|
|
178
|
+
const o = document.querySelector(".maplibregl-compact-show");
|
|
179
|
+
o == null || o.classList.remove("maplibregl-compact-show");
|
|
177
180
|
}
|
|
178
|
-
function
|
|
181
|
+
function rs(o) {
|
|
179
182
|
const {
|
|
180
183
|
type: e,
|
|
181
184
|
props: t
|
|
182
|
-
} =
|
|
185
|
+
} = o;
|
|
183
186
|
return new e(t);
|
|
184
187
|
}
|
|
185
|
-
function
|
|
186
|
-
return !!(
|
|
188
|
+
function is(o) {
|
|
189
|
+
return !!(o != null && o.type);
|
|
187
190
|
}
|
|
188
|
-
function
|
|
189
|
-
return
|
|
191
|
+
function as(o) {
|
|
192
|
+
return o;
|
|
190
193
|
}
|
|
191
|
-
function
|
|
194
|
+
function ls() {
|
|
192
195
|
return null;
|
|
193
196
|
}
|
|
194
|
-
function
|
|
197
|
+
function cs(o) {
|
|
195
198
|
const e = C(4), {
|
|
196
199
|
overlayRef: t
|
|
197
|
-
} =
|
|
198
|
-
default:
|
|
199
|
-
} =
|
|
200
|
-
let r,
|
|
201
|
-
return e[0] !==
|
|
200
|
+
} = o, {
|
|
201
|
+
default: n
|
|
202
|
+
} = Mt(), s = kt();
|
|
203
|
+
let r, i;
|
|
204
|
+
return e[0] !== s || e[1] !== n ? (r = () => n ?? s, i = [n, s], e[0] = s, e[1] = n, e[2] = r, e[3] = i) : (r = e[2], i = e[3]), vt(t, r, i), null;
|
|
202
205
|
}
|
|
203
|
-
const
|
|
206
|
+
const H = {
|
|
204
207
|
addFeature: "addFeature",
|
|
205
208
|
addTentativePosition: "addTentativePosition",
|
|
206
209
|
updateTentativeFeature: "updateTentativeFeature",
|
|
@@ -208,20 +211,20 @@ const B = {
|
|
|
208
211
|
finish: "finish",
|
|
209
212
|
addPosition: "addPosition"
|
|
210
213
|
};
|
|
211
|
-
class
|
|
214
|
+
class us extends Ct {
|
|
212
215
|
constructor() {
|
|
213
|
-
super([new
|
|
216
|
+
super([new wt(), new Ft()]);
|
|
214
217
|
}
|
|
215
218
|
handleKeyUp(e, t) {
|
|
216
219
|
super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
|
|
217
220
|
updatedData: t.data,
|
|
218
|
-
editType:
|
|
221
|
+
editType: H.addFeature,
|
|
219
222
|
editContext: {}
|
|
220
223
|
}));
|
|
221
224
|
}
|
|
222
225
|
}
|
|
223
|
-
const
|
|
224
|
-
id:
|
|
226
|
+
const be = "lassoLayer", Ce = "maskLayer", ds = {
|
|
227
|
+
id: be,
|
|
225
228
|
pickable: !1,
|
|
226
229
|
billboard: !1,
|
|
227
230
|
editHandlePointRadiusUnits: "pixels",
|
|
@@ -235,7 +238,7 @@ const Fe = "lassoLayer", Mn = "maskLayer", bn = {
|
|
|
235
238
|
getLineWidth: 2
|
|
236
239
|
}
|
|
237
240
|
}
|
|
238
|
-
},
|
|
241
|
+
}, Be = {
|
|
239
242
|
editing: {
|
|
240
243
|
border: [3, 111, 226, 255],
|
|
241
244
|
fill: [3, 111, 226, 20.4],
|
|
@@ -245,86 +248,89 @@ const Fe = "lassoLayer", Mn = "maskLayer", bn = {
|
|
|
245
248
|
border: [71, 219, 153, 255],
|
|
246
249
|
fill: [71, 219, 153, 0]
|
|
247
250
|
}
|
|
248
|
-
},
|
|
251
|
+
}, Re = {
|
|
249
252
|
styles: {
|
|
250
253
|
colors: {
|
|
251
|
-
editing:
|
|
252
|
-
finished:
|
|
254
|
+
editing: Be.editing,
|
|
255
|
+
finished: Be.finished
|
|
253
256
|
}
|
|
254
257
|
},
|
|
255
258
|
labels: {
|
|
256
259
|
mask: "Geometry"
|
|
257
260
|
}
|
|
258
261
|
}, Pe = {
|
|
259
|
-
id:
|
|
262
|
+
id: Ce,
|
|
260
263
|
stroked: !0,
|
|
261
264
|
filled: !0,
|
|
262
265
|
lineWidthUnits: "pixels",
|
|
263
266
|
getLineWidth: 2,
|
|
264
|
-
lineWidthMinPixels: 2
|
|
265
|
-
|
|
267
|
+
lineWidthMinPixels: 2,
|
|
268
|
+
operation: "mask+draw"
|
|
269
|
+
}, He = {
|
|
266
270
|
polygon: {
|
|
267
271
|
value: "polygon",
|
|
268
|
-
mode:
|
|
272
|
+
mode: Rt
|
|
269
273
|
},
|
|
270
274
|
rectangle: {
|
|
271
275
|
value: "rectangle",
|
|
272
|
-
mode:
|
|
276
|
+
mode: At
|
|
273
277
|
},
|
|
274
278
|
circle: {
|
|
275
279
|
value: "circle",
|
|
276
|
-
mode:
|
|
280
|
+
mode: Je
|
|
277
281
|
},
|
|
278
282
|
lasso: {
|
|
279
283
|
value: "lasso",
|
|
280
|
-
mode:
|
|
284
|
+
mode: Ot
|
|
281
285
|
},
|
|
282
286
|
edit: {
|
|
283
287
|
value: "edit",
|
|
284
|
-
mode:
|
|
288
|
+
mode: us
|
|
285
289
|
}
|
|
286
|
-
},
|
|
290
|
+
}, _e = tt((o) => ({
|
|
287
291
|
layers: {},
|
|
288
|
-
setLayer: (e, t) =>
|
|
289
|
-
|
|
290
|
-
|
|
292
|
+
setLayer: (e, t) => o((n) => {
|
|
293
|
+
var i;
|
|
294
|
+
const s = {
|
|
295
|
+
...n.layers
|
|
291
296
|
};
|
|
292
297
|
if (!t)
|
|
293
|
-
return delete
|
|
294
|
-
layers:
|
|
298
|
+
return delete s[e], {
|
|
299
|
+
layers: s
|
|
295
300
|
};
|
|
296
|
-
const r =
|
|
301
|
+
const r = s[e] ?? {
|
|
297
302
|
type: null,
|
|
298
303
|
props: {}
|
|
299
304
|
};
|
|
300
|
-
return
|
|
305
|
+
return s[e] = {
|
|
301
306
|
...r,
|
|
302
307
|
...t,
|
|
303
308
|
props: {
|
|
304
309
|
id: e,
|
|
305
310
|
...r.props,
|
|
306
|
-
...t.props
|
|
311
|
+
...t.props,
|
|
312
|
+
extensions: [...r.props.extensions ?? [], ...((i = t.props) == null ? void 0 : i.extensions) ?? []]
|
|
307
313
|
},
|
|
308
314
|
legend: {
|
|
309
315
|
...r.legend,
|
|
310
316
|
...t.legend
|
|
311
317
|
}
|
|
312
318
|
}, {
|
|
313
|
-
layers:
|
|
319
|
+
layers: s
|
|
314
320
|
};
|
|
315
321
|
})
|
|
316
|
-
})),
|
|
322
|
+
})), fs = {
|
|
317
323
|
transitionDuration: "auto",
|
|
318
|
-
transitionInterpolator: new
|
|
324
|
+
transitionInterpolator: new xt({
|
|
319
325
|
curve: 2
|
|
320
326
|
})
|
|
321
|
-
},
|
|
322
|
-
const e =
|
|
327
|
+
}, ms = (o) => {
|
|
328
|
+
const e = o.reduce((t, n) => {
|
|
323
329
|
const {
|
|
324
|
-
id:
|
|
330
|
+
id: s,
|
|
325
331
|
basemap: r
|
|
326
|
-
} =
|
|
327
|
-
return t[
|
|
332
|
+
} = n;
|
|
333
|
+
return t[s] = {
|
|
328
334
|
isLoaded: !1,
|
|
329
335
|
areLayersLoaded: !1,
|
|
330
336
|
basemap: r,
|
|
@@ -334,277 +340,287 @@ const Fe = "lassoLayer", Mn = "maskLayer", bn = {
|
|
|
334
340
|
overlayRef: {
|
|
335
341
|
current: null
|
|
336
342
|
},
|
|
337
|
-
layers:
|
|
343
|
+
layers: n.layers ?? []
|
|
338
344
|
}, t;
|
|
339
345
|
}, {});
|
|
340
|
-
return (t,
|
|
346
|
+
return (t, n) => ({
|
|
341
347
|
maps: e,
|
|
342
|
-
setBasemap: (
|
|
348
|
+
setBasemap: (s, r) => t((i) => ({
|
|
343
349
|
maps: {
|
|
344
|
-
...
|
|
345
|
-
[
|
|
346
|
-
...
|
|
350
|
+
...i.maps,
|
|
351
|
+
[s]: {
|
|
352
|
+
...i.maps[s],
|
|
347
353
|
basemap: r
|
|
348
354
|
}
|
|
349
355
|
}
|
|
350
356
|
})),
|
|
351
|
-
setLoad: (
|
|
357
|
+
setLoad: (s, r) => t((i) => ({
|
|
352
358
|
maps: {
|
|
353
|
-
...
|
|
354
|
-
[
|
|
355
|
-
...
|
|
359
|
+
...i.maps,
|
|
360
|
+
[s]: {
|
|
361
|
+
...i.maps[s],
|
|
356
362
|
isLoaded: r
|
|
357
363
|
}
|
|
358
364
|
}
|
|
359
365
|
})),
|
|
360
|
-
setLayersLoad: (
|
|
366
|
+
setLayersLoad: (s, r) => t((i) => ({
|
|
361
367
|
maps: {
|
|
362
|
-
...
|
|
363
|
-
[
|
|
364
|
-
...
|
|
368
|
+
...i.maps,
|
|
369
|
+
[s]: {
|
|
370
|
+
...i.maps[s],
|
|
365
371
|
areLayersLoaded: r
|
|
366
372
|
}
|
|
367
373
|
}
|
|
368
374
|
})),
|
|
369
|
-
getOverlayInstance: (
|
|
370
|
-
var
|
|
371
|
-
return (a = (
|
|
375
|
+
getOverlayInstance: (s) => {
|
|
376
|
+
var i, a;
|
|
377
|
+
return (a = (i = n().maps[s]) == null ? void 0 : i.overlayRef) == null ? void 0 : a.current;
|
|
372
378
|
},
|
|
373
|
-
getDeckInstance: (
|
|
374
|
-
var
|
|
375
|
-
return (
|
|
379
|
+
getDeckInstance: (s) => {
|
|
380
|
+
var i, a, c;
|
|
381
|
+
return (c = (a = (i = n().maps[s]) == null ? void 0 : i.instanceRef) == null ? void 0 : a.current) == null ? void 0 : c.deck;
|
|
376
382
|
},
|
|
377
|
-
getViewState: (
|
|
378
|
-
const
|
|
379
|
-
return
|
|
383
|
+
getViewState: (s) => {
|
|
384
|
+
const i = n().getDeckInstance(s);
|
|
385
|
+
return i == null ? void 0 : i.viewState;
|
|
380
386
|
},
|
|
381
|
-
getViewports: (
|
|
382
|
-
const a =
|
|
387
|
+
getViewports: (s, r) => {
|
|
388
|
+
const a = n().getDeckInstance(s);
|
|
383
389
|
return a == null ? void 0 : a.getViewports(r);
|
|
384
390
|
},
|
|
385
|
-
getViewport: (
|
|
386
|
-
var
|
|
387
|
-
const
|
|
388
|
-
return (
|
|
391
|
+
getViewport: (s, r = 0, i) => {
|
|
392
|
+
var m;
|
|
393
|
+
const c = n().getDeckInstance(s);
|
|
394
|
+
return (m = c == null ? void 0 : c.getViewports(i)) == null ? void 0 : m[r];
|
|
389
395
|
},
|
|
390
|
-
addLayers: (
|
|
391
|
-
var
|
|
396
|
+
addLayers: (s, r) => t((i) => {
|
|
397
|
+
var l;
|
|
392
398
|
const a = {
|
|
393
|
-
...
|
|
394
|
-
},
|
|
395
|
-
return a[
|
|
396
|
-
...a[
|
|
397
|
-
layers: [...
|
|
399
|
+
...i.maps
|
|
400
|
+
}, c = ((l = a[s]) == null ? void 0 : l.layers) ?? [], m = /* @__PURE__ */ new Set([...c, ...r]);
|
|
401
|
+
return a[s] = {
|
|
402
|
+
...a[s],
|
|
403
|
+
layers: [...m]
|
|
398
404
|
}, {
|
|
399
405
|
maps: a
|
|
400
406
|
};
|
|
401
407
|
}),
|
|
402
|
-
removeLayers: (
|
|
403
|
-
var
|
|
408
|
+
removeLayers: (s, r) => t((i) => {
|
|
409
|
+
var m;
|
|
404
410
|
const a = {
|
|
405
|
-
...
|
|
406
|
-
},
|
|
407
|
-
return a[
|
|
408
|
-
...a[
|
|
409
|
-
layers:
|
|
411
|
+
...i.maps
|
|
412
|
+
}, c = ((m = a[s]) == null ? void 0 : m.layers) ?? [];
|
|
413
|
+
return a[s] = {
|
|
414
|
+
...a[s],
|
|
415
|
+
layers: c.filter((l) => !r.includes(l))
|
|
410
416
|
}, {
|
|
411
417
|
maps: a
|
|
412
418
|
};
|
|
413
419
|
})
|
|
414
420
|
});
|
|
415
|
-
},
|
|
416
|
-
const e =
|
|
421
|
+
}, ps = (o) => {
|
|
422
|
+
const e = o.reduce((t, n) => (n.viewState && (t.viewStates[n.id] = n.viewState, t.viewports[n.id] = null), t), {
|
|
417
423
|
viewStates: {},
|
|
418
424
|
viewports: {}
|
|
419
425
|
});
|
|
420
|
-
return (t,
|
|
426
|
+
return (t, n) => ({
|
|
421
427
|
viewports: e.viewports,
|
|
422
|
-
updateViewPort: (
|
|
423
|
-
|
|
424
|
-
|
|
428
|
+
updateViewPort: (s) => {
|
|
429
|
+
var a;
|
|
430
|
+
const r = n();
|
|
431
|
+
if (!((a = r.maps[s]) != null && a.isLoaded)) return;
|
|
432
|
+
const i = new $t(r.viewStates[s]);
|
|
433
|
+
t((c) => ({
|
|
425
434
|
viewports: {
|
|
426
|
-
...
|
|
427
|
-
[
|
|
435
|
+
...c.viewports,
|
|
436
|
+
[s]: i
|
|
428
437
|
}
|
|
429
438
|
}));
|
|
430
439
|
},
|
|
431
440
|
viewStates: e.viewStates,
|
|
432
|
-
setViewState: (
|
|
441
|
+
setViewState: (s, r) => t((i) => ({
|
|
433
442
|
viewStates: {
|
|
434
|
-
...
|
|
435
|
-
[
|
|
436
|
-
...
|
|
443
|
+
...i.viewStates,
|
|
444
|
+
[s]: {
|
|
445
|
+
...i.viewStates[s],
|
|
437
446
|
...r
|
|
438
447
|
}
|
|
439
448
|
}
|
|
440
449
|
})),
|
|
441
|
-
setZoom: (
|
|
450
|
+
setZoom: (s, r) => t((i) => ({
|
|
442
451
|
viewStates: {
|
|
443
|
-
...
|
|
444
|
-
[
|
|
445
|
-
...
|
|
452
|
+
...i.viewStates,
|
|
453
|
+
[s]: {
|
|
454
|
+
...i.viewStates[s],
|
|
446
455
|
zoom: r
|
|
447
456
|
}
|
|
448
457
|
}
|
|
449
458
|
})),
|
|
450
|
-
setMinZoom: (
|
|
459
|
+
setMinZoom: (s, r) => t((i) => ({
|
|
451
460
|
viewStates: {
|
|
452
|
-
...
|
|
453
|
-
[
|
|
454
|
-
...
|
|
461
|
+
...i.viewStates,
|
|
462
|
+
[s]: {
|
|
463
|
+
...i.viewStates[s],
|
|
455
464
|
minZoom: r
|
|
456
465
|
}
|
|
457
466
|
}
|
|
458
467
|
})),
|
|
459
|
-
setMaxZoom: (
|
|
468
|
+
setMaxZoom: (s, r) => t((i) => ({
|
|
460
469
|
viewStates: {
|
|
461
|
-
...
|
|
462
|
-
[
|
|
463
|
-
...
|
|
470
|
+
...i.viewStates,
|
|
471
|
+
[s]: {
|
|
472
|
+
...i.viewStates[s],
|
|
464
473
|
maxZoom: r
|
|
465
474
|
}
|
|
466
475
|
}
|
|
467
476
|
}))
|
|
468
477
|
});
|
|
469
|
-
},
|
|
470
|
-
fitBounds: (t,
|
|
471
|
-
const r = e(),
|
|
472
|
-
if (!
|
|
473
|
-
const
|
|
474
|
-
...
|
|
475
|
-
...
|
|
478
|
+
}, gs = (o, e) => ({
|
|
479
|
+
fitBounds: (t, n, s) => {
|
|
480
|
+
const r = e(), i = r.getViewport(t);
|
|
481
|
+
if (!i) return;
|
|
482
|
+
const c = {
|
|
483
|
+
...i == null ? void 0 : i.fitBounds(n, s == null ? void 0 : s.boundsOptions),
|
|
484
|
+
...s == null ? void 0 : s.viewStateOptions
|
|
476
485
|
};
|
|
477
|
-
r.setViewState(t,
|
|
486
|
+
r.setViewState(t, c);
|
|
478
487
|
},
|
|
479
|
-
flyTo: (t,
|
|
488
|
+
flyTo: (t, n, s = {}) => {
|
|
480
489
|
const r = e();
|
|
481
490
|
if (!r.getViewport(t)) return;
|
|
482
491
|
const a = {
|
|
483
|
-
...
|
|
484
|
-
...
|
|
485
|
-
},
|
|
486
|
-
...
|
|
492
|
+
...fs,
|
|
493
|
+
...s == null ? void 0 : s.viewStateOptions
|
|
494
|
+
}, c = {
|
|
495
|
+
...n,
|
|
487
496
|
...a
|
|
488
497
|
};
|
|
489
|
-
r.setViewState(t,
|
|
498
|
+
r.setViewState(t, c);
|
|
490
499
|
}
|
|
491
|
-
}),
|
|
492
|
-
...
|
|
493
|
-
...
|
|
494
|
-
...
|
|
495
|
-
})),
|
|
496
|
-
function
|
|
500
|
+
}), ys = (o) => Ve()((...e) => ({
|
|
501
|
+
...ms(o)(...e),
|
|
502
|
+
...ps(o)(...e),
|
|
503
|
+
...gs(...e)
|
|
504
|
+
})), rt = xe({});
|
|
505
|
+
function hs(o) {
|
|
497
506
|
const e = C(5), {
|
|
498
507
|
children: t,
|
|
499
|
-
values:
|
|
500
|
-
} =
|
|
508
|
+
values: n
|
|
509
|
+
} = o;
|
|
510
|
+
let s;
|
|
511
|
+
e[0] !== n ? (s = ys(n), e[0] = n, e[1] = s) : s = e[1];
|
|
512
|
+
const [r] = Se(s);
|
|
501
513
|
let i;
|
|
502
|
-
e[
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
return
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
function
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
return
|
|
539
|
-
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
return Object.
|
|
550
|
-
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
function ht(n, e) {
|
|
556
|
-
try {
|
|
557
|
-
return e in n;
|
|
558
|
-
} catch {
|
|
559
|
-
return !1;
|
|
514
|
+
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */ j(rt.Provider, { value: r, children: t }), e[2] = t, e[3] = r, e[4] = i) : i = e[4], i;
|
|
515
|
+
}
|
|
516
|
+
function O(o) {
|
|
517
|
+
const e = $e(rt);
|
|
518
|
+
if (!Object.keys(e).length)
|
|
519
|
+
throw new Error("Missing MapProvider in the tree");
|
|
520
|
+
return je(e, o);
|
|
521
|
+
}
|
|
522
|
+
function Ss(o) {
|
|
523
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
524
|
+
}
|
|
525
|
+
var De, Qe;
|
|
526
|
+
function vs() {
|
|
527
|
+
if (Qe) return De;
|
|
528
|
+
Qe = 1;
|
|
529
|
+
var o = function(y) {
|
|
530
|
+
return e(y) && !t(y);
|
|
531
|
+
};
|
|
532
|
+
function e(h) {
|
|
533
|
+
return !!h && typeof h == "object";
|
|
534
|
+
}
|
|
535
|
+
function t(h) {
|
|
536
|
+
var y = Object.prototype.toString.call(h);
|
|
537
|
+
return y === "[object RegExp]" || y === "[object Date]" || r(h);
|
|
538
|
+
}
|
|
539
|
+
var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
|
|
540
|
+
function r(h) {
|
|
541
|
+
return h.$$typeof === s;
|
|
542
|
+
}
|
|
543
|
+
function i(h) {
|
|
544
|
+
return Array.isArray(h) ? [] : {};
|
|
545
|
+
}
|
|
546
|
+
function a(h, y) {
|
|
547
|
+
return y.clone !== !1 && y.isMergeableObject(h) ? f(i(h), h, y) : h;
|
|
548
|
+
}
|
|
549
|
+
function c(h, y, L) {
|
|
550
|
+
return h.concat(y).map(function(S) {
|
|
551
|
+
return a(S, L);
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
function m(h, y) {
|
|
555
|
+
if (!y.customMerge)
|
|
556
|
+
return f;
|
|
557
|
+
var L = y.customMerge(h);
|
|
558
|
+
return typeof L == "function" ? L : f;
|
|
559
|
+
}
|
|
560
|
+
function l(h) {
|
|
561
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(h).filter(function(y) {
|
|
562
|
+
return Object.propertyIsEnumerable.call(h, y);
|
|
563
|
+
}) : [];
|
|
564
|
+
}
|
|
565
|
+
function p(h) {
|
|
566
|
+
return Object.keys(h).concat(l(h));
|
|
560
567
|
}
|
|
568
|
+
function d(h, y) {
|
|
569
|
+
try {
|
|
570
|
+
return y in h;
|
|
571
|
+
} catch {
|
|
572
|
+
return !1;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
function u(h, y) {
|
|
576
|
+
return d(h, y) && !(Object.hasOwnProperty.call(h, y) && Object.propertyIsEnumerable.call(h, y));
|
|
577
|
+
}
|
|
578
|
+
function g(h, y, L) {
|
|
579
|
+
var S = {};
|
|
580
|
+
return L.isMergeableObject(h) && p(h).forEach(function(v) {
|
|
581
|
+
S[v] = a(h[v], L);
|
|
582
|
+
}), p(y).forEach(function(v) {
|
|
583
|
+
u(h, v) || (d(h, v) && L.isMergeableObject(y[v]) ? S[v] = m(v, L)(h[v], y[v], L) : S[v] = a(y[v], L));
|
|
584
|
+
}), S;
|
|
585
|
+
}
|
|
586
|
+
function f(h, y, L) {
|
|
587
|
+
L = L || {}, L.arrayMerge = L.arrayMerge || c, L.isMergeableObject = L.isMergeableObject || o, L.cloneUnlessOtherwiseSpecified = a;
|
|
588
|
+
var S = Array.isArray(y), v = Array.isArray(h), P = S === v;
|
|
589
|
+
return P ? S ? L.arrayMerge(h, y, L) : g(h, y, L) : a(y, L);
|
|
590
|
+
}
|
|
591
|
+
f.all = function(y, L) {
|
|
592
|
+
if (!Array.isArray(y))
|
|
593
|
+
throw new Error("first argument should be an array");
|
|
594
|
+
return y.reduce(function(S, v) {
|
|
595
|
+
return f(S, v, L);
|
|
596
|
+
}, {});
|
|
597
|
+
};
|
|
598
|
+
var T = f;
|
|
599
|
+
return De = T, De;
|
|
561
600
|
}
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
var s = {};
|
|
567
|
-
return t.isMergeableObject(n) && Ze(n).forEach(function(i) {
|
|
568
|
-
s[i] = Le(n[i], t);
|
|
569
|
-
}), Ze(e).forEach(function(i) {
|
|
570
|
-
$n(n, i) || (ht(n, i) && t.isMergeableObject(e[i]) ? s[i] = Un(i, t)(n[i], e[i], t) : s[i] = Le(e[i], t));
|
|
571
|
-
}), s;
|
|
572
|
-
}
|
|
573
|
-
function Me(n, e, t) {
|
|
574
|
-
t = t || {}, t.arrayMerge = t.arrayMerge || xn, t.isMergeableObject = t.isMergeableObject || Tn, t.cloneUnlessOtherwiseSpecified = Le;
|
|
575
|
-
var s = Array.isArray(e), i = Array.isArray(n), r = s === i;
|
|
576
|
-
return r ? s ? t.arrayMerge(n, e, t) : Vn(n, e, t) : Le(e, t);
|
|
577
|
-
}
|
|
578
|
-
Me.all = function(e, t) {
|
|
579
|
-
if (!Array.isArray(e))
|
|
580
|
-
throw new Error("first argument should be an array");
|
|
581
|
-
return e.reduce(function(s, i) {
|
|
582
|
-
return Me(s, i, t);
|
|
583
|
-
}, {});
|
|
584
|
-
};
|
|
585
|
-
var Nn = Me, In = Nn;
|
|
586
|
-
const ve = /* @__PURE__ */ Cn(In);
|
|
587
|
-
function Bn({
|
|
588
|
-
mode: n,
|
|
601
|
+
var bs = vs();
|
|
602
|
+
const Le = /* @__PURE__ */ Ss(bs);
|
|
603
|
+
function Ls({
|
|
604
|
+
mode: o,
|
|
589
605
|
...e
|
|
590
606
|
}) {
|
|
591
|
-
const t =
|
|
607
|
+
const t = Ts(e);
|
|
592
608
|
return {
|
|
593
|
-
type:
|
|
609
|
+
type: et,
|
|
594
610
|
props: {
|
|
595
611
|
...t,
|
|
596
|
-
mode:
|
|
612
|
+
mode: o
|
|
597
613
|
}
|
|
598
614
|
};
|
|
599
615
|
}
|
|
600
|
-
function
|
|
601
|
-
layerProps:
|
|
616
|
+
function Ts({
|
|
617
|
+
layerProps: o,
|
|
602
618
|
onEdit: e,
|
|
603
619
|
guideColor: t,
|
|
604
|
-
fillColor:
|
|
605
|
-
pointColor:
|
|
620
|
+
fillColor: n,
|
|
621
|
+
pointColor: s
|
|
606
622
|
}) {
|
|
607
|
-
const r =
|
|
623
|
+
const r = Le(o, {
|
|
608
624
|
modeConfig: {
|
|
609
625
|
// // We force distance due to conversion is addressed at feature getText level
|
|
610
626
|
// formatTooltip: (_distance: number) => {
|
|
@@ -613,792 +629,299 @@ function Gn({
|
|
|
613
629
|
preventOverlappingLines: !0
|
|
614
630
|
},
|
|
615
631
|
onEdit: e
|
|
616
|
-
}),
|
|
632
|
+
}), i = Le(ds, {
|
|
617
633
|
getTentativeLineColor: t,
|
|
618
|
-
getTentativeFillColor:
|
|
634
|
+
getTentativeFillColor: n,
|
|
619
635
|
getLineColor: t,
|
|
620
|
-
getFillColor:
|
|
621
|
-
getEditHandlePointColor:
|
|
636
|
+
getFillColor: n,
|
|
637
|
+
getEditHandlePointColor: s,
|
|
622
638
|
getEditHandlePointOutlineColor: t,
|
|
623
|
-
dataComparator: (
|
|
639
|
+
dataComparator: (c, m) => c.features[0] === m.features[0]
|
|
624
640
|
});
|
|
625
|
-
return
|
|
641
|
+
return Le(i, r);
|
|
626
642
|
}
|
|
627
|
-
const
|
|
628
|
-
data:
|
|
643
|
+
const Ms = (o) => Ve()((e) => ({
|
|
644
|
+
data: o.reduce((n, s) => {
|
|
629
645
|
const {
|
|
630
646
|
enabled: r = !1,
|
|
631
|
-
mapId:
|
|
647
|
+
mapId: i,
|
|
632
648
|
modeInstance: a,
|
|
633
|
-
modes:
|
|
634
|
-
modeSelected:
|
|
635
|
-
values:
|
|
636
|
-
} =
|
|
637
|
-
return
|
|
649
|
+
modes: c = He,
|
|
650
|
+
modeSelected: m = He.polygon.value,
|
|
651
|
+
values: l = {}
|
|
652
|
+
} = s;
|
|
653
|
+
return n[i] = {
|
|
638
654
|
enabled: r,
|
|
639
655
|
modeInstance: a,
|
|
640
|
-
modes:
|
|
641
|
-
modeSelected:
|
|
642
|
-
values:
|
|
643
|
-
},
|
|
656
|
+
modes: c,
|
|
657
|
+
modeSelected: m,
|
|
658
|
+
values: l
|
|
659
|
+
}, n;
|
|
644
660
|
}, {}),
|
|
645
|
-
setEnabled: (
|
|
661
|
+
setEnabled: (n, s) => {
|
|
646
662
|
e((r) => ({
|
|
647
663
|
data: {
|
|
648
664
|
...r.data,
|
|
649
|
-
[
|
|
650
|
-
...r.data[
|
|
651
|
-
enabled:
|
|
652
|
-
visible:
|
|
665
|
+
[n]: {
|
|
666
|
+
...r.data[n],
|
|
667
|
+
enabled: s,
|
|
668
|
+
visible: s
|
|
653
669
|
}
|
|
654
670
|
}
|
|
655
671
|
}));
|
|
656
672
|
},
|
|
657
|
-
setValue: (
|
|
658
|
-
e((
|
|
673
|
+
setValue: (n, s, r) => {
|
|
674
|
+
e((i) => {
|
|
659
675
|
const a = {
|
|
660
|
-
...
|
|
661
|
-
},
|
|
676
|
+
...i.data[n].values
|
|
677
|
+
}, c = a[s] ?? {
|
|
662
678
|
type: "mask"
|
|
663
679
|
};
|
|
664
|
-
return a[
|
|
665
|
-
...
|
|
680
|
+
return a[s] = {
|
|
681
|
+
...c,
|
|
666
682
|
...r,
|
|
667
|
-
id:
|
|
668
|
-
}, r || delete a[
|
|
683
|
+
id: s
|
|
684
|
+
}, r || delete a[s], {
|
|
669
685
|
data: {
|
|
670
|
-
...
|
|
671
|
-
[
|
|
672
|
-
...
|
|
686
|
+
...i.data,
|
|
687
|
+
[n]: {
|
|
688
|
+
...i.data[n],
|
|
673
689
|
values: a
|
|
674
690
|
}
|
|
675
691
|
}
|
|
676
692
|
};
|
|
677
693
|
});
|
|
678
694
|
},
|
|
679
|
-
setVisibility: (
|
|
680
|
-
e((
|
|
695
|
+
setVisibility: (n, s, r) => {
|
|
696
|
+
e((i) => {
|
|
681
697
|
const a = {
|
|
682
|
-
...
|
|
683
|
-
},
|
|
684
|
-
return
|
|
698
|
+
...i.data[n].values
|
|
699
|
+
}, c = a[s] ?? {};
|
|
700
|
+
return c.visible = r, {
|
|
685
701
|
data: {
|
|
686
|
-
...
|
|
687
|
-
[
|
|
688
|
-
...
|
|
702
|
+
...i.data,
|
|
703
|
+
[n]: {
|
|
704
|
+
...i.data[n],
|
|
689
705
|
values: {
|
|
690
706
|
...a,
|
|
691
|
-
[
|
|
707
|
+
[s]: c
|
|
692
708
|
}
|
|
693
709
|
}
|
|
694
710
|
}
|
|
695
711
|
};
|
|
696
712
|
});
|
|
697
713
|
},
|
|
698
|
-
setModeSelected: (
|
|
714
|
+
setModeSelected: (n, s) => {
|
|
699
715
|
e((r) => ({
|
|
700
716
|
data: {
|
|
701
717
|
...r.data,
|
|
702
|
-
[
|
|
703
|
-
...r.data[
|
|
704
|
-
modeSelected:
|
|
718
|
+
[n]: {
|
|
719
|
+
...r.data[n],
|
|
720
|
+
modeSelected: s
|
|
705
721
|
}
|
|
706
722
|
}
|
|
707
723
|
}));
|
|
708
724
|
},
|
|
709
|
-
setModeInstance: (
|
|
725
|
+
setModeInstance: (n, s) => {
|
|
710
726
|
e((r) => ({
|
|
711
727
|
data: {
|
|
712
728
|
...r.data,
|
|
713
|
-
[
|
|
714
|
-
...r.data[
|
|
715
|
-
modeInstance:
|
|
729
|
+
[n]: {
|
|
730
|
+
...r.data[n],
|
|
731
|
+
modeInstance: s
|
|
716
732
|
}
|
|
717
733
|
}
|
|
718
734
|
}));
|
|
719
735
|
}
|
|
720
|
-
})),
|
|
721
|
-
function
|
|
736
|
+
})), it = xe({});
|
|
737
|
+
function _s(o) {
|
|
722
738
|
const e = C(5), {
|
|
723
739
|
children: t,
|
|
724
|
-
values:
|
|
725
|
-
} =
|
|
740
|
+
values: n
|
|
741
|
+
} = o;
|
|
742
|
+
let s;
|
|
743
|
+
e[0] !== n ? (s = () => Ms(n), e[0] = n, e[1] = s) : s = e[1];
|
|
744
|
+
const [r] = Se(s);
|
|
726
745
|
let i;
|
|
727
|
-
e[
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}
|
|
738
|
-
function Kn({
|
|
739
|
-
mapId: n,
|
|
746
|
+
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */ j(it.Provider, { value: r, children: t }), e[2] = t, e[3] = r, e[4] = i) : i = e[4], i;
|
|
747
|
+
}
|
|
748
|
+
function U(o) {
|
|
749
|
+
const e = $e(it);
|
|
750
|
+
if (!Object.keys(e).length)
|
|
751
|
+
throw new Error("Missing LassoToolsProvider in the tree");
|
|
752
|
+
return je(e, o);
|
|
753
|
+
}
|
|
754
|
+
function Ps({
|
|
755
|
+
mapId: o,
|
|
740
756
|
children: e
|
|
741
757
|
}) {
|
|
742
|
-
const t =
|
|
743
|
-
var
|
|
744
|
-
return (
|
|
745
|
-
}),
|
|
746
|
-
var
|
|
747
|
-
return (
|
|
748
|
-
}), r =
|
|
749
|
-
var
|
|
750
|
-
return (
|
|
751
|
-
}),
|
|
752
|
-
var
|
|
753
|
-
return (
|
|
754
|
-
}),
|
|
755
|
-
|
|
756
|
-
const
|
|
757
|
-
if (
|
|
758
|
-
const
|
|
759
|
-
|
|
758
|
+
const t = U((u) => {
|
|
759
|
+
var g;
|
|
760
|
+
return (g = u.data[o]) == null ? void 0 : g.enabled;
|
|
761
|
+
}), n = U((u) => u.setEnabled), s = U((u) => {
|
|
762
|
+
var g;
|
|
763
|
+
return (g = u.data[o]) == null ? void 0 : g.values;
|
|
764
|
+
}), r = U((u) => u.setValue), i = U((u) => u.setVisibility), a = U((u) => {
|
|
765
|
+
var g;
|
|
766
|
+
return (g = u.data[o]) == null ? void 0 : g.modeSelected;
|
|
767
|
+
}), c = U((u) => u.setModeSelected), m = U((u) => {
|
|
768
|
+
var g;
|
|
769
|
+
return (g = u.data[o]) == null ? void 0 : g.modes;
|
|
770
|
+
}), l = U((u) => u.setModeInstance);
|
|
771
|
+
X(() => {
|
|
772
|
+
const u = m[a];
|
|
773
|
+
if (u && t) {
|
|
774
|
+
const g = u.mode, f = new g();
|
|
775
|
+
l(o, f);
|
|
760
776
|
}
|
|
761
|
-
}, [
|
|
777
|
+
}, [t, o, a, m, l]);
|
|
762
778
|
const [
|
|
763
779
|
p
|
|
764
780
|
// , draw
|
|
765
781
|
] = ue(() => {
|
|
766
|
-
const
|
|
767
|
-
var
|
|
782
|
+
const u = (T) => {
|
|
783
|
+
var h;
|
|
768
784
|
return {
|
|
769
|
-
id:
|
|
770
|
-
visible:
|
|
771
|
-
label: (
|
|
785
|
+
id: T.id,
|
|
786
|
+
visible: T.visible,
|
|
787
|
+
label: (h = T.properties) == null ? void 0 : h.label
|
|
772
788
|
};
|
|
773
789
|
};
|
|
774
790
|
return [
|
|
775
|
-
Object.values(
|
|
791
|
+
Object.values(s).filter((T) => T.type === "mask").map(u)
|
|
776
792
|
// , draw
|
|
777
793
|
];
|
|
778
|
-
}, [
|
|
779
|
-
|
|
780
|
-
}, [
|
|
794
|
+
}, [s]), d = q((u) => {
|
|
795
|
+
n(o, !!u), c(o, u);
|
|
796
|
+
}, [o, n, c]);
|
|
781
797
|
return e({
|
|
782
|
-
mapId:
|
|
798
|
+
mapId: o,
|
|
783
799
|
enabled: t,
|
|
784
|
-
modes:
|
|
800
|
+
modes: m,
|
|
785
801
|
modeSelected: a,
|
|
786
802
|
values: {
|
|
787
803
|
mask: p
|
|
788
804
|
// draw,
|
|
789
805
|
},
|
|
790
|
-
setValue:
|
|
791
|
-
setEnabled:
|
|
792
|
-
setVisibility:
|
|
793
|
-
setModeSelected:
|
|
806
|
+
setValue: q((u) => r(o, u), [o, r]),
|
|
807
|
+
setEnabled: q((u) => n(o, u), [o, n]),
|
|
808
|
+
setVisibility: q((u, g) => i(o, u, g), [o, i]),
|
|
809
|
+
setModeSelected: d
|
|
794
810
|
});
|
|
795
811
|
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
})];
|
|
799
|
-
function jn({
|
|
800
|
-
children: n,
|
|
801
|
-
mapId: e,
|
|
802
|
-
defaultProps: {
|
|
803
|
-
styles: t = Ue.styles,
|
|
804
|
-
labels: s
|
|
805
|
-
} = {
|
|
806
|
-
styles: Ue.styles,
|
|
807
|
-
labels: Ue.labels
|
|
808
|
-
},
|
|
809
|
-
layerProps: i = {},
|
|
810
|
-
defaultType: r = "mask"
|
|
812
|
+
function at({
|
|
813
|
+
values: o
|
|
811
814
|
}) {
|
|
812
|
-
|
|
813
|
-
var E;
|
|
814
|
-
return (E = g.data[e]) == null ? void 0 : E.enabled;
|
|
815
|
-
}), a = D((g) => g.setEnabled), l = D((g) => {
|
|
816
|
-
var E;
|
|
817
|
-
return (E = g.data[e]) == null ? void 0 : E.values;
|
|
818
|
-
}), c = D((g) => g.setValue), u = D((g) => {
|
|
819
|
-
var E;
|
|
820
|
-
return (E = g.data[e]) == null ? void 0 : E.modeInstance;
|
|
821
|
-
}), p = D((g) => {
|
|
822
|
-
var E;
|
|
823
|
-
return (E = g.data[e]) == null ? void 0 : E.modeSelected;
|
|
824
|
-
}), h = we((g) => g.setLayer), d = k((g) => g.addLayers), m = k((g) => g.removeLayers), [f, M] = ge(() => _e()), S = ue(() => Object.values(l ?? {}).filter((g) => g.type === "mask"), [l]), v = Dt(S.length);
|
|
825
|
-
ce(() => (o && d(e, [Fe]), () => {
|
|
826
|
-
M(_e()), m(e, [Fe]);
|
|
827
|
-
}), [d, o, e, m]);
|
|
828
|
-
const y = R(() => {
|
|
829
|
-
M(_e()), a(e, !1);
|
|
830
|
-
}, [e, a]), b = R(({
|
|
831
|
-
editType: g,
|
|
832
|
-
updatedData: E
|
|
833
|
-
}) => {
|
|
834
|
-
var L;
|
|
835
|
-
if (g === B.cancel) {
|
|
836
|
-
y();
|
|
837
|
-
return;
|
|
838
|
-
}
|
|
839
|
-
if (M(E), g !== B.updateTentativeFeature && g === B.addFeature) {
|
|
840
|
-
const A = E.features[0];
|
|
841
|
-
(L = A.properties).label ?? (L.label = `${s == null ? void 0 : s.mask} ${v.current + 1}`), v.current += 1;
|
|
842
|
-
const O = A.id ?? crypto.randomUUID();
|
|
843
|
-
c(e, O, {
|
|
844
|
-
geometry: A.geometry,
|
|
845
|
-
properties: A.properties,
|
|
846
|
-
visible: !0,
|
|
847
|
-
type: r
|
|
848
|
-
}), y();
|
|
849
|
-
}
|
|
850
|
-
}, [y, s == null ? void 0 : s.mask, c, e, r]);
|
|
851
|
-
ce(() => {
|
|
852
|
-
const g = f.features.length > 0, {
|
|
853
|
-
border: E,
|
|
854
|
-
point: L,
|
|
855
|
-
fill: A
|
|
856
|
-
} = t.colors.editing, O = Bn({
|
|
857
|
-
layerProps: {
|
|
858
|
-
...i.mask,
|
|
859
|
-
pickable: !0,
|
|
860
|
-
data: f,
|
|
861
|
-
selectedFeatureIndexes: g ? [0] : []
|
|
862
|
-
},
|
|
863
|
-
guideColor: E,
|
|
864
|
-
fillColor: A,
|
|
865
|
-
pointColor: L,
|
|
866
|
-
onEdit: b,
|
|
867
|
-
mode: u
|
|
868
|
-
});
|
|
869
|
-
h(Fe, O);
|
|
870
|
-
}, [f, i.mask, u, b, h, t.colors.editing]);
|
|
871
|
-
const P = ue(() => ({
|
|
872
|
-
type: "FeatureCollection",
|
|
873
|
-
features: S.map((g) => ({
|
|
874
|
-
type: "Feature",
|
|
875
|
-
geometry: g.geometry,
|
|
876
|
-
properties: g.properties,
|
|
877
|
-
id: g.id
|
|
878
|
-
}))
|
|
879
|
-
}), [S]), _ = ue(() => {
|
|
880
|
-
const g = S.filter((L) => L.visible).map((L) => L.id), E = f.features.map((L) => L.id);
|
|
881
|
-
return E.length ? g.filter((L) => !E.includes(L)) : g;
|
|
882
|
-
}, [f.features, S]);
|
|
883
|
-
return ce(() => {
|
|
884
|
-
const g = {
|
|
885
|
-
...Pe,
|
|
886
|
-
pickable: o && p === "edit",
|
|
887
|
-
visible: !0,
|
|
888
|
-
data: P,
|
|
889
|
-
getLineColor: t.colors.finished.border,
|
|
890
|
-
getFillColor: t.colors.finished.fill,
|
|
891
|
-
extensions: Wn,
|
|
892
|
-
getFilterValue: (E) => Number(_.includes(E.id)),
|
|
893
|
-
filterRange: [1, 1],
|
|
894
|
-
updateTriggers: {
|
|
895
|
-
getFilterValue: _
|
|
896
|
-
},
|
|
897
|
-
onClick: ({
|
|
898
|
-
object: E
|
|
899
|
-
}) => {
|
|
900
|
-
const L = _e();
|
|
901
|
-
L.features.push(E), M(L), a(e, !0);
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
|
-
return h(Pe.id, {
|
|
905
|
-
type: Jt,
|
|
906
|
-
props: g
|
|
907
|
-
}), d(e, [Pe.id]), () => {
|
|
908
|
-
m(e, [Pe.id]);
|
|
909
|
-
};
|
|
910
|
-
}, [d, o, e, P, _, p, m, a, h, t.colors.finished.border, t.colors.finished.fill]), n;
|
|
911
|
-
}
|
|
912
|
-
function _e() {
|
|
913
|
-
return {
|
|
914
|
-
type: "FeatureCollection",
|
|
915
|
-
features: []
|
|
916
|
-
};
|
|
917
|
-
}
|
|
918
|
-
jn.Controls = Kn;
|
|
919
|
-
var Qe = 63710088e-1;
|
|
920
|
-
function Ve(n, e, t = {}) {
|
|
921
|
-
const s = { type: "Feature" };
|
|
922
|
-
return (t.id === 0 || t.id) && (s.id = t.id), t.bbox && (s.bbox = t.bbox), s.properties = e || {}, s.geometry = n, s;
|
|
923
|
-
}
|
|
924
|
-
function St(n, e, t = {}) {
|
|
925
|
-
if (!n)
|
|
926
|
-
throw new Error("coordinates is required");
|
|
927
|
-
if (!Array.isArray(n))
|
|
928
|
-
throw new Error("coordinates must be an Array");
|
|
929
|
-
if (n.length < 2)
|
|
930
|
-
throw new Error("coordinates must be at least 2 numbers long");
|
|
931
|
-
if (!Xe(n[0]) || !Xe(n[1]))
|
|
932
|
-
throw new Error("coordinates must contain numbers");
|
|
933
|
-
return Ve({
|
|
934
|
-
type: "Point",
|
|
935
|
-
coordinates: n
|
|
936
|
-
}, e, t);
|
|
937
|
-
}
|
|
938
|
-
function Ye(n, e = {}) {
|
|
939
|
-
const t = { type: "FeatureCollection" };
|
|
940
|
-
return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = n, t;
|
|
941
|
-
}
|
|
942
|
-
function Xe(n) {
|
|
943
|
-
return !isNaN(n) && n !== null && !Array.isArray(n);
|
|
944
|
-
}
|
|
945
|
-
function vt(n, e, t) {
|
|
946
|
-
if (n !== null)
|
|
947
|
-
for (var s, i, r, o, a, l, c, u = 0, p = 0, h, d = n.type, m = d === "FeatureCollection", f = d === "Feature", M = m ? n.features.length : 1, S = 0; S < M; S++) {
|
|
948
|
-
c = m ? n.features[S].geometry : f ? n.geometry : n, h = c ? c.type === "GeometryCollection" : !1, a = h ? c.geometries.length : 1;
|
|
949
|
-
for (var v = 0; v < a; v++) {
|
|
950
|
-
var y = 0, b = 0;
|
|
951
|
-
if (o = h ? c.geometries[v] : c, o !== null) {
|
|
952
|
-
l = o.coordinates;
|
|
953
|
-
var P = o.type;
|
|
954
|
-
switch (u = P === "Polygon" || P === "MultiPolygon" ? 1 : 0, P) {
|
|
955
|
-
case null:
|
|
956
|
-
break;
|
|
957
|
-
case "Point":
|
|
958
|
-
if (e(
|
|
959
|
-
l,
|
|
960
|
-
p,
|
|
961
|
-
S,
|
|
962
|
-
y,
|
|
963
|
-
b
|
|
964
|
-
) === !1)
|
|
965
|
-
return !1;
|
|
966
|
-
p++, y++;
|
|
967
|
-
break;
|
|
968
|
-
case "LineString":
|
|
969
|
-
case "MultiPoint":
|
|
970
|
-
for (s = 0; s < l.length; s++) {
|
|
971
|
-
if (e(
|
|
972
|
-
l[s],
|
|
973
|
-
p,
|
|
974
|
-
S,
|
|
975
|
-
y,
|
|
976
|
-
b
|
|
977
|
-
) === !1)
|
|
978
|
-
return !1;
|
|
979
|
-
p++, P === "MultiPoint" && y++;
|
|
980
|
-
}
|
|
981
|
-
P === "LineString" && y++;
|
|
982
|
-
break;
|
|
983
|
-
case "Polygon":
|
|
984
|
-
case "MultiLineString":
|
|
985
|
-
for (s = 0; s < l.length; s++) {
|
|
986
|
-
for (i = 0; i < l[s].length - u; i++) {
|
|
987
|
-
if (e(
|
|
988
|
-
l[s][i],
|
|
989
|
-
p,
|
|
990
|
-
S,
|
|
991
|
-
y,
|
|
992
|
-
b
|
|
993
|
-
) === !1)
|
|
994
|
-
return !1;
|
|
995
|
-
p++;
|
|
996
|
-
}
|
|
997
|
-
P === "MultiLineString" && y++, P === "Polygon" && b++;
|
|
998
|
-
}
|
|
999
|
-
P === "Polygon" && y++;
|
|
1000
|
-
break;
|
|
1001
|
-
case "MultiPolygon":
|
|
1002
|
-
for (s = 0; s < l.length; s++) {
|
|
1003
|
-
for (b = 0, i = 0; i < l[s].length; i++) {
|
|
1004
|
-
for (r = 0; r < l[s][i].length - u; r++) {
|
|
1005
|
-
if (e(
|
|
1006
|
-
l[s][i][r],
|
|
1007
|
-
p,
|
|
1008
|
-
S,
|
|
1009
|
-
y,
|
|
1010
|
-
b
|
|
1011
|
-
) === !1)
|
|
1012
|
-
return !1;
|
|
1013
|
-
p++;
|
|
1014
|
-
}
|
|
1015
|
-
b++;
|
|
1016
|
-
}
|
|
1017
|
-
y++;
|
|
1018
|
-
}
|
|
1019
|
-
break;
|
|
1020
|
-
case "GeometryCollection":
|
|
1021
|
-
for (s = 0; s < o.geometries.length; s++)
|
|
1022
|
-
if (vt(o.geometries[s], e) === !1)
|
|
1023
|
-
return !1;
|
|
1024
|
-
break;
|
|
1025
|
-
default:
|
|
1026
|
-
throw new Error("Unknown Geometry Type");
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
function zn(n, e) {
|
|
1033
|
-
var t, s, i, r, o, a, l, c, u, p, h = 0, d = n.type === "FeatureCollection", m = n.type === "Feature", f = d ? n.features.length : 1;
|
|
1034
|
-
for (t = 0; t < f; t++) {
|
|
1035
|
-
for (a = d ? n.features[t].geometry : m ? n.geometry : n, c = d ? n.features[t].properties : m ? n.properties : {}, u = d ? n.features[t].bbox : m ? n.bbox : void 0, p = d ? n.features[t].id : m ? n.id : void 0, l = a ? a.type === "GeometryCollection" : !1, o = l ? a.geometries.length : 1, i = 0; i < o; i++) {
|
|
1036
|
-
if (r = l ? a.geometries[i] : a, r === null) {
|
|
1037
|
-
if (e(
|
|
1038
|
-
null,
|
|
1039
|
-
h,
|
|
1040
|
-
c,
|
|
1041
|
-
u,
|
|
1042
|
-
p
|
|
1043
|
-
) === !1)
|
|
1044
|
-
return !1;
|
|
1045
|
-
continue;
|
|
1046
|
-
}
|
|
1047
|
-
switch (r.type) {
|
|
1048
|
-
case "Point":
|
|
1049
|
-
case "LineString":
|
|
1050
|
-
case "MultiPoint":
|
|
1051
|
-
case "Polygon":
|
|
1052
|
-
case "MultiLineString":
|
|
1053
|
-
case "MultiPolygon": {
|
|
1054
|
-
if (e(
|
|
1055
|
-
r,
|
|
1056
|
-
h,
|
|
1057
|
-
c,
|
|
1058
|
-
u,
|
|
1059
|
-
p
|
|
1060
|
-
) === !1)
|
|
1061
|
-
return !1;
|
|
1062
|
-
break;
|
|
1063
|
-
}
|
|
1064
|
-
case "GeometryCollection": {
|
|
1065
|
-
for (s = 0; s < r.geometries.length; s++)
|
|
1066
|
-
if (e(
|
|
1067
|
-
r.geometries[s],
|
|
1068
|
-
h,
|
|
1069
|
-
c,
|
|
1070
|
-
u,
|
|
1071
|
-
p
|
|
1072
|
-
) === !1)
|
|
1073
|
-
return !1;
|
|
1074
|
-
break;
|
|
1075
|
-
}
|
|
1076
|
-
default:
|
|
1077
|
-
throw new Error("Unknown Geometry Type");
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
h++;
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
function Zn(n, e, t) {
|
|
1084
|
-
var s = t;
|
|
1085
|
-
return zn(
|
|
1086
|
-
n,
|
|
1087
|
-
function(i, r, o, a, l) {
|
|
1088
|
-
r === 0 && t === void 0 ? s = i : s = e(
|
|
1089
|
-
s,
|
|
1090
|
-
i,
|
|
1091
|
-
r,
|
|
1092
|
-
o,
|
|
1093
|
-
a,
|
|
1094
|
-
l
|
|
1095
|
-
);
|
|
1096
|
-
}
|
|
1097
|
-
), s;
|
|
1098
|
-
}
|
|
1099
|
-
function Je(n) {
|
|
1100
|
-
return Zn(
|
|
1101
|
-
n,
|
|
1102
|
-
(e, t) => e + Qn(t),
|
|
1103
|
-
0
|
|
1104
|
-
);
|
|
1105
|
-
}
|
|
1106
|
-
function Qn(n) {
|
|
1107
|
-
let e = 0, t;
|
|
1108
|
-
switch (n.type) {
|
|
1109
|
-
case "Polygon":
|
|
1110
|
-
return et(n.coordinates);
|
|
1111
|
-
case "MultiPolygon":
|
|
1112
|
-
for (t = 0; t < n.coordinates.length; t++)
|
|
1113
|
-
e += et(n.coordinates[t]);
|
|
1114
|
-
return e;
|
|
1115
|
-
case "Point":
|
|
1116
|
-
case "MultiPoint":
|
|
1117
|
-
case "LineString":
|
|
1118
|
-
case "MultiLineString":
|
|
1119
|
-
return 0;
|
|
1120
|
-
}
|
|
1121
|
-
return 0;
|
|
1122
|
-
}
|
|
1123
|
-
function et(n) {
|
|
1124
|
-
let e = 0;
|
|
1125
|
-
if (n && n.length > 0) {
|
|
1126
|
-
e += Math.abs(tt(n[0]));
|
|
1127
|
-
for (let t = 1; t < n.length; t++)
|
|
1128
|
-
e -= Math.abs(tt(n[t]));
|
|
1129
|
-
}
|
|
1130
|
-
return e;
|
|
1131
|
-
}
|
|
1132
|
-
var Yn = Qe * Qe / 2, qe = Math.PI / 180;
|
|
1133
|
-
function tt(n) {
|
|
1134
|
-
const e = n.length - 1;
|
|
1135
|
-
if (e <= 2)
|
|
1136
|
-
return 0;
|
|
1137
|
-
let t = 0, s = 0;
|
|
1138
|
-
for (; s < e; ) {
|
|
1139
|
-
const i = n[s], r = n[s + 1 === e ? 0 : s + 1], o = n[s + 2 >= e ? (s + 2) % e : s + 2], a = i[0] * qe, l = r[1] * qe, c = o[0] * qe;
|
|
1140
|
-
t += (c - a) * Math.sin(l), s++;
|
|
1141
|
-
}
|
|
1142
|
-
return t * Yn;
|
|
1143
|
-
}
|
|
1144
|
-
class Mt {
|
|
1145
|
-
constructor(e = [], t = Xn) {
|
|
1146
|
-
if (this.data = e, this.length = this.data.length, this.compare = t, this.length > 0)
|
|
1147
|
-
for (let s = (this.length >> 1) - 1; s >= 0; s--) this._down(s);
|
|
1148
|
-
}
|
|
1149
|
-
push(e) {
|
|
1150
|
-
this.data.push(e), this.length++, this._up(this.length - 1);
|
|
1151
|
-
}
|
|
1152
|
-
pop() {
|
|
1153
|
-
if (this.length === 0) return;
|
|
1154
|
-
const e = this.data[0], t = this.data.pop();
|
|
1155
|
-
return this.length--, this.length > 0 && (this.data[0] = t, this._down(0)), e;
|
|
1156
|
-
}
|
|
1157
|
-
peek() {
|
|
1158
|
-
return this.data[0];
|
|
1159
|
-
}
|
|
1160
|
-
_up(e) {
|
|
1161
|
-
const { data: t, compare: s } = this, i = t[e];
|
|
1162
|
-
for (; e > 0; ) {
|
|
1163
|
-
const r = e - 1 >> 1, o = t[r];
|
|
1164
|
-
if (s(i, o) >= 0) break;
|
|
1165
|
-
t[e] = o, e = r;
|
|
1166
|
-
}
|
|
1167
|
-
t[e] = i;
|
|
1168
|
-
}
|
|
1169
|
-
_down(e) {
|
|
1170
|
-
const { data: t, compare: s } = this, i = this.length >> 1, r = t[e];
|
|
1171
|
-
for (; e < i; ) {
|
|
1172
|
-
let o = (e << 1) + 1, a = t[o];
|
|
1173
|
-
const l = o + 1;
|
|
1174
|
-
if (l < this.length && s(t[l], a) < 0 && (o = l, a = t[l]), s(a, r) >= 0) break;
|
|
1175
|
-
t[e] = a, e = o;
|
|
1176
|
-
}
|
|
1177
|
-
t[e] = r;
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
function Xn(n, e) {
|
|
1181
|
-
return n < e ? -1 : n > e ? 1 : 0;
|
|
1182
|
-
}
|
|
1183
|
-
function bt(n, e) {
|
|
1184
|
-
return n.p.x > e.p.x ? 1 : n.p.x < e.p.x ? -1 : n.p.y !== e.p.y ? n.p.y > e.p.y ? 1 : -1 : 1;
|
|
1185
|
-
}
|
|
1186
|
-
function Jn(n, e) {
|
|
1187
|
-
return n.rightSweepEvent.p.x > e.rightSweepEvent.p.x ? 1 : n.rightSweepEvent.p.x < e.rightSweepEvent.p.x ? -1 : n.rightSweepEvent.p.y !== e.rightSweepEvent.p.y ? n.rightSweepEvent.p.y < e.rightSweepEvent.p.y ? 1 : -1 : 1;
|
|
1188
|
-
}
|
|
1189
|
-
class nt {
|
|
1190
|
-
constructor(e, t, s, i) {
|
|
1191
|
-
this.p = {
|
|
1192
|
-
x: e[0],
|
|
1193
|
-
y: e[1]
|
|
1194
|
-
}, this.featureId = t, this.ringId = s, this.eventId = i, this.otherEvent = null, this.isLeftEndpoint = null;
|
|
1195
|
-
}
|
|
1196
|
-
isSamePoint(e) {
|
|
1197
|
-
return this.p.x === e.p.x && this.p.y === e.p.y;
|
|
1198
|
-
}
|
|
815
|
+
return Object.values(o ?? {}).filter((e) => e.type === "mask");
|
|
1199
816
|
}
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
const t = n.features;
|
|
1203
|
-
for (let s = 0; s < t.length; s++)
|
|
1204
|
-
st(t[s], e);
|
|
1205
|
-
} else
|
|
1206
|
-
st(n, e);
|
|
1207
|
-
}
|
|
1208
|
-
let Ce = 0, Te = 0, ke = 0;
|
|
1209
|
-
function st(n, e) {
|
|
1210
|
-
const t = n.type === "Feature" ? n.geometry : n;
|
|
1211
|
-
let s = t.coordinates;
|
|
1212
|
-
(t.type === "Polygon" || t.type === "MultiLineString") && (s = [s]), t.type === "LineString" && (s = [[s]]);
|
|
1213
|
-
for (let i = 0; i < s.length; i++)
|
|
1214
|
-
for (let r = 0; r < s[i].length; r++) {
|
|
1215
|
-
let o = s[i][r][0], a = null;
|
|
1216
|
-
Te = Te + 1;
|
|
1217
|
-
for (let l = 0; l < s[i][r].length - 1; l++) {
|
|
1218
|
-
a = s[i][r][l + 1];
|
|
1219
|
-
const c = new nt(o, Ce, Te, ke), u = new nt(a, Ce, Te, ke + 1);
|
|
1220
|
-
c.otherEvent = u, u.otherEvent = c, bt(c, u) > 0 ? (u.isLeftEndpoint = !0, c.isLeftEndpoint = !1) : (c.isLeftEndpoint = !0, u.isLeftEndpoint = !1), e.push(c), e.push(u), o = a, ke = ke + 1;
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
Ce = Ce + 1;
|
|
1224
|
-
}
|
|
1225
|
-
class ts {
|
|
1226
|
-
constructor(e) {
|
|
1227
|
-
this.leftSweepEvent = e, this.rightSweepEvent = e.otherEvent;
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
function ns(n, e) {
|
|
1231
|
-
if (n === null || e === null || n.leftSweepEvent.ringId === e.leftSweepEvent.ringId && (n.rightSweepEvent.isSamePoint(e.leftSweepEvent) || n.rightSweepEvent.isSamePoint(e.leftSweepEvent) || n.rightSweepEvent.isSamePoint(e.rightSweepEvent) || n.leftSweepEvent.isSamePoint(e.leftSweepEvent) || n.leftSweepEvent.isSamePoint(e.rightSweepEvent))) return !1;
|
|
1232
|
-
const t = n.leftSweepEvent.p.x, s = n.leftSweepEvent.p.y, i = n.rightSweepEvent.p.x, r = n.rightSweepEvent.p.y, o = e.leftSweepEvent.p.x, a = e.leftSweepEvent.p.y, l = e.rightSweepEvent.p.x, c = e.rightSweepEvent.p.y, u = (c - a) * (i - t) - (l - o) * (r - s), p = (l - o) * (s - a) - (c - a) * (t - o), h = (i - t) * (s - a) - (r - s) * (t - o);
|
|
1233
|
-
if (u === 0)
|
|
1234
|
-
return !1;
|
|
1235
|
-
const d = p / u, m = h / u;
|
|
1236
|
-
if (d >= 0 && d <= 1 && m >= 0 && m <= 1) {
|
|
1237
|
-
const f = t + d * (i - t), M = s + d * (r - s);
|
|
1238
|
-
return [f, M];
|
|
1239
|
-
}
|
|
1240
|
-
return !1;
|
|
1241
|
-
}
|
|
1242
|
-
function ss(n, e) {
|
|
1243
|
-
e = e || !1;
|
|
1244
|
-
const t = [], s = new Mt([], Jn);
|
|
1245
|
-
for (; n.length; ) {
|
|
1246
|
-
const i = n.pop();
|
|
1247
|
-
if (i.isLeftEndpoint) {
|
|
1248
|
-
const r = new ts(i);
|
|
1249
|
-
for (let o = 0; o < s.data.length; o++) {
|
|
1250
|
-
const a = s.data[o];
|
|
1251
|
-
if (e && a.leftSweepEvent.featureId === i.featureId)
|
|
1252
|
-
continue;
|
|
1253
|
-
const l = ns(r, a);
|
|
1254
|
-
l !== !1 && t.push(l);
|
|
1255
|
-
}
|
|
1256
|
-
s.push(r);
|
|
1257
|
-
} else i.isLeftEndpoint === !1 && s.pop();
|
|
1258
|
-
}
|
|
1259
|
-
return t;
|
|
1260
|
-
}
|
|
1261
|
-
function is(n, e) {
|
|
1262
|
-
const t = new Mt([], bt);
|
|
1263
|
-
return es(n, t), ss(t, e);
|
|
1264
|
-
}
|
|
1265
|
-
var rs = is;
|
|
1266
|
-
function os(n, e, t = {}) {
|
|
1267
|
-
const { removeDuplicates: s = !0, ignoreSelfIntersections: i = !1 } = t;
|
|
1268
|
-
let r = [];
|
|
1269
|
-
n.type === "FeatureCollection" ? r = r.concat(n.features) : n.type === "Feature" ? r.push(n) : (n.type === "LineString" || n.type === "Polygon" || n.type === "MultiLineString" || n.type === "MultiPolygon") && r.push(Ve(n)), e.type === "FeatureCollection" ? r = r.concat(e.features) : e.type === "Feature" ? r.push(e) : (e.type === "LineString" || e.type === "Polygon" || e.type === "MultiLineString" || e.type === "MultiPolygon") && r.push(Ve(e));
|
|
1270
|
-
const o = rs(
|
|
1271
|
-
Ye(r),
|
|
1272
|
-
i
|
|
1273
|
-
);
|
|
1274
|
-
let a = [];
|
|
1275
|
-
if (s) {
|
|
1276
|
-
const l = {};
|
|
1277
|
-
o.forEach((c) => {
|
|
1278
|
-
const u = c.join(",");
|
|
1279
|
-
l[u] || (l[u] = !0, a.push(c));
|
|
1280
|
-
});
|
|
1281
|
-
} else
|
|
1282
|
-
a = o;
|
|
1283
|
-
return Ye(a.map((l) => St(l)));
|
|
1284
|
-
}
|
|
1285
|
-
function as(n, e = {}) {
|
|
1286
|
-
let t = 0, s = 0, i = 0;
|
|
1287
|
-
return vt(
|
|
1288
|
-
n,
|
|
1289
|
-
function(r) {
|
|
1290
|
-
t += r[0], s += r[1], i++;
|
|
1291
|
-
}
|
|
1292
|
-
), St([t / i, s / i], e.properties);
|
|
1293
|
-
}
|
|
1294
|
-
const ls = nn({
|
|
1295
|
-
length: sn
|
|
817
|
+
const Es = Qt({
|
|
818
|
+
length: Kt
|
|
1296
819
|
});
|
|
1297
|
-
function
|
|
1298
|
-
return
|
|
820
|
+
function Ke(o, e) {
|
|
821
|
+
return Es(o).from(Ze[R.meter]).to(Ze[e]);
|
|
1299
822
|
}
|
|
1300
|
-
const
|
|
1301
|
-
function
|
|
1302
|
-
meters:
|
|
823
|
+
const We = 1e4;
|
|
824
|
+
function we({
|
|
825
|
+
meters: o,
|
|
1303
826
|
unit: e,
|
|
1304
827
|
locale: t,
|
|
1305
828
|
options: {
|
|
1306
|
-
autoSplitNumber:
|
|
1307
|
-
...
|
|
829
|
+
autoSplitNumber: n,
|
|
830
|
+
...s
|
|
1308
831
|
} = {
|
|
1309
|
-
autoSplitNumber:
|
|
832
|
+
autoSplitNumber: We
|
|
1310
833
|
}
|
|
1311
834
|
}) {
|
|
1312
|
-
const r = e ===
|
|
1313
|
-
let
|
|
835
|
+
const r = e === qe["m-km"], i = e === qe["ft-mi"], a = r || i;
|
|
836
|
+
let c, m;
|
|
1314
837
|
if (a) {
|
|
1315
|
-
const
|
|
1316
|
-
let p =
|
|
1317
|
-
|
|
838
|
+
const l = o < (n ?? We);
|
|
839
|
+
let p = l ? R.meter : R.kilometer;
|
|
840
|
+
c = l ? Me.meter : Me.kilometer, i && (c = l ? Me.feet : Me.mile, p = l ? R.feet : R.mile), m = Ke(o, p);
|
|
1318
841
|
} else
|
|
1319
|
-
|
|
1320
|
-
return `${
|
|
842
|
+
c = Me[e], m = Ke(o, e);
|
|
843
|
+
return `${nt(m, t, {
|
|
1321
844
|
style: "unit",
|
|
1322
|
-
unit:
|
|
845
|
+
unit: c,
|
|
1323
846
|
unitDisplay: "short",
|
|
1324
847
|
notation: "standard",
|
|
1325
848
|
minimumFractionDigits: 2,
|
|
1326
849
|
maximumFractionDigits: 2,
|
|
1327
|
-
...
|
|
850
|
+
...s
|
|
1328
851
|
})}`;
|
|
1329
852
|
}
|
|
1330
|
-
function
|
|
853
|
+
function Gn(o, {
|
|
1331
854
|
hasDoubleClickZoom: e
|
|
1332
855
|
}) {
|
|
1333
|
-
return typeof
|
|
856
|
+
return typeof o == "boolean" ? {
|
|
1334
857
|
doubleClickZoom: e
|
|
1335
858
|
} : {
|
|
1336
|
-
...
|
|
859
|
+
...o,
|
|
1337
860
|
doubleClickZoom: e
|
|
1338
861
|
};
|
|
1339
862
|
}
|
|
1340
|
-
function
|
|
1341
|
-
if (
|
|
863
|
+
function lt(o, e, t) {
|
|
864
|
+
if (o > 0) {
|
|
1342
865
|
const {
|
|
1343
|
-
formatTooltip:
|
|
1344
|
-
turfOptions:
|
|
866
|
+
formatTooltip: n,
|
|
867
|
+
turfOptions: s
|
|
1345
868
|
} = t ?? {
|
|
1346
869
|
turfOptions: {
|
|
1347
870
|
units: "kilometers"
|
|
1348
871
|
}
|
|
1349
|
-
}, r =
|
|
1350
|
-
let
|
|
1351
|
-
|
|
872
|
+
}, r = s == null ? void 0 : s.units;
|
|
873
|
+
let i;
|
|
874
|
+
n ? i = n(o) : i = `${parseFloat(o.toString()).toFixed(2)} ${r}`;
|
|
1352
875
|
const {
|
|
1353
876
|
measurementCallback: a
|
|
1354
877
|
} = t;
|
|
1355
|
-
return a && a(
|
|
878
|
+
return a && a(o), [{
|
|
1356
879
|
position: e,
|
|
1357
|
-
text:
|
|
880
|
+
text: i
|
|
1358
881
|
}];
|
|
1359
882
|
}
|
|
1360
883
|
return [];
|
|
1361
884
|
}
|
|
1362
|
-
class
|
|
885
|
+
class ks extends Dt {
|
|
1363
886
|
constructor() {
|
|
1364
887
|
super(...arguments);
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
888
|
+
te(this, "_isMeasuringSessionFinished", !1);
|
|
889
|
+
te(this, "area", 0);
|
|
890
|
+
te(this, "tooltips", []);
|
|
891
|
+
te(this, "resultPolygon", {
|
|
1369
892
|
type: "FeatureCollection",
|
|
1370
893
|
features: []
|
|
1371
894
|
});
|
|
1372
895
|
}
|
|
1373
|
-
handleClick(t,
|
|
896
|
+
handleClick(t, n) {
|
|
1374
897
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1375
898
|
const {
|
|
1376
|
-
picks:
|
|
1377
|
-
} = t, r =
|
|
899
|
+
picks: s
|
|
900
|
+
} = t, r = Ut(s), i = this.getClickSequence();
|
|
1378
901
|
let a = !1;
|
|
1379
|
-
!r && !this.allowOverlapping(
|
|
902
|
+
!r && !this.allowOverlapping(n) && (this.addClickSequence(t), a = !0), this.area = Ie({
|
|
1380
903
|
type: "Polygon",
|
|
1381
904
|
coordinates: [this.getClickSequence()]
|
|
1382
|
-
}), this.isFinalizedEdition(
|
|
905
|
+
}), this.isFinalizedEdition(i, r) ? this.finalizeEdition(n) : a && n.onEdit({
|
|
1383
906
|
// data is the same
|
|
1384
|
-
updatedData:
|
|
907
|
+
updatedData: n.data,
|
|
1385
908
|
editType: "addTentativePosition",
|
|
1386
909
|
editContext: {
|
|
1387
910
|
position: t.mapCoords
|
|
1388
911
|
}
|
|
1389
912
|
});
|
|
1390
913
|
}
|
|
1391
|
-
handleKeyUp(t,
|
|
1392
|
-
t.key === "Enter" ? this.getClickSequence().length > 2 ? this.finalizeEdition(
|
|
914
|
+
handleKeyUp(t, n) {
|
|
915
|
+
t.key === "Enter" ? this.getClickSequence().length > 2 ? this.finalizeEdition(n) : this.resetEdition(n) : t.key === "Escape" && this.resetEdition(n);
|
|
1393
916
|
}
|
|
1394
|
-
handlePointerMove(t,
|
|
917
|
+
handlePointerMove(t, n) {
|
|
1395
918
|
if (this._isMeasuringSessionFinished)
|
|
1396
919
|
return;
|
|
1397
|
-
super.handlePointerMove(t,
|
|
1398
|
-
const
|
|
1399
|
-
if (
|
|
1400
|
-
const r =
|
|
1401
|
-
this.area =
|
|
920
|
+
super.handlePointerMove(t, n);
|
|
921
|
+
const s = this.getTentativeGuide(n);
|
|
922
|
+
if (s && s.geometry.type === "Polygon") {
|
|
923
|
+
const r = It(s);
|
|
924
|
+
this.area = Ie(s), this.tooltips = lt(this.area, r.geometry.coordinates, n.modeConfig);
|
|
1402
925
|
}
|
|
1403
926
|
}
|
|
1404
927
|
resetClickSequence() {
|
|
@@ -1410,44 +933,44 @@ class cs extends Zt {
|
|
|
1410
933
|
getTooltips() {
|
|
1411
934
|
return this.tooltips;
|
|
1412
935
|
}
|
|
1413
|
-
isFinalizedEdition(t,
|
|
936
|
+
isFinalizedEdition(t, n) {
|
|
1414
937
|
const {
|
|
1415
|
-
positionIndexes:
|
|
1416
|
-
} = (
|
|
938
|
+
positionIndexes: s
|
|
939
|
+
} = (n == null ? void 0 : n.properties) ?? {
|
|
1417
940
|
positionIndexes: []
|
|
1418
941
|
};
|
|
1419
|
-
return t.length > 2 &&
|
|
942
|
+
return t.length > 2 && n !== void 0 && (s[0] === 0 || s[0] === t.length - 1);
|
|
1420
943
|
}
|
|
1421
944
|
allowOverlapping(t) {
|
|
1422
945
|
var r;
|
|
1423
|
-
let
|
|
1424
|
-
const
|
|
1425
|
-
if (
|
|
946
|
+
let n = !1;
|
|
947
|
+
const s = this.getClickSequence();
|
|
948
|
+
if (s.length > 2 && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1426
949
|
((r = t.modeConfig) != null && r.preventOverlappingLines)) {
|
|
1427
|
-
const
|
|
950
|
+
const i = {
|
|
1428
951
|
type: "LineString",
|
|
1429
|
-
coordinates: [...
|
|
952
|
+
coordinates: [...s, s[0]]
|
|
1430
953
|
}, a = {
|
|
1431
954
|
type: "LineString",
|
|
1432
|
-
coordinates: [...
|
|
955
|
+
coordinates: [...s.slice(0, s.length - 1)]
|
|
1433
956
|
};
|
|
1434
|
-
|
|
957
|
+
Bt(i, a).features.length > 0 && (n = !0);
|
|
1435
958
|
}
|
|
1436
|
-
return
|
|
959
|
+
return n;
|
|
1437
960
|
}
|
|
1438
961
|
finalizeEdition(t) {
|
|
1439
|
-
const
|
|
962
|
+
const n = this.getClickSequence(), s = {
|
|
1440
963
|
type: "Polygon",
|
|
1441
|
-
coordinates: [[...
|
|
964
|
+
coordinates: [[...n, n[0]]]
|
|
1442
965
|
};
|
|
1443
966
|
t.selectedIndexes = [], t.data = {
|
|
1444
967
|
type: "FeatureCollection",
|
|
1445
968
|
features: []
|
|
1446
969
|
};
|
|
1447
|
-
const r = this.getAddFeatureOrBooleanPolygonAction(
|
|
970
|
+
const r = this.getAddFeatureOrBooleanPolygonAction(s, t);
|
|
1448
971
|
this._isMeasuringSessionFinished = !0, r && (this.resultPolygon = r.updatedData, t.onEdit({
|
|
1449
972
|
...r,
|
|
1450
|
-
editType:
|
|
973
|
+
editType: H.addPosition,
|
|
1451
974
|
editContext: {
|
|
1452
975
|
...r.editContext,
|
|
1453
976
|
distance: this.area,
|
|
@@ -1466,60 +989,60 @@ class cs extends Zt {
|
|
|
1466
989
|
}
|
|
1467
990
|
getTooltipText({
|
|
1468
991
|
meters: t,
|
|
1469
|
-
locale:
|
|
1470
|
-
unit:
|
|
992
|
+
locale: n,
|
|
993
|
+
unit: s,
|
|
1471
994
|
options: r
|
|
1472
995
|
}) {
|
|
1473
|
-
return
|
|
996
|
+
return we({
|
|
1474
997
|
meters: t,
|
|
1475
|
-
locale:
|
|
1476
|
-
unit:
|
|
998
|
+
locale: n,
|
|
999
|
+
unit: s,
|
|
1477
1000
|
options: r
|
|
1478
1001
|
}) + "2";
|
|
1479
1002
|
}
|
|
1480
1003
|
}
|
|
1481
|
-
class
|
|
1004
|
+
class Cs extends Je {
|
|
1482
1005
|
constructor() {
|
|
1483
1006
|
super(...arguments);
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1007
|
+
te(this, "_isMeasuringSessionFinished", !1);
|
|
1008
|
+
te(this, "_currentArea", 0);
|
|
1009
|
+
te(this, "resultPolygon", {
|
|
1487
1010
|
type: "FeatureCollection",
|
|
1488
1011
|
features: []
|
|
1489
1012
|
});
|
|
1490
|
-
|
|
1013
|
+
te(this, "tooltips", []);
|
|
1491
1014
|
}
|
|
1492
|
-
handleClick(t,
|
|
1493
|
-
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t,
|
|
1015
|
+
handleClick(t, n) {
|
|
1016
|
+
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, n);
|
|
1494
1017
|
}
|
|
1495
|
-
handlePointerMove(t,
|
|
1496
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(t,
|
|
1018
|
+
handlePointerMove(t, n) {
|
|
1019
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(t, n), this.tooltips = lt(this.areaCircle, this.position, n.modeConfig));
|
|
1497
1020
|
}
|
|
1498
1021
|
checkAndFinishPolygon(t) {
|
|
1499
|
-
const
|
|
1500
|
-
this.isFinalizedEdition(
|
|
1022
|
+
const n = this.getClickSequence(), s = this.getTentativeGuide(t);
|
|
1023
|
+
this.isFinalizedEdition(n, s) && this.finalizeEdition(t);
|
|
1501
1024
|
}
|
|
1502
|
-
handleKeyUp(t,
|
|
1503
|
-
t.key === "Enter" ? this.finalizeEdition(
|
|
1025
|
+
handleKeyUp(t, n) {
|
|
1026
|
+
t.key === "Enter" ? this.finalizeEdition(n) : t.key === "Escape" && this.resetEdition(n);
|
|
1504
1027
|
}
|
|
1505
1028
|
getGuides(t) {
|
|
1506
1029
|
return this._isMeasuringSessionFinished ? this.resultPolygon : super.getGuides(t);
|
|
1507
1030
|
}
|
|
1508
|
-
isFinalizedEdition(t,
|
|
1509
|
-
return t.length > 1 &&
|
|
1031
|
+
isFinalizedEdition(t, n) {
|
|
1032
|
+
return t.length > 1 && n && n.geometry.type === "Polygon";
|
|
1510
1033
|
}
|
|
1511
1034
|
finalizeEdition(t) {
|
|
1512
|
-
const
|
|
1035
|
+
const n = this.getTentativeGuide(t);
|
|
1513
1036
|
t.selectedIndexes = [], t.data = {
|
|
1514
1037
|
type: "FeatureCollection",
|
|
1515
1038
|
features: []
|
|
1516
1039
|
};
|
|
1517
|
-
const
|
|
1518
|
-
this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"),
|
|
1519
|
-
...
|
|
1520
|
-
editType:
|
|
1040
|
+
const s = this.getAddFeatureOrBooleanPolygonAction(n, t);
|
|
1041
|
+
this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"), s && (this.resultPolygon = s.updatedData, t.onEdit({
|
|
1042
|
+
...s,
|
|
1043
|
+
editType: H.addPosition,
|
|
1521
1044
|
editContext: {
|
|
1522
|
-
...
|
|
1045
|
+
...s.editContext,
|
|
1523
1046
|
distance: this._currentArea,
|
|
1524
1047
|
positions: this.getClickSequence(),
|
|
1525
1048
|
finished: this._isMeasuringSessionFinished
|
|
@@ -1535,31 +1058,31 @@ class us extends ut {
|
|
|
1535
1058
|
});
|
|
1536
1059
|
}
|
|
1537
1060
|
resetClickSequence() {
|
|
1538
|
-
super.resetClickSequence(), this._isMeasuringSessionFinished = !1, this._currentArea = 0, this.radius = 0;
|
|
1061
|
+
super.resetClickSequence(), this.tooltips = [], this._isMeasuringSessionFinished = !1, this._currentArea = 0, this.radius = 0, this.areaCircle = 0;
|
|
1539
1062
|
}
|
|
1540
1063
|
getTooltips() {
|
|
1541
1064
|
return this.tooltips;
|
|
1542
1065
|
}
|
|
1543
1066
|
getTooltipText({
|
|
1544
1067
|
meters: t,
|
|
1545
|
-
locale:
|
|
1546
|
-
unit:
|
|
1068
|
+
locale: n,
|
|
1069
|
+
unit: s,
|
|
1547
1070
|
options: r
|
|
1548
1071
|
}) {
|
|
1549
|
-
return
|
|
1072
|
+
return we({
|
|
1550
1073
|
meters: t,
|
|
1551
|
-
locale:
|
|
1552
|
-
unit:
|
|
1074
|
+
locale: n,
|
|
1075
|
+
unit: s,
|
|
1553
1076
|
options: r
|
|
1554
1077
|
}) + "2";
|
|
1555
1078
|
}
|
|
1556
1079
|
}
|
|
1557
|
-
class
|
|
1080
|
+
class ct extends qt {
|
|
1558
1081
|
handleClick(e, t) {
|
|
1559
1082
|
super.handleClick(e, t), t.onEdit({
|
|
1560
1083
|
// data is the same
|
|
1561
1084
|
updatedData: t.data,
|
|
1562
|
-
editType:
|
|
1085
|
+
editType: H.addPosition,
|
|
1563
1086
|
editContext: {
|
|
1564
1087
|
distance: this._currentDistance,
|
|
1565
1088
|
finished: this._isMeasuringSessionFinished,
|
|
@@ -1571,22 +1094,22 @@ class wt extends Yt {
|
|
|
1571
1094
|
if (this._isMeasuringSessionFinished) return;
|
|
1572
1095
|
e.stopPropagation();
|
|
1573
1096
|
const {
|
|
1574
|
-
key:
|
|
1575
|
-
} = e,
|
|
1576
|
-
let r =
|
|
1577
|
-
switch (
|
|
1097
|
+
key: n
|
|
1098
|
+
} = e, s = this.getClickSequence().length;
|
|
1099
|
+
let r = H.finish;
|
|
1100
|
+
switch (n) {
|
|
1578
1101
|
case "Escape":
|
|
1579
1102
|
t.onEdit({
|
|
1580
1103
|
updatedData: {
|
|
1581
1104
|
type: "FeatureCollection",
|
|
1582
1105
|
features: []
|
|
1583
1106
|
},
|
|
1584
|
-
editType:
|
|
1107
|
+
editType: H.cancel,
|
|
1585
1108
|
editContext: {}
|
|
1586
1109
|
});
|
|
1587
1110
|
break;
|
|
1588
1111
|
case "Enter":
|
|
1589
|
-
this._isMeasuringSessionFinished = !0,
|
|
1112
|
+
this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), r = H.cancel), t.onUpdateCursor("cell"), t.onEdit({
|
|
1590
1113
|
updatedData: t.data,
|
|
1591
1114
|
editType: r,
|
|
1592
1115
|
editContext: {
|
|
@@ -1602,19 +1125,19 @@ class wt extends Yt {
|
|
|
1602
1125
|
getTooltipText({
|
|
1603
1126
|
meters: e,
|
|
1604
1127
|
locale: t,
|
|
1605
|
-
unit:
|
|
1606
|
-
options:
|
|
1128
|
+
unit: n,
|
|
1129
|
+
options: s
|
|
1607
1130
|
}) {
|
|
1608
|
-
return
|
|
1131
|
+
return we({
|
|
1609
1132
|
meters: e,
|
|
1610
1133
|
locale: t,
|
|
1611
|
-
unit:
|
|
1612
|
-
options:
|
|
1134
|
+
unit: n,
|
|
1135
|
+
options: s
|
|
1613
1136
|
});
|
|
1614
1137
|
}
|
|
1615
1138
|
}
|
|
1616
|
-
const
|
|
1617
|
-
id:
|
|
1139
|
+
const he = "mapMeasureLayer", ws = {
|
|
1140
|
+
id: he,
|
|
1618
1141
|
pickable: !1,
|
|
1619
1142
|
billboard: !1,
|
|
1620
1143
|
editHandlePointRadiusUnits: "pixels",
|
|
@@ -1638,19 +1161,19 @@ const Ae = "mapMeasureLayer", ds = {
|
|
|
1638
1161
|
getLineWidth: 2
|
|
1639
1162
|
}
|
|
1640
1163
|
}
|
|
1641
|
-
},
|
|
1164
|
+
}, Ue = {
|
|
1642
1165
|
editing: [23, 102, 214, 255],
|
|
1643
1166
|
finished: [71, 219, 153, 255],
|
|
1644
1167
|
point: [255, 255, 255, 255]
|
|
1645
|
-
},
|
|
1168
|
+
}, Ge = {
|
|
1646
1169
|
styles: {
|
|
1647
1170
|
colors: {
|
|
1648
|
-
editing:
|
|
1649
|
-
finished:
|
|
1650
|
-
point:
|
|
1171
|
+
editing: Ue.editing,
|
|
1172
|
+
finished: Ue.finished,
|
|
1173
|
+
point: Ue.point
|
|
1651
1174
|
}
|
|
1652
1175
|
}
|
|
1653
|
-
},
|
|
1176
|
+
}, R = {
|
|
1654
1177
|
kilometer: "kilometer",
|
|
1655
1178
|
meter: "meter",
|
|
1656
1179
|
centimeter: "centimeter",
|
|
@@ -1658,31 +1181,31 @@ const Ae = "mapMeasureLayer", ds = {
|
|
|
1658
1181
|
mile: "mile",
|
|
1659
1182
|
yard: "yard",
|
|
1660
1183
|
feet: "feet"
|
|
1661
|
-
},
|
|
1184
|
+
}, qe = {
|
|
1662
1185
|
"m-km": "m-km",
|
|
1663
1186
|
"ft-mi": "ft-mi",
|
|
1664
|
-
...
|
|
1665
|
-
},
|
|
1187
|
+
...R
|
|
1188
|
+
}, Fs = {
|
|
1666
1189
|
meters: "meters",
|
|
1667
1190
|
kilometer: "kilometers",
|
|
1668
1191
|
mile: "miles"
|
|
1669
|
-
},
|
|
1670
|
-
[
|
|
1671
|
-
[
|
|
1672
|
-
[
|
|
1673
|
-
[
|
|
1674
|
-
[
|
|
1675
|
-
[
|
|
1676
|
-
[
|
|
1677
|
-
},
|
|
1678
|
-
[
|
|
1679
|
-
[
|
|
1680
|
-
[
|
|
1681
|
-
[
|
|
1682
|
-
[
|
|
1683
|
-
[
|
|
1684
|
-
[
|
|
1685
|
-
},
|
|
1192
|
+
}, Ze = {
|
|
1193
|
+
[R.kilometer]: "km",
|
|
1194
|
+
[R.meter]: "m",
|
|
1195
|
+
[R.centimeter]: "cm",
|
|
1196
|
+
[R.milimeter]: "mm",
|
|
1197
|
+
[R.mile]: "mi",
|
|
1198
|
+
[R.yard]: "yd",
|
|
1199
|
+
[R.feet]: "ft"
|
|
1200
|
+
}, Me = {
|
|
1201
|
+
[R.kilometer]: "kilometer",
|
|
1202
|
+
[R.meter]: "meter",
|
|
1203
|
+
[R.centimeter]: "centimeter",
|
|
1204
|
+
[R.milimeter]: "millimeter",
|
|
1205
|
+
[R.mile]: "mile",
|
|
1206
|
+
[R.yard]: "yard",
|
|
1207
|
+
[R.feet]: "foot"
|
|
1208
|
+
}, B = {
|
|
1686
1209
|
"m-km": {
|
|
1687
1210
|
value: "m-km",
|
|
1688
1211
|
system: "metric"
|
|
@@ -1719,1113 +1242,1482 @@ const Ae = "mapMeasureLayer", ds = {
|
|
|
1719
1242
|
value: "feet",
|
|
1720
1243
|
system: "imperial"
|
|
1721
1244
|
}
|
|
1722
|
-
},
|
|
1245
|
+
}, ze = [B["m-km"], B.kilometer, B.meter, B["ft-mi"], B.mile, B.feet], Os = [B["m-km"], B.kilometer, B.meter, B["ft-mi"], B.mile, B.feet], As = {
|
|
1723
1246
|
distance: {
|
|
1724
1247
|
value: "distance",
|
|
1725
|
-
mode:
|
|
1248
|
+
mode: ct
|
|
1726
1249
|
},
|
|
1727
1250
|
buffer: {
|
|
1728
1251
|
value: "buffer",
|
|
1729
|
-
mode:
|
|
1252
|
+
mode: Cs
|
|
1730
1253
|
},
|
|
1731
1254
|
area: {
|
|
1732
1255
|
value: "area",
|
|
1733
|
-
mode:
|
|
1256
|
+
mode: ks
|
|
1734
1257
|
}
|
|
1735
|
-
},
|
|
1736
|
-
distance:
|
|
1737
|
-
buffer:
|
|
1738
|
-
area:
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
|
|
1258
|
+
}, Rs = {
|
|
1259
|
+
distance: ze,
|
|
1260
|
+
buffer: ze,
|
|
1261
|
+
area: Os
|
|
1262
|
+
}, Ds = [new jt({
|
|
1263
|
+
filterSize: 1
|
|
1264
|
+
})], Us = [be, Ce, he];
|
|
1265
|
+
function qs({
|
|
1266
|
+
children: o,
|
|
1267
|
+
mapId: e,
|
|
1268
|
+
defaultProps: {
|
|
1269
|
+
styles: t = Re.styles,
|
|
1270
|
+
labels: n
|
|
1271
|
+
} = {
|
|
1272
|
+
styles: Re.styles,
|
|
1273
|
+
labels: Re.labels
|
|
1274
|
+
},
|
|
1275
|
+
layerProps: s = {},
|
|
1276
|
+
defaultType: r = "mask"
|
|
1277
|
+
}) {
|
|
1278
|
+
const i = U((b) => {
|
|
1279
|
+
var _;
|
|
1280
|
+
return (_ = b.data[e]) == null ? void 0 : _.enabled;
|
|
1281
|
+
}), a = U((b) => b.setEnabled), c = U((b) => {
|
|
1282
|
+
var _;
|
|
1283
|
+
return (_ = b.data[e]) == null ? void 0 : _.values;
|
|
1284
|
+
}), m = U((b) => b.setValue), l = U((b) => {
|
|
1285
|
+
var _;
|
|
1286
|
+
return (_ = b.data[e]) == null ? void 0 : _.modeInstance;
|
|
1287
|
+
}), p = U((b) => {
|
|
1288
|
+
var _;
|
|
1289
|
+
return (_ = b.data[e]) == null ? void 0 : _.modeSelected;
|
|
1290
|
+
}), d = _e((b) => b.setLayer), u = O((b) => b.addLayers), g = O((b) => b.removeLayers), f = O(st((b) => {
|
|
1291
|
+
var _;
|
|
1292
|
+
return (_ = b.maps[e]) == null ? void 0 : _.layers.filter((E) => !Us.includes(E));
|
|
1293
|
+
})), T = O((b) => b.getDeckInstance), h = ke({}), [y, L] = Se(() => Ee()), S = ue(() => at({
|
|
1294
|
+
values: c
|
|
1295
|
+
}), [c]), v = ke(S.length);
|
|
1296
|
+
X(() => (i && u(e, [be]), () => {
|
|
1297
|
+
L(Ee()), g(e, [be]);
|
|
1298
|
+
}), [u, i, e, g]);
|
|
1299
|
+
const P = q(() => {
|
|
1300
|
+
L(Ee()), a(e, !1);
|
|
1301
|
+
}, [e, a]), k = q(({
|
|
1302
|
+
editType: b,
|
|
1303
|
+
updatedData: _
|
|
1304
|
+
}) => {
|
|
1305
|
+
var E;
|
|
1306
|
+
if (b === H.cancel) {
|
|
1307
|
+
P();
|
|
1308
|
+
return;
|
|
1309
|
+
}
|
|
1310
|
+
if (L(_), b !== H.updateTentativeFeature && b === H.addFeature) {
|
|
1311
|
+
const A = _.features[0];
|
|
1312
|
+
(E = A.properties).label ?? (E.label = `${n == null ? void 0 : n.mask} ${v.current + 1}`), v.current += 1;
|
|
1313
|
+
const x = A.id ?? crypto.randomUUID();
|
|
1314
|
+
m(e, x, {
|
|
1315
|
+
geometry: A.geometry,
|
|
1316
|
+
properties: A.properties,
|
|
1317
|
+
visible: !0,
|
|
1318
|
+
type: r
|
|
1319
|
+
}), P();
|
|
1320
|
+
}
|
|
1321
|
+
}, [P, n == null ? void 0 : n.mask, m, e, r]);
|
|
1322
|
+
X(() => {
|
|
1323
|
+
const b = y.features.length > 0, {
|
|
1324
|
+
border: _,
|
|
1325
|
+
point: E,
|
|
1326
|
+
fill: A
|
|
1327
|
+
} = t.colors.editing, x = Ls({
|
|
1328
|
+
layerProps: {
|
|
1329
|
+
...s.mask,
|
|
1330
|
+
pickable: !0,
|
|
1331
|
+
data: y,
|
|
1332
|
+
selectedFeatureIndexes: b ? [0] : []
|
|
1333
|
+
},
|
|
1334
|
+
guideColor: _,
|
|
1335
|
+
fillColor: A,
|
|
1336
|
+
pointColor: E,
|
|
1337
|
+
onEdit: k,
|
|
1338
|
+
mode: l
|
|
1339
|
+
});
|
|
1340
|
+
d(be, x);
|
|
1341
|
+
}, [y, s.mask, l, k, d, t.colors.editing]);
|
|
1342
|
+
const w = ue(() => ({
|
|
1343
|
+
type: "FeatureCollection",
|
|
1344
|
+
features: S.map((b) => ({
|
|
1345
|
+
type: "Feature",
|
|
1346
|
+
geometry: b.geometry,
|
|
1347
|
+
properties: b.properties,
|
|
1348
|
+
id: b.id
|
|
1349
|
+
}))
|
|
1350
|
+
}), [S]), F = ue(() => {
|
|
1351
|
+
const b = S.filter((E) => E.visible).map((E) => E.id), _ = y.features.map((E) => E.id);
|
|
1352
|
+
return _.length ? b.filter((E) => !_.includes(E)) : b;
|
|
1353
|
+
}, [y.features, S]);
|
|
1354
|
+
return X(() => {
|
|
1355
|
+
const b = {
|
|
1356
|
+
...Pe,
|
|
1357
|
+
pickable: i && p === "edit",
|
|
1358
|
+
visible: !0,
|
|
1359
|
+
data: w,
|
|
1360
|
+
getLineColor: t.colors.finished.border,
|
|
1361
|
+
getFillColor: t.colors.finished.fill,
|
|
1362
|
+
extensions: Ds,
|
|
1363
|
+
getFilterValue: (_) => Number(F.includes(_.id)),
|
|
1364
|
+
filterRange: [1, 1],
|
|
1365
|
+
updateTriggers: {
|
|
1366
|
+
getFilterValue: F
|
|
1367
|
+
},
|
|
1368
|
+
onClick: ({
|
|
1369
|
+
object: _
|
|
1370
|
+
}) => {
|
|
1371
|
+
const E = Ee();
|
|
1372
|
+
E.features.push(_), L(E), a(e, !0);
|
|
1373
|
+
}
|
|
1374
|
+
};
|
|
1375
|
+
return d(Pe.id, {
|
|
1376
|
+
type: Vt,
|
|
1377
|
+
props: b
|
|
1378
|
+
}), u(e, [Pe.id]), () => {
|
|
1379
|
+
g(e, [Pe.id]);
|
|
1380
|
+
};
|
|
1381
|
+
}, [u, i, e, w, F, p, g, a, d, t.colors.finished.border, t.colors.finished.fill]), X(() => {
|
|
1382
|
+
f == null || f.forEach((b) => {
|
|
1383
|
+
var E;
|
|
1384
|
+
if (i) {
|
|
1385
|
+
const A = (E = T(e)) == null ? void 0 : E.props.layers.find((x) => x.props.id === b);
|
|
1386
|
+
h.current[b] = A == null ? void 0 : A.props.pickable;
|
|
1387
|
+
}
|
|
1388
|
+
const _ = !i && h.current[b];
|
|
1389
|
+
d(b, {
|
|
1390
|
+
props: {
|
|
1391
|
+
pickable: _,
|
|
1392
|
+
extensions: [new Nt()],
|
|
1393
|
+
maskId: !i && F.length ? Ce : void 0
|
|
1394
|
+
}
|
|
1395
|
+
});
|
|
1396
|
+
});
|
|
1397
|
+
}, [i, T, e, f, F.length, d]), o;
|
|
1398
|
+
}
|
|
1399
|
+
function Ee() {
|
|
1400
|
+
return {
|
|
1401
|
+
type: "FeatureCollection",
|
|
1402
|
+
features: []
|
|
1403
|
+
};
|
|
1404
|
+
}
|
|
1405
|
+
qs.Controls = Ps;
|
|
1406
|
+
function xs({
|
|
1407
|
+
mode: o,
|
|
1742
1408
|
...e
|
|
1743
1409
|
}) {
|
|
1744
|
-
const t =
|
|
1745
|
-
mode:
|
|
1410
|
+
const t = $s({
|
|
1411
|
+
mode: o,
|
|
1746
1412
|
...e
|
|
1747
1413
|
});
|
|
1748
1414
|
return {
|
|
1749
|
-
type:
|
|
1415
|
+
type: et,
|
|
1750
1416
|
props: {
|
|
1751
1417
|
...t,
|
|
1752
|
-
mode:
|
|
1418
|
+
mode: o,
|
|
1753
1419
|
data: []
|
|
1754
1420
|
}
|
|
1755
1421
|
};
|
|
1756
1422
|
}
|
|
1757
|
-
function
|
|
1758
|
-
mode:
|
|
1423
|
+
function $s({
|
|
1424
|
+
mode: o,
|
|
1759
1425
|
layerProps: e,
|
|
1760
1426
|
locale: t,
|
|
1761
|
-
enabled:
|
|
1762
|
-
unit:
|
|
1427
|
+
enabled: n,
|
|
1428
|
+
unit: s,
|
|
1763
1429
|
onEdit: r,
|
|
1764
|
-
guideColor:
|
|
1430
|
+
guideColor: i,
|
|
1765
1431
|
pointColor: a,
|
|
1766
|
-
textOptions:
|
|
1432
|
+
textOptions: c
|
|
1767
1433
|
}) {
|
|
1768
|
-
const
|
|
1769
|
-
visible:
|
|
1770
|
-
pickable:
|
|
1434
|
+
const m = Le(e, {
|
|
1435
|
+
visible: n,
|
|
1436
|
+
pickable: n,
|
|
1771
1437
|
modeConfig: {
|
|
1772
1438
|
// We force distance due to conversion is addressed at feature getText level
|
|
1773
|
-
formatTooltip: (
|
|
1439
|
+
formatTooltip: (d) => d,
|
|
1774
1440
|
turfOptions: {
|
|
1775
|
-
units:
|
|
1441
|
+
units: Fs.meters
|
|
1776
1442
|
}
|
|
1777
1443
|
},
|
|
1778
|
-
...
|
|
1444
|
+
...n && {
|
|
1779
1445
|
onEdit: r
|
|
1780
1446
|
},
|
|
1781
1447
|
_subLayerProps: {
|
|
1782
1448
|
tooltips: {
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1449
|
+
outlineColor: [255, 255, 255, 255],
|
|
1450
|
+
outlineWidth: 6,
|
|
1451
|
+
fontSettings: {
|
|
1452
|
+
sdf: !0,
|
|
1453
|
+
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1454
|
+
smoothing: 0.2
|
|
1455
|
+
},
|
|
1456
|
+
getText: (d) => {
|
|
1457
|
+
var u;
|
|
1458
|
+
return (u = o == null ? void 0 : o.getTooltipText) == null ? void 0 : u.call(o, {
|
|
1459
|
+
meters: d.text,
|
|
1787
1460
|
locale: t,
|
|
1788
|
-
unit:
|
|
1789
|
-
options:
|
|
1461
|
+
unit: s,
|
|
1462
|
+
options: c
|
|
1790
1463
|
});
|
|
1791
1464
|
},
|
|
1792
1465
|
updateTriggers: {
|
|
1793
|
-
getText: [
|
|
1466
|
+
getText: [s, t, c]
|
|
1794
1467
|
}
|
|
1795
1468
|
}
|
|
1796
1469
|
}
|
|
1797
|
-
}),
|
|
1470
|
+
}), l = Le(ws, {
|
|
1798
1471
|
_subLayerProps: {
|
|
1799
1472
|
guides: {
|
|
1800
|
-
getLineColor:
|
|
1801
|
-
getFillColor:
|
|
1473
|
+
getLineColor: i,
|
|
1474
|
+
getFillColor: i.with(3, 20)
|
|
1802
1475
|
}
|
|
1803
1476
|
},
|
|
1804
1477
|
getEditHandlePointColor: a,
|
|
1805
|
-
getEditHandlePointOutlineColor:
|
|
1478
|
+
getEditHandlePointOutlineColor: i
|
|
1806
1479
|
});
|
|
1807
|
-
return
|
|
1480
|
+
return Le(l, m);
|
|
1808
1481
|
}
|
|
1809
|
-
const
|
|
1810
|
-
measurements:
|
|
1482
|
+
const Vs = (o) => Ve()((e) => ({
|
|
1483
|
+
measurements: o.reduce((n, s) => {
|
|
1811
1484
|
const {
|
|
1812
1485
|
mapId: r,
|
|
1813
|
-
modeSelected:
|
|
1814
|
-
modes: a =
|
|
1815
|
-
units:
|
|
1816
|
-
distance:
|
|
1817
|
-
finished:
|
|
1486
|
+
modeSelected: i,
|
|
1487
|
+
modes: a = As,
|
|
1488
|
+
units: c = Rs,
|
|
1489
|
+
distance: m = 0,
|
|
1490
|
+
finished: l = !1,
|
|
1818
1491
|
locale: p = "en",
|
|
1819
|
-
positions:
|
|
1820
|
-
clearLayerOnStart:
|
|
1821
|
-
unit:
|
|
1492
|
+
positions: d = [],
|
|
1493
|
+
clearLayerOnStart: u = !1,
|
|
1494
|
+
unit: g = qe["m-km"],
|
|
1822
1495
|
enabled: f = !1
|
|
1823
|
-
} =
|
|
1824
|
-
return
|
|
1496
|
+
} = s;
|
|
1497
|
+
return n[r] = {
|
|
1825
1498
|
modes: a,
|
|
1826
|
-
units:
|
|
1827
|
-
modeSelected:
|
|
1828
|
-
distance:
|
|
1829
|
-
finished:
|
|
1499
|
+
units: c,
|
|
1500
|
+
modeSelected: i,
|
|
1501
|
+
distance: m,
|
|
1502
|
+
finished: l,
|
|
1830
1503
|
locale: p,
|
|
1831
|
-
positions:
|
|
1832
|
-
unit:
|
|
1833
|
-
clearLayerOnStart:
|
|
1504
|
+
positions: d,
|
|
1505
|
+
unit: g,
|
|
1506
|
+
clearLayerOnStart: u,
|
|
1834
1507
|
enabled: f
|
|
1835
|
-
},
|
|
1508
|
+
}, n;
|
|
1836
1509
|
}, {}),
|
|
1837
|
-
mode:
|
|
1838
|
-
setModeInstance: (
|
|
1510
|
+
mode: ct,
|
|
1511
|
+
setModeInstance: (n, s) => {
|
|
1839
1512
|
e((r) => ({
|
|
1840
1513
|
measurements: {
|
|
1841
1514
|
...r.measurements,
|
|
1842
|
-
[
|
|
1843
|
-
...r.measurements[
|
|
1844
|
-
modeInstance:
|
|
1515
|
+
[n]: {
|
|
1516
|
+
...r.measurements[n],
|
|
1517
|
+
modeInstance: s
|
|
1845
1518
|
}
|
|
1846
1519
|
}
|
|
1847
1520
|
}));
|
|
1848
1521
|
},
|
|
1849
|
-
setModeSelected: (
|
|
1522
|
+
setModeSelected: (n, s) => {
|
|
1850
1523
|
e((r) => ({
|
|
1851
1524
|
measurements: {
|
|
1852
1525
|
...r.measurements,
|
|
1853
|
-
[
|
|
1854
|
-
...r.measurements[
|
|
1855
|
-
modeSelected:
|
|
1526
|
+
[n]: {
|
|
1527
|
+
...r.measurements[n],
|
|
1528
|
+
modeSelected: s
|
|
1856
1529
|
}
|
|
1857
1530
|
}
|
|
1858
1531
|
}));
|
|
1859
1532
|
},
|
|
1860
|
-
setFinished: (
|
|
1533
|
+
setFinished: (n, s) => {
|
|
1861
1534
|
e((r) => ({
|
|
1862
1535
|
measurements: {
|
|
1863
1536
|
...r.measurements,
|
|
1864
|
-
[
|
|
1865
|
-
...r.measurements[
|
|
1866
|
-
finished:
|
|
1537
|
+
[n]: {
|
|
1538
|
+
...r.measurements[n],
|
|
1539
|
+
finished: s
|
|
1867
1540
|
}
|
|
1868
1541
|
}
|
|
1869
1542
|
}));
|
|
1870
1543
|
},
|
|
1871
|
-
setDistance: (
|
|
1544
|
+
setDistance: (n, s) => {
|
|
1872
1545
|
e((r) => ({
|
|
1873
1546
|
measurements: {
|
|
1874
1547
|
...r.measurements,
|
|
1875
|
-
[
|
|
1876
|
-
...r.measurements[
|
|
1877
|
-
distance:
|
|
1548
|
+
[n]: {
|
|
1549
|
+
...r.measurements[n],
|
|
1550
|
+
distance: s
|
|
1878
1551
|
}
|
|
1879
1552
|
}
|
|
1880
1553
|
}));
|
|
1881
1554
|
},
|
|
1882
|
-
setUnit: (
|
|
1555
|
+
setUnit: (n, s) => {
|
|
1883
1556
|
e((r) => ({
|
|
1884
1557
|
measurements: {
|
|
1885
1558
|
...r.measurements,
|
|
1886
|
-
[
|
|
1887
|
-
...r.measurements[
|
|
1888
|
-
unit:
|
|
1559
|
+
[n]: {
|
|
1560
|
+
...r.measurements[n],
|
|
1561
|
+
unit: s
|
|
1889
1562
|
}
|
|
1890
1563
|
}
|
|
1891
1564
|
}));
|
|
1892
1565
|
},
|
|
1893
|
-
setLocale: (
|
|
1566
|
+
setLocale: (n, s) => {
|
|
1894
1567
|
e((r) => ({
|
|
1895
1568
|
measurements: {
|
|
1896
1569
|
...r.measurements,
|
|
1897
|
-
[
|
|
1898
|
-
...r.measurements[
|
|
1899
|
-
locale:
|
|
1570
|
+
[n]: {
|
|
1571
|
+
...r.measurements[n],
|
|
1572
|
+
locale: s
|
|
1900
1573
|
}
|
|
1901
1574
|
}
|
|
1902
1575
|
}));
|
|
1903
1576
|
},
|
|
1904
|
-
setPositions: (
|
|
1577
|
+
setPositions: (n, s) => {
|
|
1905
1578
|
e((r) => ({
|
|
1906
1579
|
measurements: {
|
|
1907
1580
|
...r.measurements,
|
|
1908
|
-
[
|
|
1909
|
-
...r.measurements[
|
|
1910
|
-
positions: [...
|
|
1581
|
+
[n]: {
|
|
1582
|
+
...r.measurements[n],
|
|
1583
|
+
positions: [...s]
|
|
1911
1584
|
}
|
|
1912
1585
|
}
|
|
1913
1586
|
}));
|
|
1914
1587
|
},
|
|
1915
|
-
setEnabled: (
|
|
1588
|
+
setEnabled: (n, s) => {
|
|
1916
1589
|
e((r) => ({
|
|
1917
1590
|
measurements: {
|
|
1918
1591
|
...r.measurements,
|
|
1919
|
-
[
|
|
1920
|
-
...r.measurements[
|
|
1921
|
-
enabled:
|
|
1592
|
+
[n]: {
|
|
1593
|
+
...r.measurements[n],
|
|
1594
|
+
enabled: s
|
|
1922
1595
|
}
|
|
1923
1596
|
}
|
|
1924
1597
|
}));
|
|
1925
1598
|
}
|
|
1926
|
-
})),
|
|
1927
|
-
function
|
|
1599
|
+
})), ut = xe({});
|
|
1600
|
+
function js(o) {
|
|
1928
1601
|
const e = C(5), {
|
|
1929
1602
|
children: t,
|
|
1930
|
-
values:
|
|
1931
|
-
} =
|
|
1603
|
+
values: n
|
|
1604
|
+
} = o;
|
|
1605
|
+
let s;
|
|
1606
|
+
e[0] !== n ? (s = Vs(n), e[0] = n, e[1] = s) : s = e[1];
|
|
1607
|
+
const [r] = Se(s);
|
|
1932
1608
|
let i;
|
|
1933
|
-
e[
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
}
|
|
1944
|
-
function Pt(n) {
|
|
1945
|
-
const e = C(73), {
|
|
1609
|
+
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */ j(ut.Provider, { value: r, children: t }), e[2] = t, e[3] = r, e[4] = i) : i = e[4], i;
|
|
1610
|
+
}
|
|
1611
|
+
function D(o) {
|
|
1612
|
+
const e = $e(ut);
|
|
1613
|
+
if (!Object.keys(e).length)
|
|
1614
|
+
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1615
|
+
return je(e, o);
|
|
1616
|
+
}
|
|
1617
|
+
function dt(o) {
|
|
1618
|
+
const e = C(74), {
|
|
1946
1619
|
mapId: t
|
|
1947
|
-
} =
|
|
1948
|
-
let
|
|
1949
|
-
e[0] !== t ? (
|
|
1950
|
-
const
|
|
1620
|
+
} = o;
|
|
1621
|
+
let n;
|
|
1622
|
+
e[0] !== t ? (n = (M) => M.measurements[t].modes, e[0] = t, e[1] = n) : n = e[1];
|
|
1623
|
+
const s = D(n);
|
|
1951
1624
|
let r;
|
|
1952
|
-
e[2] !== t ? (r = (
|
|
1953
|
-
const
|
|
1625
|
+
e[2] !== t ? (r = (M) => M.measurements[t].units, e[2] = t, e[3] = r) : r = e[3];
|
|
1626
|
+
const i = D(r);
|
|
1954
1627
|
let a;
|
|
1955
|
-
e[4] !== t ? (a = (
|
|
1956
|
-
const
|
|
1957
|
-
let
|
|
1958
|
-
e[6] !==
|
|
1959
|
-
const p =
|
|
1628
|
+
e[4] !== t ? (a = (M) => M.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1629
|
+
const c = D(a), m = D(Gs);
|
|
1630
|
+
let l;
|
|
1631
|
+
e[6] !== m || e[7] !== t ? (l = (M) => m(t, M), e[6] = m, e[7] = t, e[8] = l) : l = e[8];
|
|
1632
|
+
const p = l;
|
|
1633
|
+
let d;
|
|
1634
|
+
e[9] !== t ? (d = (M) => M.measurements[t].clearLayerOnStart, e[9] = t, e[10] = d) : d = e[10];
|
|
1635
|
+
const u = D(d);
|
|
1636
|
+
let g;
|
|
1637
|
+
e[11] !== t ? (g = (M) => M.measurements[t].enabled, e[11] = t, e[12] = g) : g = e[12];
|
|
1638
|
+
const f = D(g), T = D(Ws);
|
|
1960
1639
|
let h;
|
|
1961
|
-
e[
|
|
1962
|
-
const
|
|
1963
|
-
let
|
|
1964
|
-
e[
|
|
1965
|
-
const
|
|
1966
|
-
let
|
|
1967
|
-
e[
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1640
|
+
e[13] !== T || e[14] !== t ? (h = (M) => T(t, M), e[13] = T, e[14] = t, e[15] = h) : h = e[15];
|
|
1641
|
+
const y = h;
|
|
1642
|
+
let L;
|
|
1643
|
+
e[16] !== t ? (L = (M) => M.measurements[t].modeSelected, e[16] = t, e[17] = L) : L = e[17];
|
|
1644
|
+
const S = D(L), v = D(Ks);
|
|
1645
|
+
let P;
|
|
1646
|
+
e[18] !== v || e[19] !== t || e[20] !== y ? (P = (M) => {
|
|
1647
|
+
y(!!M), v(t, M);
|
|
1648
|
+
}, e[18] = v, e[19] = t, e[20] = y, e[21] = P) : P = e[21];
|
|
1649
|
+
const k = P;
|
|
1650
|
+
let w;
|
|
1651
|
+
e[22] !== t ? (w = (M) => M.measurements[t].finished, e[22] = t, e[23] = w) : w = e[23];
|
|
1652
|
+
const F = D(w), b = D(Qs);
|
|
1972
1653
|
let _;
|
|
1973
|
-
e[
|
|
1974
|
-
const
|
|
1975
|
-
let
|
|
1976
|
-
e[
|
|
1977
|
-
const
|
|
1978
|
-
let
|
|
1979
|
-
e[
|
|
1980
|
-
const
|
|
1981
|
-
let q;
|
|
1982
|
-
e[26] !== t ? (q = (w) => w.measurements[t].locale, e[26] = t, e[27] = q) : q = e[27];
|
|
1983
|
-
const Y = F(q), V = F(Es);
|
|
1984
|
-
let x;
|
|
1985
|
-
e[28] !== V || e[29] !== t ? (x = (w) => V(t, w), e[28] = V, e[29] = t, e[30] = x) : x = e[30];
|
|
1986
|
-
const $ = x;
|
|
1987
|
-
let te;
|
|
1988
|
-
e[31] !== t ? (te = (w) => w.measurements[t].modeInstance, e[31] = t, e[32] = te) : te = e[32];
|
|
1989
|
-
const N = F(te), be = F(bs);
|
|
1990
|
-
let G;
|
|
1991
|
-
e[33] !== be || e[34] !== t ? (G = (w) => be(t, w), e[33] = be, e[34] = t, e[35] = G) : G = e[35];
|
|
1992
|
-
const Se = G;
|
|
1993
|
-
let X;
|
|
1994
|
-
e[36] !== t ? (X = (w) => w.measurements[t].positions, e[36] = t, e[37] = X) : X = e[37];
|
|
1995
|
-
const me = F(X), ne = F(Ms);
|
|
1654
|
+
e[24] !== b || e[25] !== t ? (_ = (M) => b(t, M), e[24] = b, e[25] = t, e[26] = _) : _ = e[26];
|
|
1655
|
+
const E = _;
|
|
1656
|
+
let A;
|
|
1657
|
+
e[27] !== t ? (A = (M) => M.measurements[t].locale, e[27] = t, e[28] = A) : A = e[28];
|
|
1658
|
+
const x = D(A), N = D(Hs);
|
|
1659
|
+
let $;
|
|
1660
|
+
e[29] !== N || e[30] !== t ? ($ = (M) => N(t, M), e[29] = N, e[30] = t, e[31] = $) : $ = e[31];
|
|
1661
|
+
const V = $;
|
|
1996
1662
|
let se;
|
|
1997
|
-
e[
|
|
1998
|
-
const
|
|
1999
|
-
let
|
|
2000
|
-
e[
|
|
2001
|
-
const
|
|
1663
|
+
e[32] !== t ? (se = (M) => M.measurements[t].modeInstance, e[32] = t, e[33] = se) : se = e[33];
|
|
1664
|
+
const I = D(se), Te = D(Bs);
|
|
1665
|
+
let Q;
|
|
1666
|
+
e[34] !== Te || e[35] !== t ? (Q = (M) => Te(t, M), e[34] = Te, e[35] = t, e[36] = Q) : Q = e[36];
|
|
1667
|
+
const ve = Q;
|
|
2002
1668
|
let J;
|
|
2003
|
-
e[
|
|
2004
|
-
const
|
|
2005
|
-
let
|
|
2006
|
-
e[
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
1669
|
+
e[37] !== t ? (J = (M) => M.measurements[t].positions, e[37] = t, e[38] = J) : J = e[38];
|
|
1670
|
+
const me = D(J), ne = D(Is);
|
|
1671
|
+
let oe;
|
|
1672
|
+
e[39] !== ne || e[40] !== t ? (oe = (M) => ne(t, M), e[39] = ne, e[40] = t, e[41] = oe) : oe = e[41];
|
|
1673
|
+
const K = oe;
|
|
1674
|
+
let re;
|
|
1675
|
+
e[42] !== t ? (re = (M) => M.measurements[t].unit, e[42] = t, e[43] = re) : re = e[43];
|
|
1676
|
+
const ie = D(re), ae = D(Ns);
|
|
1677
|
+
let ee;
|
|
1678
|
+
e[44] !== ae || e[45] !== t ? (ee = (M) => ae(t, M), e[44] = ae, e[45] = t, e[46] = ee) : ee = e[46];
|
|
1679
|
+
const Z = ee;
|
|
2010
1680
|
let W;
|
|
2011
|
-
e[
|
|
2012
|
-
|
|
2013
|
-
}, e[
|
|
2014
|
-
const
|
|
1681
|
+
e[47] !== I || e[48] !== K ? (W = () => {
|
|
1682
|
+
I == null || I.resetClickSequence(), K([]);
|
|
1683
|
+
}, e[47] = I, e[48] = K, e[49] = W) : W = e[49];
|
|
1684
|
+
const z = W;
|
|
1685
|
+
let G;
|
|
1686
|
+
e[50] !== y ? (G = (M) => {
|
|
1687
|
+
y(M);
|
|
1688
|
+
}, e[50] = y, e[51] = G) : G = e[51];
|
|
1689
|
+
const le = G;
|
|
2015
1690
|
let pe;
|
|
2016
|
-
return e[
|
|
2017
|
-
modes:
|
|
2018
|
-
units:
|
|
2019
|
-
distance:
|
|
2020
|
-
clearLayerOnStart:
|
|
2021
|
-
modeSelected:
|
|
2022
|
-
enabled:
|
|
2023
|
-
finished:
|
|
2024
|
-
locale:
|
|
2025
|
-
modeInstance:
|
|
1691
|
+
return e[52] !== z || e[53] !== u || e[54] !== c || e[55] !== f || e[56] !== F || e[57] !== x || e[58] !== I || e[59] !== S || e[60] !== s || e[61] !== me || e[62] !== p || e[63] !== y || e[64] !== E || e[65] !== V || e[66] !== ve || e[67] !== k || e[68] !== K || e[69] !== Z || e[70] !== le || e[71] !== ie || e[72] !== i ? (pe = {
|
|
1692
|
+
modes: s,
|
|
1693
|
+
units: i,
|
|
1694
|
+
distance: c,
|
|
1695
|
+
clearLayerOnStart: u,
|
|
1696
|
+
modeSelected: S,
|
|
1697
|
+
enabled: f,
|
|
1698
|
+
finished: F,
|
|
1699
|
+
locale: x,
|
|
1700
|
+
modeInstance: I,
|
|
2026
1701
|
positions: me,
|
|
2027
|
-
unit:
|
|
1702
|
+
unit: ie,
|
|
2028
1703
|
setDistance: p,
|
|
2029
|
-
setModeSelected:
|
|
2030
|
-
setFinished:
|
|
2031
|
-
setLocale:
|
|
2032
|
-
setPositions:
|
|
2033
|
-
setUnit:
|
|
2034
|
-
setEnabled:
|
|
2035
|
-
toggleLayer:
|
|
1704
|
+
setModeSelected: k,
|
|
1705
|
+
setFinished: E,
|
|
1706
|
+
setLocale: V,
|
|
1707
|
+
setPositions: K,
|
|
1708
|
+
setUnit: Z,
|
|
1709
|
+
setEnabled: y,
|
|
1710
|
+
toggleLayer: le,
|
|
2036
1711
|
clearLayer: z,
|
|
2037
|
-
setModeInstance:
|
|
2038
|
-
}, e[
|
|
1712
|
+
setModeInstance: ve
|
|
1713
|
+
}, e[52] = z, e[53] = u, e[54] = c, e[55] = f, e[56] = F, e[57] = x, e[58] = I, e[59] = S, e[60] = s, e[61] = me, e[62] = p, e[63] = y, e[64] = E, e[65] = V, e[66] = ve, e[67] = k, e[68] = K, e[69] = Z, e[70] = le, e[71] = ie, e[72] = i, e[73] = pe) : pe = e[73], pe;
|
|
2039
1714
|
}
|
|
2040
|
-
function
|
|
2041
|
-
return
|
|
1715
|
+
function Ns(o) {
|
|
1716
|
+
return o.setUnit;
|
|
2042
1717
|
}
|
|
2043
|
-
function
|
|
2044
|
-
return
|
|
1718
|
+
function Is(o) {
|
|
1719
|
+
return o.setPositions;
|
|
2045
1720
|
}
|
|
2046
|
-
function
|
|
2047
|
-
return
|
|
1721
|
+
function Bs(o) {
|
|
1722
|
+
return o.setModeInstance;
|
|
2048
1723
|
}
|
|
2049
|
-
function
|
|
2050
|
-
return
|
|
1724
|
+
function Hs(o) {
|
|
1725
|
+
return o.setLocale;
|
|
2051
1726
|
}
|
|
2052
|
-
function
|
|
2053
|
-
return
|
|
1727
|
+
function Qs(o) {
|
|
1728
|
+
return o.setFinished;
|
|
2054
1729
|
}
|
|
2055
|
-
function
|
|
2056
|
-
return
|
|
1730
|
+
function Ks(o) {
|
|
1731
|
+
return o.setModeSelected;
|
|
2057
1732
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return
|
|
1733
|
+
function Ws(o) {
|
|
1734
|
+
return o.setEnabled;
|
|
2060
1735
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
1736
|
+
function Gs(o) {
|
|
1737
|
+
return o.setDistance;
|
|
2063
1738
|
}
|
|
2064
|
-
function
|
|
2065
|
-
const e = C(
|
|
1739
|
+
function Zs(o) {
|
|
1740
|
+
const e = C(42), {
|
|
2066
1741
|
mapId: t,
|
|
2067
|
-
textOptions:
|
|
2068
|
-
children:
|
|
2069
|
-
} =
|
|
1742
|
+
textOptions: n,
|
|
1743
|
+
children: s
|
|
1744
|
+
} = o;
|
|
2070
1745
|
let r;
|
|
2071
1746
|
e[0] !== t ? (r = {
|
|
2072
1747
|
mapId: t
|
|
2073
1748
|
}, e[0] = t, e[1] = r) : r = e[1];
|
|
2074
1749
|
const {
|
|
2075
|
-
modes:
|
|
1750
|
+
modes: i,
|
|
2076
1751
|
units: a,
|
|
2077
|
-
distance:
|
|
2078
|
-
setDistance:
|
|
2079
|
-
clearLayerOnStart:
|
|
1752
|
+
distance: c,
|
|
1753
|
+
setDistance: m,
|
|
1754
|
+
clearLayerOnStart: l,
|
|
2080
1755
|
modeSelected: p,
|
|
2081
|
-
setModeSelected:
|
|
2082
|
-
enabled:
|
|
2083
|
-
setEnabled:
|
|
1756
|
+
setModeSelected: d,
|
|
1757
|
+
enabled: u,
|
|
1758
|
+
setEnabled: g,
|
|
2084
1759
|
finished: f,
|
|
2085
|
-
setFinished:
|
|
2086
|
-
locale:
|
|
2087
|
-
setLocale:
|
|
2088
|
-
modeInstance:
|
|
2089
|
-
setModeInstance:
|
|
2090
|
-
positions:
|
|
2091
|
-
setPositions:
|
|
2092
|
-
unit:
|
|
2093
|
-
setUnit:
|
|
2094
|
-
clearLayer:
|
|
2095
|
-
toggleLayer:
|
|
2096
|
-
} =
|
|
2097
|
-
let
|
|
2098
|
-
e[2] !== p || e[3] !==
|
|
2099
|
-
if (p &&
|
|
2100
|
-
const
|
|
2101
|
-
|
|
1760
|
+
setFinished: T,
|
|
1761
|
+
locale: h,
|
|
1762
|
+
setLocale: y,
|
|
1763
|
+
modeInstance: L,
|
|
1764
|
+
setModeInstance: S,
|
|
1765
|
+
positions: v,
|
|
1766
|
+
setPositions: P,
|
|
1767
|
+
unit: k,
|
|
1768
|
+
setUnit: w,
|
|
1769
|
+
clearLayer: F,
|
|
1770
|
+
toggleLayer: b
|
|
1771
|
+
} = dt(r);
|
|
1772
|
+
let _;
|
|
1773
|
+
e[2] !== p || e[3] !== i || e[4] !== S || e[5] !== P ? (_ = () => {
|
|
1774
|
+
if (p && i[p]) {
|
|
1775
|
+
const V = i[p].mode;
|
|
1776
|
+
S(new V());
|
|
2102
1777
|
}
|
|
2103
1778
|
return () => {
|
|
2104
|
-
|
|
1779
|
+
P([]);
|
|
2105
1780
|
};
|
|
2106
|
-
},
|
|
2107
|
-
let
|
|
2108
|
-
e[
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
1781
|
+
}, e[2] = p, e[3] = i, e[4] = S, e[5] = P, e[6] = _) : _ = e[6];
|
|
1782
|
+
let E;
|
|
1783
|
+
e[7] !== p || e[8] !== i || e[9] !== g || e[10] !== S || e[11] !== P ? (E = [i, p, P, S, g], e[7] = p, e[8] = i, e[9] = g, e[10] = S, e[11] = P, e[12] = E) : E = e[12], X(_, E);
|
|
1784
|
+
let A;
|
|
1785
|
+
e[13] !== b || e[14] !== F || e[15] !== l || e[16] !== f ? (A = (V) => {
|
|
1786
|
+
V && (l || !f) && F(), b(V);
|
|
1787
|
+
}, e[13] = b, e[14] = F, e[15] = l, e[16] = f, e[17] = A) : A = e[17];
|
|
1788
|
+
const x = A, N = !!l;
|
|
1789
|
+
let $;
|
|
1790
|
+
return e[18] !== s || e[19] !== F || e[20] !== c || e[21] !== u || e[22] !== f || e[23] !== h || e[24] !== t || e[25] !== L || e[26] !== p || e[27] !== i || e[28] !== v || e[29] !== m || e[30] !== g || e[31] !== T || e[32] !== y || e[33] !== d || e[34] !== P || e[35] !== w || e[36] !== N || e[37] !== n || e[38] !== x || e[39] !== k || e[40] !== a ? ($ = s({
|
|
2114
1791
|
mapId: t,
|
|
2115
|
-
distance:
|
|
2116
|
-
enabled:
|
|
1792
|
+
distance: c,
|
|
1793
|
+
enabled: u,
|
|
2117
1794
|
finished: f,
|
|
2118
|
-
locale:
|
|
2119
|
-
positions:
|
|
2120
|
-
unit:
|
|
2121
|
-
clearLayerOnStart:
|
|
1795
|
+
locale: h,
|
|
1796
|
+
positions: v,
|
|
1797
|
+
unit: k,
|
|
1798
|
+
clearLayerOnStart: N,
|
|
2122
1799
|
modeSelected: p,
|
|
2123
|
-
modes:
|
|
1800
|
+
modes: i,
|
|
2124
1801
|
units: a,
|
|
2125
|
-
value:
|
|
2126
|
-
meters:
|
|
2127
|
-
unit:
|
|
2128
|
-
locale:
|
|
2129
|
-
options:
|
|
1802
|
+
value: we({
|
|
1803
|
+
meters: c,
|
|
1804
|
+
unit: k,
|
|
1805
|
+
locale: h,
|
|
1806
|
+
options: n
|
|
2130
1807
|
}),
|
|
2131
|
-
modeInstance:
|
|
2132
|
-
setModeSelected:
|
|
2133
|
-
setDistance:
|
|
2134
|
-
setFinished:
|
|
2135
|
-
setLocale:
|
|
2136
|
-
setPositions:
|
|
2137
|
-
setUnit:
|
|
2138
|
-
setEnabled:
|
|
2139
|
-
toggleLayer:
|
|
2140
|
-
clearLayer:
|
|
2141
|
-
}), e[
|
|
1808
|
+
modeInstance: L,
|
|
1809
|
+
setModeSelected: d,
|
|
1810
|
+
setDistance: m,
|
|
1811
|
+
setFinished: T,
|
|
1812
|
+
setLocale: y,
|
|
1813
|
+
setPositions: P,
|
|
1814
|
+
setUnit: w,
|
|
1815
|
+
setEnabled: g,
|
|
1816
|
+
toggleLayer: x,
|
|
1817
|
+
clearLayer: F
|
|
1818
|
+
}), e[18] = s, e[19] = F, e[20] = c, e[21] = u, e[22] = f, e[23] = h, e[24] = t, e[25] = L, e[26] = p, e[27] = i, e[28] = v, e[29] = m, e[30] = g, e[31] = T, e[32] = y, e[33] = d, e[34] = P, e[35] = w, e[36] = N, e[37] = n, e[38] = x, e[39] = k, e[40] = a, e[41] = $) : $ = e[41], $;
|
|
2142
1819
|
}
|
|
2143
|
-
|
|
2144
|
-
|
|
1820
|
+
const zs = [he];
|
|
1821
|
+
function Ys({
|
|
1822
|
+
children: o,
|
|
2145
1823
|
mapId: e,
|
|
2146
1824
|
defaultProps: {
|
|
2147
|
-
styles: t =
|
|
1825
|
+
styles: t = Ge.styles
|
|
2148
1826
|
} = {
|
|
2149
|
-
styles:
|
|
1827
|
+
styles: Ge.styles
|
|
2150
1828
|
},
|
|
2151
|
-
layerProps:
|
|
2152
|
-
textOptions:
|
|
1829
|
+
layerProps: n = {},
|
|
1830
|
+
textOptions: s
|
|
2153
1831
|
}) {
|
|
2154
1832
|
const {
|
|
2155
1833
|
setDistance: r,
|
|
2156
|
-
clearLayerOnStart:
|
|
1834
|
+
clearLayerOnStart: i,
|
|
2157
1835
|
enabled: a,
|
|
2158
|
-
finished:
|
|
2159
|
-
setFinished:
|
|
2160
|
-
locale:
|
|
1836
|
+
finished: c,
|
|
1837
|
+
setFinished: m,
|
|
1838
|
+
locale: l,
|
|
2161
1839
|
setPositions: p,
|
|
2162
|
-
unit:
|
|
2163
|
-
modeInstance:
|
|
2164
|
-
} =
|
|
1840
|
+
unit: d,
|
|
1841
|
+
modeInstance: u
|
|
1842
|
+
} = dt({
|
|
2165
1843
|
mapId: e
|
|
2166
|
-
}),
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
}),
|
|
2170
|
-
|
|
1844
|
+
}), g = _e((v) => v.setLayer), f = O((v) => v.addLayers), T = O((v) => v.removeLayers), h = O(st((v) => {
|
|
1845
|
+
var P;
|
|
1846
|
+
return (P = v.maps[e]) == null ? void 0 : P.layers.filter((k) => !zs.includes(k));
|
|
1847
|
+
})), y = O((v) => v.getDeckInstance), L = ke({});
|
|
1848
|
+
X(() => (a && f(e, [he]), () => {
|
|
1849
|
+
T(e, [he]);
|
|
1850
|
+
}), [f, i, e, T, a]), X(() => {
|
|
1851
|
+
h == null || h.forEach((v) => {
|
|
1852
|
+
var k;
|
|
1853
|
+
if (a) {
|
|
1854
|
+
const w = (k = y(e)) == null ? void 0 : k.props.layers.find((F) => F.props.id === v);
|
|
1855
|
+
L.current[v] = w == null ? void 0 : w.props.pickable;
|
|
1856
|
+
}
|
|
1857
|
+
const P = !a && L.current[v];
|
|
1858
|
+
g(v, {
|
|
1859
|
+
props: {
|
|
1860
|
+
pickable: P
|
|
1861
|
+
}
|
|
1862
|
+
});
|
|
1863
|
+
});
|
|
1864
|
+
}, [a, y, e, h, g]);
|
|
1865
|
+
const S = q(({
|
|
2171
1866
|
editType: v,
|
|
2172
|
-
editContext:
|
|
1867
|
+
editContext: P
|
|
2173
1868
|
}) => {
|
|
2174
|
-
if (v ===
|
|
2175
|
-
|
|
1869
|
+
if (v === H.cancel) {
|
|
1870
|
+
u.resetClickSequence();
|
|
2176
1871
|
return;
|
|
2177
1872
|
}
|
|
2178
|
-
v ===
|
|
2179
|
-
const
|
|
2180
|
-
|
|
2181
|
-
}, [
|
|
2182
|
-
return
|
|
2183
|
-
const v =
|
|
1873
|
+
v === H.addPosition && r(P.distance), m(!!P.finished);
|
|
1874
|
+
const k = P.positions;
|
|
1875
|
+
k != null && k.length && p(k);
|
|
1876
|
+
}, [u, r, m, p]);
|
|
1877
|
+
return X(() => {
|
|
1878
|
+
const v = c ? t.colors.finished : t.colors.editing, P = c ? t.colors.finished : t.colors.point, k = xs({
|
|
2184
1879
|
layerProps: {
|
|
2185
|
-
...
|
|
2186
|
-
pickable:
|
|
1880
|
+
...n,
|
|
1881
|
+
pickable: n.pickable ?? !c
|
|
2187
1882
|
},
|
|
2188
1883
|
enabled: a,
|
|
2189
1884
|
guideColor: v,
|
|
2190
|
-
pointColor:
|
|
2191
|
-
locale:
|
|
1885
|
+
pointColor: P,
|
|
1886
|
+
locale: l,
|
|
2192
1887
|
onEdit: S,
|
|
2193
|
-
unit:
|
|
2194
|
-
mode:
|
|
2195
|
-
textOptions:
|
|
1888
|
+
unit: d,
|
|
1889
|
+
mode: u,
|
|
1890
|
+
textOptions: s
|
|
2196
1891
|
});
|
|
2197
|
-
|
|
2198
|
-
}, [
|
|
1892
|
+
g(he, k);
|
|
1893
|
+
}, [c, u, n, l, S, g, t.colors.editing, t.colors.finished, t.colors.point, s, d, a]), o;
|
|
2199
1894
|
}
|
|
2200
|
-
|
|
2201
|
-
function
|
|
1895
|
+
Ys.Controls = Zs;
|
|
1896
|
+
function Xs(o) {
|
|
2202
1897
|
const e = C(7), {
|
|
2203
|
-
|
|
2204
|
-
} =
|
|
2205
|
-
let
|
|
2206
|
-
e[0] !== t ? (
|
|
1898
|
+
mapId: t
|
|
1899
|
+
} = o;
|
|
1900
|
+
let n;
|
|
1901
|
+
e[0] !== t ? (n = (m) => m.maps[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2207
1902
|
const {
|
|
2208
|
-
layers:
|
|
2209
|
-
} =
|
|
2210
|
-
let
|
|
2211
|
-
if (e[2] !== r || e[3] !==
|
|
2212
|
-
let
|
|
2213
|
-
e[5] !== r ? (
|
|
1903
|
+
layers: s
|
|
1904
|
+
} = O(n), r = _e(en);
|
|
1905
|
+
let i, a;
|
|
1906
|
+
if (e[2] !== r || e[3] !== s) {
|
|
1907
|
+
let m;
|
|
1908
|
+
e[5] !== r ? (m = (l) => r[l], e[5] = r, e[6] = m) : m = e[6], a = s.map(m).filter(Js), e[2] = r, e[3] = s, e[4] = a;
|
|
2214
1909
|
} else
|
|
2215
1910
|
a = e[4];
|
|
2216
|
-
return
|
|
1911
|
+
return i = a, i;
|
|
2217
1912
|
}
|
|
2218
|
-
function
|
|
2219
|
-
return !!
|
|
1913
|
+
function Js(o) {
|
|
1914
|
+
return !!o;
|
|
2220
1915
|
}
|
|
2221
|
-
function
|
|
2222
|
-
return
|
|
1916
|
+
function en(o) {
|
|
1917
|
+
return o.layers;
|
|
2223
1918
|
}
|
|
2224
|
-
|
|
2225
|
-
|
|
1919
|
+
const Ye = [Ce, be, he];
|
|
1920
|
+
function ft(o) {
|
|
1921
|
+
const e = o.filter((n) => !Ye.includes(n.props.id)).sort((n, s) => (n.order ?? 1 / 0) - (s.order ?? 1 / 0)), t = Ye.map((n) => o.find((s) => s.props.id === n)).filter((n) => !!n);
|
|
1922
|
+
return [...e, ...t];
|
|
2226
1923
|
}
|
|
2227
|
-
|
|
2228
|
-
|
|
1924
|
+
const tn = 200;
|
|
1925
|
+
function Zn({
|
|
1926
|
+
id: o,
|
|
2229
1927
|
onLoad: e,
|
|
2230
1928
|
onViewStateChange: t,
|
|
2231
|
-
...
|
|
1929
|
+
...n
|
|
2232
1930
|
}) {
|
|
2233
1931
|
const {
|
|
2234
|
-
basemap:
|
|
1932
|
+
basemap: s,
|
|
2235
1933
|
instanceRef: r,
|
|
2236
|
-
overlayRef:
|
|
2237
|
-
} =
|
|
2238
|
-
|
|
2239
|
-
}),
|
|
2240
|
-
const
|
|
2241
|
-
if (
|
|
2242
|
-
|
|
1934
|
+
overlayRef: i
|
|
1935
|
+
} = O((S) => S.maps[o]), a = ke(null), c = O((S) => S.viewStates[o]), m = O((S) => S.setViewState), l = O((S) => S.setLoad), p = O((S) => S.setLayersLoad), d = O((S) => S.updateViewPort), u = Xs({
|
|
1936
|
+
mapId: o
|
|
1937
|
+
}), g = ue(() => ft(u), [u]), f = q((S) => {
|
|
1938
|
+
const v = m;
|
|
1939
|
+
if (S.interactionState.isZooming && (a.current && clearInterval(a.current), a.current = setTimeout(() => {
|
|
1940
|
+
d(o);
|
|
1941
|
+
}, tn)), t) {
|
|
1942
|
+
t(S, v);
|
|
2243
1943
|
return;
|
|
2244
1944
|
}
|
|
2245
|
-
|
|
2246
|
-
}, [
|
|
2247
|
-
|
|
2248
|
-
}, [
|
|
2249
|
-
var
|
|
2250
|
-
const
|
|
2251
|
-
|
|
2252
|
-
}, [
|
|
2253
|
-
|
|
2254
|
-
}, [
|
|
2255
|
-
return /* @__PURE__ */
|
|
2256
|
-
}
|
|
2257
|
-
const
|
|
1945
|
+
v(o, S.viewState);
|
|
1946
|
+
}, [o, t, m, d]), T = q((S) => {
|
|
1947
|
+
l(o, S), e == null || e(S), d(o);
|
|
1948
|
+
}, [o, e, l, d]), h = q((S) => {
|
|
1949
|
+
var k, w, F;
|
|
1950
|
+
const v = (w = (k = r == null ? void 0 : r.current) == null ? void 0 : k.deck) == null ? void 0 : w.props.layers, P = !!(v != null && v.every((b) => b == null ? void 0 : b.isLoaded));
|
|
1951
|
+
p(o, P), (F = n.onAfterRender) == null || F.call(n, S);
|
|
1952
|
+
}, [o, r, n, p]), y = n.onDragEnd, L = q((...S) => {
|
|
1953
|
+
d(o), y && y(...S);
|
|
1954
|
+
}, [o, d, y]);
|
|
1955
|
+
return /* @__PURE__ */ j(ns, { ...n, layers: g, instanceRef: r, overlayRef: i, basemap: s, initialViewState: c, onLoad: T, onViewStateChange: f, onAfterRender: h, onDragEnd: L });
|
|
1956
|
+
}
|
|
1957
|
+
const sn = "https://gcp-us-east1.api.carto.com", nn = "ps", on = tt((o) => ({
|
|
2258
1958
|
sources: {},
|
|
2259
|
-
setSource: (e, t) =>
|
|
2260
|
-
const
|
|
2261
|
-
...
|
|
1959
|
+
setSource: (e, t) => o((n) => {
|
|
1960
|
+
const s = {
|
|
1961
|
+
...n.sources
|
|
2262
1962
|
};
|
|
2263
1963
|
if (!t)
|
|
2264
|
-
return delete
|
|
2265
|
-
sources:
|
|
1964
|
+
return delete s[e], {
|
|
1965
|
+
sources: s
|
|
2266
1966
|
};
|
|
2267
1967
|
const r = {
|
|
2268
|
-
...
|
|
2269
|
-
apiBaseUrl:
|
|
2270
|
-
clientId:
|
|
1968
|
+
...s[e] ?? {
|
|
1969
|
+
apiBaseUrl: sn,
|
|
1970
|
+
clientId: nn
|
|
2271
1971
|
},
|
|
2272
1972
|
...t
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
sqlQuery: r.data
|
|
2279
|
-
})), r.type === "table" && (o = new on({
|
|
2280
|
-
...r,
|
|
2281
|
-
accessToken: "",
|
|
2282
|
-
tableName: r.data
|
|
2283
|
-
})), r.type === "tileset" && (o = new an({
|
|
2284
|
-
...r,
|
|
2285
|
-
accessToken: "",
|
|
2286
|
-
tableName: r.data,
|
|
2287
|
-
tileFormat: r.tileFormat ?? ln.BINARY,
|
|
2288
|
-
spatialDataType: r.spatialDataType ?? "geo"
|
|
2289
|
-
})), r.widgets = o, i[e] = r, {
|
|
2290
|
-
sources: i
|
|
1973
|
+
}, i = an({
|
|
1974
|
+
source: r
|
|
1975
|
+
});
|
|
1976
|
+
return r.widgets = i, s[e] = r, {
|
|
1977
|
+
sources: s
|
|
2291
1978
|
};
|
|
2292
1979
|
})
|
|
2293
1980
|
}));
|
|
2294
|
-
function
|
|
1981
|
+
function rn(o) {
|
|
2295
1982
|
const e = C(2);
|
|
2296
1983
|
let t;
|
|
2297
|
-
return e[0] !==
|
|
1984
|
+
return e[0] !== o ? (t = (n) => n.sources[o], e[0] = o, e[1] = t) : t = e[1], on(t);
|
|
2298
1985
|
}
|
|
2299
|
-
function
|
|
2300
|
-
|
|
1986
|
+
function an({
|
|
1987
|
+
source: o
|
|
1988
|
+
}) {
|
|
1989
|
+
const e = {
|
|
1990
|
+
query: () => {
|
|
1991
|
+
const s = o;
|
|
1992
|
+
return new Yt({
|
|
1993
|
+
...s,
|
|
1994
|
+
accessToken: "",
|
|
1995
|
+
sqlQuery: s.data,
|
|
1996
|
+
spatialDataType: s.spatialDataType ?? "geo"
|
|
1997
|
+
});
|
|
1998
|
+
},
|
|
1999
|
+
table: () => {
|
|
2000
|
+
const s = o;
|
|
2001
|
+
return new zt({
|
|
2002
|
+
...s,
|
|
2003
|
+
accessToken: "",
|
|
2004
|
+
tableName: s.data,
|
|
2005
|
+
spatialDataType: s.spatialDataType ?? "geo"
|
|
2006
|
+
});
|
|
2007
|
+
},
|
|
2008
|
+
tileset: () => {
|
|
2009
|
+
const s = o;
|
|
2010
|
+
return new Gt({
|
|
2011
|
+
...s,
|
|
2012
|
+
accessToken: "",
|
|
2013
|
+
tableName: s.data,
|
|
2014
|
+
tileFormat: s.tileFormat ?? Zt.BINARY,
|
|
2015
|
+
spatialDataType: s.spatialDataType ?? "geo"
|
|
2016
|
+
});
|
|
2017
|
+
},
|
|
2018
|
+
raster: () => {
|
|
2019
|
+
const s = o;
|
|
2020
|
+
return s.rasterMetadata ? new Wt({
|
|
2021
|
+
...s,
|
|
2022
|
+
accessToken: "",
|
|
2023
|
+
tableName: s.data,
|
|
2024
|
+
spatialDataType: "quadbin",
|
|
2025
|
+
rasterMetadata: s.rasterMetadata
|
|
2026
|
+
}) : null;
|
|
2027
|
+
}
|
|
2028
|
+
}, t = o.type.split("+")[0], n = e[t];
|
|
2029
|
+
return n == null ? void 0 : n();
|
|
2030
|
+
}
|
|
2031
|
+
function fe(o, e) {
|
|
2032
|
+
const t = rn(e);
|
|
2301
2033
|
return ue(() => {
|
|
2302
|
-
const
|
|
2303
|
-
return !
|
|
2304
|
-
}, [
|
|
2034
|
+
const n = t == null ? void 0 : t.widgets;
|
|
2035
|
+
return !n || !o ? null : (n.props.accessToken = o, n);
|
|
2036
|
+
}, [o, t]);
|
|
2305
2037
|
}
|
|
2306
|
-
function
|
|
2307
|
-
const e = C(
|
|
2038
|
+
function ln(o) {
|
|
2039
|
+
const e = C(18), {
|
|
2308
2040
|
accessToken: t,
|
|
2309
|
-
sourceId:
|
|
2310
|
-
widgetProps:
|
|
2041
|
+
sourceId: n,
|
|
2042
|
+
widgetProps: s,
|
|
2311
2043
|
useQueryProps: r
|
|
2312
|
-
} =
|
|
2313
|
-
let
|
|
2314
|
-
e[0] !==
|
|
2315
|
-
let
|
|
2316
|
-
e[
|
|
2317
|
-
|
|
2044
|
+
} = o;
|
|
2045
|
+
let i;
|
|
2046
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2047
|
+
let a, c;
|
|
2048
|
+
e[2] !== i ? ({
|
|
2049
|
+
enabled: a,
|
|
2050
|
+
...c
|
|
2051
|
+
} = i, e[2] = i, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2052
|
+
const m = a === void 0 ? !0 : a, l = fe(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2053
|
+
let d;
|
|
2054
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["categories", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2318
2055
|
let u;
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2056
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getCategories(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2057
|
+
const g = !!l && m;
|
|
2058
|
+
let f;
|
|
2059
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== c ? (f = {
|
|
2060
|
+
queryKey: d,
|
|
2061
|
+
queryFn: u,
|
|
2062
|
+
enabled: g,
|
|
2063
|
+
...c
|
|
2064
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = c, e[17] = f) : f = e[17], de(f);
|
|
2065
|
+
}
|
|
2066
|
+
function zn(o) {
|
|
2327
2067
|
const e = C(6);
|
|
2328
|
-
let t,
|
|
2329
|
-
e[0] !==
|
|
2068
|
+
let t, n;
|
|
2069
|
+
e[0] !== o ? ({
|
|
2330
2070
|
children: t,
|
|
2331
|
-
...
|
|
2332
|
-
} =
|
|
2333
|
-
const
|
|
2071
|
+
...n
|
|
2072
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2073
|
+
const s = ln(n);
|
|
2334
2074
|
let r;
|
|
2335
|
-
return e[3] !== t || e[4] !==
|
|
2075
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2336
2076
|
}
|
|
2337
|
-
function
|
|
2338
|
-
const e = C(
|
|
2077
|
+
function cn(o) {
|
|
2078
|
+
const e = C(18), {
|
|
2339
2079
|
accessToken: t,
|
|
2340
|
-
sourceId:
|
|
2341
|
-
widgetProps:
|
|
2080
|
+
sourceId: n,
|
|
2081
|
+
widgetProps: s,
|
|
2342
2082
|
useQueryProps: r
|
|
2343
|
-
} =
|
|
2344
|
-
let
|
|
2345
|
-
e[0] !==
|
|
2346
|
-
let
|
|
2347
|
-
e[
|
|
2348
|
-
|
|
2083
|
+
} = o;
|
|
2084
|
+
let i;
|
|
2085
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2086
|
+
let a, c;
|
|
2087
|
+
e[2] !== i ? ({
|
|
2088
|
+
enabled: a,
|
|
2089
|
+
...c
|
|
2090
|
+
} = i, e[2] = i, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2091
|
+
const m = a === void 0 ? !0 : a, l = fe(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2092
|
+
let d;
|
|
2093
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["features", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2349
2094
|
let u;
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2095
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getFeatures(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2096
|
+
const g = !!l && m;
|
|
2097
|
+
let f;
|
|
2098
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== c ? (f = {
|
|
2099
|
+
queryKey: d,
|
|
2100
|
+
queryFn: u,
|
|
2101
|
+
enabled: g,
|
|
2102
|
+
...c
|
|
2103
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = c, e[17] = f) : f = e[17], de(f);
|
|
2104
|
+
}
|
|
2105
|
+
function Yn(o) {
|
|
2358
2106
|
const e = C(6);
|
|
2359
|
-
let t,
|
|
2360
|
-
e[0] !==
|
|
2107
|
+
let t, n;
|
|
2108
|
+
e[0] !== o ? ({
|
|
2361
2109
|
children: t,
|
|
2362
|
-
...
|
|
2363
|
-
} =
|
|
2364
|
-
const
|
|
2110
|
+
...n
|
|
2111
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2112
|
+
const s = cn(n);
|
|
2365
2113
|
let r;
|
|
2366
|
-
return e[3] !== t || e[4] !==
|
|
2114
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2367
2115
|
}
|
|
2368
|
-
function
|
|
2369
|
-
const e = C(
|
|
2116
|
+
function un(o) {
|
|
2117
|
+
const e = C(18), {
|
|
2370
2118
|
accessToken: t,
|
|
2371
|
-
sourceId:
|
|
2372
|
-
widgetProps:
|
|
2119
|
+
sourceId: n,
|
|
2120
|
+
widgetProps: s,
|
|
2373
2121
|
useQueryProps: r
|
|
2374
|
-
} =
|
|
2375
|
-
let
|
|
2376
|
-
e[0] !==
|
|
2377
|
-
let
|
|
2378
|
-
e[
|
|
2379
|
-
|
|
2122
|
+
} = o;
|
|
2123
|
+
let i;
|
|
2124
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2125
|
+
let a, c;
|
|
2126
|
+
e[2] !== i ? ({
|
|
2127
|
+
enabled: a,
|
|
2128
|
+
...c
|
|
2129
|
+
} = i, e[2] = i, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2130
|
+
const m = a === void 0 ? !0 : a, l = fe(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2131
|
+
let d;
|
|
2132
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["formula", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2380
2133
|
let u;
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2134
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getFormula(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2135
|
+
const g = !!l && m;
|
|
2136
|
+
let f;
|
|
2137
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== c ? (f = {
|
|
2138
|
+
queryKey: d,
|
|
2139
|
+
queryFn: u,
|
|
2140
|
+
enabled: g,
|
|
2141
|
+
...c
|
|
2142
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = c, e[17] = f) : f = e[17], de(f);
|
|
2143
|
+
}
|
|
2144
|
+
function Xn(o) {
|
|
2389
2145
|
const e = C(6);
|
|
2390
|
-
let t,
|
|
2391
|
-
e[0] !==
|
|
2146
|
+
let t, n;
|
|
2147
|
+
e[0] !== o ? ({
|
|
2392
2148
|
children: t,
|
|
2393
|
-
...
|
|
2394
|
-
} =
|
|
2395
|
-
const
|
|
2149
|
+
...n
|
|
2150
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2151
|
+
const s = un(n);
|
|
2396
2152
|
let r;
|
|
2397
|
-
return e[3] !== t || e[4] !==
|
|
2153
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2398
2154
|
}
|
|
2399
|
-
function
|
|
2400
|
-
const e = C(
|
|
2155
|
+
function dn(o) {
|
|
2156
|
+
const e = C(18), {
|
|
2401
2157
|
accessToken: t,
|
|
2402
|
-
sourceId:
|
|
2403
|
-
widgetProps:
|
|
2158
|
+
sourceId: n,
|
|
2159
|
+
widgetProps: s,
|
|
2404
2160
|
useQueryProps: r
|
|
2405
|
-
} =
|
|
2406
|
-
let
|
|
2407
|
-
e[0] !==
|
|
2408
|
-
let
|
|
2409
|
-
e[
|
|
2410
|
-
|
|
2161
|
+
} = o;
|
|
2162
|
+
let i;
|
|
2163
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2164
|
+
let a, c;
|
|
2165
|
+
e[2] !== i ? ({
|
|
2166
|
+
enabled: a,
|
|
2167
|
+
...c
|
|
2168
|
+
} = i, e[2] = i, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2169
|
+
const m = a === void 0 ? !0 : a, l = fe(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2170
|
+
let d;
|
|
2171
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["histogram", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2411
2172
|
let u;
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2173
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getHistogram(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2174
|
+
const g = !!l && m;
|
|
2175
|
+
let f;
|
|
2176
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== c ? (f = {
|
|
2177
|
+
queryKey: d,
|
|
2178
|
+
queryFn: u,
|
|
2179
|
+
enabled: g,
|
|
2180
|
+
...c
|
|
2181
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = c, e[17] = f) : f = e[17], de(f);
|
|
2182
|
+
}
|
|
2183
|
+
function Jn(o) {
|
|
2420
2184
|
const e = C(6);
|
|
2421
|
-
let t,
|
|
2422
|
-
e[0] !==
|
|
2185
|
+
let t, n;
|
|
2186
|
+
e[0] !== o ? ({
|
|
2423
2187
|
children: t,
|
|
2424
|
-
...
|
|
2425
|
-
} =
|
|
2426
|
-
const
|
|
2188
|
+
...n
|
|
2189
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2190
|
+
const s = dn(n);
|
|
2427
2191
|
let r;
|
|
2428
|
-
return e[3] !== t || e[4] !==
|
|
2192
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2429
2193
|
}
|
|
2430
|
-
function
|
|
2431
|
-
const e = C(
|
|
2194
|
+
function fn(o) {
|
|
2195
|
+
const e = C(18), {
|
|
2432
2196
|
accessToken: t,
|
|
2433
|
-
sourceId:
|
|
2434
|
-
widgetProps:
|
|
2197
|
+
sourceId: n,
|
|
2198
|
+
widgetProps: s,
|
|
2435
2199
|
useQueryProps: r
|
|
2436
|
-
} =
|
|
2437
|
-
let
|
|
2438
|
-
e[0] !==
|
|
2439
|
-
let
|
|
2440
|
-
e[
|
|
2441
|
-
|
|
2200
|
+
} = o;
|
|
2201
|
+
let i;
|
|
2202
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2203
|
+
let a, c;
|
|
2204
|
+
e[2] !== i ? ({
|
|
2205
|
+
enabled: a,
|
|
2206
|
+
...c
|
|
2207
|
+
} = i, e[2] = i, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2208
|
+
const m = a === void 0 ? !0 : a, l = fe(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2209
|
+
let d;
|
|
2210
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["range", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2442
2211
|
let u;
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2212
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getRange(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2213
|
+
const g = !!l && m;
|
|
2214
|
+
let f;
|
|
2215
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== c ? (f = {
|
|
2216
|
+
queryKey: d,
|
|
2217
|
+
queryFn: u,
|
|
2218
|
+
enabled: g,
|
|
2219
|
+
...c
|
|
2220
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = c, e[17] = f) : f = e[17], de(f);
|
|
2221
|
+
}
|
|
2222
|
+
function eo(o) {
|
|
2451
2223
|
const e = C(6);
|
|
2452
|
-
let t,
|
|
2453
|
-
e[0] !==
|
|
2224
|
+
let t, n;
|
|
2225
|
+
e[0] !== o ? ({
|
|
2454
2226
|
children: t,
|
|
2455
|
-
...
|
|
2456
|
-
} =
|
|
2457
|
-
const
|
|
2227
|
+
...n
|
|
2228
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2229
|
+
const s = fn(n);
|
|
2458
2230
|
let r;
|
|
2459
|
-
return e[3] !== t || e[4] !==
|
|
2231
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2460
2232
|
}
|
|
2461
|
-
function
|
|
2462
|
-
const e = C(
|
|
2233
|
+
function mn(o) {
|
|
2234
|
+
const e = C(18), {
|
|
2463
2235
|
accessToken: t,
|
|
2464
|
-
sourceId:
|
|
2465
|
-
widgetProps:
|
|
2236
|
+
sourceId: n,
|
|
2237
|
+
widgetProps: s,
|
|
2466
2238
|
useQueryProps: r
|
|
2467
|
-
} =
|
|
2468
|
-
let
|
|
2469
|
-
e[0] !==
|
|
2470
|
-
let
|
|
2471
|
-
e[
|
|
2472
|
-
|
|
2239
|
+
} = o;
|
|
2240
|
+
let i;
|
|
2241
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2242
|
+
let a, c;
|
|
2243
|
+
e[2] !== i ? ({
|
|
2244
|
+
enabled: a,
|
|
2245
|
+
...c
|
|
2246
|
+
} = i, e[2] = i, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2247
|
+
const m = a === void 0 ? !0 : a, l = fe(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2248
|
+
let d;
|
|
2249
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["scatter", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2473
2250
|
let u;
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2251
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getScatter(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2252
|
+
const g = !!l && m;
|
|
2253
|
+
let f;
|
|
2254
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== c ? (f = {
|
|
2255
|
+
queryKey: d,
|
|
2256
|
+
queryFn: u,
|
|
2257
|
+
enabled: g,
|
|
2258
|
+
...c
|
|
2259
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = c, e[17] = f) : f = e[17], de(f);
|
|
2260
|
+
}
|
|
2261
|
+
function to(o) {
|
|
2482
2262
|
const e = C(6);
|
|
2483
|
-
let t,
|
|
2484
|
-
e[0] !==
|
|
2263
|
+
let t, n;
|
|
2264
|
+
e[0] !== o ? ({
|
|
2485
2265
|
children: t,
|
|
2486
|
-
...
|
|
2487
|
-
} =
|
|
2488
|
-
const
|
|
2266
|
+
...n
|
|
2267
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2268
|
+
const s = mn(n);
|
|
2489
2269
|
let r;
|
|
2490
|
-
return e[3] !== t || e[4] !==
|
|
2270
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2491
2271
|
}
|
|
2492
|
-
function
|
|
2493
|
-
const e = C(
|
|
2272
|
+
function pn(o) {
|
|
2273
|
+
const e = C(18), {
|
|
2494
2274
|
accessToken: t,
|
|
2495
|
-
sourceId:
|
|
2496
|
-
widgetProps:
|
|
2275
|
+
sourceId: n,
|
|
2276
|
+
widgetProps: s,
|
|
2497
2277
|
useQueryProps: r
|
|
2498
|
-
} =
|
|
2499
|
-
let
|
|
2500
|
-
e[0] !==
|
|
2501
|
-
let
|
|
2502
|
-
e[
|
|
2503
|
-
|
|
2278
|
+
} = o;
|
|
2279
|
+
let i;
|
|
2280
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2281
|
+
let a, c;
|
|
2282
|
+
e[2] !== i ? ({
|
|
2283
|
+
enabled: a,
|
|
2284
|
+
...c
|
|
2285
|
+
} = i, e[2] = i, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2286
|
+
const m = a === void 0 ? !0 : a, l = fe(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2287
|
+
let d;
|
|
2288
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["table", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2504
2289
|
let u;
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2290
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getTable(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2291
|
+
const g = !!l && m;
|
|
2292
|
+
let f;
|
|
2293
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== c ? (f = {
|
|
2294
|
+
queryKey: d,
|
|
2295
|
+
queryFn: u,
|
|
2296
|
+
enabled: g,
|
|
2297
|
+
...c
|
|
2298
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = c, e[17] = f) : f = e[17], de(f);
|
|
2299
|
+
}
|
|
2300
|
+
function so(o) {
|
|
2513
2301
|
const e = C(6);
|
|
2514
|
-
let t,
|
|
2515
|
-
e[0] !==
|
|
2302
|
+
let t, n;
|
|
2303
|
+
e[0] !== o ? ({
|
|
2516
2304
|
children: t,
|
|
2517
|
-
...
|
|
2518
|
-
} =
|
|
2519
|
-
const
|
|
2305
|
+
...n
|
|
2306
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2307
|
+
const s = pn(n);
|
|
2520
2308
|
let r;
|
|
2521
|
-
return e[3] !== t || e[4] !==
|
|
2309
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2522
2310
|
}
|
|
2523
|
-
function
|
|
2524
|
-
const e = C(
|
|
2311
|
+
function gn(o) {
|
|
2312
|
+
const e = C(18), {
|
|
2525
2313
|
accessToken: t,
|
|
2526
|
-
sourceId:
|
|
2527
|
-
widgetProps:
|
|
2314
|
+
sourceId: n,
|
|
2315
|
+
widgetProps: s,
|
|
2528
2316
|
useQueryProps: r
|
|
2529
|
-
} =
|
|
2530
|
-
let
|
|
2531
|
-
e[0] !==
|
|
2532
|
-
let
|
|
2533
|
-
e[
|
|
2534
|
-
|
|
2317
|
+
} = o;
|
|
2318
|
+
let i;
|
|
2319
|
+
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2320
|
+
let a, c;
|
|
2321
|
+
e[2] !== i ? ({
|
|
2322
|
+
enabled: a,
|
|
2323
|
+
...c
|
|
2324
|
+
} = i, e[2] = i, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2325
|
+
const m = a === void 0 ? !0 : a, l = fe(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2326
|
+
let d;
|
|
2327
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["time-series", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2535
2328
|
let u;
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2329
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getTimeSeries(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2330
|
+
const g = !!l && m;
|
|
2331
|
+
let f;
|
|
2332
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== c ? (f = {
|
|
2333
|
+
queryKey: d,
|
|
2334
|
+
queryFn: u,
|
|
2335
|
+
enabled: g,
|
|
2336
|
+
...c
|
|
2337
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = c, e[17] = f) : f = e[17], de(f);
|
|
2338
|
+
}
|
|
2339
|
+
function no(o) {
|
|
2544
2340
|
const e = C(6);
|
|
2545
|
-
let t,
|
|
2546
|
-
e[0] !==
|
|
2341
|
+
let t, n;
|
|
2342
|
+
e[0] !== o ? ({
|
|
2547
2343
|
children: t,
|
|
2548
|
-
...
|
|
2549
|
-
} =
|
|
2550
|
-
const
|
|
2344
|
+
...n
|
|
2345
|
+
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2346
|
+
const s = gn(n);
|
|
2551
2347
|
let r;
|
|
2552
|
-
return e[3] !== t || e[4] !==
|
|
2348
|
+
return e[3] !== t || e[4] !== s ? (r = t(s), e[3] = t, e[4] = s, e[5] = r) : r = e[5], r;
|
|
2553
2349
|
}
|
|
2554
|
-
function
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2557
|
-
|
|
2350
|
+
function oo(o) {
|
|
2351
|
+
const e = C(13), {
|
|
2352
|
+
children: t,
|
|
2353
|
+
maps: n,
|
|
2354
|
+
lassoTools: s,
|
|
2355
|
+
measureTools: r
|
|
2356
|
+
} = o;
|
|
2357
|
+
let i;
|
|
2358
|
+
e[0] !== s ? (i = s === void 0 ? [] : s, e[0] = s, e[1] = i) : i = e[1];
|
|
2359
|
+
const a = i;
|
|
2360
|
+
let c;
|
|
2361
|
+
e[2] !== r ? (c = r === void 0 ? [] : r, e[2] = r, e[3] = c) : c = e[3];
|
|
2362
|
+
const m = c;
|
|
2363
|
+
let l;
|
|
2364
|
+
e[4] !== t || e[5] !== m ? (l = /* @__PURE__ */ j(js, { values: m, children: t }), e[4] = t, e[5] = m, e[6] = l) : l = e[6];
|
|
2365
|
+
let p;
|
|
2366
|
+
e[7] !== a || e[8] !== l ? (p = /* @__PURE__ */ j(_s, { values: a, children: l }), e[7] = a, e[8] = l, e[9] = p) : p = e[9];
|
|
2367
|
+
let d;
|
|
2368
|
+
return e[10] !== n || e[11] !== p ? (d = /* @__PURE__ */ j(hs, { values: n, children: p }), e[10] = n, e[11] = p, e[12] = d) : d = e[12], d;
|
|
2369
|
+
}
|
|
2370
|
+
function ro(o, e) {
|
|
2371
|
+
const t = _e((m) => m.layers), n = _e((m) => m.setLayer), s = ue(() => ft(o.map((m) => t[m]).filter((m) => !!m)), [t, o]), r = ue(() => s.map(e), [e, s]), i = q(({
|
|
2372
|
+
id: m,
|
|
2373
|
+
visible: l,
|
|
2558
2374
|
...p
|
|
2559
2375
|
}) => {
|
|
2560
|
-
|
|
2376
|
+
n(m, {
|
|
2561
2377
|
props: {
|
|
2562
|
-
visible:
|
|
2378
|
+
visible: l
|
|
2563
2379
|
},
|
|
2564
2380
|
legend: p
|
|
2565
2381
|
});
|
|
2566
|
-
}, [
|
|
2567
|
-
id:
|
|
2568
|
-
collapsed:
|
|
2382
|
+
}, [n]), a = q(({
|
|
2383
|
+
id: m,
|
|
2384
|
+
collapsed: l
|
|
2569
2385
|
}) => {
|
|
2570
|
-
|
|
2386
|
+
n(m, {
|
|
2571
2387
|
legend: {
|
|
2572
|
-
collapsed:
|
|
2388
|
+
collapsed: l
|
|
2573
2389
|
}
|
|
2574
2390
|
});
|
|
2575
|
-
}, [
|
|
2576
|
-
id:
|
|
2577
|
-
opacity:
|
|
2391
|
+
}, [n]), c = q(({
|
|
2392
|
+
id: m,
|
|
2393
|
+
opacity: l
|
|
2578
2394
|
}) => {
|
|
2579
|
-
|
|
2395
|
+
n(m, {
|
|
2580
2396
|
props: {
|
|
2581
|
-
opacity:
|
|
2397
|
+
opacity: l
|
|
2582
2398
|
}
|
|
2583
2399
|
});
|
|
2584
|
-
}, [
|
|
2400
|
+
}, [n]);
|
|
2585
2401
|
return {
|
|
2586
2402
|
legend: r,
|
|
2587
|
-
onChangeVisibility:
|
|
2588
|
-
onChangeOpacity:
|
|
2403
|
+
onChangeVisibility: i,
|
|
2404
|
+
onChangeOpacity: c,
|
|
2589
2405
|
onChangRowCollapsed: a
|
|
2590
2406
|
};
|
|
2591
2407
|
}
|
|
2592
|
-
function
|
|
2593
|
-
mapId:
|
|
2408
|
+
function io({
|
|
2409
|
+
mapId: o
|
|
2594
2410
|
}) {
|
|
2595
|
-
const [e, t] =
|
|
2596
|
-
var
|
|
2597
|
-
return (
|
|
2598
|
-
}),
|
|
2599
|
-
var
|
|
2600
|
-
return (
|
|
2601
|
-
}),
|
|
2602
|
-
var
|
|
2603
|
-
return (
|
|
2604
|
-
}) &&
|
|
2411
|
+
const [e, t] = Se(void 0), [n, s] = Se(!1), r = O((f) => {
|
|
2412
|
+
var T;
|
|
2413
|
+
return (T = f.maps[o]) == null ? void 0 : T.basemap;
|
|
2414
|
+
}), i = O((f) => f.getDeckInstance), a = O((f) => f.getOverlayInstance), c = O((f) => {
|
|
2415
|
+
var T;
|
|
2416
|
+
return (T = f.maps[o]) == null ? void 0 : T.areLayersLoaded;
|
|
2417
|
+
}), l = O((f) => {
|
|
2418
|
+
var T;
|
|
2419
|
+
return (T = f.maps[o]) == null ? void 0 : T.isLoaded;
|
|
2420
|
+
}) && c, {
|
|
2605
2421
|
type: p
|
|
2606
|
-
} =
|
|
2607
|
-
const f = o
|
|
2422
|
+
} = ot[r], d = p === ce.googleMaps, u = q(async () => {
|
|
2423
|
+
const f = i(o), T = a(o);
|
|
2608
2424
|
try {
|
|
2609
|
-
const
|
|
2610
|
-
|
|
2611
|
-
const
|
|
2612
|
-
if (
|
|
2613
|
-
const
|
|
2614
|
-
if (
|
|
2425
|
+
const h = document.createElement("canvas");
|
|
2426
|
+
h.width = f.width ?? 0, h.height = f.height ?? 0;
|
|
2427
|
+
const y = h.getContext("2d");
|
|
2428
|
+
if (d) {
|
|
2429
|
+
const S = T;
|
|
2430
|
+
if (S.getRenderingType() !== "RASTER")
|
|
2615
2431
|
throw new Error("Only raster type is supported for Google Maps");
|
|
2616
|
-
const
|
|
2432
|
+
const v = await Jt(S.getDiv(), {
|
|
2617
2433
|
useCORS: !0
|
|
2618
2434
|
});
|
|
2619
|
-
|
|
2435
|
+
y == null || y.drawImage(v, 0, 0, f.width, f.height);
|
|
2620
2436
|
} else {
|
|
2621
|
-
const
|
|
2622
|
-
|
|
2437
|
+
const S = T;
|
|
2438
|
+
S.redraw(), y == null || y.drawImage(S.getMap().getCanvas(), 0, 0, f.width, f.height);
|
|
2623
2439
|
}
|
|
2624
|
-
f == null || f.redraw("screenshot"),
|
|
2625
|
-
const
|
|
2626
|
-
t(
|
|
2627
|
-
} catch (
|
|
2628
|
-
console.error(
|
|
2440
|
+
f == null || f.redraw("screenshot"), y == null || y.drawImage(f.getCanvas(), 0, 0, f.width, f.height);
|
|
2441
|
+
const L = h.toDataURL();
|
|
2442
|
+
t(L);
|
|
2443
|
+
} catch (h) {
|
|
2444
|
+
console.error(h);
|
|
2629
2445
|
} finally {
|
|
2630
|
-
|
|
2446
|
+
s(!1);
|
|
2631
2447
|
}
|
|
2632
|
-
}, [
|
|
2448
|
+
}, [i, d, o, a]);
|
|
2633
2449
|
return {
|
|
2634
|
-
takeScreenshot:
|
|
2635
|
-
|
|
2636
|
-
}, [
|
|
2637
|
-
isLoading:
|
|
2450
|
+
takeScreenshot: q(() => {
|
|
2451
|
+
s(!0), l && u();
|
|
2452
|
+
}, [u, l]),
|
|
2453
|
+
isLoading: n,
|
|
2638
2454
|
screenshot: e
|
|
2639
2455
|
};
|
|
2640
2456
|
}
|
|
2641
|
-
|
|
2457
|
+
function ao(o) {
|
|
2458
|
+
const e = C(8), {
|
|
2459
|
+
mapId: t
|
|
2460
|
+
} = o;
|
|
2461
|
+
let n;
|
|
2462
|
+
e[0] !== t ? (n = {
|
|
2463
|
+
mapId: t
|
|
2464
|
+
}, e[0] = t, e[1] = n) : n = e[1];
|
|
2465
|
+
const s = yn(n);
|
|
2466
|
+
let r;
|
|
2467
|
+
e[2] !== t ? (r = {
|
|
2468
|
+
mapId: t
|
|
2469
|
+
}, e[2] = t, e[3] = r) : r = e[3];
|
|
2470
|
+
const i = hn(r), a = i ?? s;
|
|
2471
|
+
let c;
|
|
2472
|
+
return e[4] !== i || e[5] !== a || e[6] !== s ? (c = {
|
|
2473
|
+
spatialFilter: a,
|
|
2474
|
+
lassoToolsSpatialFilter: i,
|
|
2475
|
+
viewportSpatialFilter: s
|
|
2476
|
+
}, e[4] = i, e[5] = a, e[6] = s, e[7] = c) : c = e[7], c;
|
|
2477
|
+
}
|
|
2478
|
+
function yn(o) {
|
|
2479
|
+
const e = C(4), {
|
|
2480
|
+
mapId: t
|
|
2481
|
+
} = o;
|
|
2482
|
+
let n;
|
|
2483
|
+
e[0] !== t ? (n = (i) => i.viewports[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2484
|
+
const s = O(n);
|
|
2485
|
+
let r;
|
|
2486
|
+
e: {
|
|
2487
|
+
if (!s) {
|
|
2488
|
+
r = void 0;
|
|
2489
|
+
break e;
|
|
2490
|
+
}
|
|
2491
|
+
let i;
|
|
2492
|
+
e[2] !== s ? (i = Xt(s.getBounds()), e[2] = s, e[3] = i) : i = e[3], r = i;
|
|
2493
|
+
}
|
|
2494
|
+
return r;
|
|
2495
|
+
}
|
|
2496
|
+
function hn(o) {
|
|
2497
|
+
const e = C(5), {
|
|
2498
|
+
mapId: t
|
|
2499
|
+
} = o;
|
|
2500
|
+
let n;
|
|
2501
|
+
e[0] !== t ? (n = (i) => {
|
|
2502
|
+
var a;
|
|
2503
|
+
return (a = i.data[t]) == null ? void 0 : a.values;
|
|
2504
|
+
}, e[0] = t, e[1] = n) : n = e[1];
|
|
2505
|
+
const s = U(n);
|
|
2506
|
+
let r;
|
|
2507
|
+
e: {
|
|
2508
|
+
let i;
|
|
2509
|
+
if (e[2] !== s) {
|
|
2510
|
+
const a = at({
|
|
2511
|
+
values: s
|
|
2512
|
+
}).filter(vn);
|
|
2513
|
+
if (!(a != null && a.length)) {
|
|
2514
|
+
r = void 0;
|
|
2515
|
+
break e;
|
|
2516
|
+
}
|
|
2517
|
+
i = es(a.map(Sn)), e[2] = s, e[3] = i, e[4] = r;
|
|
2518
|
+
} else
|
|
2519
|
+
i = e[3], r = e[4];
|
|
2520
|
+
r = i.geometry;
|
|
2521
|
+
}
|
|
2522
|
+
return r;
|
|
2523
|
+
}
|
|
2524
|
+
function Sn(o) {
|
|
2525
|
+
return o.geometry.coordinates;
|
|
2526
|
+
}
|
|
2527
|
+
function vn(o) {
|
|
2528
|
+
return o.visible;
|
|
2529
|
+
}
|
|
2530
|
+
const ye = {
|
|
2642
2531
|
currency: "CURRENCY",
|
|
2643
2532
|
default: "DEFAULT",
|
|
2644
2533
|
number: "NUMBER"
|
|
2645
|
-
},
|
|
2646
|
-
[
|
|
2647
|
-
type:
|
|
2648
|
-
format: (
|
|
2534
|
+
}, Xe = {
|
|
2535
|
+
[ye.currency]: {
|
|
2536
|
+
type: ye.currency,
|
|
2537
|
+
format: (o, e) => Ht(o, e)
|
|
2649
2538
|
},
|
|
2650
|
-
[
|
|
2651
|
-
type:
|
|
2652
|
-
format: (
|
|
2539
|
+
[ye.number]: {
|
|
2540
|
+
type: ye.number,
|
|
2541
|
+
format: (o, e) => nt(o, e)
|
|
2653
2542
|
},
|
|
2654
|
-
[
|
|
2655
|
-
type:
|
|
2656
|
-
format: (
|
|
2543
|
+
[ye.default]: {
|
|
2544
|
+
type: ye.default,
|
|
2545
|
+
format: (o) => o.toLocaleString()
|
|
2657
2546
|
}
|
|
2658
2547
|
};
|
|
2659
|
-
function
|
|
2660
|
-
properties:
|
|
2548
|
+
function lo({
|
|
2549
|
+
properties: o,
|
|
2661
2550
|
formatters: e = {},
|
|
2662
|
-
includeColumns: t = Object.keys(
|
|
2663
|
-
locale:
|
|
2664
|
-
showColumnName:
|
|
2551
|
+
includeColumns: t = Object.keys(o),
|
|
2552
|
+
locale: n = "en-US",
|
|
2553
|
+
showColumnName: s = !0,
|
|
2665
2554
|
title: r,
|
|
2666
|
-
getColumnName:
|
|
2667
|
-
getFieldHtml: a =
|
|
2668
|
-
getTitle:
|
|
2669
|
-
getValue:
|
|
2555
|
+
getColumnName: i = _n,
|
|
2556
|
+
getFieldHtml: a = Ln,
|
|
2557
|
+
getTitle: c = bn,
|
|
2558
|
+
getValue: m = Tn
|
|
2670
2559
|
}) {
|
|
2671
|
-
const
|
|
2672
|
-
const f = e[
|
|
2673
|
-
return
|
|
2560
|
+
const l = r ? c(r) : "", d = t.reduce((u, g) => {
|
|
2561
|
+
const f = e[g], T = o[g], h = m(T, n, f), y = s ? i(g) : "";
|
|
2562
|
+
return u + a(y, h);
|
|
2674
2563
|
}, "");
|
|
2675
|
-
return
|
|
2564
|
+
return l + d;
|
|
2676
2565
|
}
|
|
2677
|
-
function
|
|
2678
|
-
return `<h3 style="margin: 0"><strong>${
|
|
2566
|
+
function bn(o) {
|
|
2567
|
+
return `<h3 style="margin: 0"><strong>${o}</strong></h3></br>`;
|
|
2679
2568
|
}
|
|
2680
|
-
function
|
|
2681
|
-
return `${
|
|
2569
|
+
function Ln(o, e) {
|
|
2570
|
+
return `${o}${e}</br>`;
|
|
2682
2571
|
}
|
|
2683
|
-
function
|
|
2572
|
+
function Tn(o, e, t) {
|
|
2684
2573
|
try {
|
|
2685
|
-
return
|
|
2574
|
+
return Mn(t)(o, e);
|
|
2686
2575
|
} catch {
|
|
2687
|
-
return
|
|
2576
|
+
return o;
|
|
2688
2577
|
}
|
|
2689
2578
|
}
|
|
2690
|
-
function
|
|
2691
|
-
return typeof
|
|
2579
|
+
function Mn(o) {
|
|
2580
|
+
return typeof o == "function" ? o : ((o && Xe[o]) ?? Xe[ye.default]).format;
|
|
2692
2581
|
}
|
|
2693
|
-
function
|
|
2694
|
-
return `<strong>${
|
|
2582
|
+
function _n(o) {
|
|
2583
|
+
return `<strong>${o}</strong>: `;
|
|
2695
2584
|
}
|
|
2696
|
-
function
|
|
2697
|
-
var t,
|
|
2698
|
-
const e = n.props;
|
|
2585
|
+
function co(o) {
|
|
2586
|
+
var e, t, n, s, r, i, a, c;
|
|
2699
2587
|
return {
|
|
2700
|
-
collapsed: (
|
|
2701
|
-
collapsible: (
|
|
2702
|
-
helperText: (
|
|
2703
|
-
id:
|
|
2704
|
-
legend: (
|
|
2705
|
-
maxZoom: (
|
|
2706
|
-
minZoom: (
|
|
2707
|
-
opacity:
|
|
2708
|
-
opacityControl: (
|
|
2709
|
-
switchable: (c =
|
|
2710
|
-
title:
|
|
2711
|
-
visible:
|
|
2588
|
+
collapsed: (e = o.legend) == null ? void 0 : e.collapsed,
|
|
2589
|
+
collapsible: (t = o.legend) == null ? void 0 : t.collapsible,
|
|
2590
|
+
helperText: (n = o.legend) == null ? void 0 : n.helperText,
|
|
2591
|
+
id: o.props.id,
|
|
2592
|
+
legend: (s = o.legend) == null ? void 0 : s.variables,
|
|
2593
|
+
maxZoom: (r = o.legend) == null ? void 0 : r.maxZoom,
|
|
2594
|
+
minZoom: (i = o.legend) == null ? void 0 : i.minZoom,
|
|
2595
|
+
opacity: o.props.opacity ?? 1,
|
|
2596
|
+
opacityControl: (a = o.legend) == null ? void 0 : a.opacityControl,
|
|
2597
|
+
switchable: (c = o.legend) == null ? void 0 : c.switchable,
|
|
2598
|
+
title: o.name,
|
|
2599
|
+
visible: o.props.visible ?? !0
|
|
2712
2600
|
};
|
|
2713
2601
|
}
|
|
2714
|
-
function
|
|
2602
|
+
function uo(o) {
|
|
2715
2603
|
const e = C(18), {
|
|
2716
2604
|
children: t,
|
|
2717
|
-
|
|
2718
|
-
} =
|
|
2719
|
-
let
|
|
2720
|
-
e[0] !==
|
|
2605
|
+
mapId: n
|
|
2606
|
+
} = o;
|
|
2607
|
+
let s;
|
|
2608
|
+
e[0] !== n ? (s = (y) => y.viewStates[n], e[0] = n, e[1] = s) : s = e[1];
|
|
2721
2609
|
const {
|
|
2722
2610
|
zoom: r,
|
|
2723
|
-
maxZoom:
|
|
2611
|
+
maxZoom: i,
|
|
2724
2612
|
minZoom: a
|
|
2725
|
-
} =
|
|
2726
|
-
let
|
|
2727
|
-
e[2] !==
|
|
2728
|
-
const
|
|
2729
|
-
let
|
|
2730
|
-
e[4] !==
|
|
2731
|
-
const
|
|
2613
|
+
} = O(s);
|
|
2614
|
+
let c;
|
|
2615
|
+
e[2] !== n ? (c = (y) => y.maps[n].areLayersLoaded, e[2] = n, e[3] = c) : c = e[3];
|
|
2616
|
+
const m = O(c), l = O(En), p = O(Pn), d = !m;
|
|
2617
|
+
let u;
|
|
2618
|
+
e[4] !== n || e[5] !== l ? (u = (y) => l(n, y), e[4] = n, e[5] = l, e[6] = u) : u = e[6];
|
|
2619
|
+
const g = u;
|
|
2732
2620
|
let f;
|
|
2733
|
-
e[7] !== p || e[8] !==
|
|
2734
|
-
const
|
|
2735
|
-
let
|
|
2736
|
-
return e[10] !== t || e[11] !==
|
|
2621
|
+
e[7] !== p || e[8] !== n ? (f = (y) => p(n, y), e[7] = p, e[8] = n, e[9] = f) : f = e[9];
|
|
2622
|
+
const T = f;
|
|
2623
|
+
let h;
|
|
2624
|
+
return e[10] !== t || e[11] !== i || e[12] !== a || e[13] !== d || e[14] !== g || e[15] !== T || e[16] !== r ? (h = t({
|
|
2737
2625
|
zoom: r,
|
|
2738
|
-
maxZoom:
|
|
2626
|
+
maxZoom: i,
|
|
2739
2627
|
minZoom: a,
|
|
2740
|
-
isLoading:
|
|
2741
|
-
setZoom:
|
|
2742
|
-
flyTo:
|
|
2743
|
-
}), e[10] = t, e[11] =
|
|
2628
|
+
isLoading: d,
|
|
2629
|
+
setZoom: g,
|
|
2630
|
+
flyTo: T
|
|
2631
|
+
}), e[10] = t, e[11] = i, e[12] = a, e[13] = d, e[14] = g, e[15] = T, e[16] = r, e[17] = h) : h = e[17], h;
|
|
2744
2632
|
}
|
|
2745
|
-
function
|
|
2746
|
-
return
|
|
2633
|
+
function Pn(o) {
|
|
2634
|
+
return o.flyTo;
|
|
2747
2635
|
}
|
|
2748
|
-
function
|
|
2749
|
-
return
|
|
2636
|
+
function En(o) {
|
|
2637
|
+
return o.setZoom;
|
|
2750
2638
|
}
|
|
2751
2639
|
export {
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2640
|
+
sn as ApiBaseUrl,
|
|
2641
|
+
Ze as CONVERSIONS_UNITS,
|
|
2642
|
+
Ae as CartoBasemapURL,
|
|
2643
|
+
Y as CartoBasemaps,
|
|
2644
|
+
zn as CategoriesModel,
|
|
2645
|
+
us as CustomCompositeEditMode,
|
|
2646
|
+
ks as CustomMeasureAreaMode,
|
|
2647
|
+
Cs as CustomMeasureBufferMode,
|
|
2648
|
+
ct as CustomMeasureDistanceMode,
|
|
2649
|
+
Be as DEFAULT_LASSO_TOOLS_COLORS,
|
|
2650
|
+
ds as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
2651
|
+
He as DEFAULT_LASSO_TOOLS_MODES,
|
|
2652
|
+
Re as DEFAULT_LASSO_TOOLS_PROPS,
|
|
2765
2653
|
Pe as DEFAULT_MASK_LAYER_PROPS,
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2654
|
+
As as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
2655
|
+
Rs as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
2656
|
+
Ue as DEFAULT_MEASURE_COLORS,
|
|
2657
|
+
ns as DeckGLComponent,
|
|
2658
|
+
H as EditableEditType,
|
|
2659
|
+
Yn as FeaturesModel,
|
|
2660
|
+
Xn as FormulaModel,
|
|
2661
|
+
Oe as GmapsBasemap,
|
|
2662
|
+
Jn as HistogramModel,
|
|
2663
|
+
Me as INTL_UNITS,
|
|
2664
|
+
qs as LassoTools,
|
|
2665
|
+
_s as LassoToolsProvider,
|
|
2666
|
+
ot as MAPS_BASEMAP,
|
|
2667
|
+
be as MAP_LASSO_TOOLS_LAYER_ID,
|
|
2668
|
+
Ce as MAP_MASK_LAYER_ID,
|
|
2669
|
+
he as MAP_MEASURE_LAYER_ID,
|
|
2670
|
+
Os as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
2671
|
+
ze as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
2672
|
+
B as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
2673
|
+
Zn as MapComponent,
|
|
2674
|
+
qe as MapMeasurementUnitAuto,
|
|
2675
|
+
Fs as MapMeasurementUnitTurf,
|
|
2676
|
+
hs as MapProvider,
|
|
2677
|
+
oo as MapsProvider,
|
|
2678
|
+
ce as MapsTypes,
|
|
2679
|
+
Ys as MeasurementTools,
|
|
2680
|
+
js as MeasurementToolsProvider,
|
|
2681
|
+
eo as RangeModel,
|
|
2682
|
+
to as ScatterModel,
|
|
2683
|
+
so as TableModel,
|
|
2684
|
+
no as TimeSeriesModel,
|
|
2685
|
+
uo as ZoomControls,
|
|
2686
|
+
nn as clientID,
|
|
2687
|
+
Ke as convertMetersTo,
|
|
2688
|
+
Ms as createLassoToolsStore,
|
|
2689
|
+
ys as createMapStore,
|
|
2690
|
+
Vs as createMeasurementToolsStore,
|
|
2691
|
+
ye as formatterTypes,
|
|
2692
|
+
ts as getCursorDefault,
|
|
2693
|
+
Gn as getDeckController,
|
|
2694
|
+
Ls as getLassoToolsLayer,
|
|
2695
|
+
xs as getMeasurementToolsLayer,
|
|
2696
|
+
we as getTextLayerFormattedDistance,
|
|
2697
|
+
ss as getTooltipDefault,
|
|
2698
|
+
co as mappingLegendMeridian,
|
|
2699
|
+
lo as objectToHtml,
|
|
2700
|
+
ft as sortLayers,
|
|
2701
|
+
fs as transitionFlyConfig,
|
|
2702
|
+
ln as useCategories,
|
|
2703
|
+
cn as useFeatures,
|
|
2704
|
+
un as useFormula,
|
|
2705
|
+
dn as useHistogram,
|
|
2706
|
+
hn as useLassoToolsSpatialFilter,
|
|
2707
|
+
U as useLassoToolsState,
|
|
2708
|
+
_e as useLayerStore,
|
|
2709
|
+
Xs as useLayers,
|
|
2710
|
+
ro as useLegend,
|
|
2711
|
+
io as useMapScreenshot,
|
|
2712
|
+
O as useMapStore,
|
|
2713
|
+
D as useMeasurementToolsState,
|
|
2714
|
+
fn as useRange,
|
|
2715
|
+
mn as useScatter,
|
|
2716
|
+
on as useSourceStore,
|
|
2717
|
+
ao as useSpatialFilter,
|
|
2718
|
+
pn as useTable,
|
|
2719
|
+
gn as useTimeSeries,
|
|
2720
|
+
yn as useViewportSpatialFilter,
|
|
2829
2721
|
fe as useWidgetModel
|
|
2830
2722
|
};
|
|
2831
2723
|
//# sourceMappingURL=index.js.map
|