@neshan-maps-platform/react-openlayers 3.0.1 → 3.0.2-alpha.1
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.
|
@@ -1,676 +1,288 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Map as
|
|
3
|
-
var
|
|
1
|
+
import ge, { forwardRef as Pe, useRef as te, useState as re, useImperativeHandle as Re, useEffect as we } from "react";
|
|
2
|
+
import { Map as Te, View as be } from "@neshan-maps-platform/ol";
|
|
3
|
+
var G = { exports: {} }, O = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
|
-
* react-jsx-runtime.production.
|
|
6
|
+
* react-jsx-runtime.production.js
|
|
7
7
|
*
|
|
8
|
-
* Copyright (c)
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
var ne;
|
|
14
|
+
function ve() {
|
|
15
|
+
if (ne) return O;
|
|
16
|
+
ne = 1;
|
|
17
|
+
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
18
|
+
function n(s, a, i) {
|
|
19
|
+
var h = null;
|
|
20
|
+
if (i !== void 0 && (h = "" + i), a.key !== void 0 && (h = "" + a.key), "key" in a) {
|
|
21
|
+
i = {};
|
|
22
|
+
for (var g in a)
|
|
23
|
+
g !== "key" && (i[g] = a[g]);
|
|
24
|
+
} else i = a;
|
|
25
|
+
return a = i.ref, {
|
|
26
|
+
$$typeof: r,
|
|
27
|
+
type: s,
|
|
28
|
+
key: h,
|
|
29
|
+
ref: a !== void 0 ? a : null,
|
|
30
|
+
props: i
|
|
31
|
+
};
|
|
28
32
|
}
|
|
29
|
-
return
|
|
33
|
+
return O.Fragment = t, O.jsx = n, O.jsxs = n, O;
|
|
30
34
|
}
|
|
31
|
-
var
|
|
35
|
+
var A = {};
|
|
32
36
|
/**
|
|
33
37
|
* @license React
|
|
34
38
|
* react-jsx-runtime.development.js
|
|
35
39
|
*
|
|
36
|
-
* Copyright (c)
|
|
40
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
37
41
|
*
|
|
38
42
|
* This source code is licensed under the MIT license found in the
|
|
39
43
|
* LICENSE file in the root directory of this source tree.
|
|
40
44
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (
|
|
47
|
-
return null;
|
|
48
|
-
|
|
49
|
-
return typeof t == "function" ? t : null;
|
|
50
|
-
}
|
|
51
|
-
var O = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
-
function m(e) {
|
|
53
|
-
{
|
|
54
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
55
|
-
n[i - 1] = arguments[i];
|
|
56
|
-
te("error", e, n);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function te(e, t, n) {
|
|
60
|
-
{
|
|
61
|
-
var i = O.ReactDebugCurrentFrame, c = i.getStackAddendum();
|
|
62
|
-
c !== "" && (t += "%s", n = n.concat([c]));
|
|
63
|
-
var d = n.map(function(s) {
|
|
64
|
-
return String(s);
|
|
65
|
-
});
|
|
66
|
-
d.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, d);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
var re = !1, ne = !1, g = !1, z = !1, B = !1, ve;
|
|
70
|
-
ve = Symbol.for("react.module.reference");
|
|
71
|
-
function He(e) {
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === u || e === _ || B || e === f || e === C || e === y || z || e === P || re || ne || g || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === w || e.$$typeof === j || e.$$typeof === x || e.$$typeof === p || // This needs to include all possible module reference object
|
|
73
|
-
// types supported by any Flight configuration anywhere since
|
|
74
|
-
// we don't know which Flight build this will end up being used
|
|
75
|
-
// with.
|
|
76
|
-
e.$$typeof === ve || e.getModuleId !== void 0));
|
|
77
|
-
}
|
|
78
|
-
function Ke(e, t, n) {
|
|
79
|
-
var i = e.displayName;
|
|
80
|
-
if (i)
|
|
81
|
-
return i;
|
|
82
|
-
var c = t.displayName || t.name || "";
|
|
83
|
-
return c !== "" ? n + "(" + c + ")" : n;
|
|
84
|
-
}
|
|
85
|
-
function ge(e) {
|
|
86
|
-
return e.displayName || "Context";
|
|
87
|
-
}
|
|
88
|
-
function T(e) {
|
|
89
|
-
if (e == null)
|
|
90
|
-
return null;
|
|
91
|
-
if (typeof e.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
|
-
return e.displayName || e.name || null;
|
|
93
|
-
if (typeof e == "string")
|
|
94
|
-
return e;
|
|
45
|
+
var oe;
|
|
46
|
+
function Se() {
|
|
47
|
+
return oe || (oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
function r(e) {
|
|
49
|
+
if (e == null) return null;
|
|
50
|
+
if (typeof e == "function")
|
|
51
|
+
return e.$$typeof === me ? null : e.displayName || e.name || null;
|
|
52
|
+
if (typeof e == "string") return e;
|
|
95
53
|
switch (e) {
|
|
96
|
-
case
|
|
54
|
+
case v:
|
|
97
55
|
return "Fragment";
|
|
98
|
-
case
|
|
99
|
-
return "Portal";
|
|
100
|
-
case _:
|
|
56
|
+
case Y:
|
|
101
57
|
return "Profiler";
|
|
102
|
-
case
|
|
58
|
+
case S:
|
|
103
59
|
return "StrictMode";
|
|
104
|
-
case
|
|
60
|
+
case W:
|
|
105
61
|
return "Suspense";
|
|
106
|
-
case
|
|
62
|
+
case c:
|
|
107
63
|
return "SuspenseList";
|
|
64
|
+
case Ee:
|
|
65
|
+
return "Activity";
|
|
108
66
|
}
|
|
109
67
|
if (typeof e == "object")
|
|
110
|
-
switch (
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
68
|
+
switch (typeof e.tag == "number" && console.error(
|
|
69
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
|
+
), e.$$typeof) {
|
|
71
|
+
case N:
|
|
72
|
+
return "Portal";
|
|
73
|
+
case U:
|
|
74
|
+
return (e.displayName || "Context") + ".Provider";
|
|
114
75
|
case j:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
var c = e, d = c._payload, s = c._init;
|
|
76
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case D:
|
|
78
|
+
var o = e.render;
|
|
79
|
+
return e = e.displayName, e || (e = o.displayName || o.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
80
|
+
case I:
|
|
81
|
+
return o = e.displayName || null, o !== null ? o : r(e.type) || "Memo";
|
|
82
|
+
case x:
|
|
83
|
+
o = e._payload, e = e._init;
|
|
124
84
|
try {
|
|
125
|
-
return
|
|
85
|
+
return r(e(o));
|
|
126
86
|
} catch {
|
|
127
|
-
return null;
|
|
128
87
|
}
|
|
129
|
-
}
|
|
130
88
|
}
|
|
131
89
|
return null;
|
|
132
90
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
we.__reactDisabledLog = !0;
|
|
137
|
-
function Ze() {
|
|
138
|
-
{
|
|
139
|
-
if (N === 0) {
|
|
140
|
-
he = console.log, pe = console.info, me = console.warn, ye = console.error, Ee = console.group, be = console.groupCollapsed, Re = console.groupEnd;
|
|
141
|
-
var e = {
|
|
142
|
-
configurable: !0,
|
|
143
|
-
enumerable: !0,
|
|
144
|
-
value: we,
|
|
145
|
-
writable: !0
|
|
146
|
-
};
|
|
147
|
-
Object.defineProperties(console, {
|
|
148
|
-
info: e,
|
|
149
|
-
log: e,
|
|
150
|
-
warn: e,
|
|
151
|
-
error: e,
|
|
152
|
-
group: e,
|
|
153
|
-
groupCollapsed: e,
|
|
154
|
-
groupEnd: e
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
N++;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function Qe() {
|
|
161
|
-
{
|
|
162
|
-
if (N--, N === 0) {
|
|
163
|
-
var e = {
|
|
164
|
-
configurable: !0,
|
|
165
|
-
enumerable: !0,
|
|
166
|
-
writable: !0
|
|
167
|
-
};
|
|
168
|
-
Object.defineProperties(console, {
|
|
169
|
-
log: F({}, e, {
|
|
170
|
-
value: he
|
|
171
|
-
}),
|
|
172
|
-
info: F({}, e, {
|
|
173
|
-
value: pe
|
|
174
|
-
}),
|
|
175
|
-
warn: F({}, e, {
|
|
176
|
-
value: me
|
|
177
|
-
}),
|
|
178
|
-
error: F({}, e, {
|
|
179
|
-
value: ye
|
|
180
|
-
}),
|
|
181
|
-
group: F({}, e, {
|
|
182
|
-
value: Ee
|
|
183
|
-
}),
|
|
184
|
-
groupCollapsed: F({}, e, {
|
|
185
|
-
value: be
|
|
186
|
-
}),
|
|
187
|
-
groupEnd: F({}, e, {
|
|
188
|
-
value: Re
|
|
189
|
-
})
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
N < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
var ae = O.ReactCurrentDispatcher, oe;
|
|
196
|
-
function q(e, t, n) {
|
|
197
|
-
{
|
|
198
|
-
if (oe === void 0)
|
|
199
|
-
try {
|
|
200
|
-
throw Error();
|
|
201
|
-
} catch (c) {
|
|
202
|
-
var i = c.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
-
oe = i && i[1] || "";
|
|
204
|
-
}
|
|
205
|
-
return `
|
|
206
|
-
` + oe + e;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
var ie = !1, X;
|
|
210
|
-
{
|
|
211
|
-
var et = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
-
X = new et();
|
|
91
|
+
function t(e) {
|
|
92
|
+
return "" + e;
|
|
213
93
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!e || ie)
|
|
216
|
-
return "";
|
|
217
|
-
{
|
|
218
|
-
var n = X.get(e);
|
|
219
|
-
if (n !== void 0)
|
|
220
|
-
return n;
|
|
221
|
-
}
|
|
222
|
-
var i;
|
|
223
|
-
ie = !0;
|
|
224
|
-
var c = Error.prepareStackTrace;
|
|
225
|
-
Error.prepareStackTrace = void 0;
|
|
226
|
-
var d;
|
|
227
|
-
d = ae.current, ae.current = null, Ze();
|
|
94
|
+
function n(e) {
|
|
228
95
|
try {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
if (Object.defineProperty(s.prototype, "props", {
|
|
234
|
-
set: function() {
|
|
235
|
-
throw Error();
|
|
236
|
-
}
|
|
237
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
|
-
try {
|
|
239
|
-
Reflect.construct(s, []);
|
|
240
|
-
} catch (S) {
|
|
241
|
-
i = S;
|
|
242
|
-
}
|
|
243
|
-
Reflect.construct(e, [], s);
|
|
244
|
-
} else {
|
|
245
|
-
try {
|
|
246
|
-
s.call();
|
|
247
|
-
} catch (S) {
|
|
248
|
-
i = S;
|
|
249
|
-
}
|
|
250
|
-
e.call(s.prototype);
|
|
251
|
-
}
|
|
252
|
-
} else {
|
|
253
|
-
try {
|
|
254
|
-
throw Error();
|
|
255
|
-
} catch (S) {
|
|
256
|
-
i = S;
|
|
257
|
-
}
|
|
258
|
-
e();
|
|
259
|
-
}
|
|
260
|
-
} catch (S) {
|
|
261
|
-
if (S && i && typeof S.stack == "string") {
|
|
262
|
-
for (var l = S.stack.split(`
|
|
263
|
-
`), E = i.stack.split(`
|
|
264
|
-
`), v = l.length - 1, h = E.length - 1; v >= 1 && h >= 0 && l[v] !== E[h]; )
|
|
265
|
-
h--;
|
|
266
|
-
for (; v >= 1 && h >= 0; v--, h--)
|
|
267
|
-
if (l[v] !== E[h]) {
|
|
268
|
-
if (v !== 1 || h !== 1)
|
|
269
|
-
do
|
|
270
|
-
if (v--, h--, h < 0 || l[v] !== E[h]) {
|
|
271
|
-
var R = `
|
|
272
|
-
` + l[v].replace(" at new ", " at ");
|
|
273
|
-
return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, R), R;
|
|
274
|
-
}
|
|
275
|
-
while (v >= 1 && h >= 0);
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
} finally {
|
|
280
|
-
ie = !1, ae.current = d, Qe(), Error.prepareStackTrace = c;
|
|
281
|
-
}
|
|
282
|
-
var A = e ? e.displayName || e.name : "", Me = A ? q(A) : "";
|
|
283
|
-
return typeof e == "function" && X.set(e, Me), Me;
|
|
284
|
-
}
|
|
285
|
-
function tt(e, t, n) {
|
|
286
|
-
return Pe(e, !1);
|
|
287
|
-
}
|
|
288
|
-
function rt(e) {
|
|
289
|
-
var t = e.prototype;
|
|
290
|
-
return !!(t && t.isReactComponent);
|
|
291
|
-
}
|
|
292
|
-
function J(e, t, n) {
|
|
293
|
-
if (e == null)
|
|
294
|
-
return "";
|
|
295
|
-
if (typeof e == "function")
|
|
296
|
-
return Pe(e, rt(e));
|
|
297
|
-
if (typeof e == "string")
|
|
298
|
-
return q(e);
|
|
299
|
-
switch (e) {
|
|
300
|
-
case C:
|
|
301
|
-
return q("Suspense");
|
|
302
|
-
case y:
|
|
303
|
-
return q("SuspenseList");
|
|
304
|
-
}
|
|
305
|
-
if (typeof e == "object")
|
|
306
|
-
switch (e.$$typeof) {
|
|
307
|
-
case p:
|
|
308
|
-
return tt(e.render);
|
|
309
|
-
case w:
|
|
310
|
-
return J(e.type, t, n);
|
|
311
|
-
case b: {
|
|
312
|
-
var i = e, c = i._payload, d = i._init;
|
|
313
|
-
try {
|
|
314
|
-
return J(d(c), t, n);
|
|
315
|
-
} catch {
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return "";
|
|
320
|
-
}
|
|
321
|
-
var H = Object.prototype.hasOwnProperty, xe = {}, Te = O.ReactDebugCurrentFrame;
|
|
322
|
-
function K(e) {
|
|
323
|
-
if (e) {
|
|
324
|
-
var t = e._owner, n = J(e.type, e._source, t ? t.type : null);
|
|
325
|
-
Te.setExtraStackFrame(n);
|
|
326
|
-
} else
|
|
327
|
-
Te.setExtraStackFrame(null);
|
|
328
|
-
}
|
|
329
|
-
function nt(e, t, n, i, c) {
|
|
330
|
-
{
|
|
331
|
-
var d = Function.call.bind(H);
|
|
332
|
-
for (var s in e)
|
|
333
|
-
if (d(e, s)) {
|
|
334
|
-
var l = void 0;
|
|
335
|
-
try {
|
|
336
|
-
if (typeof e[s] != "function") {
|
|
337
|
-
var E = Error((i || "React class") + ": " + n + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
-
throw E.name = "Invariant Violation", E;
|
|
339
|
-
}
|
|
340
|
-
l = e[s](t, s, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
-
} catch (v) {
|
|
342
|
-
l = v;
|
|
343
|
-
}
|
|
344
|
-
l && !(l instanceof Error) && (K(c), m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", n, s, typeof l), K(null)), l instanceof Error && !(l.message in xe) && (xe[l.message] = !0, K(c), m("Failed %s type: %s", n, l.message), K(null));
|
|
345
|
-
}
|
|
96
|
+
t(e);
|
|
97
|
+
var o = !1;
|
|
98
|
+
} catch {
|
|
99
|
+
o = !0;
|
|
346
100
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
return n;
|
|
101
|
+
if (o) {
|
|
102
|
+
o = console;
|
|
103
|
+
var l = o.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
104
|
+
return l.call(
|
|
105
|
+
o,
|
|
106
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
+
u
|
|
108
|
+
), t(e);
|
|
356
109
|
}
|
|
357
110
|
}
|
|
358
|
-
function
|
|
111
|
+
function s(e) {
|
|
112
|
+
if (e === v) return "<>";
|
|
113
|
+
if (typeof e == "object" && e !== null && e.$$typeof === x)
|
|
114
|
+
return "<...>";
|
|
359
115
|
try {
|
|
360
|
-
|
|
116
|
+
var o = r(e);
|
|
117
|
+
return o ? "<" + o + ">" : "<...>";
|
|
361
118
|
} catch {
|
|
362
|
-
return
|
|
119
|
+
return "<...>";
|
|
363
120
|
}
|
|
364
121
|
}
|
|
365
|
-
function
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
function Ce(e) {
|
|
369
|
-
if (it(e))
|
|
370
|
-
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ot(e)), Se(e);
|
|
122
|
+
function a() {
|
|
123
|
+
var e = X.A;
|
|
124
|
+
return e === null ? null : e.getOwner();
|
|
371
125
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
ref: !0,
|
|
375
|
-
__self: !0,
|
|
376
|
-
__source: !0
|
|
377
|
-
}, Oe, je, se;
|
|
378
|
-
se = {};
|
|
379
|
-
function st(e) {
|
|
380
|
-
if (H.call(e, "ref")) {
|
|
381
|
-
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
382
|
-
if (t && t.isReactWarning)
|
|
383
|
-
return !1;
|
|
384
|
-
}
|
|
385
|
-
return e.ref !== void 0;
|
|
126
|
+
function i() {
|
|
127
|
+
return Error("react-stack-top-frame");
|
|
386
128
|
}
|
|
387
|
-
function
|
|
388
|
-
if (
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
391
|
-
return !1;
|
|
129
|
+
function h(e) {
|
|
130
|
+
if (B.call(e, "key")) {
|
|
131
|
+
var o = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
132
|
+
if (o && o.isReactWarning) return !1;
|
|
392
133
|
}
|
|
393
134
|
return e.key !== void 0;
|
|
394
135
|
}
|
|
395
|
-
function
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
136
|
+
function g(e, o) {
|
|
137
|
+
function l() {
|
|
138
|
+
H || (H = !0, console.error(
|
|
139
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
140
|
+
o
|
|
141
|
+
));
|
|
399
142
|
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
var n = function() {
|
|
415
|
-
je || (je = !0, m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
416
|
-
};
|
|
417
|
-
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
418
|
-
get: n,
|
|
419
|
-
configurable: !0
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
var _t = function(e, t, n, i, c, d, s) {
|
|
424
|
-
var l = {
|
|
425
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
426
|
-
$$typeof: r,
|
|
427
|
-
// Built-in properties that belong on the element
|
|
143
|
+
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
144
|
+
get: l,
|
|
145
|
+
configurable: !0
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function p() {
|
|
149
|
+
var e = r(this.type);
|
|
150
|
+
return Z[e] || (Z[e] = !0, console.error(
|
|
151
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
153
|
+
}
|
|
154
|
+
function $(e, o, l, u, _, E, q, J) {
|
|
155
|
+
return l = E.ref, e = {
|
|
156
|
+
$$typeof: m,
|
|
428
157
|
type: e,
|
|
429
|
-
key:
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
158
|
+
key: o,
|
|
159
|
+
props: E,
|
|
160
|
+
_owner: _
|
|
161
|
+
}, (l !== void 0 ? l : null) !== null ? Object.defineProperty(e, "ref", {
|
|
162
|
+
enumerable: !1,
|
|
163
|
+
get: p
|
|
164
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
436
165
|
configurable: !1,
|
|
437
166
|
enumerable: !1,
|
|
438
167
|
writable: !0,
|
|
439
|
-
value:
|
|
440
|
-
}), Object.defineProperty(
|
|
168
|
+
value: 0
|
|
169
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
441
170
|
configurable: !1,
|
|
442
171
|
enumerable: !1,
|
|
443
|
-
writable: !
|
|
444
|
-
value:
|
|
445
|
-
}), Object.defineProperty(
|
|
172
|
+
writable: !0,
|
|
173
|
+
value: null
|
|
174
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
446
175
|
configurable: !1,
|
|
447
176
|
enumerable: !1,
|
|
448
|
-
writable: !
|
|
449
|
-
value:
|
|
450
|
-
}), Object.
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
if (e)
|
|
488
|
-
return `
|
|
489
|
-
|
|
490
|
-
Check the render method of \`` + e + "`.";
|
|
491
|
-
}
|
|
492
|
-
return "";
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
function gt(e) {
|
|
496
|
-
{
|
|
497
|
-
if (e !== void 0) {
|
|
498
|
-
var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
499
|
-
return `
|
|
500
|
-
|
|
501
|
-
Check your code at ` + t + ":" + n + ".";
|
|
502
|
-
}
|
|
503
|
-
return "";
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
var ke = {};
|
|
507
|
-
function ht(e) {
|
|
508
|
-
{
|
|
509
|
-
var t = Ie();
|
|
510
|
-
if (!t) {
|
|
511
|
-
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
512
|
-
n && (t = `
|
|
513
|
-
|
|
514
|
-
Check the top-level render call using <` + n + ">.");
|
|
515
|
-
}
|
|
516
|
-
return t;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
function Ae(e, t) {
|
|
520
|
-
{
|
|
521
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
522
|
-
return;
|
|
523
|
-
e._store.validated = !0;
|
|
524
|
-
var n = ht(t);
|
|
525
|
-
if (ke[n])
|
|
526
|
-
return;
|
|
527
|
-
ke[n] = !0;
|
|
528
|
-
var i = "";
|
|
529
|
-
e && e._owner && e._owner !== ue.current && (i = " It was passed a child from " + T(e._owner.type) + "."), k(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), k(null);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
function De(e, t) {
|
|
533
|
-
{
|
|
534
|
-
if (typeof e != "object")
|
|
535
|
-
return;
|
|
536
|
-
if (le(e))
|
|
537
|
-
for (var n = 0; n < e.length; n++) {
|
|
538
|
-
var i = e[n];
|
|
539
|
-
fe(i) && Ae(i, t);
|
|
540
|
-
}
|
|
541
|
-
else if (fe(e))
|
|
542
|
-
e._store && (e._store.validated = !0);
|
|
543
|
-
else if (e) {
|
|
544
|
-
var c = W(e);
|
|
545
|
-
if (typeof c == "function" && c !== e.entries)
|
|
546
|
-
for (var d = c.call(e), s; !(s = d.next()).done; )
|
|
547
|
-
fe(s.value) && Ae(s.value, t);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
function pt(e) {
|
|
552
|
-
{
|
|
553
|
-
var t = e.type;
|
|
554
|
-
if (t == null || typeof t == "string")
|
|
555
|
-
return;
|
|
556
|
-
var n;
|
|
557
|
-
if (typeof t == "function")
|
|
558
|
-
n = t.propTypes;
|
|
559
|
-
else if (typeof t == "object" && (t.$$typeof === p || // Note: Memo only checks outer props here.
|
|
560
|
-
// Inner props are checked in the reconciler.
|
|
561
|
-
t.$$typeof === w))
|
|
562
|
-
n = t.propTypes;
|
|
563
|
-
else
|
|
564
|
-
return;
|
|
565
|
-
if (n) {
|
|
566
|
-
var i = T(t);
|
|
567
|
-
nt(n, e.props, "prop", i, e);
|
|
568
|
-
} else if (t.PropTypes !== void 0 && !ce) {
|
|
569
|
-
ce = !0;
|
|
570
|
-
var c = T(t);
|
|
571
|
-
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
|
|
572
|
-
}
|
|
573
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
function mt(e) {
|
|
577
|
-
{
|
|
578
|
-
for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
|
|
579
|
-
var i = t[n];
|
|
580
|
-
if (i !== "children" && i !== "key") {
|
|
581
|
-
k(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), k(null);
|
|
582
|
-
break;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
e.ref !== null && (k(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: q
|
|
179
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
180
|
+
configurable: !1,
|
|
181
|
+
enumerable: !1,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: J
|
|
184
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
185
|
+
}
|
|
186
|
+
function k(e, o, l, u, _, E, q, J) {
|
|
187
|
+
var f = o.children;
|
|
188
|
+
if (f !== void 0)
|
|
189
|
+
if (u)
|
|
190
|
+
if (_e(f)) {
|
|
191
|
+
for (u = 0; u < f.length; u++)
|
|
192
|
+
C(f[u]);
|
|
193
|
+
Object.freeze && Object.freeze(f);
|
|
194
|
+
} else
|
|
195
|
+
console.error(
|
|
196
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
|
+
);
|
|
198
|
+
else C(f);
|
|
199
|
+
if (B.call(o, "key")) {
|
|
200
|
+
f = r(e);
|
|
201
|
+
var R = Object.keys(o).filter(function(he) {
|
|
202
|
+
return he !== "key";
|
|
203
|
+
});
|
|
204
|
+
u = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", ee[f + u] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
206
|
+
let props = %s;
|
|
207
|
+
<%s {...props} />
|
|
208
|
+
React keys must be passed directly to JSX without using spread:
|
|
209
|
+
let props = %s;
|
|
210
|
+
<%s key={someKey} {...props} />`,
|
|
211
|
+
u,
|
|
212
|
+
f,
|
|
213
|
+
R,
|
|
214
|
+
f
|
|
215
|
+
), ee[f + u] = !0);
|
|
586
216
|
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
return e === u ? mt(h) : pt(h), h;
|
|
217
|
+
if (f = null, l !== void 0 && (n(l), f = "" + l), h(o) && (n(o.key), f = "" + o.key), "key" in o) {
|
|
218
|
+
l = {};
|
|
219
|
+
for (var V in o)
|
|
220
|
+
V !== "key" && (l[V] = o[V]);
|
|
221
|
+
} else l = o;
|
|
222
|
+
return f && g(
|
|
223
|
+
l,
|
|
224
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
225
|
+
), $(
|
|
226
|
+
e,
|
|
227
|
+
f,
|
|
228
|
+
E,
|
|
229
|
+
_,
|
|
230
|
+
a(),
|
|
231
|
+
l,
|
|
232
|
+
q,
|
|
233
|
+
J
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
function C(e) {
|
|
237
|
+
typeof e == "object" && e !== null && e.$$typeof === m && e._store && (e._store.validated = 1);
|
|
238
|
+
}
|
|
239
|
+
var d = ge, m = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), Y = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), U = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), W = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), Ee = Symbol.for("react.activity"), me = Symbol.for("react.client.reference"), X = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, _e = Array.isArray, L = console.createTask ? console.createTask : function() {
|
|
240
|
+
return null;
|
|
241
|
+
};
|
|
242
|
+
d = {
|
|
243
|
+
"react-stack-bottom-frame": function(e) {
|
|
244
|
+
return e();
|
|
616
245
|
}
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
246
|
+
};
|
|
247
|
+
var H, Z = {}, Q = d["react-stack-bottom-frame"].bind(
|
|
248
|
+
d,
|
|
249
|
+
i
|
|
250
|
+
)(), K = L(s(i)), ee = {};
|
|
251
|
+
A.Fragment = v, A.jsx = function(e, o, l, u, _) {
|
|
252
|
+
var E = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
253
|
+
return k(
|
|
254
|
+
e,
|
|
255
|
+
o,
|
|
256
|
+
l,
|
|
257
|
+
!1,
|
|
258
|
+
u,
|
|
259
|
+
_,
|
|
260
|
+
E ? Error("react-stack-top-frame") : Q,
|
|
261
|
+
E ? L(s(e)) : K
|
|
262
|
+
);
|
|
263
|
+
}, A.jsxs = function(e, o, l, u, _) {
|
|
264
|
+
var E = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return k(
|
|
266
|
+
e,
|
|
267
|
+
o,
|
|
268
|
+
l,
|
|
269
|
+
!0,
|
|
270
|
+
u,
|
|
271
|
+
_,
|
|
272
|
+
E ? Error("react-stack-top-frame") : Q,
|
|
273
|
+
E ? L(s(e)) : K
|
|
274
|
+
);
|
|
275
|
+
};
|
|
276
|
+
}()), A;
|
|
627
277
|
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
"ol-scale-bar": "_ol-scale-bar_1tyvt_1",
|
|
637
|
-
"ol-scale-bar-inner": "_ol-scale-bar-inner_1tyvt_1",
|
|
638
|
-
"ol-scale-step-marker": "_ol-scale-step-marker_1tyvt_1",
|
|
639
|
-
"ol-scale-step-text": "_ol-scale-step-text_1tyvt_1",
|
|
640
|
-
"ol-scale-text": "_ol-scale-text_1tyvt_1",
|
|
641
|
-
"ol-scale-singlebar": "_ol-scale-singlebar_1tyvt_1",
|
|
642
|
-
"ol-scale-singlebar-even": "_ol-scale-singlebar-even_1tyvt_1",
|
|
643
|
-
"ol-scale-singlebar-odd": "_ol-scale-singlebar-odd_1tyvt_1",
|
|
644
|
-
"ol-unsupported": "_ol-unsupported_1tyvt_1",
|
|
645
|
-
"ol-viewport": "_ol-viewport_1tyvt_1",
|
|
646
|
-
"ol-unselectable": "_ol-unselectable_1tyvt_1",
|
|
647
|
-
"ol-selectable": "_ol-selectable_1tyvt_1",
|
|
648
|
-
"ol-grabbing": "_ol-grabbing_1tyvt_1",
|
|
649
|
-
"ol-grab": "_ol-grab_1tyvt_1",
|
|
650
|
-
"ol-control": "_ol-control_1tyvt_1",
|
|
651
|
-
"ol-zoom": "_ol-zoom_1tyvt_1",
|
|
652
|
-
"ol-rotate": "_ol-rotate_1tyvt_1",
|
|
653
|
-
"ol-hidden": "_ol-hidden_1tyvt_1",
|
|
654
|
-
"ol-zoom-extent": "_ol-zoom-extent_1tyvt_1",
|
|
655
|
-
"ol-full-screen": "_ol-full-screen_1tyvt_1",
|
|
656
|
-
"ol-compass": "_ol-compass_1tyvt_1",
|
|
657
|
-
"ol-touch": "_ol-touch_1tyvt_1",
|
|
658
|
-
"ol-zoom-in": "_ol-zoom-in_1tyvt_1",
|
|
659
|
-
"ol-zoom-out": "_ol-zoom-out_1tyvt_1",
|
|
660
|
-
"ol-attribution": "_ol-attribution_1tyvt_1",
|
|
661
|
-
"ol-collapsed": "_ol-collapsed_1tyvt_1",
|
|
662
|
-
"ol-uncollapsible": "_ol-uncollapsible_1tyvt_1",
|
|
663
|
-
"ol-zoomslider": "_ol-zoomslider_1tyvt_1",
|
|
664
|
-
"ol-overviewmap": "_ol-overviewmap_1tyvt_1",
|
|
665
|
-
"ol-overviewmap-map": "_ol-overviewmap-map_1tyvt_1",
|
|
666
|
-
"ol-overviewmap-box": "_ol-overviewmap-box_1tyvt_1",
|
|
667
|
-
map: It,
|
|
668
|
-
"map-popup-container": "_map-popup-container_1tyvt_7",
|
|
669
|
-
touch: kt,
|
|
670
|
-
"mobile-layers-button": "_mobile-layers-button_1tyvt_30",
|
|
671
|
-
floaten: At,
|
|
672
|
-
float: Dt
|
|
673
|
-
}, Mt = {
|
|
278
|
+
var ae;
|
|
279
|
+
function xe() {
|
|
280
|
+
return ae || (ae = 1, process.env.NODE_ENV === "production" ? G.exports = ve() : G.exports = Se()), G.exports;
|
|
281
|
+
}
|
|
282
|
+
var Oe = xe();
|
|
283
|
+
const Ae = "_map_1tyvt_2", ye = {
|
|
284
|
+
map: Ae
|
|
285
|
+
}, pe = {
|
|
674
286
|
// use the radius of the Normal sphere
|
|
675
287
|
radians: 6370997 / (2 * Math.PI),
|
|
676
288
|
degrees: 2 * Math.PI * 6370997 / 360,
|
|
@@ -678,13 +290,13 @@ const It = "_map_1tyvt_2", kt = "_touch_1tyvt_26", At = "_floaten_1tyvt_45", Dt
|
|
|
678
290
|
m: 1,
|
|
679
291
|
"us-ft": 1200 / 3937
|
|
680
292
|
};
|
|
681
|
-
class
|
|
293
|
+
class fe {
|
|
682
294
|
/**
|
|
683
295
|
* @param {Options} options Projection options.
|
|
684
296
|
*/
|
|
685
|
-
constructor(
|
|
686
|
-
this.code_ =
|
|
687
|
-
|
|
297
|
+
constructor(t) {
|
|
298
|
+
this.code_ = t.code, this.units_ = /** @type {import("./Units.js").Units} */
|
|
299
|
+
t.units, this.extent_ = t.extent !== void 0 ? t.extent : null, this.worldExtent_ = t.worldExtent !== void 0 ? t.worldExtent : null, this.axisOrientation_ = t.axisOrientation !== void 0 ? t.axisOrientation : "enu", this.global_ = t.global !== void 0 ? t.global : !1, this.canWrapX_ = !!(this.global_ && this.extent_), this.getPointResolutionFunc_ = t.getPointResolution, this.defaultTileGrid_ = null, this.metersPerUnit_ = t.metersPerUnit;
|
|
688
300
|
}
|
|
689
301
|
/**
|
|
690
302
|
* @return {boolean} The projection is suitable for wrapping the x-axis
|
|
@@ -724,7 +336,7 @@ class Gt {
|
|
|
724
336
|
* @api
|
|
725
337
|
*/
|
|
726
338
|
getMetersPerUnit() {
|
|
727
|
-
return this.metersPerUnit_ ||
|
|
339
|
+
return this.metersPerUnit_ || pe[this.units_];
|
|
728
340
|
}
|
|
729
341
|
/**
|
|
730
342
|
* Get the world extent for this projection.
|
|
@@ -761,8 +373,8 @@ class Gt {
|
|
|
761
373
|
* @param {boolean} global Whether the projection is global.
|
|
762
374
|
* @api
|
|
763
375
|
*/
|
|
764
|
-
setGlobal(
|
|
765
|
-
this.global_ =
|
|
376
|
+
setGlobal(t) {
|
|
377
|
+
this.global_ = t, this.canWrapX_ = !!(t && this.extent_);
|
|
766
378
|
}
|
|
767
379
|
/**
|
|
768
380
|
* @return {import("../tilegrid/TileGrid.js").default} The default tile grid.
|
|
@@ -773,16 +385,16 @@ class Gt {
|
|
|
773
385
|
/**
|
|
774
386
|
* @param {import("../tilegrid/TileGrid.js").default} tileGrid The default tile grid.
|
|
775
387
|
*/
|
|
776
|
-
setDefaultTileGrid(
|
|
777
|
-
this.defaultTileGrid_ =
|
|
388
|
+
setDefaultTileGrid(t) {
|
|
389
|
+
this.defaultTileGrid_ = t;
|
|
778
390
|
}
|
|
779
391
|
/**
|
|
780
392
|
* Set the validity extent for this projection.
|
|
781
393
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
782
394
|
* @api
|
|
783
395
|
*/
|
|
784
|
-
setExtent(
|
|
785
|
-
this.extent_ =
|
|
396
|
+
setExtent(t) {
|
|
397
|
+
this.extent_ = t, this.canWrapX_ = !!(this.global_ && t);
|
|
786
398
|
}
|
|
787
399
|
/**
|
|
788
400
|
* Set the world extent for this projection.
|
|
@@ -790,8 +402,8 @@ class Gt {
|
|
|
790
402
|
* [minlon, minlat, maxlon, maxlat].
|
|
791
403
|
* @api
|
|
792
404
|
*/
|
|
793
|
-
setWorldExtent(
|
|
794
|
-
this.worldExtent_ =
|
|
405
|
+
setWorldExtent(t) {
|
|
406
|
+
this.worldExtent_ = t;
|
|
795
407
|
}
|
|
796
408
|
/**
|
|
797
409
|
* Set the getPointResolution function (see {@link module:ol/proj.getPointResolution}
|
|
@@ -799,8 +411,8 @@ class Gt {
|
|
|
799
411
|
* @param {function(number, import("../coordinate.js").Coordinate):number} func Function
|
|
800
412
|
* @api
|
|
801
413
|
*/
|
|
802
|
-
setGetPointResolution(
|
|
803
|
-
this.getPointResolutionFunc_ =
|
|
414
|
+
setGetPointResolution(t) {
|
|
415
|
+
this.getPointResolutionFunc_ = t;
|
|
804
416
|
}
|
|
805
417
|
/**
|
|
806
418
|
* Get the custom point resolution function for this projection (if set).
|
|
@@ -811,240 +423,238 @@ class Gt {
|
|
|
811
423
|
return this.getPointResolutionFunc_;
|
|
812
424
|
}
|
|
813
425
|
}
|
|
814
|
-
const
|
|
815
|
-
class
|
|
426
|
+
const y = 6378137, T = Math.PI * y, ke = [-T, -T, T, T], Ce = [-180, -85, 180, 85], M = y * Math.log(Math.tan(Math.PI / 2));
|
|
427
|
+
class w extends fe {
|
|
816
428
|
/**
|
|
817
429
|
* @param {string} code Code.
|
|
818
430
|
*/
|
|
819
|
-
constructor(
|
|
431
|
+
constructor(t) {
|
|
820
432
|
super({
|
|
821
|
-
code:
|
|
433
|
+
code: t,
|
|
822
434
|
units: "m",
|
|
823
|
-
extent:
|
|
435
|
+
extent: ke,
|
|
824
436
|
global: !0,
|
|
825
|
-
worldExtent:
|
|
826
|
-
getPointResolution: function(
|
|
827
|
-
return
|
|
437
|
+
worldExtent: Ce,
|
|
438
|
+
getPointResolution: function(n, s) {
|
|
439
|
+
return n / Math.cosh(s[1] / y);
|
|
828
440
|
}
|
|
829
441
|
});
|
|
830
442
|
}
|
|
831
443
|
}
|
|
832
|
-
const
|
|
833
|
-
new
|
|
834
|
-
new
|
|
835
|
-
new
|
|
836
|
-
new
|
|
837
|
-
new
|
|
838
|
-
new
|
|
444
|
+
const se = [
|
|
445
|
+
new w("EPSG:3857"),
|
|
446
|
+
new w("EPSG:102100"),
|
|
447
|
+
new w("EPSG:102113"),
|
|
448
|
+
new w("EPSG:900913"),
|
|
449
|
+
new w("http://www.opengis.net/def/crs/EPSG/0/3857"),
|
|
450
|
+
new w("http://www.opengis.net/gml/srs/epsg.xml#3857")
|
|
839
451
|
];
|
|
840
|
-
function
|
|
841
|
-
const
|
|
842
|
-
|
|
843
|
-
for (let
|
|
844
|
-
|
|
845
|
-
let
|
|
846
|
-
|
|
452
|
+
function Ne(r, t, n) {
|
|
453
|
+
const s = r.length;
|
|
454
|
+
n = n > 1 ? n : 2, t === void 0 && (n > 2 ? t = r.slice() : t = new Array(s));
|
|
455
|
+
for (let a = 0; a < s; a += n) {
|
|
456
|
+
t[a] = T * r[a] / 180;
|
|
457
|
+
let i = y * Math.log(Math.tan(Math.PI * (+r[a + 1] + 90) / 360));
|
|
458
|
+
i > M ? i = M : i < -M && (i = -M), t[a + 1] = i;
|
|
847
459
|
}
|
|
848
|
-
return
|
|
460
|
+
return t;
|
|
849
461
|
}
|
|
850
|
-
function
|
|
851
|
-
const
|
|
852
|
-
|
|
853
|
-
for (let
|
|
854
|
-
|
|
855
|
-
return
|
|
462
|
+
function je(r, t, n) {
|
|
463
|
+
const s = r.length;
|
|
464
|
+
n = n > 1 ? n : 2, t === void 0 && (n > 2 ? t = r.slice() : t = new Array(s));
|
|
465
|
+
for (let a = 0; a < s; a += n)
|
|
466
|
+
t[a] = 180 * r[a] / T, t[a + 1] = 360 * Math.atan(Math.exp(r[a + 1] / y)) / Math.PI - 90;
|
|
467
|
+
return t;
|
|
856
468
|
}
|
|
857
|
-
const
|
|
858
|
-
class
|
|
469
|
+
const Ie = 6378137, ie = [-180, -90, 180, 90], Ge = Math.PI * Ie / 180;
|
|
470
|
+
class P extends fe {
|
|
859
471
|
/**
|
|
860
472
|
* @param {string} code Code.
|
|
861
473
|
* @param {string} [axisOrientation] Axis orientation.
|
|
862
474
|
*/
|
|
863
|
-
constructor(
|
|
475
|
+
constructor(t, n) {
|
|
864
476
|
super({
|
|
865
|
-
code:
|
|
477
|
+
code: t,
|
|
866
478
|
units: "degrees",
|
|
867
|
-
extent:
|
|
868
|
-
axisOrientation:
|
|
479
|
+
extent: ie,
|
|
480
|
+
axisOrientation: n,
|
|
869
481
|
global: !0,
|
|
870
|
-
metersPerUnit:
|
|
871
|
-
worldExtent:
|
|
482
|
+
metersPerUnit: Ge,
|
|
483
|
+
worldExtent: ie
|
|
872
484
|
});
|
|
873
485
|
}
|
|
874
486
|
}
|
|
875
|
-
const
|
|
876
|
-
new
|
|
877
|
-
new
|
|
878
|
-
new
|
|
879
|
-
new
|
|
880
|
-
new
|
|
881
|
-
new
|
|
882
|
-
new
|
|
487
|
+
const le = [
|
|
488
|
+
new P("CRS:84"),
|
|
489
|
+
new P("EPSG:4326", "neu"),
|
|
490
|
+
new P("urn:ogc:def:crs:OGC:1.3:CRS84"),
|
|
491
|
+
new P("urn:ogc:def:crs:OGC:2:84"),
|
|
492
|
+
new P("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),
|
|
493
|
+
new P("http://www.opengis.net/gml/srs/epsg.xml#4326", "neu"),
|
|
494
|
+
new P("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
|
|
883
495
|
];
|
|
884
|
-
let
|
|
885
|
-
function
|
|
886
|
-
return
|
|
496
|
+
let z = {};
|
|
497
|
+
function Me(r) {
|
|
498
|
+
return z[r] || z[r.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
|
|
887
499
|
}
|
|
888
|
-
function
|
|
889
|
-
|
|
500
|
+
function Fe(r, t) {
|
|
501
|
+
z[r] = t;
|
|
890
502
|
}
|
|
891
|
-
let
|
|
892
|
-
function
|
|
893
|
-
const
|
|
894
|
-
|
|
503
|
+
let b = {};
|
|
504
|
+
function F(r, t, n) {
|
|
505
|
+
const s = r.getCode(), a = t.getCode();
|
|
506
|
+
s in b || (b[s] = {}), b[s][a] = n;
|
|
895
507
|
}
|
|
896
|
-
function
|
|
897
|
-
let
|
|
898
|
-
return
|
|
508
|
+
function $e(r, t) {
|
|
509
|
+
let n;
|
|
510
|
+
return r in b && t in b[r] && (n = b[r][t]), n;
|
|
899
511
|
}
|
|
900
|
-
function
|
|
901
|
-
if (
|
|
902
|
-
for (let
|
|
903
|
-
|
|
904
|
-
|
|
512
|
+
function de(r, t) {
|
|
513
|
+
if (t !== void 0) {
|
|
514
|
+
for (let n = 0, s = r.length; n < s; ++n)
|
|
515
|
+
t[n] = r[n];
|
|
516
|
+
t = t;
|
|
905
517
|
} else
|
|
906
|
-
|
|
907
|
-
return
|
|
518
|
+
t = r.slice();
|
|
519
|
+
return t;
|
|
908
520
|
}
|
|
909
|
-
function
|
|
910
|
-
if (
|
|
911
|
-
for (let
|
|
912
|
-
|
|
913
|
-
|
|
521
|
+
function Ye(r, t) {
|
|
522
|
+
if (t !== void 0 && r !== t) {
|
|
523
|
+
for (let n = 0, s = r.length; n < s; ++n)
|
|
524
|
+
t[n] = r[n];
|
|
525
|
+
r = t;
|
|
914
526
|
}
|
|
915
|
-
return
|
|
527
|
+
return r;
|
|
916
528
|
}
|
|
917
|
-
function
|
|
918
|
-
|
|
529
|
+
function Ue(r) {
|
|
530
|
+
Fe(r.getCode(), r), F(r, r, de);
|
|
919
531
|
}
|
|
920
|
-
function
|
|
921
|
-
|
|
532
|
+
function De(r) {
|
|
533
|
+
r.forEach(Ue);
|
|
922
534
|
}
|
|
923
|
-
function
|
|
924
|
-
return typeof
|
|
535
|
+
function ce(r) {
|
|
536
|
+
return typeof r == "string" ? Me(
|
|
925
537
|
/** @type {string} */
|
|
926
|
-
|
|
538
|
+
r
|
|
927
539
|
) : (
|
|
928
540
|
/** @type {Projection} */
|
|
929
|
-
|
|
541
|
+
r || null
|
|
930
542
|
);
|
|
931
543
|
}
|
|
932
|
-
function
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
544
|
+
function ue(r) {
|
|
545
|
+
De(r), r.forEach(function(t) {
|
|
546
|
+
r.forEach(function(n) {
|
|
547
|
+
t !== n && F(t, n, de);
|
|
936
548
|
});
|
|
937
549
|
});
|
|
938
550
|
}
|
|
939
|
-
function
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
551
|
+
function We(r, t, n, s) {
|
|
552
|
+
r.forEach(function(a) {
|
|
553
|
+
t.forEach(function(i) {
|
|
554
|
+
F(a, i, n), F(i, a, s);
|
|
943
555
|
});
|
|
944
556
|
});
|
|
945
557
|
}
|
|
946
|
-
function
|
|
947
|
-
return
|
|
948
|
-
|
|
558
|
+
function Xe(r, t) {
|
|
559
|
+
return Je(
|
|
560
|
+
r,
|
|
949
561
|
"EPSG:4326",
|
|
950
|
-
|
|
562
|
+
"EPSG:3857"
|
|
951
563
|
);
|
|
952
564
|
}
|
|
953
|
-
function
|
|
954
|
-
const
|
|
955
|
-
let
|
|
956
|
-
return
|
|
565
|
+
function Le(r, t) {
|
|
566
|
+
const n = r.getCode(), s = t.getCode();
|
|
567
|
+
let a = $e(n, s);
|
|
568
|
+
return a || (a = Ye), a;
|
|
957
569
|
}
|
|
958
|
-
function
|
|
959
|
-
const
|
|
960
|
-
return
|
|
570
|
+
function qe(r, t) {
|
|
571
|
+
const n = ce(r), s = ce(t);
|
|
572
|
+
return Le(n, s);
|
|
961
573
|
}
|
|
962
|
-
function
|
|
963
|
-
return
|
|
574
|
+
function Je(r, t, n) {
|
|
575
|
+
return qe(t, n)(r, void 0, r.length);
|
|
964
576
|
}
|
|
965
|
-
function
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
577
|
+
function Ve() {
|
|
578
|
+
ue(se), ue(le), We(
|
|
579
|
+
le,
|
|
580
|
+
se,
|
|
581
|
+
Ne,
|
|
582
|
+
je
|
|
971
583
|
);
|
|
972
584
|
}
|
|
973
|
-
|
|
974
|
-
const
|
|
585
|
+
Ve();
|
|
586
|
+
const He = Pe(
|
|
975
587
|
({
|
|
976
|
-
options:
|
|
977
|
-
mapKey:
|
|
978
|
-
zoom:
|
|
979
|
-
defaultType:
|
|
980
|
-
scale:
|
|
981
|
-
center:
|
|
982
|
-
poi:
|
|
983
|
-
traffic:
|
|
588
|
+
options: r,
|
|
589
|
+
mapKey: t,
|
|
590
|
+
zoom: n,
|
|
591
|
+
defaultType: s,
|
|
592
|
+
scale: a,
|
|
593
|
+
center: i,
|
|
594
|
+
poi: h,
|
|
595
|
+
traffic: g,
|
|
984
596
|
onInit: p,
|
|
985
|
-
className:
|
|
986
|
-
style:
|
|
987
|
-
},
|
|
988
|
-
const
|
|
989
|
-
|
|
990
|
-
|
|
597
|
+
className: $,
|
|
598
|
+
style: k
|
|
599
|
+
}, C) => {
|
|
600
|
+
const d = te(null), m = te(null), [N, v] = re(!1), [S, Y] = re(null);
|
|
601
|
+
Re(
|
|
602
|
+
C,
|
|
991
603
|
() => ({
|
|
992
604
|
get mapContainer() {
|
|
993
|
-
return
|
|
605
|
+
return d;
|
|
994
606
|
},
|
|
995
607
|
get map() {
|
|
996
|
-
return
|
|
608
|
+
return m.current;
|
|
997
609
|
},
|
|
998
610
|
get isInitiated() {
|
|
999
|
-
return
|
|
611
|
+
return N;
|
|
1000
612
|
}
|
|
1001
613
|
}),
|
|
1002
|
-
[
|
|
614
|
+
[N, m.current]
|
|
1003
615
|
);
|
|
1004
|
-
const
|
|
1005
|
-
var
|
|
1006
|
-
if (
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
key: r || "",
|
|
1026
|
-
mapType: u,
|
|
616
|
+
const j = () => {
|
|
617
|
+
var I, x;
|
|
618
|
+
if (S) return S;
|
|
619
|
+
const c = (x = (I = d.current) == null ? void 0 : I.querySelector(".ol-viewport")) == null ? void 0 : x.querySelectorAll("div:last-child");
|
|
620
|
+
if (c)
|
|
621
|
+
return Y(
|
|
622
|
+
Array.from(c)[c.length - 1]
|
|
623
|
+
), S;
|
|
624
|
+
}, U = () => {
|
|
625
|
+
const c = j();
|
|
626
|
+
c == null || c.style.setProperty("scale", "" + a);
|
|
627
|
+
}, D = () => {
|
|
628
|
+
const c = j();
|
|
629
|
+
c == null || c.style.setProperty("bottom", "0.2em"), c == null || c.style.setProperty("left", "0.4em");
|
|
630
|
+
}, W = () => {
|
|
631
|
+
if (m.current != null || !d.current) return;
|
|
632
|
+
const c = {};
|
|
633
|
+
i != null && i.longitude && i.latitude && (c.center = Xe([i == null ? void 0 : i.longitude, i == null ? void 0 : i.latitude])), n && (c.zoom = n), m.current = new Te({
|
|
634
|
+
target: d.current,
|
|
635
|
+
key: t || "",
|
|
636
|
+
mapType: s,
|
|
1027
637
|
// poi: store.state.poiLayer,
|
|
1028
|
-
poi:
|
|
638
|
+
poi: h,
|
|
1029
639
|
// traffic: store.state.trafficLayer,
|
|
1030
|
-
traffic:
|
|
1031
|
-
view: new
|
|
640
|
+
traffic: g,
|
|
641
|
+
view: new be(c),
|
|
1032
642
|
controls: [],
|
|
1033
|
-
...
|
|
1034
|
-
}),
|
|
643
|
+
...r
|
|
644
|
+
}), v(!0), p && p(m.current);
|
|
1035
645
|
};
|
|
1036
|
-
return
|
|
1037
|
-
|
|
1038
|
-
}, []), /* @__PURE__ */
|
|
646
|
+
return we(() => {
|
|
647
|
+
W(), U(), D();
|
|
648
|
+
}, []), /* @__PURE__ */ Oe.jsx(
|
|
1039
649
|
"div",
|
|
1040
650
|
{
|
|
1041
|
-
ref:
|
|
1042
|
-
className:
|
|
1043
|
-
style:
|
|
651
|
+
ref: d,
|
|
652
|
+
className: $ || ye.map,
|
|
653
|
+
style: k
|
|
1044
654
|
}
|
|
1045
655
|
);
|
|
1046
656
|
}
|
|
1047
657
|
);
|
|
1048
658
|
export {
|
|
1049
|
-
|
|
659
|
+
He as default
|
|
1050
660
|
};
|