@carto/ps-react-maps 3.0.0-canary.4 → 3.0.0-canary.5
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
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
1
|
+
var gt = Object.defineProperty;
|
|
2
|
+
var yt = (o, e, t) => e in o ? gt(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var ne = (o, e, t) => yt(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { jsx as H, jsxs as ht } 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 {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { useShallow as
|
|
16
|
-
import { area as
|
|
17
|
-
import { formatNumber as
|
|
6
|
+
import { useState as fe, useEffect as Y, useImperativeHandle as St, createContext as qe, useContext as Ue, useMemo as de, useCallback as $, useRef as Ee } from "react";
|
|
7
|
+
import { DeckGL as vt } from "@deck.gl/react";
|
|
8
|
+
import { Map as bt, MapProvider as Tt, useMap as Mt } from "react-map-gl/maplibre";
|
|
9
|
+
import { Map as Lt, APIProvider as _t, limitTiltRange as Pt, useMap as Et } from "@vis.gl/react-google-maps";
|
|
10
|
+
import { CompositeMode as kt, TranslateMode as Ct, ModifyMode as Ft, DrawPolygonByDraggingMode as wt, DrawCircleFromCenterMode as Xe, DrawRectangleMode as Ot, DrawPolygonMode as At, EditableGeoJsonLayer as Je, MeasureAreaMode as Rt, getPickedEditHandle as Dt, MeasureDistanceMode as xt, ViewMode as qt } from "@deck.gl-community/editable-layers";
|
|
11
|
+
import { DataFilterExtension as Ut, MaskExtension as $t } from "@deck.gl/extensions";
|
|
12
|
+
import { create as et, createStore as $e, useStore as Ve } from "zustand";
|
|
13
|
+
import { FlyToInterpolator as Vt, WebMercatorViewport as jt } from "@deck.gl/core";
|
|
14
|
+
import { GeoJsonLayer as Nt } from "@deck.gl/layers";
|
|
15
|
+
import { useShallow as tt } from "zustand/shallow";
|
|
16
|
+
import { area as Ne, centroid as It, lineIntersect as Bt } from "@turf/turf";
|
|
17
|
+
import { formatNumber as st, formatCurrency as Ht } from "@carto/ps-utils";
|
|
18
18
|
import Qt from "convert-units";
|
|
19
19
|
import Kt from "convert-units/definitions/length";
|
|
20
|
-
import { WidgetRasterSource as
|
|
21
|
-
import { useQuery as
|
|
20
|
+
import { WidgetRasterSource as Gt, WidgetTilesetSource as Zt, TileFormat as zt, WidgetTableSource as Wt, WidgetQuerySource as Yt, createViewportSpatialFilter as Xt } from "@carto/api-client";
|
|
21
|
+
import { useQuery as me } from "@tanstack/react-query";
|
|
22
22
|
import Jt from "html2canvas";
|
|
23
23
|
import { multiPolygon as es } from "@turf/helpers";
|
|
24
|
-
const
|
|
24
|
+
const we = {
|
|
25
25
|
roadmap: "roadmap",
|
|
26
26
|
satellite: "satellite",
|
|
27
27
|
hybrid: "hybrid"
|
|
28
|
-
},
|
|
28
|
+
}, ee = {
|
|
29
29
|
darkMatter: "darkMatter",
|
|
30
30
|
positron: "positron",
|
|
31
31
|
voyager: "voyager"
|
|
32
|
-
},
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
},
|
|
32
|
+
}, Oe = {
|
|
33
|
+
[ee.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
34
|
+
[ee.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
35
|
+
[ee.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
36
|
+
}, ue = {
|
|
37
37
|
maplibre: "maplibre",
|
|
38
38
|
googleMaps: "google-maps"
|
|
39
|
-
},
|
|
40
|
-
[
|
|
41
|
-
url:
|
|
42
|
-
type:
|
|
39
|
+
}, nt = {
|
|
40
|
+
[ee.positron]: {
|
|
41
|
+
url: Oe[ee.positron],
|
|
42
|
+
type: ue.maplibre
|
|
43
43
|
},
|
|
44
|
-
[
|
|
45
|
-
url:
|
|
46
|
-
type:
|
|
44
|
+
[ee.voyager]: {
|
|
45
|
+
url: Oe[ee.voyager],
|
|
46
|
+
type: ue.maplibre
|
|
47
47
|
},
|
|
48
|
-
[
|
|
49
|
-
url:
|
|
50
|
-
type:
|
|
48
|
+
[ee.darkMatter]: {
|
|
49
|
+
url: Oe[ee.darkMatter],
|
|
50
|
+
type: ue.maplibre,
|
|
51
51
|
dark: !0
|
|
52
52
|
},
|
|
53
|
-
[
|
|
54
|
-
type:
|
|
53
|
+
[we.roadmap]: {
|
|
54
|
+
type: ue.googleMaps
|
|
55
55
|
},
|
|
56
|
-
[
|
|
57
|
-
type:
|
|
56
|
+
[we.satellite]: {
|
|
57
|
+
type: ue.googleMaps
|
|
58
58
|
},
|
|
59
|
-
[
|
|
60
|
-
type:
|
|
59
|
+
[we.hybrid]: {
|
|
60
|
+
type: ue.googleMaps
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
function ts({
|
|
@@ -76,15 +76,15 @@ function ss(o) {
|
|
|
76
76
|
} : null;
|
|
77
77
|
}
|
|
78
78
|
function ns(o) {
|
|
79
|
-
var
|
|
79
|
+
var ye, L, je;
|
|
80
80
|
const e = C(66);
|
|
81
|
-
let t, n, s, r, i, a,
|
|
81
|
+
let t, n, s, r, i, a, l, m, c, p, d, u, g, f;
|
|
82
82
|
e[0] !== o ? ({
|
|
83
83
|
instanceRef: t,
|
|
84
84
|
overlayRef: r,
|
|
85
|
-
basemap:
|
|
85
|
+
basemap: l,
|
|
86
86
|
controller: m,
|
|
87
|
-
id:
|
|
87
|
+
id: c,
|
|
88
88
|
layers: p,
|
|
89
89
|
parameters: i,
|
|
90
90
|
gmapsProps: d,
|
|
@@ -94,85 +94,85 @@ function ns(o) {
|
|
|
94
94
|
onResize: s,
|
|
95
95
|
onViewStateChange: f,
|
|
96
96
|
...a
|
|
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] =
|
|
98
|
-
const
|
|
99
|
-
let
|
|
100
|
-
e[15] !== p ? (
|
|
101
|
-
const S =
|
|
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] = l, e[8] = m, e[9] = c, 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], l = e[7], m = e[8], c = e[9], p = e[10], d = e[11], u = e[12], g = e[13], f = e[14]);
|
|
98
|
+
const M = l === void 0 ? ee.positron : l, h = m === void 0 ? !0 : m, y = c === void 0 ? "deck-gl-map" : c;
|
|
99
|
+
let T;
|
|
100
|
+
e[15] !== p ? (T = p === void 0 ? [] : p, e[15] = p, e[16] = T) : T = e[16];
|
|
101
|
+
const S = T;
|
|
102
102
|
let v;
|
|
103
103
|
e[17] !== d ? (v = d === void 0 ? {
|
|
104
104
|
apiKey: ""
|
|
105
105
|
} : d, e[17] = d, e[18] = v) : v = e[18];
|
|
106
|
-
let
|
|
106
|
+
let _, E, F;
|
|
107
107
|
e[19] !== v ? ({
|
|
108
|
-
apiKey:
|
|
109
|
-
APIProviderProps:
|
|
110
|
-
...
|
|
111
|
-
} = v, e[19] = v, e[20] =
|
|
112
|
-
const
|
|
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;
|
|
108
|
+
apiKey: F,
|
|
109
|
+
APIProviderProps: _,
|
|
110
|
+
...E
|
|
111
|
+
} = v, e[19] = v, e[20] = _, e[21] = E, e[22] = F) : (_ = e[20], E = e[21], F = e[22]);
|
|
112
|
+
const O = u === void 0 ? ts : u, D = g === void 0 ? ss : g, U = f === void 0 ? ls : f;
|
|
119
113
|
let V;
|
|
120
|
-
e[
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}, e[
|
|
144
|
-
const re =
|
|
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({
|
|
151
|
-
type: "deckgl"
|
|
152
|
-
}), e[38] = ee) : ee = e[38];
|
|
114
|
+
e[23] === Symbol.for("react.memo_cache_sentinel") ? (V = [!1, !1], e[23] = V) : V = e[23];
|
|
115
|
+
const [b, P] = fe(V);
|
|
116
|
+
let k;
|
|
117
|
+
e[24] !== b ? (k = b.every(as), e[24] = b, e[25] = k) : k = e[25];
|
|
118
|
+
const A = k;
|
|
119
|
+
let x;
|
|
120
|
+
e[26] !== s ? (x = (he) => {
|
|
121
|
+
s == null || s(he);
|
|
122
|
+
}, e[26] = s, e[27] = x) : x = e[27];
|
|
123
|
+
const B = x, {
|
|
124
|
+
url: N,
|
|
125
|
+
type: G
|
|
126
|
+
} = nt[M], I = G === ue.googleMaps;
|
|
127
|
+
let be, te;
|
|
128
|
+
e[28] !== S ? (te = S.filter(is).map(rs), e[28] = S, e[29] = te) : te = e[29], be = te;
|
|
129
|
+
const ge = be;
|
|
130
|
+
let oe;
|
|
131
|
+
e[30] !== I || e[31] !== U ? (oe = (he) => {
|
|
132
|
+
const Fe = I ? {
|
|
133
|
+
...he,
|
|
134
|
+
viewState: Pt(he)
|
|
135
|
+
} : he;
|
|
136
|
+
U(Fe);
|
|
137
|
+
}, e[30] = I, e[31] = U, e[32] = oe) : oe = e[32];
|
|
138
|
+
const re = oe;
|
|
153
139
|
let Z;
|
|
154
|
-
e[
|
|
140
|
+
e[33] === Symbol.for("react.memo_cache_sentinel") ? (Z = (he) => {
|
|
141
|
+
const Fe = he.type === "deckgl" ? 0 : 1;
|
|
142
|
+
P((ft) => ft.map((mt, pt) => pt === Fe ? !0 : mt));
|
|
143
|
+
}, e[33] = Z) : Z = e[33];
|
|
144
|
+
const ie = Z;
|
|
145
|
+
let ae, le;
|
|
146
|
+
e[34] !== A || e[35] !== n ? (ae = () => {
|
|
147
|
+
n == null || n(A);
|
|
148
|
+
}, le = [A, n], e[34] = A, e[35] = n, e[36] = ae, e[37] = le) : (ae = e[36], le = e[37]), Y(ae, le);
|
|
149
|
+
let se;
|
|
150
|
+
e[38] === Symbol.for("react.memo_cache_sentinel") ? (se = () => ie({
|
|
151
|
+
type: "deckgl"
|
|
152
|
+
}), e[38] = se) : se = e[38];
|
|
153
|
+
let X;
|
|
154
|
+
e[39] !== i ? (X = {
|
|
155
155
|
depthTest: !1,
|
|
156
156
|
...i
|
|
157
|
-
}, e[39] = i, 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
|
+
}, e[39] = i, e[40] = X) : X = e[40];
|
|
160
158
|
let z;
|
|
161
|
-
e[
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
159
|
+
e[41] !== r ? (z = /* @__PURE__ */ H(cs, { overlayRef: r }), e[41] = r, e[42] = z) : z = e[42];
|
|
160
|
+
let J;
|
|
161
|
+
e[43] !== E || e[44] !== M || e[45] !== I || e[46] !== N || e[47] !== a ? (J = I ? /* @__PURE__ */ H(Lt, { mapTypeId: M, reuseMaps: !0, renderingType: "RASTER", ...E, defaultCenter: {
|
|
162
|
+
lat: ((ye = a.initialViewState) == null ? void 0 : ye.latitude) ?? 0,
|
|
163
|
+
lng: ((L = a.initialViewState) == null ? void 0 : L.longitude) ?? 0
|
|
164
|
+
}, defaultZoom: ((je = a.initialViewState) == null ? void 0 : je.zoom) ?? 0, onTilesLoaded: () => ie({
|
|
165
165
|
type: "load"
|
|
166
|
-
}) }) : /* @__PURE__ */
|
|
166
|
+
}) }) : /* @__PURE__ */ H(bt, { reuseMaps: !0, mapStyle: N, onLoad: () => ie({
|
|
167
167
|
type: "load"
|
|
168
|
-
}), onRender: os }), e[43] =
|
|
169
|
-
let
|
|
170
|
-
e[49] !==
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
] }) }) }), e[49] =
|
|
174
|
-
let
|
|
175
|
-
return e[62] !==
|
|
168
|
+
}), onRender: os }), e[43] = E, e[44] = M, e[45] = I, e[46] = N, e[47] = a, e[48] = J) : J = e[48];
|
|
169
|
+
let W;
|
|
170
|
+
e[49] !== ge || e[50] !== h || e[51] !== O || e[52] !== D || e[53] !== B || e[54] !== re || e[55] !== y || e[56] !== t || e[57] !== a || e[58] !== X || e[59] !== z || e[60] !== J ? (W = /* @__PURE__ */ H(Tt, { children: /* @__PURE__ */ H("div", { className: "deckgl-map", children: /* @__PURE__ */ ht(vt, { controller: h, id: y, ref: t, layers: ge, getCursor: O, getTooltip: D, onLoad: se, onResize: B, onViewStateChange: re, parameters: X, ...a, children: [
|
|
171
|
+
z,
|
|
172
|
+
J
|
|
173
|
+
] }) }) }), e[49] = ge, e[50] = h, e[51] = O, e[52] = D, e[53] = B, e[54] = re, e[55] = y, e[56] = t, e[57] = a, e[58] = X, e[59] = z, e[60] = J, e[61] = W) : W = e[61];
|
|
174
|
+
let ce;
|
|
175
|
+
return e[62] !== _ || e[63] !== F || e[64] !== W ? (ce = /* @__PURE__ */ H(_t, { apiKey: F, ..._, children: W }), e[62] = _, e[63] = F, e[64] = W, e[65] = ce) : ce = e[65], ce;
|
|
176
176
|
}
|
|
177
177
|
function os() {
|
|
178
178
|
const o = document.querySelector(".maplibregl-compact-show");
|
|
@@ -199,11 +199,11 @@ function cs(o) {
|
|
|
199
199
|
overlayRef: t
|
|
200
200
|
} = o, {
|
|
201
201
|
default: n
|
|
202
|
-
} = Mt(), s =
|
|
202
|
+
} = Mt(), s = Et();
|
|
203
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]),
|
|
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]), St(t, r, i), null;
|
|
205
205
|
}
|
|
206
|
-
const
|
|
206
|
+
const K = {
|
|
207
207
|
addFeature: "addFeature",
|
|
208
208
|
addTentativePosition: "addTentativePosition",
|
|
209
209
|
updateTentativeFeature: "updateTentativeFeature",
|
|
@@ -211,34 +211,32 @@ const H = {
|
|
|
211
211
|
finish: "finish",
|
|
212
212
|
addPosition: "addPosition"
|
|
213
213
|
};
|
|
214
|
-
class us extends
|
|
214
|
+
class us extends kt {
|
|
215
215
|
constructor() {
|
|
216
|
-
super([new
|
|
216
|
+
super([new Ct(), new Ft()]);
|
|
217
217
|
}
|
|
218
218
|
handleKeyUp(e, t) {
|
|
219
219
|
super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
|
|
220
220
|
updatedData: t.data,
|
|
221
|
-
editType:
|
|
221
|
+
editType: K.addFeature,
|
|
222
222
|
editContext: {}
|
|
223
223
|
}));
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
const
|
|
227
|
-
id:
|
|
228
|
-
pickable: !1,
|
|
226
|
+
const Te = "lassoLayer", ke = "maskLayer", ds = {
|
|
227
|
+
id: Te,
|
|
229
228
|
billboard: !1,
|
|
230
229
|
editHandlePointRadiusUnits: "pixels",
|
|
231
230
|
editHandlePointRadiusMinPixels: 1,
|
|
232
231
|
editHandlePointRadiusMaxPixels: 12,
|
|
233
|
-
lineWidthMinPixels: 2,
|
|
234
232
|
editHandlePointStrokeWidth: 3,
|
|
235
233
|
getEditHandlePointRadius: 3,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
},
|
|
234
|
+
stroked: !0,
|
|
235
|
+
filled: !0,
|
|
236
|
+
lineWidthUnits: "pixels",
|
|
237
|
+
getLineWidth: 2,
|
|
238
|
+
lineWidthMinPixels: 2
|
|
239
|
+
}, Ie = {
|
|
242
240
|
editing: {
|
|
243
241
|
border: [3, 111, 226, 255],
|
|
244
242
|
fill: [3, 111, 226, 20.4],
|
|
@@ -248,49 +246,50 @@ const be = "lassoLayer", Ce = "maskLayer", ds = {
|
|
|
248
246
|
border: [71, 219, 153, 255],
|
|
249
247
|
fill: [71, 219, 153, 0]
|
|
250
248
|
}
|
|
251
|
-
},
|
|
249
|
+
}, Ae = {
|
|
252
250
|
styles: {
|
|
253
251
|
colors: {
|
|
254
|
-
editing:
|
|
255
|
-
finished:
|
|
252
|
+
editing: Ie.editing,
|
|
253
|
+
finished: Ie.finished
|
|
256
254
|
}
|
|
257
255
|
},
|
|
258
256
|
labels: {
|
|
259
|
-
mask: "
|
|
257
|
+
mask: "Mask"
|
|
260
258
|
}
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
259
|
+
}, fs = [new Ut({
|
|
260
|
+
filterSize: 1
|
|
261
|
+
})], Pe = {
|
|
262
|
+
id: ke,
|
|
263
|
+
operation: "mask",
|
|
264
|
+
pickable: !1,
|
|
265
|
+
visible: !0,
|
|
266
|
+
extensions: fs,
|
|
267
|
+
filterRange: [1, 1]
|
|
268
|
+
}, Be = {
|
|
270
269
|
polygon: {
|
|
271
270
|
value: "polygon",
|
|
272
|
-
mode:
|
|
271
|
+
mode: At
|
|
273
272
|
},
|
|
274
273
|
rectangle: {
|
|
275
274
|
value: "rectangle",
|
|
276
|
-
mode:
|
|
275
|
+
mode: Ot
|
|
277
276
|
},
|
|
278
277
|
circle: {
|
|
279
278
|
value: "circle",
|
|
280
|
-
mode:
|
|
279
|
+
mode: Xe
|
|
281
280
|
},
|
|
282
281
|
lasso: {
|
|
283
282
|
value: "lasso",
|
|
284
|
-
mode:
|
|
283
|
+
mode: wt
|
|
285
284
|
},
|
|
286
285
|
edit: {
|
|
287
286
|
value: "edit",
|
|
288
287
|
mode: us
|
|
289
288
|
}
|
|
290
|
-
}, _e =
|
|
289
|
+
}, _e = et((o) => ({
|
|
291
290
|
layers: {},
|
|
292
291
|
setLayer: (e, t) => o((n) => {
|
|
293
|
-
var
|
|
292
|
+
var a;
|
|
294
293
|
const s = {
|
|
295
294
|
...n.layers
|
|
296
295
|
};
|
|
@@ -301,7 +300,7 @@ const be = "lassoLayer", Ce = "maskLayer", ds = {
|
|
|
301
300
|
const r = s[e] ?? {
|
|
302
301
|
type: null,
|
|
303
302
|
props: {}
|
|
304
|
-
};
|
|
303
|
+
}, i = [...r.props.extensions ?? [], ...((a = t.props) == null ? void 0 : a.extensions) ?? []].reduce((l, m) => (l.some((c) => c.equals(m)) || l.push(m), l), []);
|
|
305
304
|
return s[e] = {
|
|
306
305
|
...r,
|
|
307
306
|
...t,
|
|
@@ -309,7 +308,7 @@ const be = "lassoLayer", Ce = "maskLayer", ds = {
|
|
|
309
308
|
id: e,
|
|
310
309
|
...r.props,
|
|
311
310
|
...t.props,
|
|
312
|
-
extensions:
|
|
311
|
+
extensions: i
|
|
313
312
|
},
|
|
314
313
|
legend: {
|
|
315
314
|
...r.legend,
|
|
@@ -319,12 +318,12 @@ const be = "lassoLayer", Ce = "maskLayer", ds = {
|
|
|
319
318
|
layers: s
|
|
320
319
|
};
|
|
321
320
|
})
|
|
322
|
-
})),
|
|
321
|
+
})), ms = {
|
|
323
322
|
transitionDuration: "auto",
|
|
324
|
-
transitionInterpolator: new
|
|
323
|
+
transitionInterpolator: new Vt({
|
|
325
324
|
curve: 2
|
|
326
325
|
})
|
|
327
|
-
},
|
|
326
|
+
}, ps = (o) => {
|
|
328
327
|
const e = o.reduce((t, n) => {
|
|
329
328
|
const {
|
|
330
329
|
id: s,
|
|
@@ -377,8 +376,8 @@ const be = "lassoLayer", Ce = "maskLayer", ds = {
|
|
|
377
376
|
return (a = (i = n().maps[s]) == null ? void 0 : i.overlayRef) == null ? void 0 : a.current;
|
|
378
377
|
},
|
|
379
378
|
getDeckInstance: (s) => {
|
|
380
|
-
var i, a,
|
|
381
|
-
return (
|
|
379
|
+
var i, a, l;
|
|
380
|
+
return (l = (a = (i = n().maps[s]) == null ? void 0 : i.instanceRef) == null ? void 0 : a.current) == null ? void 0 : l.deck;
|
|
382
381
|
},
|
|
383
382
|
getViewState: (s) => {
|
|
384
383
|
const i = n().getDeckInstance(s);
|
|
@@ -390,14 +389,14 @@ const be = "lassoLayer", Ce = "maskLayer", ds = {
|
|
|
390
389
|
},
|
|
391
390
|
getViewport: (s, r = 0, i) => {
|
|
392
391
|
var m;
|
|
393
|
-
const
|
|
394
|
-
return (m =
|
|
392
|
+
const l = n().getDeckInstance(s);
|
|
393
|
+
return (m = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : m[r];
|
|
395
394
|
},
|
|
396
395
|
addLayers: (s, r) => t((i) => {
|
|
397
|
-
var
|
|
396
|
+
var c;
|
|
398
397
|
const a = {
|
|
399
398
|
...i.maps
|
|
400
|
-
},
|
|
399
|
+
}, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [], m = /* @__PURE__ */ new Set([...l, ...r]);
|
|
401
400
|
return a[s] = {
|
|
402
401
|
...a[s],
|
|
403
402
|
layers: [...m]
|
|
@@ -409,16 +408,16 @@ const be = "lassoLayer", Ce = "maskLayer", ds = {
|
|
|
409
408
|
var m;
|
|
410
409
|
const a = {
|
|
411
410
|
...i.maps
|
|
412
|
-
},
|
|
411
|
+
}, l = ((m = a[s]) == null ? void 0 : m.layers) ?? [];
|
|
413
412
|
return a[s] = {
|
|
414
413
|
...a[s],
|
|
415
|
-
layers:
|
|
414
|
+
layers: l.filter((c) => !r.includes(c))
|
|
416
415
|
}, {
|
|
417
416
|
maps: a
|
|
418
417
|
};
|
|
419
418
|
})
|
|
420
419
|
});
|
|
421
|
-
},
|
|
420
|
+
}, gs = (o) => {
|
|
422
421
|
const e = o.reduce((t, n) => (n.viewState && (t.viewStates[n.id] = n.viewState, t.viewports[n.id] = null), t), {
|
|
423
422
|
viewStates: {},
|
|
424
423
|
viewports: {}
|
|
@@ -429,10 +428,10 @@ const be = "lassoLayer", Ce = "maskLayer", ds = {
|
|
|
429
428
|
var a;
|
|
430
429
|
const r = n();
|
|
431
430
|
if (!((a = r.maps[s]) != null && a.isLoaded)) return;
|
|
432
|
-
const i = new
|
|
433
|
-
t((
|
|
431
|
+
const i = new jt(r.viewStates[s]);
|
|
432
|
+
t((l) => ({
|
|
434
433
|
viewports: {
|
|
435
|
-
...
|
|
434
|
+
...l.viewports,
|
|
436
435
|
[s]: i
|
|
437
436
|
}
|
|
438
437
|
}));
|
|
@@ -475,57 +474,57 @@ const be = "lassoLayer", Ce = "maskLayer", ds = {
|
|
|
475
474
|
}
|
|
476
475
|
}))
|
|
477
476
|
});
|
|
478
|
-
},
|
|
477
|
+
}, ys = (o, e) => ({
|
|
479
478
|
fitBounds: (t, n, s) => {
|
|
480
479
|
const r = e(), i = r.getViewport(t);
|
|
481
480
|
if (!i) return;
|
|
482
|
-
const
|
|
481
|
+
const l = {
|
|
483
482
|
...i == null ? void 0 : i.fitBounds(n, s == null ? void 0 : s.boundsOptions),
|
|
484
483
|
...s == null ? void 0 : s.viewStateOptions
|
|
485
484
|
};
|
|
486
|
-
r.setViewState(t,
|
|
485
|
+
r.setViewState(t, l);
|
|
487
486
|
},
|
|
488
487
|
flyTo: (t, n, s = {}) => {
|
|
489
488
|
const r = e();
|
|
490
489
|
if (!r.getViewport(t)) return;
|
|
491
490
|
const a = {
|
|
492
|
-
...
|
|
491
|
+
...ms,
|
|
493
492
|
...s == null ? void 0 : s.viewStateOptions
|
|
494
|
-
},
|
|
493
|
+
}, l = {
|
|
495
494
|
...n,
|
|
496
495
|
...a
|
|
497
496
|
};
|
|
498
|
-
r.setViewState(t,
|
|
497
|
+
r.setViewState(t, l);
|
|
499
498
|
}
|
|
500
|
-
}),
|
|
501
|
-
...ms(o)(...e),
|
|
499
|
+
}), hs = (o) => $e()((...e) => ({
|
|
502
500
|
...ps(o)(...e),
|
|
503
|
-
...gs(...e)
|
|
504
|
-
|
|
505
|
-
|
|
501
|
+
...gs(o)(...e),
|
|
502
|
+
...ys(...e)
|
|
503
|
+
})), ot = qe({});
|
|
504
|
+
function Ss(o) {
|
|
506
505
|
const e = C(5), {
|
|
507
506
|
children: t,
|
|
508
507
|
values: n
|
|
509
508
|
} = o;
|
|
510
509
|
let s;
|
|
511
|
-
e[0] !== n ? (s =
|
|
512
|
-
const [r] =
|
|
510
|
+
e[0] !== n ? (s = hs(n), e[0] = n, e[1] = s) : s = e[1];
|
|
511
|
+
const [r] = fe(s);
|
|
513
512
|
let i;
|
|
514
|
-
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */
|
|
513
|
+
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */ H(ot.Provider, { value: r, children: t }), e[2] = t, e[3] = r, e[4] = i) : i = e[4], i;
|
|
515
514
|
}
|
|
516
|
-
function
|
|
517
|
-
const e =
|
|
515
|
+
function w(o) {
|
|
516
|
+
const e = Ue(ot);
|
|
518
517
|
if (!Object.keys(e).length)
|
|
519
518
|
throw new Error("Missing MapProvider in the tree");
|
|
520
|
-
return
|
|
519
|
+
return Ve(e, o);
|
|
521
520
|
}
|
|
522
|
-
function
|
|
521
|
+
function vs(o) {
|
|
523
522
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
524
523
|
}
|
|
525
|
-
var
|
|
526
|
-
function
|
|
527
|
-
if (
|
|
528
|
-
|
|
524
|
+
var Re, He;
|
|
525
|
+
function bs() {
|
|
526
|
+
if (He) return Re;
|
|
527
|
+
He = 1;
|
|
529
528
|
var o = function(y) {
|
|
530
529
|
return e(y) && !t(y);
|
|
531
530
|
};
|
|
@@ -546,24 +545,24 @@ function vs() {
|
|
|
546
545
|
function a(h, y) {
|
|
547
546
|
return y.clone !== !1 && y.isMergeableObject(h) ? f(i(h), h, y) : h;
|
|
548
547
|
}
|
|
549
|
-
function
|
|
548
|
+
function l(h, y, T) {
|
|
550
549
|
return h.concat(y).map(function(S) {
|
|
551
|
-
return a(S,
|
|
550
|
+
return a(S, T);
|
|
552
551
|
});
|
|
553
552
|
}
|
|
554
553
|
function m(h, y) {
|
|
555
554
|
if (!y.customMerge)
|
|
556
555
|
return f;
|
|
557
|
-
var
|
|
558
|
-
return typeof
|
|
556
|
+
var T = y.customMerge(h);
|
|
557
|
+
return typeof T == "function" ? T : f;
|
|
559
558
|
}
|
|
560
|
-
function
|
|
559
|
+
function c(h) {
|
|
561
560
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(h).filter(function(y) {
|
|
562
561
|
return Object.propertyIsEnumerable.call(h, y);
|
|
563
562
|
}) : [];
|
|
564
563
|
}
|
|
565
564
|
function p(h) {
|
|
566
|
-
return Object.keys(h).concat(
|
|
565
|
+
return Object.keys(h).concat(c(h));
|
|
567
566
|
}
|
|
568
567
|
function d(h, y) {
|
|
569
568
|
try {
|
|
@@ -575,52 +574,52 @@ function vs() {
|
|
|
575
574
|
function u(h, y) {
|
|
576
575
|
return d(h, y) && !(Object.hasOwnProperty.call(h, y) && Object.propertyIsEnumerable.call(h, y));
|
|
577
576
|
}
|
|
578
|
-
function g(h, y,
|
|
577
|
+
function g(h, y, T) {
|
|
579
578
|
var S = {};
|
|
580
|
-
return
|
|
581
|
-
S[v] = a(h[v],
|
|
579
|
+
return T.isMergeableObject(h) && p(h).forEach(function(v) {
|
|
580
|
+
S[v] = a(h[v], T);
|
|
582
581
|
}), p(y).forEach(function(v) {
|
|
583
|
-
u(h, v) || (d(h, v) &&
|
|
582
|
+
u(h, v) || (d(h, v) && T.isMergeableObject(y[v]) ? S[v] = m(v, T)(h[v], y[v], T) : S[v] = a(y[v], T));
|
|
584
583
|
}), S;
|
|
585
584
|
}
|
|
586
|
-
function f(h, y,
|
|
587
|
-
|
|
588
|
-
var S = Array.isArray(y), v = Array.isArray(h),
|
|
589
|
-
return
|
|
585
|
+
function f(h, y, T) {
|
|
586
|
+
T = T || {}, T.arrayMerge = T.arrayMerge || l, T.isMergeableObject = T.isMergeableObject || o, T.cloneUnlessOtherwiseSpecified = a;
|
|
587
|
+
var S = Array.isArray(y), v = Array.isArray(h), _ = S === v;
|
|
588
|
+
return _ ? S ? T.arrayMerge(h, y, T) : g(h, y, T) : a(y, T);
|
|
590
589
|
}
|
|
591
|
-
f.all = function(y,
|
|
590
|
+
f.all = function(y, T) {
|
|
592
591
|
if (!Array.isArray(y))
|
|
593
592
|
throw new Error("first argument should be an array");
|
|
594
593
|
return y.reduce(function(S, v) {
|
|
595
|
-
return f(S, v,
|
|
594
|
+
return f(S, v, T);
|
|
596
595
|
}, {});
|
|
597
596
|
};
|
|
598
|
-
var
|
|
599
|
-
return
|
|
597
|
+
var M = f;
|
|
598
|
+
return Re = M, Re;
|
|
600
599
|
}
|
|
601
|
-
var
|
|
602
|
-
const
|
|
603
|
-
function
|
|
600
|
+
var Ts = bs();
|
|
601
|
+
const Me = /* @__PURE__ */ vs(Ts);
|
|
602
|
+
function Ms({
|
|
604
603
|
mode: o,
|
|
605
604
|
...e
|
|
606
605
|
}) {
|
|
607
|
-
const t =
|
|
606
|
+
const t = Ls(e);
|
|
608
607
|
return {
|
|
609
|
-
type:
|
|
608
|
+
type: Je,
|
|
610
609
|
props: {
|
|
611
610
|
...t,
|
|
612
611
|
mode: o
|
|
613
612
|
}
|
|
614
613
|
};
|
|
615
614
|
}
|
|
616
|
-
function
|
|
615
|
+
function Ls({
|
|
617
616
|
layerProps: o,
|
|
618
617
|
onEdit: e,
|
|
619
|
-
|
|
620
|
-
|
|
618
|
+
getLineColor: t,
|
|
619
|
+
getFillColor: n,
|
|
621
620
|
pointColor: s
|
|
622
621
|
}) {
|
|
623
|
-
const r =
|
|
622
|
+
const r = Me(o, {
|
|
624
623
|
modeConfig: {
|
|
625
624
|
// // We force distance due to conversion is addressed at feature getText level
|
|
626
625
|
// formatTooltip: (_distance: number) => {
|
|
@@ -629,33 +628,33 @@ function Ts({
|
|
|
629
628
|
preventOverlappingLines: !0
|
|
630
629
|
},
|
|
631
630
|
onEdit: e
|
|
632
|
-
}), i =
|
|
631
|
+
}), i = Me(ds, {
|
|
633
632
|
getTentativeLineColor: t,
|
|
634
633
|
getTentativeFillColor: n,
|
|
635
634
|
getLineColor: t,
|
|
636
635
|
getFillColor: n,
|
|
637
|
-
getEditHandlePointColor: s,
|
|
638
|
-
getEditHandlePointOutlineColor:
|
|
639
|
-
dataComparator: (
|
|
636
|
+
getEditHandlePointColor: s.fill,
|
|
637
|
+
getEditHandlePointOutlineColor: s.outline,
|
|
638
|
+
dataComparator: (l, m) => l.features[0] === m.features[0]
|
|
640
639
|
});
|
|
641
|
-
return
|
|
640
|
+
return Me(i, r);
|
|
642
641
|
}
|
|
643
|
-
const
|
|
642
|
+
const _s = (o) => $e()((e) => ({
|
|
644
643
|
data: o.reduce((n, s) => {
|
|
645
644
|
const {
|
|
646
645
|
enabled: r = !1,
|
|
647
646
|
mapId: i,
|
|
648
647
|
modeInstance: a,
|
|
649
|
-
modes:
|
|
650
|
-
modeSelected: m =
|
|
651
|
-
values:
|
|
648
|
+
modes: l = Be,
|
|
649
|
+
modeSelected: m = Be.polygon.value,
|
|
650
|
+
values: c = {}
|
|
652
651
|
} = s;
|
|
653
652
|
return n[i] = {
|
|
654
653
|
enabled: r,
|
|
655
654
|
modeInstance: a,
|
|
656
|
-
modes:
|
|
655
|
+
modes: l,
|
|
657
656
|
modeSelected: m,
|
|
658
|
-
values:
|
|
657
|
+
values: c
|
|
659
658
|
}, n;
|
|
660
659
|
}, {}),
|
|
661
660
|
setEnabled: (n, s) => {
|
|
@@ -674,11 +673,11 @@ const Ms = (o) => Ve()((e) => ({
|
|
|
674
673
|
e((i) => {
|
|
675
674
|
const a = {
|
|
676
675
|
...i.data[n].values
|
|
677
|
-
},
|
|
676
|
+
}, l = a[s] ?? {
|
|
678
677
|
type: "mask"
|
|
679
678
|
};
|
|
680
679
|
return a[s] = {
|
|
681
|
-
...
|
|
680
|
+
...l,
|
|
682
681
|
...r,
|
|
683
682
|
id: s
|
|
684
683
|
}, r || delete a[s], {
|
|
@@ -696,15 +695,15 @@ const Ms = (o) => Ve()((e) => ({
|
|
|
696
695
|
e((i) => {
|
|
697
696
|
const a = {
|
|
698
697
|
...i.data[n].values
|
|
699
|
-
},
|
|
700
|
-
return
|
|
698
|
+
}, l = a[s] ?? {};
|
|
699
|
+
return l.properties.visible = r, {
|
|
701
700
|
data: {
|
|
702
701
|
...i.data,
|
|
703
702
|
[n]: {
|
|
704
703
|
...i.data[n],
|
|
705
704
|
values: {
|
|
706
705
|
...a,
|
|
707
|
-
[s]:
|
|
706
|
+
[s]: l
|
|
708
707
|
}
|
|
709
708
|
}
|
|
710
709
|
}
|
|
@@ -733,67 +732,64 @@ const Ms = (o) => Ve()((e) => ({
|
|
|
733
732
|
}
|
|
734
733
|
}));
|
|
735
734
|
}
|
|
736
|
-
})),
|
|
737
|
-
function
|
|
735
|
+
})), rt = qe({});
|
|
736
|
+
function Ps(o) {
|
|
738
737
|
const e = C(5), {
|
|
739
738
|
children: t,
|
|
740
739
|
values: n
|
|
741
740
|
} = o;
|
|
742
741
|
let s;
|
|
743
|
-
e[0] !== n ? (s = () =>
|
|
744
|
-
const [r] =
|
|
742
|
+
e[0] !== n ? (s = () => _s(n), e[0] = n, e[1] = s) : s = e[1];
|
|
743
|
+
const [r] = fe(s);
|
|
745
744
|
let i;
|
|
746
|
-
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */
|
|
745
|
+
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */ H(rt.Provider, { value: r, children: t }), e[2] = t, e[3] = r, e[4] = i) : i = e[4], i;
|
|
747
746
|
}
|
|
748
|
-
function
|
|
749
|
-
const e =
|
|
747
|
+
function j(o) {
|
|
748
|
+
const e = Ue(rt);
|
|
750
749
|
if (!Object.keys(e).length)
|
|
751
750
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
752
|
-
return
|
|
751
|
+
return Ve(e, o);
|
|
753
752
|
}
|
|
754
|
-
function
|
|
753
|
+
function Es({
|
|
755
754
|
mapId: o,
|
|
756
755
|
children: e
|
|
757
756
|
}) {
|
|
758
|
-
const t =
|
|
757
|
+
const t = j((u) => {
|
|
759
758
|
var g;
|
|
760
759
|
return (g = u.data[o]) == null ? void 0 : g.enabled;
|
|
761
|
-
}), n =
|
|
760
|
+
}), n = j((u) => u.setEnabled), s = j((u) => {
|
|
762
761
|
var g;
|
|
763
762
|
return (g = u.data[o]) == null ? void 0 : g.values;
|
|
764
|
-
}), r =
|
|
763
|
+
}), r = j((u) => u.setValue), i = j((u) => u.setVisibility), a = j((u) => {
|
|
765
764
|
var g;
|
|
766
765
|
return (g = u.data[o]) == null ? void 0 : g.modeSelected;
|
|
767
|
-
}),
|
|
766
|
+
}), l = j((u) => u.setModeSelected), m = j((u) => {
|
|
768
767
|
var g;
|
|
769
768
|
return (g = u.data[o]) == null ? void 0 : g.modes;
|
|
770
|
-
}),
|
|
771
|
-
|
|
769
|
+
}), c = j((u) => u.setModeInstance);
|
|
770
|
+
Y(() => {
|
|
772
771
|
const u = m[a];
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
l(o, f);
|
|
776
|
-
}
|
|
777
|
-
}, [t, o, a, m, l]);
|
|
772
|
+
u && t && c(o, u.mode);
|
|
773
|
+
}, [t, o, a, m, c]);
|
|
778
774
|
const [
|
|
779
775
|
p
|
|
780
776
|
// , draw
|
|
781
|
-
] =
|
|
782
|
-
const u = (
|
|
777
|
+
] = de(() => {
|
|
778
|
+
const u = (M) => {
|
|
783
779
|
var h;
|
|
784
780
|
return {
|
|
785
|
-
id:
|
|
786
|
-
visible:
|
|
787
|
-
label: (h =
|
|
781
|
+
id: M.id,
|
|
782
|
+
visible: M.properties.visible,
|
|
783
|
+
label: (h = M.properties) == null ? void 0 : h.label
|
|
788
784
|
};
|
|
789
785
|
};
|
|
790
786
|
return [
|
|
791
|
-
Object.values(s).filter((
|
|
787
|
+
Object.values(s).filter((M) => M.type === "mask").map(u)
|
|
792
788
|
// , draw
|
|
793
789
|
];
|
|
794
|
-
}, [s]), d =
|
|
795
|
-
n(o, !!u),
|
|
796
|
-
}, [o, n,
|
|
790
|
+
}, [s]), d = $((u) => {
|
|
791
|
+
n(o, !!u), l(o, u);
|
|
792
|
+
}, [o, n, l]);
|
|
797
793
|
return e({
|
|
798
794
|
mapId: o,
|
|
799
795
|
enabled: t,
|
|
@@ -803,25 +799,25 @@ function Ps({
|
|
|
803
799
|
mask: p
|
|
804
800
|
// draw,
|
|
805
801
|
},
|
|
806
|
-
setValue:
|
|
807
|
-
setEnabled:
|
|
808
|
-
setVisibility:
|
|
802
|
+
setValue: $((u) => r(o, u), [o, r]),
|
|
803
|
+
setEnabled: $((u) => n(o, u), [o, n]),
|
|
804
|
+
setVisibility: $((u, g) => i(o, u, g), [o, i]),
|
|
809
805
|
setModeSelected: d
|
|
810
806
|
});
|
|
811
807
|
}
|
|
812
|
-
function
|
|
808
|
+
function it({
|
|
813
809
|
values: o
|
|
814
810
|
}) {
|
|
815
811
|
return Object.values(o ?? {}).filter((e) => e.type === "mask");
|
|
816
812
|
}
|
|
817
|
-
const
|
|
813
|
+
const ks = Qt({
|
|
818
814
|
length: Kt
|
|
819
815
|
});
|
|
820
|
-
function
|
|
821
|
-
return
|
|
816
|
+
function Qe(o, e) {
|
|
817
|
+
return ks(o).from(Ze[R.meter]).to(Ze[e]);
|
|
822
818
|
}
|
|
823
|
-
const
|
|
824
|
-
function
|
|
819
|
+
const Ke = 1e4;
|
|
820
|
+
function Ce({
|
|
825
821
|
meters: o,
|
|
826
822
|
unit: e,
|
|
827
823
|
locale: t,
|
|
@@ -829,20 +825,20 @@ function we({
|
|
|
829
825
|
autoSplitNumber: n,
|
|
830
826
|
...s
|
|
831
827
|
} = {
|
|
832
|
-
autoSplitNumber:
|
|
828
|
+
autoSplitNumber: Ke
|
|
833
829
|
}
|
|
834
830
|
}) {
|
|
835
|
-
const r = e ===
|
|
836
|
-
let
|
|
831
|
+
const r = e === xe["m-km"], i = e === xe["ft-mi"], a = r || i;
|
|
832
|
+
let l, m;
|
|
837
833
|
if (a) {
|
|
838
|
-
const
|
|
839
|
-
let p =
|
|
840
|
-
|
|
834
|
+
const c = o < (n ?? Ke);
|
|
835
|
+
let p = c ? R.meter : R.kilometer;
|
|
836
|
+
l = c ? Le.meter : Le.kilometer, i && (l = c ? Le.feet : Le.mile, p = c ? R.feet : R.mile), m = Qe(o, p);
|
|
841
837
|
} else
|
|
842
|
-
|
|
843
|
-
return `${
|
|
838
|
+
l = Le[e], m = Qe(o, e);
|
|
839
|
+
return `${st(m, t, {
|
|
844
840
|
style: "unit",
|
|
845
|
-
unit:
|
|
841
|
+
unit: l,
|
|
846
842
|
unitDisplay: "short",
|
|
847
843
|
notation: "standard",
|
|
848
844
|
minimumFractionDigits: 2,
|
|
@@ -850,7 +846,7 @@ function we({
|
|
|
850
846
|
...s
|
|
851
847
|
})}`;
|
|
852
848
|
}
|
|
853
|
-
function
|
|
849
|
+
function Zn(o, {
|
|
854
850
|
hasDoubleClickZoom: e
|
|
855
851
|
}) {
|
|
856
852
|
return typeof o == "boolean" ? {
|
|
@@ -860,7 +856,7 @@ function Gn(o, {
|
|
|
860
856
|
doubleClickZoom: e
|
|
861
857
|
};
|
|
862
858
|
}
|
|
863
|
-
function
|
|
859
|
+
function at(o, e, t) {
|
|
864
860
|
if (o > 0) {
|
|
865
861
|
const {
|
|
866
862
|
formatTooltip: n,
|
|
@@ -882,13 +878,13 @@ function lt(o, e, t) {
|
|
|
882
878
|
}
|
|
883
879
|
return [];
|
|
884
880
|
}
|
|
885
|
-
class
|
|
881
|
+
class Cs extends Rt {
|
|
886
882
|
constructor() {
|
|
887
883
|
super(...arguments);
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
884
|
+
ne(this, "_isMeasuringSessionFinished", !1);
|
|
885
|
+
ne(this, "area", 0);
|
|
886
|
+
ne(this, "tooltips", []);
|
|
887
|
+
ne(this, "resultPolygon", {
|
|
892
888
|
type: "FeatureCollection",
|
|
893
889
|
features: []
|
|
894
890
|
});
|
|
@@ -897,9 +893,9 @@ class ks extends Dt {
|
|
|
897
893
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
898
894
|
const {
|
|
899
895
|
picks: s
|
|
900
|
-
} = t, r =
|
|
896
|
+
} = t, r = Dt(s), i = this.getClickSequence();
|
|
901
897
|
let a = !1;
|
|
902
|
-
!r && !this.allowOverlapping(n) && (this.addClickSequence(t), a = !0), this.area =
|
|
898
|
+
!r && !this.allowOverlapping(n) && (this.addClickSequence(t), a = !0), this.area = Ne({
|
|
903
899
|
type: "Polygon",
|
|
904
900
|
coordinates: [this.getClickSequence()]
|
|
905
901
|
}), this.isFinalizedEdition(i, r) ? this.finalizeEdition(n) : a && n.onEdit({
|
|
@@ -921,7 +917,7 @@ class ks extends Dt {
|
|
|
921
917
|
const s = this.getTentativeGuide(n);
|
|
922
918
|
if (s && s.geometry.type === "Polygon") {
|
|
923
919
|
const r = It(s);
|
|
924
|
-
this.area =
|
|
920
|
+
this.area = Ne(s), this.tooltips = at(this.area, r.geometry.coordinates, n.modeConfig);
|
|
925
921
|
}
|
|
926
922
|
}
|
|
927
923
|
resetClickSequence() {
|
|
@@ -970,7 +966,7 @@ class ks extends Dt {
|
|
|
970
966
|
const r = this.getAddFeatureOrBooleanPolygonAction(s, t);
|
|
971
967
|
this._isMeasuringSessionFinished = !0, r && (this.resultPolygon = r.updatedData, t.onEdit({
|
|
972
968
|
...r,
|
|
973
|
-
editType:
|
|
969
|
+
editType: K.addPosition,
|
|
974
970
|
editContext: {
|
|
975
971
|
...r.editContext,
|
|
976
972
|
distance: this.area,
|
|
@@ -993,7 +989,7 @@ class ks extends Dt {
|
|
|
993
989
|
unit: s,
|
|
994
990
|
options: r
|
|
995
991
|
}) {
|
|
996
|
-
return
|
|
992
|
+
return Ce({
|
|
997
993
|
meters: t,
|
|
998
994
|
locale: n,
|
|
999
995
|
unit: s,
|
|
@@ -1001,22 +997,22 @@ class ks extends Dt {
|
|
|
1001
997
|
}) + "2";
|
|
1002
998
|
}
|
|
1003
999
|
}
|
|
1004
|
-
class
|
|
1000
|
+
class Fs extends Xe {
|
|
1005
1001
|
constructor() {
|
|
1006
1002
|
super(...arguments);
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1003
|
+
ne(this, "_isMeasuringSessionFinished", !1);
|
|
1004
|
+
ne(this, "_currentArea", 0);
|
|
1005
|
+
ne(this, "resultPolygon", {
|
|
1010
1006
|
type: "FeatureCollection",
|
|
1011
1007
|
features: []
|
|
1012
1008
|
});
|
|
1013
|
-
|
|
1009
|
+
ne(this, "tooltips", []);
|
|
1014
1010
|
}
|
|
1015
1011
|
handleClick(t, n) {
|
|
1016
1012
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, n);
|
|
1017
1013
|
}
|
|
1018
1014
|
handlePointerMove(t, n) {
|
|
1019
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(t, n), this.tooltips =
|
|
1015
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(t, n), this.tooltips = at(this.areaCircle, this.position, n.modeConfig));
|
|
1020
1016
|
}
|
|
1021
1017
|
checkAndFinishPolygon(t) {
|
|
1022
1018
|
const n = this.getClickSequence(), s = this.getTentativeGuide(t);
|
|
@@ -1040,7 +1036,7 @@ class Cs extends Je {
|
|
|
1040
1036
|
const s = this.getAddFeatureOrBooleanPolygonAction(n, t);
|
|
1041
1037
|
this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"), s && (this.resultPolygon = s.updatedData, t.onEdit({
|
|
1042
1038
|
...s,
|
|
1043
|
-
editType:
|
|
1039
|
+
editType: K.addPosition,
|
|
1044
1040
|
editContext: {
|
|
1045
1041
|
...s.editContext,
|
|
1046
1042
|
distance: this._currentArea,
|
|
@@ -1069,7 +1065,7 @@ class Cs extends Je {
|
|
|
1069
1065
|
unit: s,
|
|
1070
1066
|
options: r
|
|
1071
1067
|
}) {
|
|
1072
|
-
return
|
|
1068
|
+
return Ce({
|
|
1073
1069
|
meters: t,
|
|
1074
1070
|
locale: n,
|
|
1075
1071
|
unit: s,
|
|
@@ -1077,12 +1073,12 @@ class Cs extends Je {
|
|
|
1077
1073
|
}) + "2";
|
|
1078
1074
|
}
|
|
1079
1075
|
}
|
|
1080
|
-
class
|
|
1076
|
+
class lt extends xt {
|
|
1081
1077
|
handleClick(e, t) {
|
|
1082
1078
|
super.handleClick(e, t), t.onEdit({
|
|
1083
1079
|
// data is the same
|
|
1084
1080
|
updatedData: t.data,
|
|
1085
|
-
editType:
|
|
1081
|
+
editType: K.addPosition,
|
|
1086
1082
|
editContext: {
|
|
1087
1083
|
distance: this._currentDistance,
|
|
1088
1084
|
finished: this._isMeasuringSessionFinished,
|
|
@@ -1096,7 +1092,7 @@ class ct extends qt {
|
|
|
1096
1092
|
const {
|
|
1097
1093
|
key: n
|
|
1098
1094
|
} = e, s = this.getClickSequence().length;
|
|
1099
|
-
let r =
|
|
1095
|
+
let r = K.finish;
|
|
1100
1096
|
switch (n) {
|
|
1101
1097
|
case "Escape":
|
|
1102
1098
|
t.onEdit({
|
|
@@ -1104,12 +1100,12 @@ class ct extends qt {
|
|
|
1104
1100
|
type: "FeatureCollection",
|
|
1105
1101
|
features: []
|
|
1106
1102
|
},
|
|
1107
|
-
editType:
|
|
1103
|
+
editType: K.cancel,
|
|
1108
1104
|
editContext: {}
|
|
1109
1105
|
});
|
|
1110
1106
|
break;
|
|
1111
1107
|
case "Enter":
|
|
1112
|
-
this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), r =
|
|
1108
|
+
this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), r = K.cancel), t.onUpdateCursor("cell"), t.onEdit({
|
|
1113
1109
|
updatedData: t.data,
|
|
1114
1110
|
editType: r,
|
|
1115
1111
|
editContext: {
|
|
@@ -1128,7 +1124,7 @@ class ct extends qt {
|
|
|
1128
1124
|
unit: n,
|
|
1129
1125
|
options: s
|
|
1130
1126
|
}) {
|
|
1131
|
-
return
|
|
1127
|
+
return Ce({
|
|
1132
1128
|
meters: e,
|
|
1133
1129
|
locale: t,
|
|
1134
1130
|
unit: n,
|
|
@@ -1136,8 +1132,8 @@ class ct extends qt {
|
|
|
1136
1132
|
});
|
|
1137
1133
|
}
|
|
1138
1134
|
}
|
|
1139
|
-
const
|
|
1140
|
-
id:
|
|
1135
|
+
const ve = "mapMeasureLayer", ws = {
|
|
1136
|
+
id: ve,
|
|
1141
1137
|
pickable: !1,
|
|
1142
1138
|
billboard: !1,
|
|
1143
1139
|
editHandlePointRadiusUnits: "pixels",
|
|
@@ -1161,16 +1157,16 @@ const he = "mapMeasureLayer", ws = {
|
|
|
1161
1157
|
getLineWidth: 2
|
|
1162
1158
|
}
|
|
1163
1159
|
}
|
|
1164
|
-
},
|
|
1160
|
+
}, De = {
|
|
1165
1161
|
editing: [23, 102, 214, 255],
|
|
1166
1162
|
finished: [71, 219, 153, 255],
|
|
1167
1163
|
point: [255, 255, 255, 255]
|
|
1168
1164
|
}, Ge = {
|
|
1169
1165
|
styles: {
|
|
1170
1166
|
colors: {
|
|
1171
|
-
editing:
|
|
1172
|
-
finished:
|
|
1173
|
-
point:
|
|
1167
|
+
editing: De.editing,
|
|
1168
|
+
finished: De.finished,
|
|
1169
|
+
point: De.point
|
|
1174
1170
|
}
|
|
1175
1171
|
}
|
|
1176
1172
|
}, R = {
|
|
@@ -1181,11 +1177,11 @@ const he = "mapMeasureLayer", ws = {
|
|
|
1181
1177
|
mile: "mile",
|
|
1182
1178
|
yard: "yard",
|
|
1183
1179
|
feet: "feet"
|
|
1184
|
-
},
|
|
1180
|
+
}, xe = {
|
|
1185
1181
|
"m-km": "m-km",
|
|
1186
1182
|
"ft-mi": "ft-mi",
|
|
1187
1183
|
...R
|
|
1188
|
-
},
|
|
1184
|
+
}, Os = {
|
|
1189
1185
|
meters: "meters",
|
|
1190
1186
|
kilometer: "kilometers",
|
|
1191
1187
|
mile: "miles"
|
|
@@ -1197,7 +1193,7 @@ const he = "mapMeasureLayer", ws = {
|
|
|
1197
1193
|
[R.mile]: "mi",
|
|
1198
1194
|
[R.yard]: "yd",
|
|
1199
1195
|
[R.feet]: "ft"
|
|
1200
|
-
},
|
|
1196
|
+
}, Le = {
|
|
1201
1197
|
[R.kilometer]: "kilometer",
|
|
1202
1198
|
[R.meter]: "meter",
|
|
1203
1199
|
[R.centimeter]: "centimeter",
|
|
@@ -1205,7 +1201,7 @@ const he = "mapMeasureLayer", ws = {
|
|
|
1205
1201
|
[R.mile]: "mile",
|
|
1206
1202
|
[R.yard]: "yard",
|
|
1207
1203
|
[R.feet]: "foot"
|
|
1208
|
-
},
|
|
1204
|
+
}, Q = {
|
|
1209
1205
|
"m-km": {
|
|
1210
1206
|
value: "m-km",
|
|
1211
1207
|
system: "metric"
|
|
@@ -1242,168 +1238,168 @@ const he = "mapMeasureLayer", ws = {
|
|
|
1242
1238
|
value: "feet",
|
|
1243
1239
|
system: "imperial"
|
|
1244
1240
|
}
|
|
1245
|
-
}, ze = [
|
|
1241
|
+
}, ze = [Q["m-km"], Q.kilometer, Q.meter, Q["ft-mi"], Q.mile, Q.feet], As = [Q["m-km"], Q.kilometer, Q.meter, Q["ft-mi"], Q.mile, Q.feet], Rs = {
|
|
1246
1242
|
distance: {
|
|
1247
1243
|
value: "distance",
|
|
1248
|
-
mode:
|
|
1244
|
+
mode: lt
|
|
1249
1245
|
},
|
|
1250
1246
|
buffer: {
|
|
1251
1247
|
value: "buffer",
|
|
1252
|
-
mode:
|
|
1248
|
+
mode: Fs
|
|
1253
1249
|
},
|
|
1254
1250
|
area: {
|
|
1255
1251
|
value: "area",
|
|
1256
|
-
mode:
|
|
1252
|
+
mode: Cs
|
|
1257
1253
|
}
|
|
1258
|
-
},
|
|
1254
|
+
}, Ds = {
|
|
1259
1255
|
distance: ze,
|
|
1260
1256
|
buffer: ze,
|
|
1261
|
-
area:
|
|
1262
|
-
},
|
|
1263
|
-
filterSize: 1
|
|
1264
|
-
})], Us = [be, Ce, he];
|
|
1257
|
+
area: As
|
|
1258
|
+
}, xs = [Te, ke, ve];
|
|
1265
1259
|
function qs({
|
|
1266
1260
|
children: o,
|
|
1267
1261
|
mapId: e,
|
|
1268
1262
|
defaultProps: {
|
|
1269
|
-
styles: t =
|
|
1263
|
+
styles: t = Ae.styles,
|
|
1270
1264
|
labels: n
|
|
1271
1265
|
} = {
|
|
1272
|
-
styles:
|
|
1273
|
-
labels:
|
|
1266
|
+
styles: Ae.styles,
|
|
1267
|
+
labels: Ae.labels
|
|
1274
1268
|
},
|
|
1275
1269
|
layerProps: s = {},
|
|
1276
1270
|
defaultType: r = "mask"
|
|
1277
1271
|
}) {
|
|
1278
|
-
const i =
|
|
1279
|
-
var
|
|
1280
|
-
return (
|
|
1281
|
-
}), a =
|
|
1282
|
-
var
|
|
1283
|
-
return (
|
|
1284
|
-
}), m =
|
|
1285
|
-
var
|
|
1286
|
-
return (
|
|
1287
|
-
}), p =
|
|
1288
|
-
var
|
|
1289
|
-
return (
|
|
1290
|
-
}), d = _e((b) => b.setLayer), u =
|
|
1291
|
-
var
|
|
1292
|
-
return (
|
|
1293
|
-
})),
|
|
1294
|
-
values:
|
|
1295
|
-
}), [
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1272
|
+
const i = j((b) => {
|
|
1273
|
+
var P;
|
|
1274
|
+
return (P = b.data[e]) == null ? void 0 : P.enabled;
|
|
1275
|
+
}), a = j((b) => b.setEnabled), l = j((b) => {
|
|
1276
|
+
var P;
|
|
1277
|
+
return (P = b.data[e]) == null ? void 0 : P.values;
|
|
1278
|
+
}), m = j((b) => b.setValue), c = j((b) => {
|
|
1279
|
+
var P;
|
|
1280
|
+
return (P = b.data[e]) == null ? void 0 : P.modeInstance;
|
|
1281
|
+
}), p = j((b) => {
|
|
1282
|
+
var P;
|
|
1283
|
+
return (P = b.data[e]) == null ? void 0 : P.modeSelected;
|
|
1284
|
+
}), d = _e((b) => b.setLayer), u = w((b) => b.addLayers), g = w((b) => b.removeLayers), f = w(tt((b) => {
|
|
1285
|
+
var P;
|
|
1286
|
+
return (P = b.maps[e]) == null ? void 0 : P.layers.filter((k) => !xs.includes(k));
|
|
1287
|
+
})), M = w((b) => b.getDeckInstance), h = Ee({}), y = de(() => it({
|
|
1288
|
+
values: l
|
|
1289
|
+
}), [l]), T = de(() => ({
|
|
1290
|
+
type: "FeatureCollection",
|
|
1291
|
+
features: y.map((b) => ({
|
|
1292
|
+
type: "Feature",
|
|
1293
|
+
geometry: b.geometry,
|
|
1294
|
+
properties: b.properties,
|
|
1295
|
+
id: b.id
|
|
1296
|
+
}))
|
|
1297
|
+
}), [y]), S = de(() => y.filter((b) => b.properties.visible).map((b) => b.id), [y]), [v, _] = fe(T), [E, F] = fe([]), O = $(() => {
|
|
1298
|
+
const b = {
|
|
1299
|
+
...T,
|
|
1300
|
+
features: T.features.filter((P) => {
|
|
1301
|
+
var k;
|
|
1302
|
+
return (k = P.properties) == null ? void 0 : k.visible;
|
|
1303
|
+
})
|
|
1304
|
+
};
|
|
1305
|
+
_(b);
|
|
1306
|
+
}, [T]);
|
|
1307
|
+
Y(() => {
|
|
1308
|
+
O();
|
|
1309
|
+
}, [O]);
|
|
1310
|
+
const D = Ee(y.length);
|
|
1311
|
+
Y(() => (u(e, [Te]), () => {
|
|
1312
|
+
g(e, [Te]);
|
|
1313
|
+
}), [u, e, g]);
|
|
1314
|
+
const U = $(() => {
|
|
1315
|
+
O(), F([]), a(e, !1);
|
|
1316
|
+
}, [e, O, a]), V = $(({
|
|
1302
1317
|
editType: b,
|
|
1303
|
-
updatedData:
|
|
1318
|
+
updatedData: P
|
|
1304
1319
|
}) => {
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
P();
|
|
1320
|
+
if (b === K.cancel) {
|
|
1321
|
+
U();
|
|
1308
1322
|
return;
|
|
1309
1323
|
}
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
(
|
|
1313
|
-
const x =
|
|
1324
|
+
_(P), b !== K.updateTentativeFeature && b === K.addFeature && (p !== "edit" && (D.current = D.current + 1), P.features.forEach((k, A) => {
|
|
1325
|
+
var B;
|
|
1326
|
+
(B = k.properties).label ?? (B.label = `${n == null ? void 0 : n.mask} ${D.current}`), k.properties.index = A, k.properties.visible = k.properties.visible ?? !0;
|
|
1327
|
+
const x = k.id ?? crypto.randomUUID();
|
|
1314
1328
|
m(e, x, {
|
|
1315
|
-
geometry:
|
|
1316
|
-
properties:
|
|
1317
|
-
visible:
|
|
1329
|
+
geometry: k.geometry,
|
|
1330
|
+
properties: k.properties,
|
|
1331
|
+
// visible: true,
|
|
1318
1332
|
type: r
|
|
1319
|
-
})
|
|
1320
|
-
}
|
|
1321
|
-
}, [
|
|
1322
|
-
|
|
1323
|
-
const b =
|
|
1324
|
-
border:
|
|
1325
|
-
point:
|
|
1333
|
+
});
|
|
1334
|
+
}), U());
|
|
1335
|
+
}, [r, U, n == null ? void 0 : n.mask, e, p, m]);
|
|
1336
|
+
return Y(() => {
|
|
1337
|
+
const b = i, {
|
|
1338
|
+
border: P,
|
|
1339
|
+
point: k,
|
|
1326
1340
|
fill: A
|
|
1327
|
-
} = t.colors.editing,
|
|
1341
|
+
} = t.colors.editing, {
|
|
1342
|
+
border: x,
|
|
1343
|
+
fill: B
|
|
1344
|
+
} = t.colors.finished, N = Ms({
|
|
1328
1345
|
layerProps: {
|
|
1329
1346
|
...s.mask,
|
|
1330
|
-
pickable:
|
|
1331
|
-
data:
|
|
1332
|
-
selectedFeatureIndexes:
|
|
1347
|
+
pickable: b,
|
|
1348
|
+
data: v,
|
|
1349
|
+
selectedFeatureIndexes: E,
|
|
1350
|
+
updateTriggers: {
|
|
1351
|
+
getFilterValue: S
|
|
1352
|
+
},
|
|
1353
|
+
onClick: (G) => {
|
|
1354
|
+
const I = G;
|
|
1355
|
+
I.isGuide || F([I.index]);
|
|
1356
|
+
}
|
|
1333
1357
|
},
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
pointColor:
|
|
1337
|
-
|
|
1338
|
-
|
|
1358
|
+
getLineColor: (G) => E[0] === G.properties.index ? P : x,
|
|
1359
|
+
getFillColor: (G) => E[0] === G.properties.index ? A : B,
|
|
1360
|
+
pointColor: {
|
|
1361
|
+
fill: k,
|
|
1362
|
+
outline: P
|
|
1363
|
+
},
|
|
1364
|
+
onEdit: V,
|
|
1365
|
+
mode: b ? c : qt
|
|
1339
1366
|
});
|
|
1340
|
-
d(
|
|
1341
|
-
}, [
|
|
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(() => {
|
|
1367
|
+
d(Te, N);
|
|
1368
|
+
}, [v, i, s.mask, S, c, V, E, d, t.colors.editing, t.colors.finished]), Y(() => {
|
|
1355
1369
|
const b = {
|
|
1356
1370
|
...Pe,
|
|
1357
|
-
|
|
1358
|
-
|
|
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],
|
|
1371
|
+
data: T,
|
|
1372
|
+
getFilterValue: (P) => Number(S.includes(P.id)),
|
|
1365
1373
|
updateTriggers: {
|
|
1366
|
-
getFilterValue:
|
|
1367
|
-
},
|
|
1368
|
-
onClick: ({
|
|
1369
|
-
object: _
|
|
1370
|
-
}) => {
|
|
1371
|
-
const E = Ee();
|
|
1372
|
-
E.features.push(_), L(E), a(e, !0);
|
|
1374
|
+
getFilterValue: S
|
|
1373
1375
|
}
|
|
1374
1376
|
};
|
|
1375
1377
|
return d(Pe.id, {
|
|
1376
|
-
type:
|
|
1378
|
+
type: Nt,
|
|
1377
1379
|
props: b
|
|
1378
1380
|
}), u(e, [Pe.id]), () => {
|
|
1379
1381
|
g(e, [Pe.id]);
|
|
1380
1382
|
};
|
|
1381
|
-
}, [u,
|
|
1383
|
+
}, [u, e, T, S, g, d]), Y(() => {
|
|
1382
1384
|
f == null || f.forEach((b) => {
|
|
1383
|
-
var
|
|
1385
|
+
var k;
|
|
1384
1386
|
if (i) {
|
|
1385
|
-
const A = (
|
|
1387
|
+
const A = (k = M(e)) == null ? void 0 : k.props.layers.find((x) => x.props.id === b);
|
|
1386
1388
|
h.current[b] = A == null ? void 0 : A.props.pickable;
|
|
1387
1389
|
}
|
|
1388
|
-
const
|
|
1390
|
+
const P = !i && h.current[b];
|
|
1389
1391
|
d(b, {
|
|
1390
1392
|
props: {
|
|
1391
|
-
pickable:
|
|
1392
|
-
extensions: [new
|
|
1393
|
-
maskId: !i &&
|
|
1393
|
+
pickable: P,
|
|
1394
|
+
extensions: [new $t()],
|
|
1395
|
+
maskId: !i && S.length ? ke : void 0
|
|
1394
1396
|
}
|
|
1395
1397
|
});
|
|
1396
1398
|
});
|
|
1397
|
-
}, [i,
|
|
1399
|
+
}, [i, M, e, f, S.length, d]), o;
|
|
1398
1400
|
}
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
type: "FeatureCollection",
|
|
1402
|
-
features: []
|
|
1403
|
-
};
|
|
1404
|
-
}
|
|
1405
|
-
qs.Controls = Ps;
|
|
1406
|
-
function xs({
|
|
1401
|
+
qs.Controls = Es;
|
|
1402
|
+
function Us({
|
|
1407
1403
|
mode: o,
|
|
1408
1404
|
...e
|
|
1409
1405
|
}) {
|
|
@@ -1412,7 +1408,7 @@ function xs({
|
|
|
1412
1408
|
...e
|
|
1413
1409
|
});
|
|
1414
1410
|
return {
|
|
1415
|
-
type:
|
|
1411
|
+
type: Je,
|
|
1416
1412
|
props: {
|
|
1417
1413
|
...t,
|
|
1418
1414
|
mode: o,
|
|
@@ -1429,16 +1425,16 @@ function $s({
|
|
|
1429
1425
|
onEdit: r,
|
|
1430
1426
|
guideColor: i,
|
|
1431
1427
|
pointColor: a,
|
|
1432
|
-
textOptions:
|
|
1428
|
+
textOptions: l
|
|
1433
1429
|
}) {
|
|
1434
|
-
const m =
|
|
1430
|
+
const m = Me(e, {
|
|
1435
1431
|
visible: n,
|
|
1436
1432
|
pickable: n,
|
|
1437
1433
|
modeConfig: {
|
|
1438
1434
|
// We force distance due to conversion is addressed at feature getText level
|
|
1439
1435
|
formatTooltip: (d) => d,
|
|
1440
1436
|
turfOptions: {
|
|
1441
|
-
units:
|
|
1437
|
+
units: Os.meters
|
|
1442
1438
|
}
|
|
1443
1439
|
},
|
|
1444
1440
|
...n && {
|
|
@@ -1459,15 +1455,15 @@ function $s({
|
|
|
1459
1455
|
meters: d.text,
|
|
1460
1456
|
locale: t,
|
|
1461
1457
|
unit: s,
|
|
1462
|
-
options:
|
|
1458
|
+
options: l
|
|
1463
1459
|
});
|
|
1464
1460
|
},
|
|
1465
1461
|
updateTriggers: {
|
|
1466
|
-
getText: [s, t,
|
|
1462
|
+
getText: [s, t, l]
|
|
1467
1463
|
}
|
|
1468
1464
|
}
|
|
1469
1465
|
}
|
|
1470
|
-
}),
|
|
1466
|
+
}), c = Me(ws, {
|
|
1471
1467
|
_subLayerProps: {
|
|
1472
1468
|
guides: {
|
|
1473
1469
|
getLineColor: i,
|
|
@@ -1477,29 +1473,29 @@ function $s({
|
|
|
1477
1473
|
getEditHandlePointColor: a,
|
|
1478
1474
|
getEditHandlePointOutlineColor: i
|
|
1479
1475
|
});
|
|
1480
|
-
return
|
|
1476
|
+
return Me(c, m);
|
|
1481
1477
|
}
|
|
1482
|
-
const Vs = (o) =>
|
|
1478
|
+
const Vs = (o) => $e()((e) => ({
|
|
1483
1479
|
measurements: o.reduce((n, s) => {
|
|
1484
1480
|
const {
|
|
1485
1481
|
mapId: r,
|
|
1486
1482
|
modeSelected: i,
|
|
1487
|
-
modes: a =
|
|
1488
|
-
units:
|
|
1483
|
+
modes: a = Rs,
|
|
1484
|
+
units: l = Ds,
|
|
1489
1485
|
distance: m = 0,
|
|
1490
|
-
finished:
|
|
1486
|
+
finished: c = !1,
|
|
1491
1487
|
locale: p = "en",
|
|
1492
1488
|
positions: d = [],
|
|
1493
1489
|
clearLayerOnStart: u = !1,
|
|
1494
|
-
unit: g =
|
|
1490
|
+
unit: g = xe["m-km"],
|
|
1495
1491
|
enabled: f = !1
|
|
1496
1492
|
} = s;
|
|
1497
1493
|
return n[r] = {
|
|
1498
1494
|
modes: a,
|
|
1499
|
-
units:
|
|
1495
|
+
units: l,
|
|
1500
1496
|
modeSelected: i,
|
|
1501
1497
|
distance: m,
|
|
1502
|
-
finished:
|
|
1498
|
+
finished: c,
|
|
1503
1499
|
locale: p,
|
|
1504
1500
|
positions: d,
|
|
1505
1501
|
unit: g,
|
|
@@ -1507,7 +1503,7 @@ const Vs = (o) => Ve()((e) => ({
|
|
|
1507
1503
|
enabled: f
|
|
1508
1504
|
}, n;
|
|
1509
1505
|
}, {}),
|
|
1510
|
-
mode:
|
|
1506
|
+
mode: lt,
|
|
1511
1507
|
setModeInstance: (n, s) => {
|
|
1512
1508
|
e((r) => ({
|
|
1513
1509
|
measurements: {
|
|
@@ -1596,7 +1592,7 @@ const Vs = (o) => Ve()((e) => ({
|
|
|
1596
1592
|
}
|
|
1597
1593
|
}));
|
|
1598
1594
|
}
|
|
1599
|
-
})),
|
|
1595
|
+
})), ct = qe({});
|
|
1600
1596
|
function js(o) {
|
|
1601
1597
|
const e = C(5), {
|
|
1602
1598
|
children: t,
|
|
@@ -1604,113 +1600,113 @@ function js(o) {
|
|
|
1604
1600
|
} = o;
|
|
1605
1601
|
let s;
|
|
1606
1602
|
e[0] !== n ? (s = Vs(n), e[0] = n, e[1] = s) : s = e[1];
|
|
1607
|
-
const [r] =
|
|
1603
|
+
const [r] = fe(s);
|
|
1608
1604
|
let i;
|
|
1609
|
-
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */
|
|
1605
|
+
return e[2] !== t || e[3] !== r ? (i = /* @__PURE__ */ H(ct.Provider, { value: r, children: t }), e[2] = t, e[3] = r, e[4] = i) : i = e[4], i;
|
|
1610
1606
|
}
|
|
1611
|
-
function
|
|
1612
|
-
const e =
|
|
1607
|
+
function q(o) {
|
|
1608
|
+
const e = Ue(ct);
|
|
1613
1609
|
if (!Object.keys(e).length)
|
|
1614
1610
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1615
|
-
return
|
|
1611
|
+
return Ve(e, o);
|
|
1616
1612
|
}
|
|
1617
|
-
function
|
|
1613
|
+
function ut(o) {
|
|
1618
1614
|
const e = C(74), {
|
|
1619
1615
|
mapId: t
|
|
1620
1616
|
} = o;
|
|
1621
1617
|
let n;
|
|
1622
|
-
e[0] !== t ? (n = (
|
|
1623
|
-
const s =
|
|
1618
|
+
e[0] !== t ? (n = (L) => L.measurements[t].modes, e[0] = t, e[1] = n) : n = e[1];
|
|
1619
|
+
const s = q(n);
|
|
1624
1620
|
let r;
|
|
1625
|
-
e[2] !== t ? (r = (
|
|
1626
|
-
const i =
|
|
1621
|
+
e[2] !== t ? (r = (L) => L.measurements[t].units, e[2] = t, e[3] = r) : r = e[3];
|
|
1622
|
+
const i = q(r);
|
|
1627
1623
|
let a;
|
|
1628
|
-
e[4] !== t ? (a = (
|
|
1629
|
-
const
|
|
1630
|
-
let
|
|
1631
|
-
e[6] !== m || e[7] !== t ? (
|
|
1632
|
-
const p =
|
|
1624
|
+
e[4] !== t ? (a = (L) => L.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1625
|
+
const l = q(a), m = q(Zs);
|
|
1626
|
+
let c;
|
|
1627
|
+
e[6] !== m || e[7] !== t ? (c = (L) => m(t, L), e[6] = m, e[7] = t, e[8] = c) : c = e[8];
|
|
1628
|
+
const p = c;
|
|
1633
1629
|
let d;
|
|
1634
|
-
e[9] !== t ? (d = (
|
|
1635
|
-
const u =
|
|
1630
|
+
e[9] !== t ? (d = (L) => L.measurements[t].clearLayerOnStart, e[9] = t, e[10] = d) : d = e[10];
|
|
1631
|
+
const u = q(d);
|
|
1636
1632
|
let g;
|
|
1637
|
-
e[11] !== t ? (g = (
|
|
1638
|
-
const f =
|
|
1633
|
+
e[11] !== t ? (g = (L) => L.measurements[t].enabled, e[11] = t, e[12] = g) : g = e[12];
|
|
1634
|
+
const f = q(g), M = q(Gs);
|
|
1639
1635
|
let h;
|
|
1640
|
-
e[13] !==
|
|
1636
|
+
e[13] !== M || e[14] !== t ? (h = (L) => M(t, L), e[13] = M, e[14] = t, e[15] = h) : h = e[15];
|
|
1641
1637
|
const y = h;
|
|
1642
|
-
let
|
|
1643
|
-
e[16] !== t ? (
|
|
1644
|
-
const S =
|
|
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);
|
|
1638
|
+
let T;
|
|
1639
|
+
e[16] !== t ? (T = (L) => L.measurements[t].modeSelected, e[16] = t, e[17] = T) : T = e[17];
|
|
1640
|
+
const S = q(T), v = q(Ks);
|
|
1653
1641
|
let _;
|
|
1654
|
-
e[
|
|
1642
|
+
e[18] !== v || e[19] !== t || e[20] !== y ? (_ = (L) => {
|
|
1643
|
+
y(!!L), v(t, L);
|
|
1644
|
+
}, e[18] = v, e[19] = t, e[20] = y, e[21] = _) : _ = e[21];
|
|
1655
1645
|
const E = _;
|
|
1646
|
+
let F;
|
|
1647
|
+
e[22] !== t ? (F = (L) => L.measurements[t].finished, e[22] = t, e[23] = F) : F = e[23];
|
|
1648
|
+
const O = q(F), D = q(Qs);
|
|
1649
|
+
let U;
|
|
1650
|
+
e[24] !== D || e[25] !== t ? (U = (L) => D(t, L), e[24] = D, e[25] = t, e[26] = U) : U = e[26];
|
|
1651
|
+
const V = U;
|
|
1652
|
+
let b;
|
|
1653
|
+
e[27] !== t ? (b = (L) => L.measurements[t].locale, e[27] = t, e[28] = b) : b = e[28];
|
|
1654
|
+
const P = q(b), k = q(Hs);
|
|
1656
1655
|
let A;
|
|
1657
|
-
e[
|
|
1658
|
-
const x =
|
|
1659
|
-
let
|
|
1660
|
-
e[
|
|
1661
|
-
const
|
|
1662
|
-
let
|
|
1663
|
-
e[
|
|
1664
|
-
const
|
|
1665
|
-
let
|
|
1666
|
-
e[
|
|
1667
|
-
const
|
|
1668
|
-
let J;
|
|
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;
|
|
1656
|
+
e[29] !== k || e[30] !== t ? (A = (L) => k(t, L), e[29] = k, e[30] = t, e[31] = A) : A = e[31];
|
|
1657
|
+
const x = A;
|
|
1658
|
+
let B;
|
|
1659
|
+
e[32] !== t ? (B = (L) => L.measurements[t].modeInstance, e[32] = t, e[33] = B) : B = e[33];
|
|
1660
|
+
const N = q(B), G = q(Bs);
|
|
1661
|
+
let I;
|
|
1662
|
+
e[34] !== G || e[35] !== t ? (I = (L) => G(t, L), e[34] = G, e[35] = t, e[36] = I) : I = e[36];
|
|
1663
|
+
const be = I;
|
|
1664
|
+
let te;
|
|
1665
|
+
e[37] !== t ? (te = (L) => L.measurements[t].positions, e[37] = t, e[38] = te) : te = e[38];
|
|
1666
|
+
const ge = q(te), oe = q(Is);
|
|
1674
1667
|
let re;
|
|
1675
|
-
e[
|
|
1676
|
-
const
|
|
1677
|
-
let
|
|
1678
|
-
e[
|
|
1679
|
-
const
|
|
1668
|
+
e[39] !== oe || e[40] !== t ? (re = (L) => oe(t, L), e[39] = oe, e[40] = t, e[41] = re) : re = e[41];
|
|
1669
|
+
const Z = re;
|
|
1670
|
+
let ie;
|
|
1671
|
+
e[42] !== t ? (ie = (L) => L.measurements[t].unit, e[42] = t, e[43] = ie) : ie = e[43];
|
|
1672
|
+
const ae = q(ie), le = q(Ns);
|
|
1673
|
+
let se;
|
|
1674
|
+
e[44] !== le || e[45] !== t ? (se = (L) => le(t, L), e[44] = le, e[45] = t, e[46] = se) : se = e[46];
|
|
1675
|
+
const X = se;
|
|
1676
|
+
let z;
|
|
1677
|
+
e[47] !== N || e[48] !== Z ? (z = () => {
|
|
1678
|
+
N == null || N.resetClickSequence(), Z([]);
|
|
1679
|
+
}, e[47] = N, e[48] = Z, e[49] = z) : z = e[49];
|
|
1680
|
+
const J = z;
|
|
1680
1681
|
let W;
|
|
1681
|
-
e[
|
|
1682
|
-
|
|
1683
|
-
}, e[
|
|
1684
|
-
const
|
|
1685
|
-
let
|
|
1686
|
-
e[
|
|
1687
|
-
y(M);
|
|
1688
|
-
}, e[50] = y, e[51] = G) : G = e[51];
|
|
1689
|
-
const le = G;
|
|
1690
|
-
let pe;
|
|
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 = {
|
|
1682
|
+
e[50] !== y ? (W = (L) => {
|
|
1683
|
+
y(L);
|
|
1684
|
+
}, e[50] = y, e[51] = W) : W = e[51];
|
|
1685
|
+
const ce = W;
|
|
1686
|
+
let ye;
|
|
1687
|
+
return e[52] !== J || e[53] !== u || e[54] !== l || e[55] !== f || e[56] !== O || e[57] !== P || e[58] !== N || e[59] !== S || e[60] !== s || e[61] !== ge || e[62] !== p || e[63] !== y || e[64] !== V || e[65] !== x || e[66] !== be || e[67] !== E || e[68] !== Z || e[69] !== X || e[70] !== ce || e[71] !== ae || e[72] !== i ? (ye = {
|
|
1692
1688
|
modes: s,
|
|
1693
1689
|
units: i,
|
|
1694
|
-
distance:
|
|
1690
|
+
distance: l,
|
|
1695
1691
|
clearLayerOnStart: u,
|
|
1696
1692
|
modeSelected: S,
|
|
1697
1693
|
enabled: f,
|
|
1698
|
-
finished:
|
|
1699
|
-
locale:
|
|
1700
|
-
modeInstance:
|
|
1701
|
-
positions:
|
|
1702
|
-
unit:
|
|
1694
|
+
finished: O,
|
|
1695
|
+
locale: P,
|
|
1696
|
+
modeInstance: N,
|
|
1697
|
+
positions: ge,
|
|
1698
|
+
unit: ae,
|
|
1703
1699
|
setDistance: p,
|
|
1704
|
-
setModeSelected:
|
|
1705
|
-
setFinished:
|
|
1706
|
-
setLocale:
|
|
1707
|
-
setPositions:
|
|
1708
|
-
setUnit:
|
|
1700
|
+
setModeSelected: E,
|
|
1701
|
+
setFinished: V,
|
|
1702
|
+
setLocale: x,
|
|
1703
|
+
setPositions: Z,
|
|
1704
|
+
setUnit: X,
|
|
1709
1705
|
setEnabled: y,
|
|
1710
|
-
toggleLayer:
|
|
1711
|
-
clearLayer:
|
|
1712
|
-
setModeInstance:
|
|
1713
|
-
}, e[52] =
|
|
1706
|
+
toggleLayer: ce,
|
|
1707
|
+
clearLayer: J,
|
|
1708
|
+
setModeInstance: be
|
|
1709
|
+
}, e[52] = J, e[53] = u, e[54] = l, e[55] = f, e[56] = O, e[57] = P, e[58] = N, e[59] = S, e[60] = s, e[61] = ge, e[62] = p, e[63] = y, e[64] = V, e[65] = x, e[66] = be, e[67] = E, e[68] = Z, e[69] = X, e[70] = ce, e[71] = ae, e[72] = i, e[73] = ye) : ye = e[73], ye;
|
|
1714
1710
|
}
|
|
1715
1711
|
function Ns(o) {
|
|
1716
1712
|
return o.setUnit;
|
|
@@ -1730,13 +1726,13 @@ function Qs(o) {
|
|
|
1730
1726
|
function Ks(o) {
|
|
1731
1727
|
return o.setModeSelected;
|
|
1732
1728
|
}
|
|
1733
|
-
function
|
|
1729
|
+
function Gs(o) {
|
|
1734
1730
|
return o.setEnabled;
|
|
1735
1731
|
}
|
|
1736
|
-
function
|
|
1732
|
+
function Zs(o) {
|
|
1737
1733
|
return o.setDistance;
|
|
1738
1734
|
}
|
|
1739
|
-
function
|
|
1735
|
+
function zs(o) {
|
|
1740
1736
|
const e = C(42), {
|
|
1741
1737
|
mapId: t,
|
|
1742
1738
|
textOptions: n,
|
|
@@ -1749,75 +1745,75 @@ function Zs(o) {
|
|
|
1749
1745
|
const {
|
|
1750
1746
|
modes: i,
|
|
1751
1747
|
units: a,
|
|
1752
|
-
distance:
|
|
1748
|
+
distance: l,
|
|
1753
1749
|
setDistance: m,
|
|
1754
|
-
clearLayerOnStart:
|
|
1750
|
+
clearLayerOnStart: c,
|
|
1755
1751
|
modeSelected: p,
|
|
1756
1752
|
setModeSelected: d,
|
|
1757
1753
|
enabled: u,
|
|
1758
1754
|
setEnabled: g,
|
|
1759
1755
|
finished: f,
|
|
1760
|
-
setFinished:
|
|
1756
|
+
setFinished: M,
|
|
1761
1757
|
locale: h,
|
|
1762
1758
|
setLocale: y,
|
|
1763
|
-
modeInstance:
|
|
1759
|
+
modeInstance: T,
|
|
1764
1760
|
setModeInstance: S,
|
|
1765
1761
|
positions: v,
|
|
1766
|
-
setPositions:
|
|
1767
|
-
unit:
|
|
1768
|
-
setUnit:
|
|
1769
|
-
clearLayer:
|
|
1770
|
-
toggleLayer:
|
|
1771
|
-
} =
|
|
1772
|
-
let
|
|
1773
|
-
e[2] !== p || e[3] !== i || e[4] !== S || e[5] !==
|
|
1762
|
+
setPositions: _,
|
|
1763
|
+
unit: E,
|
|
1764
|
+
setUnit: F,
|
|
1765
|
+
clearLayer: O,
|
|
1766
|
+
toggleLayer: D
|
|
1767
|
+
} = ut(r);
|
|
1768
|
+
let U;
|
|
1769
|
+
e[2] !== p || e[3] !== i || e[4] !== S || e[5] !== _ ? (U = () => {
|
|
1774
1770
|
if (p && i[p]) {
|
|
1775
|
-
const
|
|
1776
|
-
S(new
|
|
1771
|
+
const x = i[p].mode;
|
|
1772
|
+
S(new x());
|
|
1777
1773
|
}
|
|
1778
1774
|
return () => {
|
|
1779
|
-
|
|
1775
|
+
_([]);
|
|
1780
1776
|
};
|
|
1781
|
-
}, e[2] = p, e[3] = i, e[4] = S, e[5] =
|
|
1782
|
-
let
|
|
1783
|
-
e[7] !== p || e[8] !== i || e[9] !== g || e[10] !== S || e[11] !==
|
|
1777
|
+
}, e[2] = p, e[3] = i, e[4] = S, e[5] = _, e[6] = U) : U = e[6];
|
|
1778
|
+
let V;
|
|
1779
|
+
e[7] !== p || e[8] !== i || e[9] !== g || e[10] !== S || e[11] !== _ ? (V = [i, p, _, S, g], e[7] = p, e[8] = i, e[9] = g, e[10] = S, e[11] = _, e[12] = V) : V = e[12], Y(U, V);
|
|
1780
|
+
let b;
|
|
1781
|
+
e[13] !== D || e[14] !== O || e[15] !== c || e[16] !== f ? (b = (x) => {
|
|
1782
|
+
x && (c || !f) && O(), D(x);
|
|
1783
|
+
}, e[13] = D, e[14] = O, e[15] = c, e[16] = f, e[17] = b) : b = e[17];
|
|
1784
|
+
const P = b, k = !!c;
|
|
1784
1785
|
let A;
|
|
1785
|
-
e[
|
|
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({
|
|
1786
|
+
return e[18] !== s || e[19] !== O || e[20] !== l || e[21] !== u || e[22] !== f || e[23] !== h || e[24] !== t || e[25] !== T || e[26] !== p || e[27] !== i || e[28] !== v || e[29] !== m || e[30] !== g || e[31] !== M || e[32] !== y || e[33] !== d || e[34] !== _ || e[35] !== F || e[36] !== k || e[37] !== n || e[38] !== P || e[39] !== E || e[40] !== a ? (A = s({
|
|
1791
1787
|
mapId: t,
|
|
1792
|
-
distance:
|
|
1788
|
+
distance: l,
|
|
1793
1789
|
enabled: u,
|
|
1794
1790
|
finished: f,
|
|
1795
1791
|
locale: h,
|
|
1796
1792
|
positions: v,
|
|
1797
|
-
unit:
|
|
1798
|
-
clearLayerOnStart:
|
|
1793
|
+
unit: E,
|
|
1794
|
+
clearLayerOnStart: k,
|
|
1799
1795
|
modeSelected: p,
|
|
1800
1796
|
modes: i,
|
|
1801
1797
|
units: a,
|
|
1802
|
-
value:
|
|
1803
|
-
meters:
|
|
1804
|
-
unit:
|
|
1798
|
+
value: Ce({
|
|
1799
|
+
meters: l,
|
|
1800
|
+
unit: E,
|
|
1805
1801
|
locale: h,
|
|
1806
1802
|
options: n
|
|
1807
1803
|
}),
|
|
1808
|
-
modeInstance:
|
|
1804
|
+
modeInstance: T,
|
|
1809
1805
|
setModeSelected: d,
|
|
1810
1806
|
setDistance: m,
|
|
1811
|
-
setFinished:
|
|
1807
|
+
setFinished: M,
|
|
1812
1808
|
setLocale: y,
|
|
1813
|
-
setPositions:
|
|
1814
|
-
setUnit:
|
|
1809
|
+
setPositions: _,
|
|
1810
|
+
setUnit: F,
|
|
1815
1811
|
setEnabled: g,
|
|
1816
|
-
toggleLayer:
|
|
1817
|
-
clearLayer:
|
|
1818
|
-
}), e[18] = s, e[19] =
|
|
1812
|
+
toggleLayer: P,
|
|
1813
|
+
clearLayer: O
|
|
1814
|
+
}), e[18] = s, e[19] = O, e[20] = l, e[21] = u, e[22] = f, e[23] = h, e[24] = t, e[25] = T, e[26] = p, e[27] = i, e[28] = v, e[29] = m, e[30] = g, e[31] = M, e[32] = y, e[33] = d, e[34] = _, e[35] = F, e[36] = k, e[37] = n, e[38] = P, e[39] = E, e[40] = a, e[41] = A) : A = e[41], A;
|
|
1819
1815
|
}
|
|
1820
|
-
const
|
|
1816
|
+
const Ws = [ve];
|
|
1821
1817
|
function Ys({
|
|
1822
1818
|
children: o,
|
|
1823
1819
|
mapId: e,
|
|
@@ -1833,66 +1829,66 @@ function Ys({
|
|
|
1833
1829
|
setDistance: r,
|
|
1834
1830
|
clearLayerOnStart: i,
|
|
1835
1831
|
enabled: a,
|
|
1836
|
-
finished:
|
|
1832
|
+
finished: l,
|
|
1837
1833
|
setFinished: m,
|
|
1838
|
-
locale:
|
|
1834
|
+
locale: c,
|
|
1839
1835
|
setPositions: p,
|
|
1840
1836
|
unit: d,
|
|
1841
1837
|
modeInstance: u
|
|
1842
|
-
} =
|
|
1838
|
+
} = ut({
|
|
1843
1839
|
mapId: e
|
|
1844
|
-
}), g = _e((v) => v.setLayer), f =
|
|
1845
|
-
var
|
|
1846
|
-
return (
|
|
1847
|
-
})), y =
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
}), [f, i, e,
|
|
1840
|
+
}), g = _e((v) => v.setLayer), f = w((v) => v.addLayers), M = w((v) => v.removeLayers), h = w(tt((v) => {
|
|
1841
|
+
var _;
|
|
1842
|
+
return (_ = v.maps[e]) == null ? void 0 : _.layers.filter((E) => !Ws.includes(E));
|
|
1843
|
+
})), y = w((v) => v.getDeckInstance), T = Ee({});
|
|
1844
|
+
Y(() => (a && f(e, [ve]), () => {
|
|
1845
|
+
M(e, [ve]);
|
|
1846
|
+
}), [f, i, e, M, a]), Y(() => {
|
|
1851
1847
|
h == null || h.forEach((v) => {
|
|
1852
|
-
var
|
|
1848
|
+
var E;
|
|
1853
1849
|
if (a) {
|
|
1854
|
-
const
|
|
1855
|
-
|
|
1850
|
+
const F = (E = y(e)) == null ? void 0 : E.props.layers.find((O) => O.props.id === v);
|
|
1851
|
+
T.current[v] = F == null ? void 0 : F.props.pickable;
|
|
1856
1852
|
}
|
|
1857
|
-
const
|
|
1853
|
+
const _ = !a && T.current[v];
|
|
1858
1854
|
g(v, {
|
|
1859
1855
|
props: {
|
|
1860
|
-
pickable:
|
|
1856
|
+
pickable: _
|
|
1861
1857
|
}
|
|
1862
1858
|
});
|
|
1863
1859
|
});
|
|
1864
1860
|
}, [a, y, e, h, g]);
|
|
1865
|
-
const S =
|
|
1861
|
+
const S = $(({
|
|
1866
1862
|
editType: v,
|
|
1867
|
-
editContext:
|
|
1863
|
+
editContext: _
|
|
1868
1864
|
}) => {
|
|
1869
|
-
if (v ===
|
|
1865
|
+
if (v === K.cancel) {
|
|
1870
1866
|
u.resetClickSequence();
|
|
1871
1867
|
return;
|
|
1872
1868
|
}
|
|
1873
|
-
v ===
|
|
1874
|
-
const
|
|
1875
|
-
|
|
1869
|
+
v === K.addPosition && r(_.distance), m(!!_.finished);
|
|
1870
|
+
const E = _.positions;
|
|
1871
|
+
E != null && E.length && p(E);
|
|
1876
1872
|
}, [u, r, m, p]);
|
|
1877
|
-
return
|
|
1878
|
-
const v =
|
|
1873
|
+
return Y(() => {
|
|
1874
|
+
const v = l ? t.colors.finished : t.colors.editing, _ = l ? t.colors.finished : t.colors.point, E = Us({
|
|
1879
1875
|
layerProps: {
|
|
1880
1876
|
...n,
|
|
1881
|
-
pickable: n.pickable ?? !
|
|
1877
|
+
pickable: n.pickable ?? !l
|
|
1882
1878
|
},
|
|
1883
1879
|
enabled: a,
|
|
1884
1880
|
guideColor: v,
|
|
1885
|
-
pointColor:
|
|
1886
|
-
locale:
|
|
1881
|
+
pointColor: _,
|
|
1882
|
+
locale: c,
|
|
1887
1883
|
onEdit: S,
|
|
1888
1884
|
unit: d,
|
|
1889
1885
|
mode: u,
|
|
1890
1886
|
textOptions: s
|
|
1891
1887
|
});
|
|
1892
|
-
g(
|
|
1893
|
-
}, [
|
|
1888
|
+
g(ve, E);
|
|
1889
|
+
}, [l, u, n, c, S, g, t.colors.editing, t.colors.finished, t.colors.point, s, d, a]), o;
|
|
1894
1890
|
}
|
|
1895
|
-
Ys.Controls =
|
|
1891
|
+
Ys.Controls = zs;
|
|
1896
1892
|
function Xs(o) {
|
|
1897
1893
|
const e = C(7), {
|
|
1898
1894
|
mapId: t
|
|
@@ -1901,11 +1897,11 @@ function Xs(o) {
|
|
|
1901
1897
|
e[0] !== t ? (n = (m) => m.maps[t], e[0] = t, e[1] = n) : n = e[1];
|
|
1902
1898
|
const {
|
|
1903
1899
|
layers: s
|
|
1904
|
-
} =
|
|
1900
|
+
} = w(n), r = _e(en);
|
|
1905
1901
|
let i, a;
|
|
1906
1902
|
if (e[2] !== r || e[3] !== s) {
|
|
1907
1903
|
let m;
|
|
1908
|
-
e[5] !== r ? (m = (
|
|
1904
|
+
e[5] !== r ? (m = (c) => r[c], e[5] = r, e[6] = m) : m = e[6], a = s.map(m).filter(Js), e[2] = r, e[3] = s, e[4] = a;
|
|
1909
1905
|
} else
|
|
1910
1906
|
a = e[4];
|
|
1911
1907
|
return i = a, i;
|
|
@@ -1916,13 +1912,13 @@ function Js(o) {
|
|
|
1916
1912
|
function en(o) {
|
|
1917
1913
|
return o.layers;
|
|
1918
1914
|
}
|
|
1919
|
-
const
|
|
1920
|
-
function
|
|
1921
|
-
const e = o.filter((n) => !
|
|
1915
|
+
const We = [ke, Te, ve];
|
|
1916
|
+
function dt(o) {
|
|
1917
|
+
const e = o.filter((n) => !We.includes(n.props.id)).sort((n, s) => (n.order ?? 1 / 0) - (s.order ?? 1 / 0)), t = We.map((n) => o.find((s) => s.props.id === n)).filter((n) => !!n);
|
|
1922
1918
|
return [...e, ...t];
|
|
1923
1919
|
}
|
|
1924
1920
|
const tn = 200;
|
|
1925
|
-
function
|
|
1921
|
+
function zn({
|
|
1926
1922
|
id: o,
|
|
1927
1923
|
onLoad: e,
|
|
1928
1924
|
onViewStateChange: t,
|
|
@@ -1932,9 +1928,9 @@ function Zn({
|
|
|
1932
1928
|
basemap: s,
|
|
1933
1929
|
instanceRef: r,
|
|
1934
1930
|
overlayRef: i
|
|
1935
|
-
} =
|
|
1931
|
+
} = w((S) => S.maps[o]), a = Ee(null), l = w((S) => S.viewStates[o]), m = w((S) => S.setViewState), c = w((S) => S.setLoad), p = w((S) => S.setLayersLoad), d = w((S) => S.updateViewPort), u = Xs({
|
|
1936
1932
|
mapId: o
|
|
1937
|
-
}), g =
|
|
1933
|
+
}), g = de(() => dt(u), [u]), f = $((S) => {
|
|
1938
1934
|
const v = m;
|
|
1939
1935
|
if (S.interactionState.isZooming && (a.current && clearInterval(a.current), a.current = setTimeout(() => {
|
|
1940
1936
|
d(o);
|
|
@@ -1943,18 +1939,18 @@ function Zn({
|
|
|
1943
1939
|
return;
|
|
1944
1940
|
}
|
|
1945
1941
|
v(o, S.viewState);
|
|
1946
|
-
}, [o, t, m, d]),
|
|
1947
|
-
|
|
1948
|
-
}, [o, e,
|
|
1949
|
-
var
|
|
1950
|
-
const v = (
|
|
1951
|
-
p(o,
|
|
1952
|
-
}, [o, r, n, p]), y = n.onDragEnd,
|
|
1942
|
+
}, [o, t, m, d]), M = $((S) => {
|
|
1943
|
+
c(o, S), e == null || e(S), d(o);
|
|
1944
|
+
}, [o, e, c, d]), h = $((S) => {
|
|
1945
|
+
var E, F, O;
|
|
1946
|
+
const v = (F = (E = r == null ? void 0 : r.current) == null ? void 0 : E.deck) == null ? void 0 : F.props.layers, _ = !!(v != null && v.every((D) => D == null ? void 0 : D.isLoaded));
|
|
1947
|
+
p(o, _), (O = n.onAfterRender) == null || O.call(n, S);
|
|
1948
|
+
}, [o, r, n, p]), y = n.onDragEnd, T = $((...S) => {
|
|
1953
1949
|
d(o), y && y(...S);
|
|
1954
1950
|
}, [o, d, y]);
|
|
1955
|
-
return /* @__PURE__ */
|
|
1951
|
+
return /* @__PURE__ */ H(ns, { ...n, layers: g, instanceRef: r, overlayRef: i, basemap: s, initialViewState: l, onLoad: M, onViewStateChange: f, onAfterRender: h, onDragEnd: T });
|
|
1956
1952
|
}
|
|
1957
|
-
const sn = "https://gcp-us-east1.api.carto.com", nn = "ps", on =
|
|
1953
|
+
const sn = "https://gcp-us-east1.api.carto.com", nn = "ps", on = et((o) => ({
|
|
1958
1954
|
sources: {},
|
|
1959
1955
|
setSource: (e, t) => o((n) => {
|
|
1960
1956
|
const s = {
|
|
@@ -1998,7 +1994,7 @@ function an({
|
|
|
1998
1994
|
},
|
|
1999
1995
|
table: () => {
|
|
2000
1996
|
const s = o;
|
|
2001
|
-
return new
|
|
1997
|
+
return new Wt({
|
|
2002
1998
|
...s,
|
|
2003
1999
|
accessToken: "",
|
|
2004
2000
|
tableName: s.data,
|
|
@@ -2007,17 +2003,17 @@ function an({
|
|
|
2007
2003
|
},
|
|
2008
2004
|
tileset: () => {
|
|
2009
2005
|
const s = o;
|
|
2010
|
-
return new
|
|
2006
|
+
return new Zt({
|
|
2011
2007
|
...s,
|
|
2012
2008
|
accessToken: "",
|
|
2013
2009
|
tableName: s.data,
|
|
2014
|
-
tileFormat: s.tileFormat ??
|
|
2010
|
+
tileFormat: s.tileFormat ?? zt.BINARY,
|
|
2015
2011
|
spatialDataType: s.spatialDataType ?? "geo"
|
|
2016
2012
|
});
|
|
2017
2013
|
},
|
|
2018
2014
|
raster: () => {
|
|
2019
2015
|
const s = o;
|
|
2020
|
-
return s.rasterMetadata ? new
|
|
2016
|
+
return s.rasterMetadata ? new Gt({
|
|
2021
2017
|
...s,
|
|
2022
2018
|
accessToken: "",
|
|
2023
2019
|
tableName: s.data,
|
|
@@ -2028,9 +2024,9 @@ function an({
|
|
|
2028
2024
|
}, t = o.type.split("+")[0], n = e[t];
|
|
2029
2025
|
return n == null ? void 0 : n();
|
|
2030
2026
|
}
|
|
2031
|
-
function
|
|
2027
|
+
function pe(o, e) {
|
|
2032
2028
|
const t = rn(e);
|
|
2033
|
-
return
|
|
2029
|
+
return de(() => {
|
|
2034
2030
|
const n = t == null ? void 0 : t.widgets;
|
|
2035
2031
|
return !n || !o ? null : (n.props.accessToken = o, n);
|
|
2036
2032
|
}, [o, t]);
|
|
@@ -2044,26 +2040,26 @@ function ln(o) {
|
|
|
2044
2040
|
} = o;
|
|
2045
2041
|
let i;
|
|
2046
2042
|
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2047
|
-
let a,
|
|
2043
|
+
let a, l;
|
|
2048
2044
|
e[2] !== i ? ({
|
|
2049
2045
|
enabled: a,
|
|
2050
|
-
...
|
|
2051
|
-
} = i, e[2] = i, e[3] = a, e[4] =
|
|
2052
|
-
const m = a === void 0 ? !0 : a,
|
|
2046
|
+
...l
|
|
2047
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2048
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2053
2049
|
let d;
|
|
2054
2050
|
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];
|
|
2055
2051
|
let u;
|
|
2056
|
-
e[10] !==
|
|
2057
|
-
const g = !!
|
|
2052
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getCategories(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2053
|
+
const g = !!c && m;
|
|
2058
2054
|
let f;
|
|
2059
|
-
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !==
|
|
2055
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2060
2056
|
queryKey: d,
|
|
2061
2057
|
queryFn: u,
|
|
2062
2058
|
enabled: g,
|
|
2063
|
-
...
|
|
2064
|
-
}, e[13] = d, e[14] = u, e[15] = g, e[16] =
|
|
2059
|
+
...l
|
|
2060
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2065
2061
|
}
|
|
2066
|
-
function
|
|
2062
|
+
function Wn(o) {
|
|
2067
2063
|
const e = C(6);
|
|
2068
2064
|
let t, n;
|
|
2069
2065
|
e[0] !== o ? ({
|
|
@@ -2083,24 +2079,24 @@ function cn(o) {
|
|
|
2083
2079
|
} = o;
|
|
2084
2080
|
let i;
|
|
2085
2081
|
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2086
|
-
let a,
|
|
2082
|
+
let a, l;
|
|
2087
2083
|
e[2] !== i ? ({
|
|
2088
2084
|
enabled: a,
|
|
2089
|
-
...
|
|
2090
|
-
} = i, e[2] = i, e[3] = a, e[4] =
|
|
2091
|
-
const m = a === void 0 ? !0 : a,
|
|
2085
|
+
...l
|
|
2086
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2087
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2092
2088
|
let d;
|
|
2093
2089
|
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];
|
|
2094
2090
|
let u;
|
|
2095
|
-
e[10] !==
|
|
2096
|
-
const g = !!
|
|
2091
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getFeatures(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2092
|
+
const g = !!c && m;
|
|
2097
2093
|
let f;
|
|
2098
|
-
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !==
|
|
2094
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2099
2095
|
queryKey: d,
|
|
2100
2096
|
queryFn: u,
|
|
2101
2097
|
enabled: g,
|
|
2102
|
-
...
|
|
2103
|
-
}, e[13] = d, e[14] = u, e[15] = g, e[16] =
|
|
2098
|
+
...l
|
|
2099
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2104
2100
|
}
|
|
2105
2101
|
function Yn(o) {
|
|
2106
2102
|
const e = C(6);
|
|
@@ -2122,24 +2118,24 @@ function un(o) {
|
|
|
2122
2118
|
} = o;
|
|
2123
2119
|
let i;
|
|
2124
2120
|
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2125
|
-
let a,
|
|
2121
|
+
let a, l;
|
|
2126
2122
|
e[2] !== i ? ({
|
|
2127
2123
|
enabled: a,
|
|
2128
|
-
...
|
|
2129
|
-
} = i, e[2] = i, e[3] = a, e[4] =
|
|
2130
|
-
const m = a === void 0 ? !0 : a,
|
|
2124
|
+
...l
|
|
2125
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2126
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2131
2127
|
let d;
|
|
2132
2128
|
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];
|
|
2133
2129
|
let u;
|
|
2134
|
-
e[10] !==
|
|
2135
|
-
const g = !!
|
|
2130
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getFormula(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2131
|
+
const g = !!c && m;
|
|
2136
2132
|
let f;
|
|
2137
|
-
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !==
|
|
2133
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2138
2134
|
queryKey: d,
|
|
2139
2135
|
queryFn: u,
|
|
2140
2136
|
enabled: g,
|
|
2141
|
-
...
|
|
2142
|
-
}, e[13] = d, e[14] = u, e[15] = g, e[16] =
|
|
2137
|
+
...l
|
|
2138
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2143
2139
|
}
|
|
2144
2140
|
function Xn(o) {
|
|
2145
2141
|
const e = C(6);
|
|
@@ -2161,24 +2157,24 @@ function dn(o) {
|
|
|
2161
2157
|
} = o;
|
|
2162
2158
|
let i;
|
|
2163
2159
|
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2164
|
-
let a,
|
|
2160
|
+
let a, l;
|
|
2165
2161
|
e[2] !== i ? ({
|
|
2166
2162
|
enabled: a,
|
|
2167
|
-
...
|
|
2168
|
-
} = i, e[2] = i, e[3] = a, e[4] =
|
|
2169
|
-
const m = a === void 0 ? !0 : a,
|
|
2163
|
+
...l
|
|
2164
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2165
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2170
2166
|
let d;
|
|
2171
2167
|
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];
|
|
2172
2168
|
let u;
|
|
2173
|
-
e[10] !==
|
|
2174
|
-
const g = !!
|
|
2169
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getHistogram(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2170
|
+
const g = !!c && m;
|
|
2175
2171
|
let f;
|
|
2176
|
-
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !==
|
|
2172
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2177
2173
|
queryKey: d,
|
|
2178
2174
|
queryFn: u,
|
|
2179
2175
|
enabled: g,
|
|
2180
|
-
...
|
|
2181
|
-
}, e[13] = d, e[14] = u, e[15] = g, e[16] =
|
|
2176
|
+
...l
|
|
2177
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2182
2178
|
}
|
|
2183
2179
|
function Jn(o) {
|
|
2184
2180
|
const e = C(6);
|
|
@@ -2200,24 +2196,24 @@ function fn(o) {
|
|
|
2200
2196
|
} = o;
|
|
2201
2197
|
let i;
|
|
2202
2198
|
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2203
|
-
let a,
|
|
2199
|
+
let a, l;
|
|
2204
2200
|
e[2] !== i ? ({
|
|
2205
2201
|
enabled: a,
|
|
2206
|
-
...
|
|
2207
|
-
} = i, e[2] = i, e[3] = a, e[4] =
|
|
2208
|
-
const m = a === void 0 ? !0 : a,
|
|
2202
|
+
...l
|
|
2203
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2204
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2209
2205
|
let d;
|
|
2210
2206
|
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];
|
|
2211
2207
|
let u;
|
|
2212
|
-
e[10] !==
|
|
2213
|
-
const g = !!
|
|
2208
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getRange(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2209
|
+
const g = !!c && m;
|
|
2214
2210
|
let f;
|
|
2215
|
-
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !==
|
|
2211
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2216
2212
|
queryKey: d,
|
|
2217
2213
|
queryFn: u,
|
|
2218
2214
|
enabled: g,
|
|
2219
|
-
...
|
|
2220
|
-
}, e[13] = d, e[14] = u, e[15] = g, e[16] =
|
|
2215
|
+
...l
|
|
2216
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2221
2217
|
}
|
|
2222
2218
|
function eo(o) {
|
|
2223
2219
|
const e = C(6);
|
|
@@ -2239,24 +2235,24 @@ function mn(o) {
|
|
|
2239
2235
|
} = o;
|
|
2240
2236
|
let i;
|
|
2241
2237
|
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2242
|
-
let a,
|
|
2238
|
+
let a, l;
|
|
2243
2239
|
e[2] !== i ? ({
|
|
2244
2240
|
enabled: a,
|
|
2245
|
-
...
|
|
2246
|
-
} = i, e[2] = i, e[3] = a, e[4] =
|
|
2247
|
-
const m = a === void 0 ? !0 : a,
|
|
2241
|
+
...l
|
|
2242
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2243
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2248
2244
|
let d;
|
|
2249
2245
|
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];
|
|
2250
2246
|
let u;
|
|
2251
|
-
e[10] !==
|
|
2252
|
-
const g = !!
|
|
2247
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getScatter(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2248
|
+
const g = !!c && m;
|
|
2253
2249
|
let f;
|
|
2254
|
-
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !==
|
|
2250
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2255
2251
|
queryKey: d,
|
|
2256
2252
|
queryFn: u,
|
|
2257
2253
|
enabled: g,
|
|
2258
|
-
...
|
|
2259
|
-
}, e[13] = d, e[14] = u, e[15] = g, e[16] =
|
|
2254
|
+
...l
|
|
2255
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2260
2256
|
}
|
|
2261
2257
|
function to(o) {
|
|
2262
2258
|
const e = C(6);
|
|
@@ -2278,24 +2274,24 @@ function pn(o) {
|
|
|
2278
2274
|
} = o;
|
|
2279
2275
|
let i;
|
|
2280
2276
|
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2281
|
-
let a,
|
|
2277
|
+
let a, l;
|
|
2282
2278
|
e[2] !== i ? ({
|
|
2283
2279
|
enabled: a,
|
|
2284
|
-
...
|
|
2285
|
-
} = i, e[2] = i, e[3] = a, e[4] =
|
|
2286
|
-
const m = a === void 0 ? !0 : a,
|
|
2280
|
+
...l
|
|
2281
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2282
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2287
2283
|
let d;
|
|
2288
2284
|
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];
|
|
2289
2285
|
let u;
|
|
2290
|
-
e[10] !==
|
|
2291
|
-
const g = !!
|
|
2286
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getTable(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2287
|
+
const g = !!c && m;
|
|
2292
2288
|
let f;
|
|
2293
|
-
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !==
|
|
2289
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2294
2290
|
queryKey: d,
|
|
2295
2291
|
queryFn: u,
|
|
2296
2292
|
enabled: g,
|
|
2297
|
-
...
|
|
2298
|
-
}, e[13] = d, e[14] = u, e[15] = g, e[16] =
|
|
2293
|
+
...l
|
|
2294
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2299
2295
|
}
|
|
2300
2296
|
function so(o) {
|
|
2301
2297
|
const e = C(6);
|
|
@@ -2317,24 +2313,24 @@ function gn(o) {
|
|
|
2317
2313
|
} = o;
|
|
2318
2314
|
let i;
|
|
2319
2315
|
e[0] !== r ? (i = r === void 0 ? {} : r, e[0] = r, e[1] = i) : i = e[1];
|
|
2320
|
-
let a,
|
|
2316
|
+
let a, l;
|
|
2321
2317
|
e[2] !== i ? ({
|
|
2322
2318
|
enabled: a,
|
|
2323
|
-
...
|
|
2324
|
-
} = i, e[2] = i, e[3] = a, e[4] =
|
|
2325
|
-
const m = a === void 0 ? !0 : a,
|
|
2319
|
+
...l
|
|
2320
|
+
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2321
|
+
const m = a === void 0 ? !0 : a, c = pe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2326
2322
|
let d;
|
|
2327
2323
|
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];
|
|
2328
2324
|
let u;
|
|
2329
|
-
e[10] !==
|
|
2330
|
-
const g = !!
|
|
2325
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getTimeSeries(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2326
|
+
const g = !!c && m;
|
|
2331
2327
|
let f;
|
|
2332
|
-
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !==
|
|
2328
|
+
return e[13] !== d || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2333
2329
|
queryKey: d,
|
|
2334
2330
|
queryFn: u,
|
|
2335
2331
|
enabled: g,
|
|
2336
|
-
...
|
|
2337
|
-
}, e[13] = d, e[14] = u, e[15] = g, e[16] =
|
|
2332
|
+
...l
|
|
2333
|
+
}, e[13] = d, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], me(f);
|
|
2338
2334
|
}
|
|
2339
2335
|
function no(o) {
|
|
2340
2336
|
const e = C(6);
|
|
@@ -2357,76 +2353,76 @@ function oo(o) {
|
|
|
2357
2353
|
let i;
|
|
2358
2354
|
e[0] !== s ? (i = s === void 0 ? [] : s, e[0] = s, e[1] = i) : i = e[1];
|
|
2359
2355
|
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
2356
|
let l;
|
|
2364
|
-
e[
|
|
2357
|
+
e[2] !== r ? (l = r === void 0 ? [] : r, e[2] = r, e[3] = l) : l = e[3];
|
|
2358
|
+
const m = l;
|
|
2359
|
+
let c;
|
|
2360
|
+
e[4] !== t || e[5] !== m ? (c = /* @__PURE__ */ H(js, { values: m, children: t }), e[4] = t, e[5] = m, e[6] = c) : c = e[6];
|
|
2365
2361
|
let p;
|
|
2366
|
-
e[7] !== a || e[8] !==
|
|
2362
|
+
e[7] !== a || e[8] !== c ? (p = /* @__PURE__ */ H(Ps, { values: a, children: c }), e[7] = a, e[8] = c, e[9] = p) : p = e[9];
|
|
2367
2363
|
let d;
|
|
2368
|
-
return e[10] !== n || e[11] !== p ? (d = /* @__PURE__ */
|
|
2364
|
+
return e[10] !== n || e[11] !== p ? (d = /* @__PURE__ */ H(Ss, { values: n, children: p }), e[10] = n, e[11] = p, e[12] = d) : d = e[12], d;
|
|
2369
2365
|
}
|
|
2370
2366
|
function ro(o, e) {
|
|
2371
|
-
const t = _e((m) => m.layers), n = _e((m) => m.setLayer), s =
|
|
2367
|
+
const t = _e((m) => m.layers), n = _e((m) => m.setLayer), s = de(() => dt(o.map((m) => t[m]).filter((m) => !!m)), [t, o]), r = de(() => s.map(e), [e, s]), i = $(({
|
|
2372
2368
|
id: m,
|
|
2373
|
-
visible:
|
|
2369
|
+
visible: c,
|
|
2374
2370
|
...p
|
|
2375
2371
|
}) => {
|
|
2376
2372
|
n(m, {
|
|
2377
2373
|
props: {
|
|
2378
|
-
visible:
|
|
2374
|
+
visible: c
|
|
2379
2375
|
},
|
|
2380
2376
|
legend: p
|
|
2381
2377
|
});
|
|
2382
|
-
}, [n]), a =
|
|
2378
|
+
}, [n]), a = $(({
|
|
2383
2379
|
id: m,
|
|
2384
|
-
collapsed:
|
|
2380
|
+
collapsed: c
|
|
2385
2381
|
}) => {
|
|
2386
2382
|
n(m, {
|
|
2387
2383
|
legend: {
|
|
2388
|
-
collapsed:
|
|
2384
|
+
collapsed: c
|
|
2389
2385
|
}
|
|
2390
2386
|
});
|
|
2391
|
-
}, [n]),
|
|
2387
|
+
}, [n]), l = $(({
|
|
2392
2388
|
id: m,
|
|
2393
|
-
opacity:
|
|
2389
|
+
opacity: c
|
|
2394
2390
|
}) => {
|
|
2395
2391
|
n(m, {
|
|
2396
2392
|
props: {
|
|
2397
|
-
opacity:
|
|
2393
|
+
opacity: c
|
|
2398
2394
|
}
|
|
2399
2395
|
});
|
|
2400
2396
|
}, [n]);
|
|
2401
2397
|
return {
|
|
2402
2398
|
legend: r,
|
|
2403
2399
|
onChangeVisibility: i,
|
|
2404
|
-
onChangeOpacity:
|
|
2400
|
+
onChangeOpacity: l,
|
|
2405
2401
|
onChangRowCollapsed: a
|
|
2406
2402
|
};
|
|
2407
2403
|
}
|
|
2408
2404
|
function io({
|
|
2409
2405
|
mapId: o
|
|
2410
2406
|
}) {
|
|
2411
|
-
const [e, t] =
|
|
2412
|
-
var
|
|
2413
|
-
return (
|
|
2414
|
-
}), i =
|
|
2415
|
-
var
|
|
2416
|
-
return (
|
|
2417
|
-
}),
|
|
2418
|
-
var
|
|
2419
|
-
return (
|
|
2420
|
-
}) &&
|
|
2407
|
+
const [e, t] = fe(void 0), [n, s] = fe(!1), r = w((f) => {
|
|
2408
|
+
var M;
|
|
2409
|
+
return (M = f.maps[o]) == null ? void 0 : M.basemap;
|
|
2410
|
+
}), i = w((f) => f.getDeckInstance), a = w((f) => f.getOverlayInstance), l = w((f) => {
|
|
2411
|
+
var M;
|
|
2412
|
+
return (M = f.maps[o]) == null ? void 0 : M.areLayersLoaded;
|
|
2413
|
+
}), c = w((f) => {
|
|
2414
|
+
var M;
|
|
2415
|
+
return (M = f.maps[o]) == null ? void 0 : M.isLoaded;
|
|
2416
|
+
}) && l, {
|
|
2421
2417
|
type: p
|
|
2422
|
-
} =
|
|
2423
|
-
const f = i(o),
|
|
2418
|
+
} = nt[r], d = p === ue.googleMaps, u = $(async () => {
|
|
2419
|
+
const f = i(o), M = a(o);
|
|
2424
2420
|
try {
|
|
2425
2421
|
const h = document.createElement("canvas");
|
|
2426
2422
|
h.width = f.width ?? 0, h.height = f.height ?? 0;
|
|
2427
2423
|
const y = h.getContext("2d");
|
|
2428
2424
|
if (d) {
|
|
2429
|
-
const S =
|
|
2425
|
+
const S = M;
|
|
2430
2426
|
if (S.getRenderingType() !== "RASTER")
|
|
2431
2427
|
throw new Error("Only raster type is supported for Google Maps");
|
|
2432
2428
|
const v = await Jt(S.getDiv(), {
|
|
@@ -2434,12 +2430,12 @@ function io({
|
|
|
2434
2430
|
});
|
|
2435
2431
|
y == null || y.drawImage(v, 0, 0, f.width, f.height);
|
|
2436
2432
|
} else {
|
|
2437
|
-
const S =
|
|
2433
|
+
const S = M;
|
|
2438
2434
|
S.redraw(), y == null || y.drawImage(S.getMap().getCanvas(), 0, 0, f.width, f.height);
|
|
2439
2435
|
}
|
|
2440
2436
|
f == null || f.redraw("screenshot"), y == null || y.drawImage(f.getCanvas(), 0, 0, f.width, f.height);
|
|
2441
|
-
const
|
|
2442
|
-
t(
|
|
2437
|
+
const T = h.toDataURL();
|
|
2438
|
+
t(T);
|
|
2443
2439
|
} catch (h) {
|
|
2444
2440
|
console.error(h);
|
|
2445
2441
|
} finally {
|
|
@@ -2447,9 +2443,9 @@ function io({
|
|
|
2447
2443
|
}
|
|
2448
2444
|
}, [i, d, o, a]);
|
|
2449
2445
|
return {
|
|
2450
|
-
takeScreenshot:
|
|
2451
|
-
s(!0),
|
|
2452
|
-
}, [u,
|
|
2446
|
+
takeScreenshot: $(() => {
|
|
2447
|
+
s(!0), c && u();
|
|
2448
|
+
}, [u, c]),
|
|
2453
2449
|
isLoading: n,
|
|
2454
2450
|
screenshot: e
|
|
2455
2451
|
};
|
|
@@ -2468,12 +2464,12 @@ function ao(o) {
|
|
|
2468
2464
|
mapId: t
|
|
2469
2465
|
}, e[2] = t, e[3] = r) : r = e[3];
|
|
2470
2466
|
const i = hn(r), a = i ?? s;
|
|
2471
|
-
let
|
|
2472
|
-
return e[4] !== i || e[5] !== a || e[6] !== s ? (
|
|
2467
|
+
let l;
|
|
2468
|
+
return e[4] !== i || e[5] !== a || e[6] !== s ? (l = {
|
|
2473
2469
|
spatialFilter: a,
|
|
2474
2470
|
lassoToolsSpatialFilter: i,
|
|
2475
2471
|
viewportSpatialFilter: s
|
|
2476
|
-
}, e[4] = i, e[5] = a, e[6] = s, e[7] =
|
|
2472
|
+
}, e[4] = i, e[5] = a, e[6] = s, e[7] = l) : l = e[7], l;
|
|
2477
2473
|
}
|
|
2478
2474
|
function yn(o) {
|
|
2479
2475
|
const e = C(4), {
|
|
@@ -2481,7 +2477,7 @@ function yn(o) {
|
|
|
2481
2477
|
} = o;
|
|
2482
2478
|
let n;
|
|
2483
2479
|
e[0] !== t ? (n = (i) => i.viewports[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2484
|
-
const s =
|
|
2480
|
+
const s = w(n);
|
|
2485
2481
|
let r;
|
|
2486
2482
|
e: {
|
|
2487
2483
|
if (!s) {
|
|
@@ -2502,12 +2498,12 @@ function hn(o) {
|
|
|
2502
2498
|
var a;
|
|
2503
2499
|
return (a = i.data[t]) == null ? void 0 : a.values;
|
|
2504
2500
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
2505
|
-
const s =
|
|
2501
|
+
const s = j(n);
|
|
2506
2502
|
let r;
|
|
2507
2503
|
e: {
|
|
2508
2504
|
let i;
|
|
2509
2505
|
if (e[2] !== s) {
|
|
2510
|
-
const a =
|
|
2506
|
+
const a = it({
|
|
2511
2507
|
values: s
|
|
2512
2508
|
}).filter(vn);
|
|
2513
2509
|
if (!(a != null && a.length)) {
|
|
@@ -2525,23 +2521,23 @@ function Sn(o) {
|
|
|
2525
2521
|
return o.geometry.coordinates;
|
|
2526
2522
|
}
|
|
2527
2523
|
function vn(o) {
|
|
2528
|
-
return o.visible;
|
|
2524
|
+
return o.properties.visible;
|
|
2529
2525
|
}
|
|
2530
|
-
const
|
|
2526
|
+
const Se = {
|
|
2531
2527
|
currency: "CURRENCY",
|
|
2532
2528
|
default: "DEFAULT",
|
|
2533
2529
|
number: "NUMBER"
|
|
2534
|
-
},
|
|
2535
|
-
[
|
|
2536
|
-
type:
|
|
2530
|
+
}, Ye = {
|
|
2531
|
+
[Se.currency]: {
|
|
2532
|
+
type: Se.currency,
|
|
2537
2533
|
format: (o, e) => Ht(o, e)
|
|
2538
2534
|
},
|
|
2539
|
-
[
|
|
2540
|
-
type:
|
|
2541
|
-
format: (o, e) =>
|
|
2535
|
+
[Se.number]: {
|
|
2536
|
+
type: Se.number,
|
|
2537
|
+
format: (o, e) => st(o, e)
|
|
2542
2538
|
},
|
|
2543
|
-
[
|
|
2544
|
-
type:
|
|
2539
|
+
[Se.default]: {
|
|
2540
|
+
type: Se.default,
|
|
2545
2541
|
format: (o) => o.toLocaleString()
|
|
2546
2542
|
}
|
|
2547
2543
|
};
|
|
@@ -2553,37 +2549,37 @@ function lo({
|
|
|
2553
2549
|
showColumnName: s = !0,
|
|
2554
2550
|
title: r,
|
|
2555
2551
|
getColumnName: i = _n,
|
|
2556
|
-
getFieldHtml: a =
|
|
2557
|
-
getTitle:
|
|
2558
|
-
getValue: m =
|
|
2552
|
+
getFieldHtml: a = Tn,
|
|
2553
|
+
getTitle: l = bn,
|
|
2554
|
+
getValue: m = Mn
|
|
2559
2555
|
}) {
|
|
2560
|
-
const
|
|
2561
|
-
const f = e[g],
|
|
2556
|
+
const c = r ? l(r) : "", d = t.reduce((u, g) => {
|
|
2557
|
+
const f = e[g], M = o[g], h = m(M, n, f), y = s ? i(g) : "";
|
|
2562
2558
|
return u + a(y, h);
|
|
2563
2559
|
}, "");
|
|
2564
|
-
return
|
|
2560
|
+
return c + d;
|
|
2565
2561
|
}
|
|
2566
2562
|
function bn(o) {
|
|
2567
2563
|
return `<h3 style="margin: 0"><strong>${o}</strong></h3></br>`;
|
|
2568
2564
|
}
|
|
2569
|
-
function
|
|
2565
|
+
function Tn(o, e) {
|
|
2570
2566
|
return `${o}${e}</br>`;
|
|
2571
2567
|
}
|
|
2572
|
-
function
|
|
2568
|
+
function Mn(o, e, t) {
|
|
2573
2569
|
try {
|
|
2574
|
-
return
|
|
2570
|
+
return Ln(t)(o, e);
|
|
2575
2571
|
} catch {
|
|
2576
2572
|
return o;
|
|
2577
2573
|
}
|
|
2578
2574
|
}
|
|
2579
|
-
function
|
|
2580
|
-
return typeof o == "function" ? o : ((o &&
|
|
2575
|
+
function Ln(o) {
|
|
2576
|
+
return typeof o == "function" ? o : ((o && Ye[o]) ?? Ye[Se.default]).format;
|
|
2581
2577
|
}
|
|
2582
2578
|
function _n(o) {
|
|
2583
2579
|
return `<strong>${o}</strong>: `;
|
|
2584
2580
|
}
|
|
2585
2581
|
function co(o) {
|
|
2586
|
-
var e, t, n, s, r, i, a,
|
|
2582
|
+
var e, t, n, s, r, i, a, l;
|
|
2587
2583
|
return {
|
|
2588
2584
|
collapsed: (e = o.legend) == null ? void 0 : e.collapsed,
|
|
2589
2585
|
collapsible: (t = o.legend) == null ? void 0 : t.collapsible,
|
|
@@ -2594,7 +2590,7 @@ function co(o) {
|
|
|
2594
2590
|
minZoom: (i = o.legend) == null ? void 0 : i.minZoom,
|
|
2595
2591
|
opacity: o.props.opacity ?? 1,
|
|
2596
2592
|
opacityControl: (a = o.legend) == null ? void 0 : a.opacityControl,
|
|
2597
|
-
switchable: (
|
|
2593
|
+
switchable: (l = o.legend) == null ? void 0 : l.switchable,
|
|
2598
2594
|
title: o.name,
|
|
2599
2595
|
visible: o.props.visible ?? !0
|
|
2600
2596
|
};
|
|
@@ -2610,25 +2606,25 @@ function uo(o) {
|
|
|
2610
2606
|
zoom: r,
|
|
2611
2607
|
maxZoom: i,
|
|
2612
2608
|
minZoom: a
|
|
2613
|
-
} =
|
|
2614
|
-
let
|
|
2615
|
-
e[2] !== n ? (
|
|
2616
|
-
const m =
|
|
2609
|
+
} = w(s);
|
|
2610
|
+
let l;
|
|
2611
|
+
e[2] !== n ? (l = (y) => y.maps[n].areLayersLoaded, e[2] = n, e[3] = l) : l = e[3];
|
|
2612
|
+
const m = w(l), c = w(En), p = w(Pn), d = !m;
|
|
2617
2613
|
let u;
|
|
2618
|
-
e[4] !== n || e[5] !==
|
|
2614
|
+
e[4] !== n || e[5] !== c ? (u = (y) => c(n, y), e[4] = n, e[5] = c, e[6] = u) : u = e[6];
|
|
2619
2615
|
const g = u;
|
|
2620
2616
|
let f;
|
|
2621
2617
|
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
|
|
2618
|
+
const M = f;
|
|
2623
2619
|
let h;
|
|
2624
|
-
return e[10] !== t || e[11] !== i || e[12] !== a || e[13] !== d || e[14] !== g || e[15] !==
|
|
2620
|
+
return e[10] !== t || e[11] !== i || e[12] !== a || e[13] !== d || e[14] !== g || e[15] !== M || e[16] !== r ? (h = t({
|
|
2625
2621
|
zoom: r,
|
|
2626
2622
|
maxZoom: i,
|
|
2627
2623
|
minZoom: a,
|
|
2628
2624
|
isLoading: d,
|
|
2629
2625
|
setZoom: g,
|
|
2630
|
-
flyTo:
|
|
2631
|
-
}), e[10] = t, e[11] = i, e[12] = a, e[13] = d, e[14] = g, e[15] =
|
|
2626
|
+
flyTo: M
|
|
2627
|
+
}), e[10] = t, e[11] = i, e[12] = a, e[13] = d, e[14] = g, e[15] = M, e[16] = r, e[17] = h) : h = e[17], h;
|
|
2632
2628
|
}
|
|
2633
2629
|
function Pn(o) {
|
|
2634
2630
|
return o.flyTo;
|
|
@@ -2639,43 +2635,43 @@ function En(o) {
|
|
|
2639
2635
|
export {
|
|
2640
2636
|
sn as ApiBaseUrl,
|
|
2641
2637
|
Ze as CONVERSIONS_UNITS,
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2638
|
+
Oe as CartoBasemapURL,
|
|
2639
|
+
ee as CartoBasemaps,
|
|
2640
|
+
Wn as CategoriesModel,
|
|
2645
2641
|
us as CustomCompositeEditMode,
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2642
|
+
Cs as CustomMeasureAreaMode,
|
|
2643
|
+
Fs as CustomMeasureBufferMode,
|
|
2644
|
+
lt as CustomMeasureDistanceMode,
|
|
2645
|
+
Ie as DEFAULT_LASSO_TOOLS_COLORS,
|
|
2650
2646
|
ds as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
2651
|
-
|
|
2652
|
-
|
|
2647
|
+
Be as DEFAULT_LASSO_TOOLS_MODES,
|
|
2648
|
+
Ae as DEFAULT_LASSO_TOOLS_PROPS,
|
|
2653
2649
|
Pe as DEFAULT_MASK_LAYER_PROPS,
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2650
|
+
Rs as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
2651
|
+
Ds as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
2652
|
+
De as DEFAULT_MEASURE_COLORS,
|
|
2657
2653
|
ns as DeckGLComponent,
|
|
2658
|
-
|
|
2654
|
+
K as EditableEditType,
|
|
2659
2655
|
Yn as FeaturesModel,
|
|
2660
2656
|
Xn as FormulaModel,
|
|
2661
|
-
|
|
2657
|
+
we as GmapsBasemap,
|
|
2662
2658
|
Jn as HistogramModel,
|
|
2663
|
-
|
|
2659
|
+
Le as INTL_UNITS,
|
|
2664
2660
|
qs as LassoTools,
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2661
|
+
Ps as LassoToolsProvider,
|
|
2662
|
+
nt as MAPS_BASEMAP,
|
|
2663
|
+
Te as MAP_LASSO_TOOLS_LAYER_ID,
|
|
2664
|
+
ke as MAP_MASK_LAYER_ID,
|
|
2665
|
+
ve as MAP_MEASURE_LAYER_ID,
|
|
2666
|
+
As as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
2671
2667
|
ze as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2668
|
+
Q as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
2669
|
+
zn as MapComponent,
|
|
2670
|
+
xe as MapMeasurementUnitAuto,
|
|
2671
|
+
Os as MapMeasurementUnitTurf,
|
|
2672
|
+
Ss as MapProvider,
|
|
2677
2673
|
oo as MapsProvider,
|
|
2678
|
-
|
|
2674
|
+
ue as MapsTypes,
|
|
2679
2675
|
Ys as MeasurementTools,
|
|
2680
2676
|
js as MeasurementToolsProvider,
|
|
2681
2677
|
eo as RangeModel,
|
|
@@ -2684,33 +2680,33 @@ export {
|
|
|
2684
2680
|
no as TimeSeriesModel,
|
|
2685
2681
|
uo as ZoomControls,
|
|
2686
2682
|
nn as clientID,
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2683
|
+
Qe as convertMetersTo,
|
|
2684
|
+
_s as createLassoToolsStore,
|
|
2685
|
+
hs as createMapStore,
|
|
2690
2686
|
Vs as createMeasurementToolsStore,
|
|
2691
|
-
|
|
2687
|
+
Se as formatterTypes,
|
|
2692
2688
|
ts as getCursorDefault,
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2689
|
+
Zn as getDeckController,
|
|
2690
|
+
Ms as getLassoToolsLayer,
|
|
2691
|
+
Us as getMeasurementToolsLayer,
|
|
2692
|
+
Ce as getTextLayerFormattedDistance,
|
|
2697
2693
|
ss as getTooltipDefault,
|
|
2698
2694
|
co as mappingLegendMeridian,
|
|
2699
2695
|
lo as objectToHtml,
|
|
2700
|
-
|
|
2701
|
-
|
|
2696
|
+
dt as sortLayers,
|
|
2697
|
+
ms as transitionFlyConfig,
|
|
2702
2698
|
ln as useCategories,
|
|
2703
2699
|
cn as useFeatures,
|
|
2704
2700
|
un as useFormula,
|
|
2705
2701
|
dn as useHistogram,
|
|
2706
2702
|
hn as useLassoToolsSpatialFilter,
|
|
2707
|
-
|
|
2703
|
+
j as useLassoToolsState,
|
|
2708
2704
|
_e as useLayerStore,
|
|
2709
2705
|
Xs as useLayers,
|
|
2710
2706
|
ro as useLegend,
|
|
2711
2707
|
io as useMapScreenshot,
|
|
2712
|
-
|
|
2713
|
-
|
|
2708
|
+
w as useMapStore,
|
|
2709
|
+
q as useMeasurementToolsState,
|
|
2714
2710
|
fn as useRange,
|
|
2715
2711
|
mn as useScatter,
|
|
2716
2712
|
on as useSourceStore,
|
|
@@ -2718,6 +2714,6 @@ export {
|
|
|
2718
2714
|
pn as useTable,
|
|
2719
2715
|
gn as useTimeSeries,
|
|
2720
2716
|
yn as useViewportSpatialFilter,
|
|
2721
|
-
|
|
2717
|
+
pe as useWidgetModel
|
|
2722
2718
|
};
|
|
2723
2719
|
//# sourceMappingURL=index.js.map
|