agvmap-react 0.2.1 → 0.2.2
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/agvmap-react.js +138 -140
- package/dist/agvmap-react.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/agvmap-react.js
CHANGED
|
@@ -2,7 +2,7 @@ var n9 = Object.defineProperty;
|
|
|
2
2
|
var i9 = (e, t, r) => t in e ? n9(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var AA = (e, t, r) => i9(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import * as Ee from "react";
|
|
5
|
-
import ze, { useState as Dt, useEffect as
|
|
5
|
+
import ze, { useState as Dt, useEffect as ar, createContext as bi, useContext as br, useRef as On, useMemo as Pn, useLayoutEffect as _S, useImperativeHandle as W0, memo as $u, forwardRef as hs, cloneElement as yi, createElement as sm, useCallback as vr, Component as wS, Fragment as Y_, useReducer as a9, isValidElement as La, Children as Cu, PureComponent as wl } from "react";
|
|
6
6
|
import * as xR from "react-dom";
|
|
7
7
|
import H0, { createPortal as SS } from "react-dom";
|
|
8
8
|
function s9(e, t) {
|
|
@@ -1759,7 +1759,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1759
1759
|
var P9 = K_.exports;
|
|
1760
1760
|
const nr = /* @__PURE__ */ sn(P9), O9 = () => {
|
|
1761
1761
|
const [e, t] = Dt(!1);
|
|
1762
|
-
return
|
|
1762
|
+
return ar(() => {
|
|
1763
1763
|
const r = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1764
1764
|
t(r.matches);
|
|
1765
1765
|
const n = (i) => t(i.matches);
|
|
@@ -1793,7 +1793,7 @@ const nr = /* @__PURE__ */ sn(P9), O9 = () => {
|
|
|
1793
1793
|
latitude: -35.9503019
|
|
1794
1794
|
}
|
|
1795
1795
|
}), [n, i] = Dt(null), s = O9();
|
|
1796
|
-
return
|
|
1796
|
+
return ar(() => {
|
|
1797
1797
|
k9().then((c) => {
|
|
1798
1798
|
if (!c)
|
|
1799
1799
|
throw new Error(
|
|
@@ -2322,7 +2322,7 @@ function U9(e) {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
return Array.from(t);
|
|
2324
2324
|
}
|
|
2325
|
-
const X9 = typeof document < "u" ? _S :
|
|
2325
|
+
const X9 = typeof document < "u" ? _S : ar, Z9 = [
|
|
2326
2326
|
"baseApiUrl",
|
|
2327
2327
|
"maxParallelImageRequests",
|
|
2328
2328
|
"workerClass",
|
|
@@ -2340,7 +2340,7 @@ function Y9(e, t) {
|
|
|
2340
2340
|
const Gu = Ee.createContext(null);
|
|
2341
2341
|
function q9(e, t, r) {
|
|
2342
2342
|
const n = br(ER), [i, s] = Dt(null), c = On(), { current: a } = On({ mapLib: null, map: null });
|
|
2343
|
-
|
|
2343
|
+
ar(() => {
|
|
2344
2344
|
const y = e.mapLib;
|
|
2345
2345
|
let g = !0, v;
|
|
2346
2346
|
return Promise.resolve(y || r).then((w) => {
|
|
@@ -2426,11 +2426,11 @@ function K9(e, t) {
|
|
|
2426
2426
|
D.lngLat = s.getLngLat(), (L = (O = i.current.props).onDragEnd) === null || L === void 0 || L.call(O, D);
|
|
2427
2427
|
}), I;
|
|
2428
2428
|
}, []);
|
|
2429
|
-
|
|
2429
|
+
ar(() => (s.addTo(r.getMap()), () => {
|
|
2430
2430
|
s.remove();
|
|
2431
2431
|
}), []);
|
|
2432
2432
|
const { longitude: c, latitude: a, offset: d, style: p, draggable: y = !1, popup: g = null, rotation: v = 0, rotationAlignment: w = "auto", pitchAlignment: S = "auto" } = e;
|
|
2433
|
-
return
|
|
2433
|
+
return ar(() => {
|
|
2434
2434
|
Vu(s.getElement(), p);
|
|
2435
2435
|
}, [p]), W0(t, () => s, []), (s.getLngLat().lng !== c || s.getLngLat().lat !== a) && s.setLngLat([c, a]), d && !j9(s.getOffset(), d) && s.setOffset(d), s.isDraggable() !== y && s.setDraggable(y), s.getRotation() !== v && s.setRotation(v), s.getRotationAlignment() !== w && s.setRotationAlignment(w), s.getPitchAlignment() !== S && s.setPitchAlignment(S), s.getPopup() !== g && s.setPopup(g), SS(e.children, s.getElement());
|
|
2436
2436
|
}
|
|
@@ -2448,7 +2448,7 @@ function e$(e, t) {
|
|
|
2448
2448
|
(g = (y = s.current.props).onOpen) === null || g === void 0 || g.call(y, p);
|
|
2449
2449
|
}), d;
|
|
2450
2450
|
}, []);
|
|
2451
|
-
if (
|
|
2451
|
+
if (ar(() => {
|
|
2452
2452
|
const a = (d) => {
|
|
2453
2453
|
var p, y;
|
|
2454
2454
|
(y = (p = s.current.props).onClose) === null || y === void 0 || y.call(p, d);
|
|
@@ -2456,7 +2456,7 @@ function e$(e, t) {
|
|
|
2456
2456
|
return c.on("close", a), c.setDOMContent(i).addTo(r.getMap()), () => {
|
|
2457
2457
|
c.off("close", a), c.isOpen() && c.remove();
|
|
2458
2458
|
};
|
|
2459
|
-
}, []),
|
|
2459
|
+
}, []), ar(() => {
|
|
2460
2460
|
Vu(c.getElement(), e.style);
|
|
2461
2461
|
}, [e.style]), W0(t, () => c, []), c.isOpen() && ((c.getLngLat().lng !== e.longitude || c.getLngLat().lat !== e.latitude) && c.setLngLat([e.longitude, e.latitude]), e.offset && !is(c.options.offset, e.offset) && c.setOffset(e.offset), (c.options.anchor !== e.anchor || c.options.maxWidth !== e.maxWidth) && (c.options.anchor = e.anchor, c.setMaxWidth(e.maxWidth)), c.options.className !== e.className)) {
|
|
2462
2462
|
const a = tT(c.options.className), d = tT(e.className);
|
|
@@ -2471,7 +2471,7 @@ function e$(e, t) {
|
|
|
2471
2471
|
const t$ = $u(hs(e$));
|
|
2472
2472
|
function Jd(e, t, r, n) {
|
|
2473
2473
|
const i = br(Gu), s = Pn(() => e(i), []);
|
|
2474
|
-
return
|
|
2474
|
+
return ar(() => {
|
|
2475
2475
|
const c = n || r || t, a = typeof t == "function" && typeof r == "function" ? t : null, d = typeof r == "function" ? r : typeof t == "function" ? t : null, { map: p } = i;
|
|
2476
2476
|
return p.hasControl(s) || (p.addControl(s, c == null ? void 0 : c.position), a && a(i)), () => {
|
|
2477
2477
|
d && d(i), p.hasControl(s) && p.removeControl(s);
|
|
@@ -2482,7 +2482,7 @@ function r$(e) {
|
|
|
2482
2482
|
const t = Jd(({ mapLib: r }) => new r.AttributionControl(e), {
|
|
2483
2483
|
position: e.position
|
|
2484
2484
|
});
|
|
2485
|
-
return
|
|
2485
|
+
return ar(() => {
|
|
2486
2486
|
Vu(t._container, e.style);
|
|
2487
2487
|
}, [e.style]), null;
|
|
2488
2488
|
}
|
|
@@ -2491,7 +2491,7 @@ function n$(e) {
|
|
|
2491
2491
|
const t = Jd(({ mapLib: r }) => new r.FullscreenControl({
|
|
2492
2492
|
container: e.containerId && document.getElementById(e.containerId)
|
|
2493
2493
|
}), { position: e.position });
|
|
2494
|
-
return
|
|
2494
|
+
return ar(() => {
|
|
2495
2495
|
Vu(t._controlContainer, e.style);
|
|
2496
2496
|
}, [e.style]), null;
|
|
2497
2497
|
}
|
|
@@ -2518,7 +2518,7 @@ function i$(e, t) {
|
|
|
2518
2518
|
(p = (d = r.current.props).onTrackUserLocationEnd) === null || p === void 0 || p.call(d, a);
|
|
2519
2519
|
}), s;
|
|
2520
2520
|
}, { position: e.position });
|
|
2521
|
-
return r.current.props = e, W0(t, () => n, []),
|
|
2521
|
+
return r.current.props = e, W0(t, () => n, []), ar(() => {
|
|
2522
2522
|
Vu(n._container, e.style);
|
|
2523
2523
|
}, [e.style]), null;
|
|
2524
2524
|
}
|
|
@@ -2527,7 +2527,7 @@ function a$(e) {
|
|
|
2527
2527
|
const t = Jd(({ mapLib: r }) => new r.NavigationControl(e), {
|
|
2528
2528
|
position: e.position
|
|
2529
2529
|
});
|
|
2530
|
-
return
|
|
2530
|
+
return ar(() => {
|
|
2531
2531
|
Vu(t._container, e.style);
|
|
2532
2532
|
}, [e.style]), null;
|
|
2533
2533
|
}
|
|
@@ -2538,7 +2538,7 @@ function s$(e) {
|
|
|
2538
2538
|
}), r = On(e), n = r.current;
|
|
2539
2539
|
r.current = e;
|
|
2540
2540
|
const { style: i } = e;
|
|
2541
|
-
return e.maxWidth !== void 0 && e.maxWidth !== n.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== n.unit && t.setUnit(e.unit),
|
|
2541
|
+
return e.maxWidth !== void 0 && e.maxWidth !== n.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== n.unit && t.setUnit(e.unit), ar(() => {
|
|
2542
2542
|
Vu(t._container, i);
|
|
2543
2543
|
}, [i]), null;
|
|
2544
2544
|
}
|
|
@@ -2576,7 +2576,7 @@ function l$(e, t, r) {
|
|
|
2576
2576
|
let c$ = 0;
|
|
2577
2577
|
function u$(e) {
|
|
2578
2578
|
const t = br(Gu).map.getMap(), r = On(e), [, n] = Dt(0), i = Pn(() => e.id || `jsx-layer-${c$++}`, []);
|
|
2579
|
-
if (
|
|
2579
|
+
if (ar(() => {
|
|
2580
2580
|
if (t) {
|
|
2581
2581
|
const c = () => n((a) => a + 1);
|
|
2582
2582
|
return t.on("styledata", c), c(), () => {
|
|
@@ -2616,7 +2616,7 @@ function f$(e, t, r) {
|
|
|
2616
2616
|
}
|
|
2617
2617
|
function p$(e) {
|
|
2618
2618
|
const t = br(Gu).map.getMap(), r = On(e), [, n] = Dt(0), i = Pn(() => e.id || `jsx-source-${h$++}`, []);
|
|
2619
|
-
|
|
2619
|
+
ar(() => {
|
|
2620
2620
|
if (t) {
|
|
2621
2621
|
const c = () => setTimeout(() => n((a) => a + 1), 0);
|
|
2622
2622
|
return t.on("styledata", c), c(), () => {
|
|
@@ -5476,7 +5476,7 @@ const w8 = (e) => e ? e <= 30 ? "SEVERE_STRESS" : e <= 70 ? "STRESS_START" : e <
|
|
|
5476
5476
|
}, O = () => {
|
|
5477
5477
|
E(oT);
|
|
5478
5478
|
};
|
|
5479
|
-
return
|
|
5479
|
+
return ar(() => {
|
|
5480
5480
|
if (!n) return;
|
|
5481
5481
|
console.log("provided markeers", e), (async () => {
|
|
5482
5482
|
y(!0);
|
|
@@ -6969,7 +6969,7 @@ const wG = tG, SG = rG, CG = K8, MG = iG, EG = Q8, yT = J8, AG = nG, TG = (e, t,
|
|
|
6969
6969
|
platform: s
|
|
6970
6970
|
});
|
|
6971
6971
|
};
|
|
6972
|
-
var mv = typeof document < "u" ? _S :
|
|
6972
|
+
var mv = typeof document < "u" ? _S : ar;
|
|
6973
6973
|
function Rv(e, t) {
|
|
6974
6974
|
if (e === t)
|
|
6975
6975
|
return !0;
|
|
@@ -28824,7 +28824,7 @@ function JH(e) {
|
|
|
28824
28824
|
}, [w, v, g]), C = vr(function(M) {
|
|
28825
28825
|
M && (M.removeEventListener("wheel", g, !1), M.removeEventListener("touchstart", v, !1), M.removeEventListener("touchmove", w, !1));
|
|
28826
28826
|
}, [w, v, g]);
|
|
28827
|
-
return
|
|
28827
|
+
return ar(function() {
|
|
28828
28828
|
if (t) {
|
|
28829
28829
|
var M = p.current;
|
|
28830
28830
|
return S(M), function() {
|
|
@@ -28884,7 +28884,7 @@ function KH(e) {
|
|
|
28884
28884
|
}), p && FT() && (p.removeEventListener("touchmove", NT, Vh), d && (d.removeEventListener("touchstart", jT, Vh), d.removeEventListener("touchmove", BT, Vh)));
|
|
28885
28885
|
}
|
|
28886
28886
|
}, [n]);
|
|
28887
|
-
return
|
|
28887
|
+
return ar(function() {
|
|
28888
28888
|
if (t) {
|
|
28889
28889
|
var d = s.current;
|
|
28890
28890
|
return c(d), function() {
|
|
@@ -30504,7 +30504,7 @@ const UU = (e, t) => {
|
|
|
30504
30504
|
},
|
|
30505
30505
|
[e]
|
|
30506
30506
|
);
|
|
30507
|
-
return
|
|
30507
|
+
return ar(() => {
|
|
30508
30508
|
r && s();
|
|
30509
30509
|
}, [s, r]), {
|
|
30510
30510
|
...n,
|
|
@@ -35028,7 +35028,7 @@ function Al({
|
|
|
35028
35028
|
const w = document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;
|
|
35029
35029
|
y(w || document.body);
|
|
35030
35030
|
};
|
|
35031
|
-
|
|
35031
|
+
ar(() => (g(), document.addEventListener("fullscreenchange", g), document.addEventListener("webkitfullscreenchange", g), document.addEventListener("mozfullscreenchange", g), document.addEventListener("MSFullscreenChange", g), () => {
|
|
35032
35032
|
document.removeEventListener("fullscreenchange", g), document.removeEventListener("webkitfullscreenchange", g), document.removeEventListener("mozfullscreenchange", g), document.removeEventListener("MSFullscreenChange", g);
|
|
35033
35033
|
}), []);
|
|
35034
35034
|
const v = () => {
|
|
@@ -35141,7 +35141,7 @@ const GN = ({ marker: e, markerId: t, buttonClassName: r = "" }) => {
|
|
|
35141
35141
|
() => (t({ ...e, isOpen: !1 }), !0),
|
|
35142
35142
|
() => (t({ ...e, isOpen: !1 }), !1)
|
|
35143
35143
|
));
|
|
35144
|
-
return
|
|
35144
|
+
return ar(() => () => {
|
|
35145
35145
|
e.cancel && r && e.cancel();
|
|
35146
35146
|
}, [e, r]), {
|
|
35147
35147
|
...e,
|
|
@@ -36033,7 +36033,7 @@ function Po(e, t, r) {
|
|
|
36033
36033
|
function ig(e) {
|
|
36034
36034
|
return e < 0 ? -1 : 1;
|
|
36035
36035
|
}
|
|
36036
|
-
function
|
|
36036
|
+
function ir(e) {
|
|
36037
36037
|
return Math.abs(e) <= Hi ? e : e - ig(e) * fm;
|
|
36038
36038
|
}
|
|
36039
36039
|
function Hs(e, t, r) {
|
|
@@ -36058,10 +36058,10 @@ function uq(e) {
|
|
|
36058
36058
|
if (Math.abs(Math.abs(r) - Bt) <= rr)
|
|
36059
36059
|
return null;
|
|
36060
36060
|
if (this.sphere)
|
|
36061
|
-
n = this.x0 + this.a * this.k0 *
|
|
36061
|
+
n = this.x0 + this.a * this.k0 * ir(t - this.long0), i = this.y0 + this.a * this.k0 * Math.log(Math.tan(_n + 0.5 * r));
|
|
36062
36062
|
else {
|
|
36063
36063
|
var s = Math.sin(r), c = Hs(this.e, r, s);
|
|
36064
|
-
n = this.x0 + this.a * this.k0 *
|
|
36064
|
+
n = this.x0 + this.a * this.k0 * ir(t - this.long0), i = this.y0 - this.a * this.k0 * Math.log(c);
|
|
36065
36065
|
}
|
|
36066
36066
|
return e.x = n, e.y = i, e;
|
|
36067
36067
|
}
|
|
@@ -36074,7 +36074,7 @@ function hq(e) {
|
|
|
36074
36074
|
if (i = mm(this.e, s), i === -9999)
|
|
36075
36075
|
return null;
|
|
36076
36076
|
}
|
|
36077
|
-
return n =
|
|
36077
|
+
return n = ir(this.long0 + t / (this.a * this.k0)), e.x = n, e.y = i, e;
|
|
36078
36078
|
}
|
|
36079
36079
|
var dq = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "merc"];
|
|
36080
36080
|
const fq = {
|
|
@@ -36713,7 +36713,7 @@ function Fq(e, t, r) {
|
|
|
36713
36713
|
if (isNaN(e.x))
|
|
36714
36714
|
return n;
|
|
36715
36715
|
var i = { x: e.x, y: e.y };
|
|
36716
|
-
i.x -= r.ll[0], i.y -= r.ll[1], i.x =
|
|
36716
|
+
i.x -= r.ll[0], i.y -= r.ll[1], i.x = ir(i.x - Math.PI) + Math.PI;
|
|
36717
36717
|
var s = kI(i, r);
|
|
36718
36718
|
if (t) {
|
|
36719
36719
|
if (isNaN(s.x))
|
|
@@ -36729,7 +36729,7 @@ function Fq(e, t, r) {
|
|
|
36729
36729
|
} while (c-- && Math.abs(d.x) > a && Math.abs(d.y) > a);
|
|
36730
36730
|
if (c < 0)
|
|
36731
36731
|
return console.log("Inverse grid shift iterator failed to converge."), n;
|
|
36732
|
-
n.x =
|
|
36732
|
+
n.x = ir(s.x + r.ll[0]), n.y = s.y + r.ll[1];
|
|
36733
36733
|
} else
|
|
36734
36734
|
isNaN(s.x) || (n.x = e.x + s.x, n.y = e.y + s.y);
|
|
36735
36735
|
return n;
|
|
@@ -37120,7 +37120,7 @@ function lJ() {
|
|
|
37120
37120
|
this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = wC(this.es), this.ml0 = nf(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
|
37121
37121
|
}
|
|
37122
37122
|
function cJ(e) {
|
|
37123
|
-
var t = e.x, r = e.y, n =
|
|
37123
|
+
var t = e.x, r = e.y, n = ir(t - this.long0), i, s, c, a = Math.sin(r), d = Math.cos(r);
|
|
37124
37124
|
if (this.es) {
|
|
37125
37125
|
var y = d * n, g = Math.pow(y, 2), v = this.ep2 * Math.pow(d, 2), w = Math.pow(v, 2), S = Math.abs(d) > rr ? Math.tan(r) : 0, C = Math.pow(S, 2), M = Math.pow(C, 2);
|
|
37126
37126
|
i = 1 - this.es * Math.pow(a, 2), y = y / Math.sqrt(i);
|
|
@@ -37147,12 +37147,12 @@ function uJ(e) {
|
|
|
37147
37147
|
var g = Math.sin(r), v = Math.cos(r), w = Math.abs(v) > rr ? Math.tan(r) : 0, S = this.ep2 * Math.pow(v, 2), C = Math.pow(S, 2), M = Math.pow(w, 2), I = Math.pow(M, 2);
|
|
37148
37148
|
t = 1 - this.es * Math.pow(g, 2);
|
|
37149
37149
|
var E = s * Math.sqrt(t) / this.k0, O = Math.pow(E, 2);
|
|
37150
|
-
t = t * w, n = r - t * O / (1 - this.es) * 0.5 * (1 - O / 12 * (5 + 3 * M - 9 * S * M + S - 4 * C - O / 30 * (61 + 90 * M - 252 * S * M + 45 * I + 46 * S - O / 56 * (1385 + 3633 * M + 4095 * I + 1574 * I * M)))), i =
|
|
37150
|
+
t = t * w, n = r - t * O / (1 - this.es) * 0.5 * (1 - O / 12 * (5 + 3 * M - 9 * S * M + S - 4 * C - O / 30 * (61 + 90 * M - 252 * S * M + 45 * I + 46 * S - O / 56 * (1385 + 3633 * M + 4095 * I + 1574 * I * M)))), i = ir(this.long0 + E * (1 - O / 6 * (1 + 2 * M + S - O / 20 * (5 + 28 * M + 24 * I + 8 * S * M + 6 * S - O / 42 * (61 + 662 * M + 1320 * I + 720 * I * M)))) / v);
|
|
37151
37151
|
} else
|
|
37152
37152
|
n = Bt * ig(c), i = 0;
|
|
37153
37153
|
else {
|
|
37154
37154
|
var a = Math.exp(s / this.k0), d = 0.5 * (a - 1 / a), p = this.lat0 + c / this.k0, y = Math.cos(p);
|
|
37155
|
-
t = Math.sqrt((1 - Math.pow(y, 2)) / (1 + Math.pow(d, 2))), n = Math.asin(t), c < 0 && (n = -n), d === 0 && y === 0 ? i = 0 : i =
|
|
37155
|
+
t = Math.sqrt((1 - Math.pow(y, 2)) / (1 + Math.pow(d, 2))), n = Math.asin(t), c < 0 && (n = -n), d === 0 && y === 0 ? i = 0 : i = ir(Math.atan2(d, y) + this.long0);
|
|
37156
37156
|
}
|
|
37157
37157
|
return e.x = i, e.y = n, e;
|
|
37158
37158
|
}
|
|
@@ -37209,7 +37209,7 @@ function gJ() {
|
|
|
37209
37209
|
this.Zb = -this.Qn * (n + pJ(this.gtu, 2 * n));
|
|
37210
37210
|
}
|
|
37211
37211
|
function yJ(e) {
|
|
37212
|
-
var t =
|
|
37212
|
+
var t = ir(e.x - this.long0), r = e.y;
|
|
37213
37213
|
r = CC(this.cbg, r);
|
|
37214
37214
|
var n = Math.sin(r), i = Math.cos(r), s = Math.sin(t), c = Math.cos(t);
|
|
37215
37215
|
r = Math.atan2(n, c * i), t = Math.atan2(s * i, ka(n, i * c)), t = fJ(Math.tan(t));
|
|
@@ -37226,7 +37226,7 @@ function vJ(e) {
|
|
|
37226
37226
|
var s = u5(this.utg, 2 * r, 2 * t);
|
|
37227
37227
|
r = r + s[0], t = t + s[1], t = Math.atan(c5(t));
|
|
37228
37228
|
var c = Math.sin(r), a = Math.cos(r), d = Math.sin(t), p = Math.cos(t);
|
|
37229
|
-
r = Math.atan2(c * p, ka(d, p * a)), t = Math.atan2(d, p * a), n =
|
|
37229
|
+
r = Math.atan2(c * p, ka(d, p * a)), t = Math.atan2(d, p * a), n = ir(t + this.long0), i = CC(this.cgb, r);
|
|
37230
37230
|
} else
|
|
37231
37231
|
n = 1 / 0, i = 1 / 0;
|
|
37232
37232
|
return e.x = n, e.y = i, e;
|
|
@@ -37240,7 +37240,7 @@ const Ev = {
|
|
|
37240
37240
|
};
|
|
37241
37241
|
function xJ(e, t) {
|
|
37242
37242
|
if (e === void 0) {
|
|
37243
|
-
if (e = Math.floor((
|
|
37243
|
+
if (e = Math.floor((ir(t) + Math.PI) * 30 / Math.PI) + 1, e < 0)
|
|
37244
37244
|
return 0;
|
|
37245
37245
|
if (e > 60)
|
|
37246
37246
|
return 60;
|
|
@@ -37289,7 +37289,7 @@ function PJ() {
|
|
|
37289
37289
|
}
|
|
37290
37290
|
function OJ(e) {
|
|
37291
37291
|
var t, r, n, i;
|
|
37292
|
-
return e.x =
|
|
37292
|
+
return e.x = ir(e.x - this.long0), EC.forward.apply(this, [e]), t = Math.sin(e.y), r = Math.cos(e.y), n = Math.cos(e.x), i = this.k0 * this.R2 / (1 + this.sinc0 * t + this.cosc0 * r * n), e.x = i * r * Math.sin(e.x), e.y = i * (this.cosc0 * t - this.sinc0 * r * n), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
|
|
37293
37293
|
}
|
|
37294
37294
|
function kJ(e) {
|
|
37295
37295
|
var t, r, n, i, s;
|
|
@@ -37298,7 +37298,7 @@ function kJ(e) {
|
|
|
37298
37298
|
t = Math.sin(c), r = Math.cos(c), i = Math.asin(r * this.sinc0 + e.y * t * this.cosc0 / s), n = Math.atan2(e.x * t, s * this.cosc0 * r - e.y * this.sinc0 * t);
|
|
37299
37299
|
} else
|
|
37300
37300
|
i = this.phic0, n = 0;
|
|
37301
|
-
return e.x = n, e.y = i, EC.inverse.apply(this, [e]), e.x =
|
|
37301
|
+
return e.x = n, e.y = i, EC.inverse.apply(this, [e]), e.x = ir(e.x + this.long0), e;
|
|
37302
37302
|
}
|
|
37303
37303
|
var DJ = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
|
37304
37304
|
const RJ = {
|
|
@@ -37314,7 +37314,7 @@ function NJ() {
|
|
|
37314
37314
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= rr && (this.k0 = 0.5 * (1 + ig(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= rr && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= rr && Math.abs(Math.cos(this.lat_ts)) > rr && (this.k0 = 0.5 * this.cons * Po(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / Hs(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = Po(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(this.ssfn_(this.lat0, this.sinlat0, this.e)) - Bt, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
|
|
37315
37315
|
}
|
|
37316
37316
|
function BJ(e) {
|
|
37317
|
-
var t = e.x, r = e.y, n = Math.sin(r), i = Math.cos(r), s, c, a, d, p, y, g =
|
|
37317
|
+
var t = e.x, r = e.y, n = Math.sin(r), i = Math.cos(r), s, c, a, d, p, y, g = ir(t - this.long0);
|
|
37318
37318
|
return Math.abs(Math.abs(t - this.long0) - Math.PI) <= rr && Math.abs(r + this.lat0) <= rr ? (e.x = NaN, e.y = NaN, e) : this.sphere ? (s = 2 * this.k0 / (1 + this.sinlat0 * n + this.coslat0 * i * Math.cos(g)), e.x = this.a * s * i * Math.sin(g) + this.x0, e.y = this.a * s * (this.coslat0 * n - this.sinlat0 * i * Math.cos(g)) + this.y0, e) : (c = 2 * Math.atan(this.ssfn_(r, n, this.e)) - Bt, d = Math.cos(c), a = Math.sin(c), Math.abs(this.coslat0) <= rr ? (p = Hs(this.e, r * this.con, this.con * n), y = 2 * this.a * this.k0 * p / this.cons, e.x = this.x0 + y * Math.sin(t - this.long0), e.y = this.y0 - this.con * y * Math.cos(t - this.long0), e) : (Math.abs(this.sinlat0) < rr ? (s = 2 * this.a * this.k0 / (1 + d * Math.cos(g)), e.y = s * a) : (s = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * a + this.cosX0 * d * Math.cos(g))), e.y = s * (this.cosX0 * a - this.sinX0 * d * Math.cos(g)) + this.y0), e.x = s * d * Math.sin(g) + this.x0, e));
|
|
37319
37319
|
}
|
|
37320
37320
|
function jJ(e) {
|
|
@@ -37322,13 +37322,13 @@ function jJ(e) {
|
|
|
37322
37322
|
var t, r, n, i, s, c = Math.sqrt(e.x * e.x + e.y * e.y);
|
|
37323
37323
|
if (this.sphere) {
|
|
37324
37324
|
var a = 2 * Math.atan(c / (2 * this.a * this.k0));
|
|
37325
|
-
return t = this.long0, r = this.lat0, c <= rr ? (e.x = t, e.y = r, e) : (r = Math.asin(Math.cos(a) * this.sinlat0 + e.y * Math.sin(a) * this.coslat0 / c), Math.abs(this.coslat0) < rr ? this.lat0 > 0 ? t =
|
|
37325
|
+
return t = this.long0, r = this.lat0, c <= rr ? (e.x = t, e.y = r, e) : (r = Math.asin(Math.cos(a) * this.sinlat0 + e.y * Math.sin(a) * this.coslat0 / c), Math.abs(this.coslat0) < rr ? this.lat0 > 0 ? t = ir(this.long0 + Math.atan2(e.x, -1 * e.y)) : t = ir(this.long0 + Math.atan2(e.x, e.y)) : t = ir(this.long0 + Math.atan2(e.x * Math.sin(a), c * this.coslat0 * Math.cos(a) - e.y * this.sinlat0 * Math.sin(a))), e.x = t, e.y = r, e);
|
|
37326
37326
|
} else if (Math.abs(this.coslat0) <= rr) {
|
|
37327
37327
|
if (c <= rr)
|
|
37328
37328
|
return r = this.lat0, t = this.long0, e.x = t, e.y = r, e;
|
|
37329
|
-
e.x *= this.con, e.y *= this.con, n = c * this.cons / (2 * this.a * this.k0), r = this.con * mm(this.e, n), t = this.con *
|
|
37329
|
+
e.x *= this.con, e.y *= this.con, n = c * this.cons / (2 * this.a * this.k0), r = this.con * mm(this.e, n), t = this.con * ir(this.con * this.long0 + Math.atan2(e.x, -1 * e.y));
|
|
37330
37330
|
} else
|
|
37331
|
-
i = 2 * Math.atan(c * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), t = this.long0, c <= rr ? s = this.X0 : (s = Math.asin(Math.cos(i) * this.sinX0 + e.y * Math.sin(i) * this.cosX0 / c), t =
|
|
37331
|
+
i = 2 * Math.atan(c * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), t = this.long0, c <= rr ? s = this.X0 : (s = Math.asin(Math.cos(i) * this.sinX0 + e.y * Math.sin(i) * this.cosX0 / c), t = ir(this.long0 + Math.atan2(e.x * Math.sin(i), c * this.cosX0 * Math.cos(i) - e.y * this.sinX0 * Math.sin(i)))), r = -1 * mm(this.e, Math.tan(0.5 * (Bt + s)));
|
|
37332
37332
|
return e.x = t, e.y = r, e;
|
|
37333
37333
|
}
|
|
37334
37334
|
var FJ = ["stere", "Stereographic_South_Pole", "Polar Stereographic (variant B)", "Polar_Stereographic"];
|
|
@@ -37382,7 +37382,7 @@ function XJ() {
|
|
|
37382
37382
|
else if (w = this.long1, C = this.lat1, S = this.long2, M = this.lat2, Math.abs(C - M) <= qh || (e = Math.abs(C)) <= qh || Math.abs(e - Bt) <= qh || Math.abs(Math.abs(this.lat0) - Bt) <= qh || Math.abs(Math.abs(M) - Bt) <= qh)
|
|
37383
37383
|
throw new Error();
|
|
37384
37384
|
var L = 1 - this.es;
|
|
37385
|
-
t = Math.sqrt(L), Math.abs(this.lat0) > rr ? (a = Math.sin(this.lat0), r = Math.cos(this.lat0), e = 1 - this.es * a * a, this.B = r * r, this.B = Math.sqrt(1 + this.es * this.B * this.B / L), this.A = this.B * this.k0 * t / e, n = this.B * t / (r * Math.sqrt(e)), i = n * n - 1, i <= 0 ? i = 0 : (i = Math.sqrt(i), this.lat0 < 0 && (i = -i)), this.E = i += n, this.E *= Math.pow(Hs(this.e, this.lat0, a), this.B)) : (this.B = 1 / t, this.A = this.k0, this.E = n = i = 1), E || O ? (E ? (g = Math.asin(Math.sin(I) / n), O || (y = I)) : (g = y, I = Math.asin(n * Math.sin(g))), this.lam0 = v - Math.asin(0.5 * (i - 1 / i) * Math.tan(g)) / this.B) : (s = Math.pow(Hs(this.e, C, Math.sin(C)), this.B), c = Math.pow(Hs(this.e, M, Math.sin(M)), this.B), i = this.E / s, d = (c - s) / (c + s), p = this.E * this.E, p = (p - c * s) / (p + c * s), e = w - S, e < -Math.pi ? S -= fm : e > Math.pi && (S += fm), this.lam0 =
|
|
37385
|
+
t = Math.sqrt(L), Math.abs(this.lat0) > rr ? (a = Math.sin(this.lat0), r = Math.cos(this.lat0), e = 1 - this.es * a * a, this.B = r * r, this.B = Math.sqrt(1 + this.es * this.B * this.B / L), this.A = this.B * this.k0 * t / e, n = this.B * t / (r * Math.sqrt(e)), i = n * n - 1, i <= 0 ? i = 0 : (i = Math.sqrt(i), this.lat0 < 0 && (i = -i)), this.E = i += n, this.E *= Math.pow(Hs(this.e, this.lat0, a), this.B)) : (this.B = 1 / t, this.A = this.k0, this.E = n = i = 1), E || O ? (E ? (g = Math.asin(Math.sin(I) / n), O || (y = I)) : (g = y, I = Math.asin(n * Math.sin(g))), this.lam0 = v - Math.asin(0.5 * (i - 1 / i) * Math.tan(g)) / this.B) : (s = Math.pow(Hs(this.e, C, Math.sin(C)), this.B), c = Math.pow(Hs(this.e, M, Math.sin(M)), this.B), i = this.E / s, d = (c - s) / (c + s), p = this.E * this.E, p = (p - c * s) / (p + c * s), e = w - S, e < -Math.pi ? S -= fm : e > Math.pi && (S += fm), this.lam0 = ir(0.5 * (w + S) - Math.atan(p * Math.tan(0.5 * this.B * (w - S)) / d) / this.B), g = Math.atan(2 * Math.sin(this.B * ir(w - this.lam0)) / (i - 1 / i)), y = I = Math.asin(n * Math.sin(g))), this.singam = Math.sin(g), this.cosgam = Math.cos(g), this.sinrot = Math.sin(y), this.cosrot = Math.cos(y), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.A * this.B, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(n * n - 1) / Math.cos(I))), this.lat0 < 0 && (this.u_0 = -this.u_0)), i = 0.5 * g, this.v_pole_n = this.ArB * Math.log(Math.tan(_n - i)), this.v_pole_s = this.ArB * Math.log(Math.tan(_n + i));
|
|
37386
37386
|
}
|
|
37387
37387
|
function ZJ(e) {
|
|
37388
37388
|
var t = {}, r, n, i, s, c, a, d, p;
|
|
@@ -37431,7 +37431,7 @@ function QJ(e) {
|
|
|
37431
37431
|
return null;
|
|
37432
37432
|
s = 0;
|
|
37433
37433
|
}
|
|
37434
|
-
var c = this.ns *
|
|
37434
|
+
var c = this.ns * ir(t - this.long0);
|
|
37435
37435
|
return e.x = this.k0 * (s * Math.sin(c)) + this.x0, e.y = this.k0 * (this.rh - s * Math.cos(c)) + this.y0, e;
|
|
37436
37436
|
}
|
|
37437
37437
|
function eK(e) {
|
|
@@ -37443,7 +37443,7 @@ function eK(e) {
|
|
|
37443
37443
|
return null;
|
|
37444
37444
|
} else
|
|
37445
37445
|
i = -Bt;
|
|
37446
|
-
return s =
|
|
37446
|
+
return s = ir(d / this.ns + this.long0), e.x = s, e.y = i, e;
|
|
37447
37447
|
}
|
|
37448
37448
|
var tK = [
|
|
37449
37449
|
"Lambert Tangential Conformal Conic Projection",
|
|
@@ -37464,7 +37464,7 @@ function nK() {
|
|
|
37464
37464
|
this.a = 6377397155e-3, this.es = 0.006674372230614, this.e = Math.sqrt(this.es), this.lat0 || (this.lat0 = 0.863937979737193), this.long0 || (this.long0 = 0.7417649320975901 - 0.308341501185665), this.k0 || (this.k0 = 0.9999), this.s45 = 0.785398163397448, this.s90 = 2 * this.s45, this.fi0 = this.lat0, this.e2 = this.es, this.e = Math.sqrt(this.e2), this.alfa = Math.sqrt(1 + this.e2 * Math.pow(Math.cos(this.fi0), 4) / (1 - this.e2)), this.uq = 1.04216856380474, this.u0 = Math.asin(Math.sin(this.fi0) / this.alfa), this.g = Math.pow((1 + this.e * Math.sin(this.fi0)) / (1 - this.e * Math.sin(this.fi0)), this.alfa * this.e / 2), this.k = Math.tan(this.u0 / 2 + this.s45) / Math.pow(Math.tan(this.fi0 / 2 + this.s45), this.alfa) * this.g, this.k1 = this.k0, this.n0 = this.a * Math.sqrt(1 - this.e2) / (1 - this.e2 * Math.pow(Math.sin(this.fi0), 2)), this.s0 = 1.37008346281555, this.n = Math.sin(this.s0), this.ro0 = this.k1 * this.n0 / Math.tan(this.s0), this.ad = this.s90 - this.uq;
|
|
37465
37465
|
}
|
|
37466
37466
|
function iK(e) {
|
|
37467
|
-
var t, r, n, i, s, c, a, d = e.x, p = e.y, y =
|
|
37467
|
+
var t, r, n, i, s, c, a, d = e.x, p = e.y, y = ir(d - this.long0);
|
|
37468
37468
|
return t = Math.pow((1 + this.e * Math.sin(p)) / (1 - this.e * Math.sin(p)), this.alfa * this.e / 2), r = 2 * (Math.atan(this.k * Math.pow(Math.tan(p / 2 + this.s45), this.alfa) / t) - this.s45), n = -y * this.alfa, i = Math.asin(Math.cos(this.ad) * Math.sin(r) + Math.sin(this.ad) * Math.cos(r) * Math.cos(n)), s = Math.asin(Math.cos(r) * Math.sin(n) / Math.cos(i)), c = this.n * s, a = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(i / 2 + this.s45), this.n), e.y = a * Math.cos(c) / 1, e.x = a * Math.sin(c) / 1, this.czech || (e.y *= -1, e.x *= -1), e;
|
|
37469
37469
|
}
|
|
37470
37470
|
function aK(e) {
|
|
@@ -37518,7 +37518,7 @@ function lK() {
|
|
|
37518
37518
|
}
|
|
37519
37519
|
function cK(e) {
|
|
37520
37520
|
var t, r, n = e.x, i = e.y;
|
|
37521
|
-
if (n =
|
|
37521
|
+
if (n = ir(n - this.long0), this.sphere)
|
|
37522
37522
|
t = this.a * Math.asin(Math.cos(i) * Math.sin(n)), r = this.a * (Math.atan2(Math.tan(i), Math.cos(n)) - this.lat0);
|
|
37523
37523
|
else {
|
|
37524
37524
|
var s = Math.sin(i), c = Math.cos(i), a = Sd(this.a, this.e, s), d = Math.tan(i) * Math.tan(i), p = n * Math.cos(i), y = p * p, g = this.es * c * c / (1 - this.es), v = this.a * xa(this.e0, this.e1, this.e2, this.e3, i);
|
|
@@ -37539,7 +37539,7 @@ function uK(e) {
|
|
|
37539
37539
|
var d = Sd(this.a, this.e, Math.sin(a)), p = d * d * d / this.a / this.a * (1 - this.es), y = Math.pow(Math.tan(a), 2), g = t * this.a / d, v = g * g;
|
|
37540
37540
|
n = a - d * Math.tan(a) / p * g * g * (0.5 - (1 + 3 * y) * g * g / 24), i = g * (1 - v * (y / 3 + (1 + 3 * y) * y * v / 15)) / Math.cos(a);
|
|
37541
37541
|
}
|
|
37542
|
-
return e.x =
|
|
37542
|
+
return e.x = ir(i + this.long0), e.y = wc(n), e;
|
|
37543
37543
|
}
|
|
37544
37544
|
var hK = ["Cassini", "Cassini_Soldner", "cass"];
|
|
37545
37545
|
const dK = {
|
|
@@ -37576,7 +37576,7 @@ function yK() {
|
|
|
37576
37576
|
}
|
|
37577
37577
|
function vK(e) {
|
|
37578
37578
|
var t, r, n, i, s, c, a, d, p, y, g = e.x, v = e.y;
|
|
37579
|
-
if (g =
|
|
37579
|
+
if (g = ir(g - this.long0), this.sphere) {
|
|
37580
37580
|
if (s = Math.sin(v), y = Math.cos(v), n = Math.cos(g), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
|
|
37581
37581
|
if (r = this.mode === this.EQUIT ? 1 + y * n : 1 + this.sinph0 * s + this.cosph0 * y * n, r <= rr)
|
|
37582
37582
|
return null;
|
|
@@ -37650,7 +37650,7 @@ function bK(e) {
|
|
|
37650
37650
|
}
|
|
37651
37651
|
n = Math.atan2(t, r), i = AK(Math.asin(p), this.apa);
|
|
37652
37652
|
}
|
|
37653
|
-
return e.x =
|
|
37653
|
+
return e.x = ir(this.long0 + n), e.y = i, e;
|
|
37654
37654
|
}
|
|
37655
37655
|
var xK = 0.3333333333333333, _K = 0.17222222222222222, wK = 0.10257936507936508, SK = 0.06388888888888888, CK = 0.0664021164021164, MK = 0.016415012942191543;
|
|
37656
37656
|
function EK(e) {
|
|
@@ -37681,12 +37681,12 @@ function PK() {
|
|
|
37681
37681
|
function OK(e) {
|
|
37682
37682
|
var t = e.x, r = e.y;
|
|
37683
37683
|
this.sin_phi = Math.sin(r), this.cos_phi = Math.cos(r);
|
|
37684
|
-
var n = hc(this.e3, this.sin_phi), i = this.a * Math.sqrt(this.c - this.ns0 * n) / this.ns0, s = this.ns0 *
|
|
37684
|
+
var n = hc(this.e3, this.sin_phi), i = this.a * Math.sqrt(this.c - this.ns0 * n) / this.ns0, s = this.ns0 * ir(t - this.long0), c = i * Math.sin(s) + this.x0, a = this.rh - i * Math.cos(s) + this.y0;
|
|
37685
37685
|
return e.x = c, e.y = a, e;
|
|
37686
37686
|
}
|
|
37687
37687
|
function kK(e) {
|
|
37688
37688
|
var t, r, n, i, s, c;
|
|
37689
|
-
return e.x -= this.x0, e.y = this.rh - e.y + this.y0, this.ns0 >= 0 ? (t = Math.sqrt(e.x * e.x + e.y * e.y), n = 1) : (t = -Math.sqrt(e.x * e.x + e.y * e.y), n = -1), i = 0, t !== 0 && (i = Math.atan2(n * e.x, n * e.y)), n = t * this.ns0 / this.a, this.sphere ? c = Math.asin((this.c - n * n) / (2 * this.ns0)) : (r = (this.c - n * n) / this.ns0, c = this.phi1z(this.e3, r)), s =
|
|
37689
|
+
return e.x -= this.x0, e.y = this.rh - e.y + this.y0, this.ns0 >= 0 ? (t = Math.sqrt(e.x * e.x + e.y * e.y), n = 1) : (t = -Math.sqrt(e.x * e.x + e.y * e.y), n = -1), i = 0, t !== 0 && (i = Math.atan2(n * e.x, n * e.y)), n = t * this.ns0 / this.a, this.sphere ? c = Math.asin((this.c - n * n) / (2 * this.ns0)) : (r = (this.c - n * n) / this.ns0, c = this.phi1z(this.e3, r)), s = ir(i / this.ns0 + this.long0), e.x = s, e.y = c, e;
|
|
37690
37690
|
}
|
|
37691
37691
|
function DK(e, t) {
|
|
37692
37692
|
var r, n, i, s, c, a = vc(0.5 * t);
|
|
@@ -37710,11 +37710,11 @@ function NK() {
|
|
|
37710
37710
|
}
|
|
37711
37711
|
function BK(e) {
|
|
37712
37712
|
var t, r, n, i, s, c, a, d, p = e.x, y = e.y;
|
|
37713
|
-
return n =
|
|
37713
|
+
return n = ir(p - this.long0), t = Math.sin(y), r = Math.cos(y), i = Math.cos(n), c = this.sin_p14 * t + this.cos_p14 * r * i, s = 1, c > 0 || Math.abs(c) <= rr ? (a = this.x0 + this.a * s * r * Math.sin(n) / c, d = this.y0 + this.a * s * (this.cos_p14 * t - this.sin_p14 * r * i) / c) : (a = this.x0 + this.infinity_dist * r * Math.sin(n), d = this.y0 + this.infinity_dist * (this.cos_p14 * t - this.sin_p14 * r * i)), e.x = a, e.y = d, e;
|
|
37714
37714
|
}
|
|
37715
37715
|
function jK(e) {
|
|
37716
37716
|
var t, r, n, i, s, c;
|
|
37717
|
-
return e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, e.x /= this.k0, e.y /= this.k0, (t = Math.sqrt(e.x * e.x + e.y * e.y)) ? (i = Math.atan2(t, this.rc), r = Math.sin(i), n = Math.cos(i), c = vc(n * this.sin_p14 + e.y * r * this.cos_p14 / t), s = Math.atan2(e.x * r, t * this.cos_p14 * n - e.y * this.sin_p14 * r), s =
|
|
37717
|
+
return e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, e.x /= this.k0, e.y /= this.k0, (t = Math.sqrt(e.x * e.x + e.y * e.y)) ? (i = Math.atan2(t, this.rc), r = Math.sin(i), n = Math.cos(i), c = vc(n * this.sin_p14 + e.y * r * this.cos_p14 / t), s = Math.atan2(e.x * r, t * this.cos_p14 * n - e.y * this.sin_p14 * r), s = ir(this.long0 + s)) : (c = this.phic0, s = 0), e.x = s, e.y = c, e;
|
|
37718
37718
|
}
|
|
37719
37719
|
var FK = ["gnom"];
|
|
37720
37720
|
const zK = {
|
|
@@ -37736,7 +37736,7 @@ function GK() {
|
|
|
37736
37736
|
this.sphere || (this.k0 = Po(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
|
|
37737
37737
|
}
|
|
37738
37738
|
function VK(e) {
|
|
37739
|
-
var t = e.x, r = e.y, n, i, s =
|
|
37739
|
+
var t = e.x, r = e.y, n, i, s = ir(t - this.long0);
|
|
37740
37740
|
if (this.sphere)
|
|
37741
37741
|
n = this.x0 + this.a * s * Math.cos(this.lat_ts), i = this.y0 + this.a * Math.sin(r) / Math.cos(this.lat_ts);
|
|
37742
37742
|
else {
|
|
@@ -37748,7 +37748,7 @@ function VK(e) {
|
|
|
37748
37748
|
function WK(e) {
|
|
37749
37749
|
e.x -= this.x0, e.y -= this.y0;
|
|
37750
37750
|
var t, r;
|
|
37751
|
-
return this.sphere ? (t =
|
|
37751
|
+
return this.sphere ? (t = ir(this.long0 + e.x / this.a / Math.cos(this.lat_ts)), r = Math.asin(e.y / this.a * Math.cos(this.lat_ts))) : (r = $K(this.e, 2 * e.y * this.k0 / this.a), t = ir(this.long0 + e.x / (this.a * this.k0))), e.x = t, e.y = r, e;
|
|
37752
37752
|
}
|
|
37753
37753
|
var HK = ["cea"];
|
|
37754
37754
|
const UK = {
|
|
@@ -37761,12 +37761,12 @@ function XK() {
|
|
|
37761
37761
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Equidistant Cylindrical (Plate Carre)", this.rc = Math.cos(this.lat_ts);
|
|
37762
37762
|
}
|
|
37763
37763
|
function ZK(e) {
|
|
37764
|
-
var t = e.x, r = e.y, n =
|
|
37764
|
+
var t = e.x, r = e.y, n = ir(t - this.long0), i = wc(r - this.lat0);
|
|
37765
37765
|
return e.x = this.x0 + this.a * n * this.rc, e.y = this.y0 + this.a * i, e;
|
|
37766
37766
|
}
|
|
37767
37767
|
function YK(e) {
|
|
37768
37768
|
var t = e.x, r = e.y;
|
|
37769
|
-
return e.x =
|
|
37769
|
+
return e.x = ir(this.long0 + (t - this.x0) / (this.a * this.rc)), e.y = wc(this.lat0 + (r - this.y0) / this.a), e;
|
|
37770
37770
|
}
|
|
37771
37771
|
var qK = ["Equirectangular", "Equidistant_Cylindrical", "eqc"];
|
|
37772
37772
|
const JK = {
|
|
@@ -37780,7 +37780,7 @@ function KK() {
|
|
|
37780
37780
|
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = ag(this.es), this.e1 = sg(this.es), this.e2 = og(this.es), this.e3 = lg(this.es), this.ml0 = this.a * xa(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
|
37781
37781
|
}
|
|
37782
37782
|
function QK(e) {
|
|
37783
|
-
var t = e.x, r = e.y, n, i, s, c =
|
|
37783
|
+
var t = e.x, r = e.y, n, i, s, c = ir(t - this.long0);
|
|
37784
37784
|
if (s = c * Math.sin(r), this.sphere)
|
|
37785
37785
|
Math.abs(r) <= rr ? (n = this.a * c, i = -1 * this.a * this.lat0) : (n = this.a * Math.sin(s) / Math.tan(r), i = this.a * (wc(r - this.lat0) + (1 - Math.cos(s)) / Math.tan(r)));
|
|
37786
37786
|
else if (Math.abs(r) <= rr)
|
|
@@ -37795,7 +37795,7 @@ function eQ(e) {
|
|
|
37795
37795
|
var t, r, n, i, s, c, a, d, p;
|
|
37796
37796
|
if (n = e.x - this.x0, i = e.y - this.y0, this.sphere)
|
|
37797
37797
|
if (Math.abs(i + this.a * this.lat0) <= rr)
|
|
37798
|
-
t =
|
|
37798
|
+
t = ir(n / this.a + this.long0), r = 0;
|
|
37799
37799
|
else {
|
|
37800
37800
|
c = this.lat0 + i / this.a, a = n * n / this.a / this.a + c * c, d = c;
|
|
37801
37801
|
var y;
|
|
@@ -37804,10 +37804,10 @@ function eQ(e) {
|
|
|
37804
37804
|
r = d;
|
|
37805
37805
|
break;
|
|
37806
37806
|
}
|
|
37807
|
-
t =
|
|
37807
|
+
t = ir(this.long0 + Math.asin(n * Math.tan(d) / this.a) / Math.sin(r));
|
|
37808
37808
|
}
|
|
37809
37809
|
else if (Math.abs(i + this.ml0) <= rr)
|
|
37810
|
-
r = 0, t =
|
|
37810
|
+
r = 0, t = ir(this.long0 + n / this.a);
|
|
37811
37811
|
else {
|
|
37812
37812
|
c = (this.ml0 + i) / this.a, a = n * n / this.a / this.a + c * c, d = c;
|
|
37813
37813
|
var g, v, w, S, C;
|
|
@@ -37816,7 +37816,7 @@ function eQ(e) {
|
|
|
37816
37816
|
r = d;
|
|
37817
37817
|
break;
|
|
37818
37818
|
}
|
|
37819
|
-
g = Math.sqrt(1 - this.es * Math.pow(Math.sin(r), 2)) * Math.tan(r), t =
|
|
37819
|
+
g = Math.sqrt(1 - this.es * Math.pow(Math.sin(r), 2)) * Math.tan(r), t = ir(this.long0 + Math.asin(n * g / this.a) / Math.sin(r));
|
|
37820
37820
|
}
|
|
37821
37821
|
return e.x = t, e.y = r, e;
|
|
37822
37822
|
}
|
|
@@ -37870,12 +37870,12 @@ const oQ = {
|
|
|
37870
37870
|
function lQ() {
|
|
37871
37871
|
}
|
|
37872
37872
|
function cQ(e) {
|
|
37873
|
-
var t = e.x, r = e.y, n =
|
|
37873
|
+
var t = e.x, r = e.y, n = ir(t - this.long0), i = this.x0 + this.a * n, s = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + r / 2.5)) * 1.25;
|
|
37874
37874
|
return e.x = i, e.y = s, e;
|
|
37875
37875
|
}
|
|
37876
37876
|
function uQ(e) {
|
|
37877
37877
|
e.x -= this.x0, e.y -= this.y0;
|
|
37878
|
-
var t =
|
|
37878
|
+
var t = ir(this.long0 + e.x / this.a), r = 2.5 * (Math.atan(Math.exp(0.8 * e.y / this.a)) - Math.PI / 4);
|
|
37879
37879
|
return e.x = t, e.y = r, e;
|
|
37880
37880
|
}
|
|
37881
37881
|
var hQ = ["Miller_Cylindrical", "mill"];
|
|
@@ -37891,7 +37891,7 @@ function pQ() {
|
|
|
37891
37891
|
}
|
|
37892
37892
|
function mQ(e) {
|
|
37893
37893
|
var t, r, n = e.x, i = e.y;
|
|
37894
|
-
if (n =
|
|
37894
|
+
if (n = ir(n - this.long0), this.sphere) {
|
|
37895
37895
|
if (!this.m)
|
|
37896
37896
|
i = this.n !== 1 ? Math.asin(this.n * Math.sin(i)) : i;
|
|
37897
37897
|
else
|
|
@@ -37909,7 +37909,7 @@ function mQ(e) {
|
|
|
37909
37909
|
}
|
|
37910
37910
|
function gQ(e) {
|
|
37911
37911
|
var t, r, n, i;
|
|
37912
|
-
return e.x -= this.x0, n = e.x / this.a, e.y -= this.y0, t = e.y / this.a, this.sphere ? (t /= this.C_y, n = n / (this.C_x * (this.m + Math.cos(t))), this.m ? t = vc((this.m * t + Math.sin(t)) / this.n) : this.n !== 1 && (t = vc(Math.sin(t) / this.n)), n =
|
|
37912
|
+
return e.x -= this.x0, n = e.x / this.a, e.y -= this.y0, t = e.y / this.a, this.sphere ? (t /= this.C_y, n = n / (this.C_x * (this.m + Math.cos(t))), this.m ? t = vc((this.m * t + Math.sin(t)) / this.n) : this.n !== 1 && (t = vc(Math.sin(t) / this.n)), n = ir(n + this.long0), t = wc(t)) : (t = SC(e.y / this.a, this.es, this.en), i = Math.abs(t), i < Bt ? (i = Math.sin(t), r = this.long0 + e.x * Math.sqrt(1 - this.es * i * i) / (this.a * Math.cos(t)), n = ir(r)) : i - rr < Bt && (n = this.long0)), e.x = n, e.y = t, e;
|
|
37913
37913
|
}
|
|
37914
37914
|
var yQ = ["Sinusoidal", "sinu"];
|
|
37915
37915
|
const vQ = {
|
|
@@ -37921,7 +37921,7 @@ const vQ = {
|
|
|
37921
37921
|
function bQ() {
|
|
37922
37922
|
}
|
|
37923
37923
|
function xQ(e) {
|
|
37924
|
-
for (var t = e.x, r = e.y, n =
|
|
37924
|
+
for (var t = e.x, r = e.y, n = ir(t - this.long0), i = r, s = Math.PI * Math.sin(r); ; ) {
|
|
37925
37925
|
var c = -(i + Math.sin(i) - s) / (1 + Math.cos(i));
|
|
37926
37926
|
if (i += c, Math.abs(c) < rr)
|
|
37927
37927
|
break;
|
|
@@ -37933,7 +37933,7 @@ function xQ(e) {
|
|
|
37933
37933
|
function _Q(e) {
|
|
37934
37934
|
var t, r;
|
|
37935
37935
|
e.x -= this.x0, e.y -= this.y0, r = e.y / (1.4142135623731 * this.a), Math.abs(r) > 0.999999999999 && (r = 0.999999999999), t = Math.asin(r);
|
|
37936
|
-
var n =
|
|
37936
|
+
var n = ir(this.long0 + e.x / (0.900316316158 * this.a * Math.cos(t)));
|
|
37937
37937
|
n < -Math.PI && (n = -Math.PI), n > Math.PI && (n = Math.PI), r = (2 * t + Math.sin(2 * t)) / Math.PI, Math.abs(r) > 1 && (r = 1);
|
|
37938
37938
|
var i = Math.asin(r);
|
|
37939
37939
|
return e.x = n, e.y = i, e;
|
|
@@ -37956,7 +37956,7 @@ function MQ(e) {
|
|
|
37956
37956
|
var i = xa(this.e0, this.e1, this.e2, this.e3, r);
|
|
37957
37957
|
n = this.a * (this.g - i);
|
|
37958
37958
|
}
|
|
37959
|
-
var s = this.ns *
|
|
37959
|
+
var s = this.ns * ir(t - this.long0), c = this.x0 + n * Math.sin(s), a = this.y0 + this.rh - n * Math.cos(s);
|
|
37960
37960
|
return e.x = c, e.y = a, e;
|
|
37961
37961
|
}
|
|
37962
37962
|
function EQ(e) {
|
|
@@ -37965,9 +37965,9 @@ function EQ(e) {
|
|
|
37965
37965
|
this.ns >= 0 ? (r = Math.sqrt(e.x * e.x + e.y * e.y), t = 1) : (r = -Math.sqrt(e.x * e.x + e.y * e.y), t = -1);
|
|
37966
37966
|
var s = 0;
|
|
37967
37967
|
if (r !== 0 && (s = Math.atan2(t * e.x, t * e.y)), this.sphere)
|
|
37968
|
-
return i =
|
|
37968
|
+
return i = ir(this.long0 + s / this.ns), n = wc(this.g - r / this.a), e.x = i, e.y = n, e;
|
|
37969
37969
|
var c = this.g - r / this.a;
|
|
37970
|
-
return n = Uv(c, this.e0, this.e1, this.e2, this.e3), i =
|
|
37970
|
+
return n = Uv(c, this.e0, this.e1, this.e2, this.e3), i = ir(this.long0 + s / this.ns), e.x = i, e.y = n, e;
|
|
37971
37971
|
}
|
|
37972
37972
|
var AQ = ["Equidistant_Conic", "eqdc"];
|
|
37973
37973
|
const TQ = {
|
|
@@ -37980,7 +37980,7 @@ function IQ() {
|
|
|
37980
37980
|
this.R = this.a;
|
|
37981
37981
|
}
|
|
37982
37982
|
function PQ(e) {
|
|
37983
|
-
var t = e.x, r = e.y, n =
|
|
37983
|
+
var t = e.x, r = e.y, n = ir(t - this.long0), i, s;
|
|
37984
37984
|
Math.abs(r) <= rr && (i = this.x0 + this.R * n, s = this.y0);
|
|
37985
37985
|
var c = vc(2 * Math.abs(r / Math.PI));
|
|
37986
37986
|
(Math.abs(n) <= rr || Math.abs(Math.abs(r) - Bt) <= rr) && (i = this.x0, r >= 0 ? s = this.y0 + Math.PI * this.R * Math.tan(0.5 * c) : s = this.y0 + Math.PI * this.R * -Math.tan(0.5 * c));
|
|
@@ -37991,7 +37991,7 @@ function PQ(e) {
|
|
|
37991
37991
|
}
|
|
37992
37992
|
function OQ(e) {
|
|
37993
37993
|
var t, r, n, i, s, c, a, d, p, y, g, v, w;
|
|
37994
|
-
return e.x -= this.x0, e.y -= this.y0, g = Math.PI * this.R, n = e.x / g, i = e.y / g, s = n * n + i * i, c = -Math.abs(i) * (1 + s), a = c - 2 * i * i + n * n, d = -2 * c + 1 + 2 * i * i + s * s, w = i * i / d + (2 * a * a * a / d / d / d - 9 * c * a / d / d) / 27, p = (c - a * a / 3 / d) / d, y = 2 * Math.sqrt(-p / 3), g = 3 * w / p / y, Math.abs(g) > 1 && (g >= 0 ? g = 1 : g = -1), v = Math.acos(g) / 3, e.y >= 0 ? r = (-y * Math.cos(v + Math.PI / 3) - a / 3 / d) * Math.PI : r = -(-y * Math.cos(v + Math.PI / 3) - a / 3 / d) * Math.PI, Math.abs(n) < rr ? t = this.long0 : t =
|
|
37994
|
+
return e.x -= this.x0, e.y -= this.y0, g = Math.PI * this.R, n = e.x / g, i = e.y / g, s = n * n + i * i, c = -Math.abs(i) * (1 + s), a = c - 2 * i * i + n * n, d = -2 * c + 1 + 2 * i * i + s * s, w = i * i / d + (2 * a * a * a / d / d / d - 9 * c * a / d / d) / 27, p = (c - a * a / 3 / d) / d, y = 2 * Math.sqrt(-p / 3), g = 3 * w / p / y, Math.abs(g) > 1 && (g >= 0 ? g = 1 : g = -1), v = Math.acos(g) / 3, e.y >= 0 ? r = (-y * Math.cos(v + Math.PI / 3) - a / 3 / d) * Math.PI : r = -(-y * Math.cos(v + Math.PI / 3) - a / 3 / d) * Math.PI, Math.abs(n) < rr ? t = this.long0 : t = ir(this.long0 + Math.PI * (s - 1 + Math.sqrt(1 + 2 * (n * n - i * i) + s * s)) / 2 / n), e.x = t, e.y = r, e;
|
|
37995
37995
|
}
|
|
37996
37996
|
var kQ = ["Van_der_Grinten_I", "VanDerGrinten", "vandg"];
|
|
37997
37997
|
const DQ = {
|
|
@@ -38004,13 +38004,13 @@ function RQ() {
|
|
|
38004
38004
|
this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0);
|
|
38005
38005
|
}
|
|
38006
38006
|
function LQ(e) {
|
|
38007
|
-
var t = e.x, r = e.y, n = Math.sin(e.y), i = Math.cos(e.y), s =
|
|
38007
|
+
var t = e.x, r = e.y, n = Math.sin(e.y), i = Math.cos(e.y), s = ir(t - this.long0), c, a, d, p, y, g, v, w, S, C, M, I, E, O, L, D, R, N, Z, ne, te, V, X;
|
|
38008
38008
|
return this.sphere ? Math.abs(this.sin_p12 - 1) <= rr ? (e.x = this.x0 + this.a * (Bt - r) * Math.sin(s), e.y = this.y0 - this.a * (Bt - r) * Math.cos(s), e) : Math.abs(this.sin_p12 + 1) <= rr ? (e.x = this.x0 + this.a * (Bt + r) * Math.sin(s), e.y = this.y0 + this.a * (Bt + r) * Math.cos(s), e) : (N = this.sin_p12 * n + this.cos_p12 * i * Math.cos(s), D = Math.acos(N), R = D ? D / Math.sin(D) : 1, e.x = this.x0 + this.a * R * i * Math.sin(s), e.y = this.y0 + this.a * R * (this.cos_p12 * n - this.sin_p12 * i * Math.cos(s)), e) : (c = ag(this.es), a = sg(this.es), d = og(this.es), p = lg(this.es), Math.abs(this.sin_p12 - 1) <= rr ? (y = this.a * xa(c, a, d, p, Bt), g = this.a * xa(c, a, d, p, r), e.x = this.x0 + (y - g) * Math.sin(s), e.y = this.y0 - (y - g) * Math.cos(s), e) : Math.abs(this.sin_p12 + 1) <= rr ? (y = this.a * xa(c, a, d, p, Bt), g = this.a * xa(c, a, d, p, r), e.x = this.x0 + (y + g) * Math.sin(s), e.y = this.y0 + (y + g) * Math.cos(s), e) : (v = n / i, w = Sd(this.a, this.e, this.sin_p12), S = Sd(this.a, this.e, n), C = Math.atan((1 - this.es) * v + this.es * w * this.sin_p12 / (S * i)), M = Math.atan2(Math.sin(s), this.cos_p12 * Math.tan(C) - this.sin_p12 * Math.cos(s)), M === 0 ? Z = Math.asin(this.cos_p12 * Math.sin(C) - this.sin_p12 * Math.cos(C)) : Math.abs(Math.abs(M) - Math.PI) <= rr ? Z = -Math.asin(this.cos_p12 * Math.sin(C) - this.sin_p12 * Math.cos(C)) : Z = Math.asin(Math.sin(s) * Math.cos(C) / Math.sin(M)), I = this.e * this.sin_p12 / Math.sqrt(1 - this.es), E = this.e * this.cos_p12 * Math.cos(M) / Math.sqrt(1 - this.es), O = I * E, L = E * E, ne = Z * Z, te = ne * Z, V = te * Z, X = V * Z, D = w * Z * (1 - ne * L * (1 - L) / 6 + te / 8 * O * (1 - 2 * L) + V / 120 * (L * (4 - 7 * L) - 3 * I * I * (1 - 7 * L)) - X / 48 * O), e.x = this.x0 + D * Math.sin(M), e.y = this.y0 + D * Math.cos(M), e));
|
|
38009
38009
|
}
|
|
38010
38010
|
function NQ(e) {
|
|
38011
38011
|
e.x -= this.x0, e.y -= this.y0;
|
|
38012
38012
|
var t, r, n, i, s, c, a, d, p, y, g, v, w, S, C, M, I, E, O, L, D, R, N, Z;
|
|
38013
|
-
return this.sphere ? (t = Math.sqrt(e.x * e.x + e.y * e.y), t > 2 * Bt * this.a ? void 0 : (r = t / this.a, n = Math.sin(r), i = Math.cos(r), s = this.long0, Math.abs(t) <= rr ? c = this.lat0 : (c = vc(i * this.sin_p12 + e.y * n * this.cos_p12 / t), a = Math.abs(this.lat0) - Bt, Math.abs(a) <= rr ? this.lat0 >= 0 ? s =
|
|
38013
|
+
return this.sphere ? (t = Math.sqrt(e.x * e.x + e.y * e.y), t > 2 * Bt * this.a ? void 0 : (r = t / this.a, n = Math.sin(r), i = Math.cos(r), s = this.long0, Math.abs(t) <= rr ? c = this.lat0 : (c = vc(i * this.sin_p12 + e.y * n * this.cos_p12 / t), a = Math.abs(this.lat0) - Bt, Math.abs(a) <= rr ? this.lat0 >= 0 ? s = ir(this.long0 + Math.atan2(e.x, -e.y)) : s = ir(this.long0 - Math.atan2(-e.x, e.y)) : s = ir(this.long0 + Math.atan2(e.x * n, t * this.cos_p12 * i - e.y * this.sin_p12 * n))), e.x = s, e.y = c, e)) : (d = ag(this.es), p = sg(this.es), y = og(this.es), g = lg(this.es), Math.abs(this.sin_p12 - 1) <= rr ? (v = this.a * xa(d, p, y, g, Bt), t = Math.sqrt(e.x * e.x + e.y * e.y), w = v - t, c = Uv(w / this.a, d, p, y, g), s = ir(this.long0 + Math.atan2(e.x, -1 * e.y)), e.x = s, e.y = c, e) : Math.abs(this.sin_p12 + 1) <= rr ? (v = this.a * xa(d, p, y, g, Bt), t = Math.sqrt(e.x * e.x + e.y * e.y), w = t - v, c = Uv(w / this.a, d, p, y, g), s = ir(this.long0 + Math.atan2(e.x, e.y)), e.x = s, e.y = c, e) : (t = Math.sqrt(e.x * e.x + e.y * e.y), M = Math.atan2(e.x, e.y), S = Sd(this.a, this.e, this.sin_p12), I = Math.cos(M), E = this.e * this.cos_p12 * I, O = -E * E / (1 - this.es), L = 3 * this.es * (1 - O) * this.sin_p12 * this.cos_p12 * I / (1 - this.es), D = t / S, R = D - O * (1 + O) * Math.pow(D, 3) / 6 - L * (1 + 3 * O) * Math.pow(D, 4) / 24, N = 1 - O * R * R / 2 - D * R * R * R / 6, C = Math.asin(this.sin_p12 * Math.cos(R) + this.cos_p12 * Math.sin(R) * I), s = ir(this.long0 + Math.asin(Math.sin(M) * Math.sin(R) / Math.cos(C))), Z = Math.sin(C), c = Math.atan2((Z - this.es * N * this.sin_p12) * Math.tan(C), Z * (1 - this.es)), e.x = s, e.y = c, e));
|
|
38014
38014
|
}
|
|
38015
38015
|
var BQ = ["Azimuthal_Equidistant", "aeqd"];
|
|
38016
38016
|
const jQ = {
|
|
@@ -38024,11 +38024,11 @@ function FQ() {
|
|
|
38024
38024
|
}
|
|
38025
38025
|
function zQ(e) {
|
|
38026
38026
|
var t, r, n, i, s, c, a, d, p = e.x, y = e.y;
|
|
38027
|
-
return n =
|
|
38027
|
+
return n = ir(p - this.long0), t = Math.sin(y), r = Math.cos(y), i = Math.cos(n), c = this.sin_p14 * t + this.cos_p14 * r * i, s = 1, (c > 0 || Math.abs(c) <= rr) && (a = this.a * s * r * Math.sin(n), d = this.y0 + this.a * s * (this.cos_p14 * t - this.sin_p14 * r * i)), e.x = a, e.y = d, e;
|
|
38028
38028
|
}
|
|
38029
38029
|
function $Q(e) {
|
|
38030
38030
|
var t, r, n, i, s, c, a;
|
|
38031
|
-
return e.x -= this.x0, e.y -= this.y0, t = Math.sqrt(e.x * e.x + e.y * e.y), r = vc(t / this.a), n = Math.sin(r), i = Math.cos(r), c = this.long0, Math.abs(t) <= rr ? (a = this.lat0, e.x = c, e.y = a, e) : (a = vc(i * this.sin_p14 + e.y * n * this.cos_p14 / t), s = Math.abs(this.lat0) - Bt, Math.abs(s) <= rr ? (this.lat0 >= 0 ? c =
|
|
38031
|
+
return e.x -= this.x0, e.y -= this.y0, t = Math.sqrt(e.x * e.x + e.y * e.y), r = vc(t / this.a), n = Math.sin(r), i = Math.cos(r), c = this.long0, Math.abs(t) <= rr ? (a = this.lat0, e.x = c, e.y = a, e) : (a = vc(i * this.sin_p14 + e.y * n * this.cos_p14 / t), s = Math.abs(this.lat0) - Bt, Math.abs(s) <= rr ? (this.lat0 >= 0 ? c = ir(this.long0 + Math.atan2(e.x, -e.y)) : c = ir(this.long0 - Math.atan2(-e.x, e.y)), e.x = c, e.y = a, e) : (c = ir(this.long0 + Math.atan2(e.x * n, t * this.cos_p14 * i - e.y * this.sin_p14 * n)), e.x = c, e.y = a, e));
|
|
38032
38032
|
}
|
|
38033
38033
|
var GQ = ["ortho"];
|
|
38034
38034
|
const VQ = {
|
|
@@ -38153,7 +38153,7 @@ function KQ() {
|
|
|
38153
38153
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
|
|
38154
38154
|
}
|
|
38155
38155
|
function QQ(e) {
|
|
38156
|
-
var t =
|
|
38156
|
+
var t = ir(e.x - this.long0), r = Math.abs(e.y), n = Math.floor(r * f5);
|
|
38157
38157
|
n < 0 ? n = 0 : n >= td && (n = td - 1), r = vo * (r - YQ * n);
|
|
38158
38158
|
var i = {
|
|
38159
38159
|
x: Xv(Lw[n], r) * t,
|
|
@@ -38182,7 +38182,7 @@ function eee(e) {
|
|
|
38182
38182
|
return (Xv(n, s) - t.y) / qQ(n, s);
|
|
38183
38183
|
}, i, rr, 100), t.x /= Xv(Lw[r], i), t.y = (5 * r + i) * Vi, e.y < 0 && (t.y = -t.y);
|
|
38184
38184
|
}
|
|
38185
|
-
return t.x =
|
|
38185
|
+
return t.x = ir(t.x + this.long0), t;
|
|
38186
38186
|
}
|
|
38187
38187
|
var tee = ["Robinson", "robin"];
|
|
38188
38188
|
const ree = {
|
|
@@ -38358,7 +38358,7 @@ function vee() {
|
|
|
38358
38358
|
this.es = 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0;
|
|
38359
38359
|
}
|
|
38360
38360
|
function bee(e) {
|
|
38361
|
-
var t =
|
|
38361
|
+
var t = ir(e.x - this.long0), r = e.y, n = Math.asin(Zv * Math.sin(r)), i = n * n, s = i * i * i;
|
|
38362
38362
|
return e.x = t * Math.cos(n) / (Zv * (qp + 3 * Jp * i + s * (7 * Kp + 9 * Qp * i))), e.y = n * (qp + Jp * i + s * (Kp + Qp * i)), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
|
|
38363
38363
|
}
|
|
38364
38364
|
function xee(e) {
|
|
@@ -38366,7 +38366,7 @@ function xee(e) {
|
|
|
38366
38366
|
var t = 1e-9, r = 12, n = e.y, i, s, c, a, d, p;
|
|
38367
38367
|
for (p = 0; p < r && (i = n * n, s = i * i * i, c = n * (qp + Jp * i + s * (Kp + Qp * i)) - e.y, a = qp + 3 * Jp * i + s * (7 * Kp + 9 * Qp * i), n -= d = c / a, !(Math.abs(d) < t)); ++p)
|
|
38368
38368
|
;
|
|
38369
|
-
return i = n * n, s = i * i * i, e.x = Zv * e.x * (qp + 3 * Jp * i + s * (7 * Kp + 9 * Qp * i)) / Math.cos(n), e.y = Math.asin(Math.sin(n) / Zv), e.x =
|
|
38369
|
+
return i = n * n, s = i * i * i, e.x = Zv * e.x * (qp + 3 * Jp * i + s * (7 * Kp + 9 * Qp * i)) / Math.cos(n), e.y = Math.asin(Math.sin(n) / Zv), e.x = ir(e.x + this.long0), e;
|
|
38370
38370
|
}
|
|
38371
38371
|
var _ee = ["eqearth", "Equal Earth", "Equal_Earth"];
|
|
38372
38372
|
const wee = {
|
|
@@ -38388,7 +38388,7 @@ function See() {
|
|
|
38388
38388
|
), this.am1 = e / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = Mee, this.forward = Cee) : (Math.abs(this.phi1) + gm >= Bt ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = Aee, this.forward = Eee);
|
|
38389
38389
|
}
|
|
38390
38390
|
function Cee(e) {
|
|
38391
|
-
var t =
|
|
38391
|
+
var t = ir(e.x - (this.long0 || 0)), r = e.y, n, i, s;
|
|
38392
38392
|
return n = this.am1 + this.m1 - nf(r, i = Math.sin(r), s = Math.cos(r), this.en), i = s * t / (n * Math.sqrt(1 - this.es * i * i)), e.x = n * Math.sin(i), e.y = this.am1 - n * Math.cos(i), e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
|
|
38393
38393
|
}
|
|
38394
38394
|
function Mee(e) {
|
|
@@ -38400,10 +38400,10 @@ function Mee(e) {
|
|
|
38400
38400
|
n = 0;
|
|
38401
38401
|
else
|
|
38402
38402
|
throw new Error();
|
|
38403
|
-
return e.x =
|
|
38403
|
+
return e.x = ir(n + (this.long0 || 0)), e.y = wc(i), e;
|
|
38404
38404
|
}
|
|
38405
38405
|
function Eee(e) {
|
|
38406
|
-
var t =
|
|
38406
|
+
var t = ir(e.x - (this.long0 || 0)), r = e.y, n, i;
|
|
38407
38407
|
return i = this.cphi1 + this.phi1 - r, Math.abs(i) > gm ? (e.x = i * Math.sin(n = t * Math.cos(r) / i), e.y = this.cphi1 - i * Math.cos(n)) : e.x = e.y = 0, e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
|
|
38408
38408
|
}
|
|
38409
38409
|
function Aee(e) {
|
|
@@ -38411,7 +38411,7 @@ function Aee(e) {
|
|
|
38411
38411
|
var t, r, n = ka(e.x, e.y = this.cphi1 - e.y);
|
|
38412
38412
|
if (r = this.cphi1 + this.phi1 - n, Math.abs(r) > Bt)
|
|
38413
38413
|
throw new Error();
|
|
38414
|
-
return Math.abs(Math.abs(r) - Bt) <= gm ? t = 0 : t = n * Math.atan2(e.x, e.y) / Math.cos(r), e.x =
|
|
38414
|
+
return Math.abs(Math.abs(r) - Bt) <= gm ? t = 0 : t = n * Math.atan2(e.x, e.y) / Math.cos(r), e.x = ir(t + (this.long0 || 0)), e.y = wc(r), e;
|
|
38415
38415
|
}
|
|
38416
38416
|
var Tee = ["bonne", "Bonne (Werner lat_1=90)"];
|
|
38417
38417
|
const Iee = {
|
|
@@ -38726,9 +38726,9 @@ const HI = {}, UI = (e) => {
|
|
|
38726
38726
|
})), TY(S).then(() => {
|
|
38727
38727
|
v();
|
|
38728
38728
|
}));
|
|
38729
|
-
return
|
|
38729
|
+
return ar(() => {
|
|
38730
38730
|
console.log("plots are ", e), t(p(r));
|
|
38731
|
-
}, [c]),
|
|
38731
|
+
}, [c]), ar(() => {
|
|
38732
38732
|
v(c);
|
|
38733
38733
|
}, [c, v]), console.log("usePlots", e), {
|
|
38734
38734
|
plots: e,
|
|
@@ -38970,7 +38970,7 @@ function g5({
|
|
|
38970
38970
|
a(!1);
|
|
38971
38971
|
}
|
|
38972
38972
|
};
|
|
38973
|
-
|
|
38973
|
+
ar(() => {
|
|
38974
38974
|
w(!0), cb().then((X) => {
|
|
38975
38975
|
g(X);
|
|
38976
38976
|
}).finally(() => {
|
|
@@ -39148,9 +39148,9 @@ function lte() {
|
|
|
39148
39148
|
const e = ni(), [t, r] = Dt("");
|
|
39149
39149
|
br(ua);
|
|
39150
39150
|
const [n, i] = Dt(!1), [s, c] = Dt(!1), { plots: a, loading: d, handleDeletePlot: p, handleFlyToPlot: y, handleEditPlot: g } = br(Il), { isConfirmed: v } = ng(), [w, S] = Dt(t), [C, M] = Dt([]), [I, E] = Dt([]);
|
|
39151
|
-
|
|
39151
|
+
ar(() => {
|
|
39152
39152
|
E(a.map((R) => Mu(R))), M(a.map((R) => Mu(R)));
|
|
39153
|
-
}, [a]),
|
|
39153
|
+
}, [a]), ar(() => {
|
|
39154
39154
|
c(!0);
|
|
39155
39155
|
const R = setTimeout(() => {
|
|
39156
39156
|
S(t), c(!1);
|
|
@@ -39293,7 +39293,7 @@ function cte() {
|
|
|
39293
39293
|
},
|
|
39294
39294
|
[i, s]
|
|
39295
39295
|
), [w, S] = Dt(!1), [C, M] = Dt([]);
|
|
39296
|
-
return
|
|
39296
|
+
return ar(() => {
|
|
39297
39297
|
S(!0), cb().then((I) => {
|
|
39298
39298
|
console.log("farm", I), M(I);
|
|
39299
39299
|
}).finally(() => {
|
|
@@ -41986,7 +41986,7 @@ function vb(e, t) {
|
|
|
41986
41986
|
}
|
|
41987
41987
|
function mie(e, t) {
|
|
41988
41988
|
const [r, n] = hie(e, t), { startOfMonth: i, endOfMonth: s } = t, c = nP(e, t), [a, d] = vb(c, e.month ? i(e.month) : void 0);
|
|
41989
|
-
|
|
41989
|
+
ar(() => {
|
|
41990
41990
|
const R = nP(e, t);
|
|
41991
41991
|
d(R);
|
|
41992
41992
|
}, [e.timeZone]);
|
|
@@ -42439,7 +42439,7 @@ localStorage.getItem("VITE_SENTINAL_HUB_CLIENT_SECRET");
|
|
|
42439
42439
|
const bb = bi(null);
|
|
42440
42440
|
function Oie({ children: e }) {
|
|
42441
42441
|
const [t, r] = Dt(void 0), [n, i] = Dt(null);
|
|
42442
|
-
return
|
|
42442
|
+
return ar(() => {
|
|
42443
42443
|
async function s() {
|
|
42444
42444
|
try {
|
|
42445
42445
|
const c = await Pte(Iie, Pie);
|
|
@@ -42561,9 +42561,9 @@ function Fw({
|
|
|
42561
42561
|
() => cg(D, 1e3),
|
|
42562
42562
|
[D]
|
|
42563
42563
|
);
|
|
42564
|
-
return
|
|
42564
|
+
return ar(() => (p && (p == null || p.on("moveend", R), p == null || p.on("zoomend", R)), () => {
|
|
42565
42565
|
p && (p == null || p.off("moveend", R), p == null || p.off("zoomend", R)), R.cancel();
|
|
42566
|
-
}), [p, R]),
|
|
42566
|
+
}), [p, R]), ar(() => {
|
|
42567
42567
|
D({ layerChanged: !0 });
|
|
42568
42568
|
}, [c, y]), r || (r = mapRefContext), /* @__PURE__ */ U.jsxs("div", { className: `available-dates-calender ${t && "m-1"}`, children: [
|
|
42569
42569
|
!t && /* @__PURE__ */ U.jsxs("h4", { className: "text-base flex gap-3 font-medium tracking-tight ", children: [
|
|
@@ -43459,7 +43459,7 @@ function Zie() {
|
|
|
43459
43459
|
const { mapRef: e } = br(ua), { markersData: t, showMarkers: r } = br(Ao), n = Vt((v) => v.setClickedMarker), [i, s] = Dt([]), [c, a] = Dt([]), d = 5, p = t.map((v) => Mu(v)), y = (v) => v >= 1e6 ? (v / 1e6).toFixed(1) + "M" : v >= 1e3 ? (v / 1e3).toFixed(1) + "K" : v, g = (v, w) => {
|
|
43460
43460
|
v.originalEvent.stopPropagation(), console.log("marker clicked", w), n(w);
|
|
43461
43461
|
};
|
|
43462
|
-
return
|
|
43462
|
+
return ar(() => {
|
|
43463
43463
|
if (!(e != null && e.current) || !r) return;
|
|
43464
43464
|
const v = () => {
|
|
43465
43465
|
var E;
|
|
@@ -48784,7 +48784,7 @@ const Kie = ({ marker: e }) => {
|
|
|
48784
48784
|
}
|
|
48785
48785
|
]
|
|
48786
48786
|
};
|
|
48787
|
-
return
|
|
48787
|
+
return ar(() => {
|
|
48788
48788
|
(async () => {
|
|
48789
48789
|
i(!0);
|
|
48790
48790
|
try {
|
|
@@ -59308,7 +59308,7 @@ var uD = function(t, r, n, i, s) {
|
|
|
59308
59308
|
animationEasing: "ease"
|
|
59309
59309
|
}, IM = function(t) {
|
|
59310
59310
|
var r = cD(cD({}, USe), t), n = On(), i = Dt(-1), s = BSe(i, 2), c = s[0], a = s[1];
|
|
59311
|
-
|
|
59311
|
+
ar(function() {
|
|
59312
59312
|
if (n.current && n.current.getTotalLength)
|
|
59313
59313
|
try {
|
|
59314
59314
|
var L = n.current.getTotalLength();
|
|
@@ -60202,7 +60202,7 @@ var wD = function(t, r, n, i, s) {
|
|
|
60202
60202
|
animationEasing: "ease"
|
|
60203
60203
|
}, vMe = function(t) {
|
|
60204
60204
|
var r = _D(_D({}, yMe), t), n = On(), i = Dt(-1), s = cMe(i, 2), c = s[0], a = s[1];
|
|
60205
|
-
|
|
60205
|
+
ar(function() {
|
|
60206
60206
|
if (n.current && n.current.getTotalLength)
|
|
60207
60207
|
try {
|
|
60208
60208
|
var O = n.current.getTotalLength();
|
|
@@ -64285,7 +64285,7 @@ const hS = ({ plot: e, point: t }) => {
|
|
|
64285
64285
|
enabled: !1
|
|
64286
64286
|
}
|
|
64287
64287
|
};
|
|
64288
|
-
return
|
|
64288
|
+
return ar(() => {
|
|
64289
64289
|
(async () => {
|
|
64290
64290
|
try {
|
|
64291
64291
|
let p;
|
|
@@ -64335,7 +64335,7 @@ function BTe({ popupInfo: e, onClose: t }) {
|
|
|
64335
64335
|
p(!1);
|
|
64336
64336
|
}));
|
|
64337
64337
|
}, [C, c]);
|
|
64338
|
-
return
|
|
64338
|
+
return ar(() => {
|
|
64339
64339
|
w(!0), C ? PY({
|
|
64340
64340
|
stationId: C == null ? void 0 : C.device,
|
|
64341
64341
|
plotId: C == null ? void 0 : C.id
|
|
@@ -64786,13 +64786,13 @@ function JD({ mapRef: e, dateRange: t }) {
|
|
|
64786
64786
|
() => cg(F, 500),
|
|
64787
64787
|
[F]
|
|
64788
64788
|
);
|
|
64789
|
-
return
|
|
64789
|
+
return ar(() => {
|
|
64790
64790
|
y && (console.log("loading cropped images"), F({ timeTravel: !0 }));
|
|
64791
|
-
}, [t, y, c, r, p]),
|
|
64791
|
+
}, [t, y, c, r, p]), ar(() => {
|
|
64792
64792
|
y && (console.log("settings changed resetting cropped layer"), F({ timeTravel: !0 }));
|
|
64793
|
-
}, [v]),
|
|
64793
|
+
}, [v]), ar(() => (I && n && E !== "PICKER" && I.on("click", "plots-layer", V), () => {
|
|
64794
64794
|
I && I.off("click", "plots-layer", V);
|
|
64795
|
-
}), [V, E, n, I]),
|
|
64795
|
+
}), [V, E, n, I]), ar(() => {
|
|
64796
64796
|
if (console.log("running useEffect inside plots"), !(!I || E !== "NORMAL" || !n || !c))
|
|
64797
64797
|
return console.log("adding viewport change event to map"), I.on("moveend", Y), I.on("zoomend", Y), I.on("style.load", Y), () => {
|
|
64798
64798
|
console.log("removing viewport change event from map"), Y.cancel(), I.off("style.load", Y), I.off("moveend", Y), I.off("zoomend", Y);
|
|
@@ -64803,7 +64803,7 @@ function JD({ mapRef: e, dateRange: t }) {
|
|
|
64803
64803
|
E,
|
|
64804
64804
|
Y,
|
|
64805
64805
|
c
|
|
64806
|
-
]),
|
|
64806
|
+
]), ar(() => (I && E !== "PICKER" && (I.on("mouseenter", "plots-layer", X), I.on("mouseleave", "plots-layer", W)), () => {
|
|
64807
64807
|
I && E !== "PICKER" && (I.off("mouseenter", "plots-layer", X), I.off("mouseleave", "plots-layer", W));
|
|
64808
64808
|
}), [I, X, W, E]), n ? /* @__PURE__ */ U.jsxs(U.Fragment, { children: [
|
|
64809
64809
|
/* @__PURE__ */ U.jsxs(
|
|
@@ -67602,9 +67602,9 @@ function NIe() {
|
|
|
67602
67602
|
c(!1);
|
|
67603
67603
|
});
|
|
67604
67604
|
}
|
|
67605
|
-
return
|
|
67605
|
+
return ar(() => {
|
|
67606
67606
|
console.log("pickerData", e), e && r.value === "ET" && y(e);
|
|
67607
|
-
}, [e, r]),
|
|
67607
|
+
}, [e, r]), ar(() => {
|
|
67608
67608
|
e && r.value === "ET" && y(e);
|
|
67609
67609
|
}, [p]), e ? /* @__PURE__ */ U.jsx(U.Fragment, { children: /* @__PURE__ */ U.jsx(
|
|
67610
67610
|
Al,
|
|
@@ -67681,16 +67681,16 @@ const cR = ({ mapRef: e, dateRange: t }) => {
|
|
|
67681
67681
|
const i = Vt((S) => S.rasterLayer), [s, c] = Dt(
|
|
67682
67682
|
lR({ layer: i.value, dateRange: { ...t } })
|
|
67683
67683
|
), [a, d] = Dt(null), p = Vt((S) => S.rasterOpacity), y = e == null ? void 0 : e.current, g = (w = e == null ? void 0 : e.current) == null ? void 0 : w.getMap();
|
|
67684
|
-
|
|
67684
|
+
ar(() => {
|
|
67685
67685
|
console.log("uuu dateRange in useEffect layerUrl", t);
|
|
67686
67686
|
const S = lR({
|
|
67687
67687
|
layer: i.value,
|
|
67688
67688
|
dateRange: { ...t }
|
|
67689
67689
|
});
|
|
67690
67690
|
console.log("uuu url has changed", S), c(S);
|
|
67691
|
-
}, [i, t]),
|
|
67691
|
+
}, [i, t]), ar(() => {
|
|
67692
67692
|
console.log("uuu dateRnage has changeed", t);
|
|
67693
|
-
}, [t]),
|
|
67693
|
+
}, [t]), ar(() => {
|
|
67694
67694
|
y && (y != null && y.loaded()) && y.getLayer("plots-line-layer") ? (console.log("order setting before id to plots-line-layer"), d("plots-line-layer")) : (console.log("order setting before id to plots-line-layer"), d(null));
|
|
67695
67695
|
}, [y]);
|
|
67696
67696
|
const v = vr(
|
|
@@ -67701,7 +67701,7 @@ const cR = ({ mapRef: e, dateRange: t }) => {
|
|
|
67701
67701
|
},
|
|
67702
67702
|
[y]
|
|
67703
67703
|
);
|
|
67704
|
-
return
|
|
67704
|
+
return ar(() => (g && g.on("style.load", v), () => {
|
|
67705
67705
|
g && g.off("style.load", v);
|
|
67706
67706
|
}), [y]), s ? /* @__PURE__ */ U.jsx(U.Fragment, { children: r && !n && /* @__PURE__ */ U.jsx(
|
|
67707
67707
|
TR,
|
|
@@ -67874,7 +67874,7 @@ function qF({ dateRange: e, mapRef: t, showButton: r = !0 }) {
|
|
|
67874
67874
|
}, [S, C]), I = (O) => {
|
|
67875
67875
|
n && (i === "PICKER" ? n.setPaintProperty("raster-layer", "raster-opacity", 1) : M()), s();
|
|
67876
67876
|
};
|
|
67877
|
-
return
|
|
67877
|
+
return ar(() => {
|
|
67878
67878
|
const O = (L) => {
|
|
67879
67879
|
L.key === "Escape" && (M(), c());
|
|
67880
67880
|
};
|
|
@@ -67887,7 +67887,7 @@ function qF({ dateRange: e, mapRef: t, showButton: r = !0 }) {
|
|
|
67887
67887
|
n,
|
|
67888
67888
|
M,
|
|
67889
67889
|
i
|
|
67890
|
-
]),
|
|
67890
|
+
]), ar(() => {
|
|
67891
67891
|
if (console.log("eee event", n, i), !n || i !== "PICKER") return;
|
|
67892
67892
|
const O = (L) => {
|
|
67893
67893
|
console.log("eee clicked on map", e);
|
|
@@ -67906,7 +67906,7 @@ function qF({ dateRange: e, mapRef: t, showButton: r = !0 }) {
|
|
|
67906
67906
|
return console.log("added event handler"), n.on("click", O), () => {
|
|
67907
67907
|
n.off("click", O);
|
|
67908
67908
|
};
|
|
67909
|
-
}, [n, i, e, a]),
|
|
67909
|
+
}, [n, i, e, a]), ar(() => {
|
|
67910
67910
|
const O = (L) => {
|
|
67911
67911
|
const { lng: D, lat: R } = L.lngLat;
|
|
67912
67912
|
d([D, R]);
|
|
@@ -67914,7 +67914,7 @@ function qF({ dateRange: e, mapRef: t, showButton: r = !0 }) {
|
|
|
67914
67914
|
return n && n.on("mousemove", O), () => {
|
|
67915
67915
|
n && n.off("mousemove", O);
|
|
67916
67916
|
};
|
|
67917
|
-
}, [n, d, i]),
|
|
67917
|
+
}, [n, d, i]), ar(() => {
|
|
67918
67918
|
const L = cg((D) => {
|
|
67919
67919
|
const R = n.getCanvas(), N = n.painter.context.gl;
|
|
67920
67920
|
if (!N) {
|
|
@@ -67933,7 +67933,7 @@ function qF({ dateRange: e, mapRef: t, showButton: r = !0 }) {
|
|
|
67933
67933
|
return n && i === "PICKER" && (n != null && n.loaded) && (console.log("Adding pixel event listener"), n.on("mousemove", L)), () => {
|
|
67934
67934
|
n && n.off("mousemove", L);
|
|
67935
67935
|
};
|
|
67936
|
-
}, [n, i, p, y]),
|
|
67936
|
+
}, [n, i, p, y]), ar(() => {
|
|
67937
67937
|
i === "PICKER" ? g("crosshair") : v();
|
|
67938
67938
|
}, [i]), r ? /* @__PURE__ */ U.jsx(
|
|
67939
67939
|
Vr,
|
|
@@ -67972,9 +67972,7 @@ function dR({ dateRange: e, mapRef: t }) {
|
|
|
67972
67972
|
const E = r.getContainer().parentNode;
|
|
67973
67973
|
document.fullscreenElement ? (document.exitFullscreen(), d(!1)) : E.requestFullscreen ? E.requestFullscreen() : E.mozRequestFullScreen ? E.mozRequestFullScreen() : E.webkitRequestFullscreen ? E.webkitRequestFullscreen() : E.msRequestFullscreen && E.msRequestFullscreen(), d(!0);
|
|
67974
67974
|
}, [r]);
|
|
67975
|
-
return y === Kr.ADD_PLOT || y === Kr.ADD_MARKER || y === Kr.EDIT_PLOT || y === Kr.EDIT_MARKER ? null : (
|
|
67976
|
-
console.log("daterange has changed in side mapControl eee", e);
|
|
67977
|
-
}, [e]), /* @__PURE__ */ U.jsx(U.Fragment, { children: /* @__PURE__ */ U.jsxs("div", { className: " gap-1 flex flex-col", children: [
|
|
67975
|
+
return y === Kr.ADD_PLOT || y === Kr.ADD_MARKER || y === Kr.EDIT_PLOT || y === Kr.EDIT_MARKER ? null : /* @__PURE__ */ U.jsx(U.Fragment, { children: /* @__PURE__ */ U.jsxs("div", { className: " gap-1 flex flex-col", children: [
|
|
67978
67976
|
r && /* @__PURE__ */ U.jsx(
|
|
67979
67977
|
Vr,
|
|
67980
67978
|
{
|
|
@@ -68035,7 +68033,7 @@ function dR({ dateRange: e, mapRef: t }) {
|
|
|
68035
68033
|
}
|
|
68036
68034
|
)
|
|
68037
68035
|
] })
|
|
68038
|
-
] }) })
|
|
68036
|
+
] }) });
|
|
68039
68037
|
}
|
|
68040
68038
|
const Z_ = 768;
|
|
68041
68039
|
function $Ie() {
|
|
@@ -68703,7 +68701,7 @@ const TPe = ({ polygon: e, deleteFeature: t, trigger: r }) => {
|
|
|
68703
68701
|
v(!1), S();
|
|
68704
68702
|
});
|
|
68705
68703
|
};
|
|
68706
|
-
return
|
|
68704
|
+
return ar(() => {
|
|
68707
68705
|
y(!0), cb().then((I) => {
|
|
68708
68706
|
d(I);
|
|
68709
68707
|
}).finally(() => {
|
|
@@ -68792,7 +68790,7 @@ function PPe() {
|
|
|
68792
68790
|
console.error("error updating plot", ne);
|
|
68793
68791
|
});
|
|
68794
68792
|
};
|
|
68795
|
-
|
|
68793
|
+
ar(() => {
|
|
68796
68794
|
console.log("editingPlot changed", c);
|
|
68797
68795
|
}, [c]);
|
|
68798
68796
|
const O = (Z) => {
|
|
@@ -68811,12 +68809,12 @@ function PPe() {
|
|
|
68811
68809
|
}, N = () => {
|
|
68812
68810
|
C.getSelectedIds(), C.trash();
|
|
68813
68811
|
};
|
|
68814
|
-
return
|
|
68812
|
+
return ar(() => {
|
|
68815
68813
|
const Z = M.getMap();
|
|
68816
68814
|
return Z.on("draw.modechange", O), Z.on("draw.selectionchange", L), () => {
|
|
68817
68815
|
Z.off("draw.modechange", O), Z.off("draw.selectionchange", L);
|
|
68818
68816
|
};
|
|
68819
|
-
}, [v]),
|
|
68817
|
+
}, [v]), ar(() => {
|
|
68820
68818
|
if (map && C)
|
|
68821
68819
|
return M.on("draw.update", D), () => {
|
|
68822
68820
|
M.off("draw.update", D);
|
|
@@ -68832,7 +68830,7 @@ function OPe() {
|
|
|
68832
68830
|
const e = Vt((O) => O.setViewMode);
|
|
68833
68831
|
Vt((O) => O.viewMode);
|
|
68834
68832
|
const [t, r] = Dt(), [n, i] = Dt({}), [s, c] = Dt([]), { drawRef: a, showDrawActionPopup: d, setShowDrawActionPopup: p } = br(ua), y = a.current, { current: g } = U0();
|
|
68835
|
-
|
|
68833
|
+
ar(() => {
|
|
68836
68834
|
y.changeMode("draw_polygon");
|
|
68837
68835
|
}, [y]);
|
|
68838
68836
|
const v = () => {
|
|
@@ -68848,7 +68846,7 @@ function OPe() {
|
|
|
68848
68846
|
}, M = vr((O) => {
|
|
68849
68847
|
console.log("running plot shape change", O.features), console.log("handling draw change", O), O.features && O.features.length > 0 && i(O.features[0]);
|
|
68850
68848
|
}, []);
|
|
68851
|
-
|
|
68849
|
+
ar(() => {
|
|
68852
68850
|
console.log("shape changed", n);
|
|
68853
68851
|
}, [n]);
|
|
68854
68852
|
const I = () => {
|
|
@@ -68856,12 +68854,12 @@ function OPe() {
|
|
|
68856
68854
|
}, E = () => {
|
|
68857
68855
|
y.getSelectedIds().length > 0 && y.trash();
|
|
68858
68856
|
};
|
|
68859
|
-
return
|
|
68857
|
+
return ar(() => {
|
|
68860
68858
|
const O = g.getMap();
|
|
68861
68859
|
return O.on("draw.modechange", w), O.on("draw.selectionchange", S), () => {
|
|
68862
68860
|
O.off("draw.modechange", w), O.off("draw.selectionchange", S);
|
|
68863
68861
|
};
|
|
68864
|
-
}, [a]),
|
|
68862
|
+
}, [a]), ar(() => {
|
|
68865
68863
|
if (map && y)
|
|
68866
68864
|
return g.on("draw.delete", C), g.on("draw.create", M), g.on("draw.update", M), () => {
|
|
68867
68865
|
g.off("draw.delete", C), g.off("draw.create", M), g.off("draw.update", M);
|
|
@@ -68884,7 +68882,7 @@ function kPe() {
|
|
|
68884
68882
|
const e = Vt((E) => E.setViewMode);
|
|
68885
68883
|
Vt((E) => E.viewMode);
|
|
68886
68884
|
const [t, r] = Dt(), [n, i] = Dt({}), [s, c] = Dt([]), { drawRef: a, showDrawActionPopup: d, setShowDrawActionPopup: p } = br(ua), y = a.current, { current: g } = U0();
|
|
68887
|
-
|
|
68885
|
+
ar(() => {
|
|
68888
68886
|
y.changeMode("draw_point");
|
|
68889
68887
|
}, [y]);
|
|
68890
68888
|
const v = () => {
|
|
@@ -68898,7 +68896,7 @@ function kPe() {
|
|
|
68898
68896
|
}, C = vr((E) => {
|
|
68899
68897
|
console.log("running plot shape change", E.features), console.log("handling draw change", E), E.features && E.features.length > 0 && i(E.features[0]);
|
|
68900
68898
|
}, []);
|
|
68901
|
-
|
|
68899
|
+
ar(() => {
|
|
68902
68900
|
console.log("shape changed", n);
|
|
68903
68901
|
}, [n]);
|
|
68904
68902
|
const M = () => {
|
|
@@ -68906,12 +68904,12 @@ function kPe() {
|
|
|
68906
68904
|
}, I = () => {
|
|
68907
68905
|
y.getSelectedIds(), y.trash();
|
|
68908
68906
|
};
|
|
68909
|
-
return
|
|
68907
|
+
return ar(() => {
|
|
68910
68908
|
const E = g.getMap();
|
|
68911
68909
|
return E.on("draw.modechange", w), E.on("draw.selectionchange", S), () => {
|
|
68912
68910
|
E.off("draw.modechange", w), E.off("draw.selectionchange", S);
|
|
68913
68911
|
};
|
|
68914
|
-
}, [a]),
|
|
68912
|
+
}, [a]), ar(() => {
|
|
68915
68913
|
if (map && y)
|
|
68916
68914
|
return g.on("draw.create", C), g.on("draw.update", C), () => {
|
|
68917
68915
|
g.off("draw.create", C), g.off("draw.update", C);
|
|
@@ -69023,16 +69021,16 @@ function LPe({ style: e, requestHeaders: t, configs: r, markers: n }) {
|
|
|
69023
69021
|
const { settings: i } = br(Jm), { mapRef: s } = br(ua), c = On(), a = R9(), [d, p] = Dt(a), y = Vt((N) => N.viewMode), g = Vt((N) => N.mapMode), v = Vt((N) => N.cursor), w = Vt((N) => N.setRequestHeaders), S = Vt((N) => N.setConfigs), C = Vt((N) => N.dateRange), M = Vt((N) => N.setDateRange), I = Vt((N) => N.dateRange2), E = Vt((N) => N.setDateRange2), O = vr((N) => p(N.viewState), []), [L, D] = Dt(
|
|
69024
69022
|
`${(R = BA.find((N) => N.id === i.basemap.id)) == null ? void 0 : R.url}?key=${r == null ? void 0 : r.VITE_MAPTILER_ACCESS_KEY}`
|
|
69025
69023
|
);
|
|
69026
|
-
return
|
|
69024
|
+
return ar(() => {
|
|
69027
69025
|
var N;
|
|
69028
69026
|
D(
|
|
69029
69027
|
`${(N = BA.find((Z) => Z.id === i.basemap.id)) == null ? void 0 : N.url}?key=${r == null ? void 0 : r.VITE_MAPTILER_ACCESS_KEY}`
|
|
69030
69028
|
);
|
|
69031
|
-
}, [i]),
|
|
69029
|
+
}, [i]), ar(() => {
|
|
69032
69030
|
w(t);
|
|
69033
|
-
}, [t]),
|
|
69031
|
+
}, [t]), ar(() => {
|
|
69034
69032
|
S(r);
|
|
69035
|
-
}, []),
|
|
69033
|
+
}, []), ar(() => {
|
|
69036
69034
|
console.log("fff dateRange is", C), console.log("fff dateRange2 is", I);
|
|
69037
69035
|
}, [C, I]), a ? /* @__PURE__ */ U.jsx($R, { providedMarkers: n, children: /* @__PURE__ */ U.jsx(ute, { children: /* @__PURE__ */ U.jsx(m5, { children: /* @__PURE__ */ U.jsx(a6, { children: /* @__PURE__ */ U.jsx(Oie, { children: /* @__PURE__ */ U.jsxs(
|
|
69038
69036
|
"div",
|
|
@@ -69643,10 +69641,10 @@ function eOe({
|
|
|
69643
69641
|
...n
|
|
69644
69642
|
}) {
|
|
69645
69643
|
const [i, s] = Dt(() => localStorage.getItem(r) || t);
|
|
69646
|
-
|
|
69644
|
+
ar(() => {
|
|
69647
69645
|
const a = document.documentElement;
|
|
69648
69646
|
a.classList.remove("light", "dark"), i === "system" && a && window.matchMedia("(prefers-color-scheme: dark)").matches, a.classList.add("light");
|
|
69649
|
-
}, [i]),
|
|
69647
|
+
}, [i]), ar(() => {
|
|
69650
69648
|
const a = window.matchMedia("(prefers-color-scheme: dark)"), d = () => s(a.matches ? "dark" : "light");
|
|
69651
69649
|
return d(), a.addEventListener("change", d), () => a.removeEventListener("change", d);
|
|
69652
69650
|
}, []);
|