@besovideo/bvmap-leaflet 0.0.45 → 0.0.46
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/main.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var uh = Object.defineProperty, ch = Object.defineProperties;
|
|
2
2
|
var dh = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Hi = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Sa = Object.prototype.hasOwnProperty, Aa = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ea = (n, e, i) => e in n ? uh(n, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[e] = i, X = (n, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
Sa.call(e, i) && Ea(n, i, e[i]);
|
|
8
8
|
if (Hi)
|
|
9
9
|
for (var i of Hi(e))
|
|
10
|
-
|
|
10
|
+
Aa.call(e, i) && Ea(n, i, e[i]);
|
|
11
11
|
return n;
|
|
12
12
|
}, At = (n, e) => ch(n, dh(e));
|
|
13
|
-
var
|
|
13
|
+
var Ia = (n, e) => {
|
|
14
14
|
var i = {};
|
|
15
15
|
for (var a in n)
|
|
16
|
-
|
|
16
|
+
Sa.call(n, a) && e.indexOf(a) < 0 && (i[a] = n[a]);
|
|
17
17
|
if (n != null && Hi)
|
|
18
18
|
for (var a of Hi(n))
|
|
19
|
-
e.indexOf(a) < 0 &&
|
|
19
|
+
e.indexOf(a) < 0 && Aa.call(n, a) && (i[a] = n[a]);
|
|
20
20
|
return i;
|
|
21
21
|
};
|
|
22
22
|
function fh(n, e) {
|
|
@@ -35,7 +35,7 @@ function fh(n, e) {
|
|
|
35
35
|
}
|
|
36
36
|
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
37
37
|
}
|
|
38
|
-
var
|
|
38
|
+
var lr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
39
39
|
function mh(n) {
|
|
40
40
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
41
41
|
}
|
|
@@ -63,12 +63,12 @@ var qi = { exports: {} };
|
|
|
63
63
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
64
64
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
65
65
|
*/
|
|
66
|
-
var
|
|
66
|
+
var Oa;
|
|
67
67
|
function cn() {
|
|
68
|
-
return
|
|
68
|
+
return Oa || (Oa = 1, function(n, e) {
|
|
69
69
|
(function(i, a) {
|
|
70
70
|
a(e);
|
|
71
|
-
})(
|
|
71
|
+
})(lr, function(i) {
|
|
72
72
|
var a = "1.9.4";
|
|
73
73
|
function o(t) {
|
|
74
74
|
var s, l, f, p;
|
|
@@ -889,8 +889,8 @@ function cn() {
|
|
|
889
889
|
var l = Math.PI / 180, f = t.lat * l, p = s.lat * l, M = Math.sin((s.lat - t.lat) * l / 2), C = Math.sin((s.lng - t.lng) * l / 2), P = M * M + Math.cos(f) * Math.cos(p) * C * C, T = 2 * Math.atan2(Math.sqrt(P), Math.sqrt(1 - P));
|
|
890
890
|
return this.R * T;
|
|
891
891
|
}
|
|
892
|
-
}),
|
|
893
|
-
R:
|
|
892
|
+
}), ys = 6378137, mn = {
|
|
893
|
+
R: ys,
|
|
894
894
|
MAX_LATITUDE: 85.0511287798,
|
|
895
895
|
project: function(t) {
|
|
896
896
|
var s = Math.PI / 180, l = this.MAX_LATITUDE, f = Math.max(Math.min(l, t.lat), -l), p = Math.sin(f * s);
|
|
@@ -907,7 +907,7 @@ function cn() {
|
|
|
907
907
|
);
|
|
908
908
|
},
|
|
909
909
|
bounds: function() {
|
|
910
|
-
var t =
|
|
910
|
+
var t = ys * Math.PI;
|
|
911
911
|
return new ot([-t, -t], [t, t]);
|
|
912
912
|
}()
|
|
913
913
|
};
|
|
@@ -952,10 +952,10 @@ function cn() {
|
|
|
952
952
|
}), Zr = o({}, gn, {
|
|
953
953
|
code: "EPSG:900913"
|
|
954
954
|
});
|
|
955
|
-
function
|
|
955
|
+
function Ms(t) {
|
|
956
956
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function Ls(t, s) {
|
|
959
959
|
var l = "", f, p, M, C, P, T;
|
|
960
960
|
for (f = 0, M = t.length; f < M; f++) {
|
|
961
961
|
for (P = t[f], p = 0, C = P.length; p < C; p++)
|
|
@@ -964,7 +964,7 @@ function cn() {
|
|
|
964
964
|
}
|
|
965
965
|
return l || "M0 0";
|
|
966
966
|
}
|
|
967
|
-
var pn = document.documentElement.style, Ci = "ActiveXObject" in window, Gr = Ci && !document.addEventListener,
|
|
967
|
+
var pn = document.documentElement.style, Ci = "ActiveXObject" in window, Gr = Ci && !document.addEventListener, ws = "msLaunchUri" in navigator && !("documentMode" in document), vn = Ft("webkit"), xs = Ft("android"), Cs = Ft("android 2") || Ft("android 3"), Fr = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), Ur = xs && Ft("Google") && Fr < 537 && !("AudioNode" in window), yn = !!window.opera, bs = !ws && Ft("chrome"), Ps = Ft("gecko") && !vn && !yn && !Ci, Hr = !bs && Ft("safari"), ks = Ft("phantom"), Ts = "OTransition" in pn, qr = navigator.platform.indexOf("Win") === 0, Es = Ci && "transition" in pn, Mn = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Cs, Ss = "MozPerspective" in pn, Wr = !window.L_DISABLE_3D && (Es || Mn || Ss) && !Ts && !ks, He = typeof orientation != "undefined" || Ft("mobile"), jr = He && vn, Vr = He && Mn, As = !window.PointerEvent && window.MSPointerEvent, Is = !!(window.PointerEvent || As), Os = "ontouchstart" in window || !!window.TouchEvent, $r = !window.L_NO_TOUCH && (Os || Is), Xr = He && yn, Kr = He && Ps, Jr = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, Yr = function() {
|
|
968
968
|
var t = !1;
|
|
969
969
|
try {
|
|
970
970
|
var s = Object.defineProperty({}, "passive", {
|
|
@@ -978,7 +978,7 @@ function cn() {
|
|
|
978
978
|
return t;
|
|
979
979
|
}(), Qr = function() {
|
|
980
980
|
return !!document.createElement("canvas").getContext;
|
|
981
|
-
}(), Ln = !!(document.createElementNS &&
|
|
981
|
+
}(), Ln = !!(document.createElementNS && Ms("svg").createSVGRect), to = !!Ln && function() {
|
|
982
982
|
var t = document.createElement("div");
|
|
983
983
|
return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
|
|
984
984
|
}(), eo = !Ln && function() {
|
|
@@ -997,29 +997,29 @@ function cn() {
|
|
|
997
997
|
var G = {
|
|
998
998
|
ie: Ci,
|
|
999
999
|
ielt9: Gr,
|
|
1000
|
-
edge:
|
|
1000
|
+
edge: ws,
|
|
1001
1001
|
webkit: vn,
|
|
1002
|
-
android:
|
|
1003
|
-
android23:
|
|
1002
|
+
android: xs,
|
|
1003
|
+
android23: Cs,
|
|
1004
1004
|
androidStock: Ur,
|
|
1005
1005
|
opera: yn,
|
|
1006
|
-
chrome:
|
|
1007
|
-
gecko:
|
|
1006
|
+
chrome: bs,
|
|
1007
|
+
gecko: Ps,
|
|
1008
1008
|
safari: Hr,
|
|
1009
|
-
phantom:
|
|
1010
|
-
opera12:
|
|
1009
|
+
phantom: ks,
|
|
1010
|
+
opera12: Ts,
|
|
1011
1011
|
win: qr,
|
|
1012
|
-
ie3d:
|
|
1012
|
+
ie3d: Es,
|
|
1013
1013
|
webkit3d: Mn,
|
|
1014
|
-
gecko3d:
|
|
1014
|
+
gecko3d: Ss,
|
|
1015
1015
|
any3d: Wr,
|
|
1016
1016
|
mobile: He,
|
|
1017
1017
|
mobileWebkit: jr,
|
|
1018
1018
|
mobileWebkit3d: Vr,
|
|
1019
|
-
msPointer:
|
|
1020
|
-
pointer:
|
|
1019
|
+
msPointer: As,
|
|
1020
|
+
pointer: Is,
|
|
1021
1021
|
touch: $r,
|
|
1022
|
-
touchNative:
|
|
1022
|
+
touchNative: Os,
|
|
1023
1023
|
mobileOpera: Xr,
|
|
1024
1024
|
mobileGecko: Kr,
|
|
1025
1025
|
retina: Jr,
|
|
@@ -1030,19 +1030,19 @@ function cn() {
|
|
|
1030
1030
|
inlineSvg: to,
|
|
1031
1031
|
mac: io,
|
|
1032
1032
|
linux: no
|
|
1033
|
-
},
|
|
1034
|
-
touchstart:
|
|
1035
|
-
touchmove:
|
|
1036
|
-
touchend:
|
|
1037
|
-
touchcancel:
|
|
1038
|
-
},
|
|
1033
|
+
}, zs = G.msPointer ? "MSPointerDown" : "pointerdown", Rs = G.msPointer ? "MSPointerMove" : "pointermove", Ns = G.msPointer ? "MSPointerUp" : "pointerup", Ds = G.msPointer ? "MSPointerCancel" : "pointercancel", wn = {
|
|
1034
|
+
touchstart: zs,
|
|
1035
|
+
touchmove: Rs,
|
|
1036
|
+
touchend: Ns,
|
|
1037
|
+
touchcancel: Ds
|
|
1038
|
+
}, Bs = {
|
|
1039
1039
|
touchstart: lo,
|
|
1040
1040
|
touchmove: bi,
|
|
1041
1041
|
touchend: bi,
|
|
1042
1042
|
touchcancel: bi
|
|
1043
|
-
}, xe = {},
|
|
1043
|
+
}, xe = {}, Zs = !1;
|
|
1044
1044
|
function so(t, s, l) {
|
|
1045
|
-
return s === "touchstart" && ho(),
|
|
1045
|
+
return s === "touchstart" && ho(), Bs[s] ? (l = Bs[s].bind(this, l), t.addEventListener(wn[s], l, !1), l) : (console.warn("wrong event specified:", s), g);
|
|
1046
1046
|
}
|
|
1047
1047
|
function ao(t, s, l) {
|
|
1048
1048
|
if (!wn[s]) {
|
|
@@ -1057,11 +1057,11 @@ function cn() {
|
|
|
1057
1057
|
function oo(t) {
|
|
1058
1058
|
xe[t.pointerId] && (xe[t.pointerId] = t);
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function Gs(t) {
|
|
1061
1061
|
delete xe[t.pointerId];
|
|
1062
1062
|
}
|
|
1063
1063
|
function ho() {
|
|
1064
|
-
|
|
1064
|
+
Zs || (document.addEventListener(zs, ro, !0), document.addEventListener(Rs, oo, !0), document.addEventListener(Ns, Gs, !0), document.addEventListener(Ds, Gs, !0), Zs = !0);
|
|
1065
1065
|
}
|
|
1066
1066
|
function bi(t, s) {
|
|
1067
1067
|
if (s.pointerType !== (s.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
@@ -1090,7 +1090,7 @@ function cn() {
|
|
|
1090
1090
|
return;
|
|
1091
1091
|
}
|
|
1092
1092
|
if (!(M.pointerType === "mouse" || M.sourceCapabilities && !M.sourceCapabilities.firesTouchEvents)) {
|
|
1093
|
-
var C =
|
|
1093
|
+
var C = Ws(M);
|
|
1094
1094
|
if (!(C.some(function(T) {
|
|
1095
1095
|
return T instanceof HTMLLabelElement && T.attributes.for;
|
|
1096
1096
|
}) && !C.some(function(T) {
|
|
@@ -1113,8 +1113,8 @@ function cn() {
|
|
|
1113
1113
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
|
1114
1114
|
), qe = Ti(
|
|
1115
1115
|
["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
|
|
1116
|
-
),
|
|
1117
|
-
function
|
|
1116
|
+
), Fs = qe === "webkitTransition" || qe === "OTransition" ? qe + "End" : "transitionend";
|
|
1117
|
+
function Us(t) {
|
|
1118
1118
|
return typeof t == "string" ? document.getElementById(t) : t;
|
|
1119
1119
|
}
|
|
1120
1120
|
function We(t, s) {
|
|
@@ -1233,7 +1233,7 @@ function cn() {
|
|
|
1233
1233
|
function Si() {
|
|
1234
1234
|
Ei && (Ei.style.outlineStyle = En, Ei = void 0, En = void 0, rt(window, "keydown", Si));
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function Hs(t) {
|
|
1237
1237
|
do
|
|
1238
1238
|
t = t.parentNode;
|
|
1239
1239
|
while ((!t.offsetWidth || !t.offsetHeight) && t !== document.body);
|
|
@@ -1251,8 +1251,8 @@ function cn() {
|
|
|
1251
1251
|
__proto__: null,
|
|
1252
1252
|
TRANSFORM: xn,
|
|
1253
1253
|
TRANSITION: qe,
|
|
1254
|
-
TRANSITION_END:
|
|
1255
|
-
get:
|
|
1254
|
+
TRANSITION_END: Fs,
|
|
1255
|
+
get: Us,
|
|
1256
1256
|
getStyle: We,
|
|
1257
1257
|
create: et,
|
|
1258
1258
|
remove: lt,
|
|
@@ -1279,7 +1279,7 @@ function cn() {
|
|
|
1279
1279
|
enableImageDrag: Tn,
|
|
1280
1280
|
preventOutline: Sn,
|
|
1281
1281
|
restoreOutline: Si,
|
|
1282
|
-
getSizedParentNode:
|
|
1282
|
+
getSizedParentNode: Hs,
|
|
1283
1283
|
getScale: An
|
|
1284
1284
|
};
|
|
1285
1285
|
function j(t, s, l, f) {
|
|
@@ -1296,12 +1296,12 @@ function cn() {
|
|
|
1296
1296
|
var Ut = "_leaflet_events";
|
|
1297
1297
|
function rt(t, s, l, f) {
|
|
1298
1298
|
if (arguments.length === 1)
|
|
1299
|
-
|
|
1299
|
+
qs(t), delete t[Ut];
|
|
1300
1300
|
else if (s && typeof s == "object")
|
|
1301
1301
|
for (var p in s)
|
|
1302
1302
|
zn(t, p, s[p], l);
|
|
1303
1303
|
else if (s = y(s), arguments.length === 2)
|
|
1304
|
-
|
|
1304
|
+
qs(t, function(P) {
|
|
1305
1305
|
return z(s, P) !== -1;
|
|
1306
1306
|
});
|
|
1307
1307
|
else
|
|
@@ -1309,7 +1309,7 @@ function cn() {
|
|
|
1309
1309
|
zn(t, s[M], l, f);
|
|
1310
1310
|
return this;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function qs(t, s) {
|
|
1313
1313
|
for (var l in t[Ut]) {
|
|
1314
1314
|
var f = l.split(/\d/)[0];
|
|
1315
1315
|
(!s || s(f)) && zn(t, f, null, null, l);
|
|
@@ -1353,14 +1353,14 @@ function cn() {
|
|
|
1353
1353
|
function ge(t) {
|
|
1354
1354
|
return vt(t), _e(t), this;
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function Ws(t) {
|
|
1357
1357
|
if (t.composedPath)
|
|
1358
1358
|
return t.composedPath();
|
|
1359
1359
|
for (var s = [], l = t.target; l; )
|
|
1360
1360
|
s.push(l), l = l.parentNode;
|
|
1361
1361
|
return s;
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function js(t, s) {
|
|
1364
1364
|
if (!s)
|
|
1365
1365
|
return new W(t.clientX, t.clientY);
|
|
1366
1366
|
var l = An(s), f = l.boundingClientRect;
|
|
@@ -1372,7 +1372,7 @@ function cn() {
|
|
|
1372
1372
|
);
|
|
1373
1373
|
}
|
|
1374
1374
|
var po = G.linux && G.chrome ? window.devicePixelRatio : G.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
|
|
1375
|
-
function
|
|
1375
|
+
function Vs(t) {
|
|
1376
1376
|
return G.edge ? t.wheelDeltaY / 2 : (
|
|
1377
1377
|
// Don't trust window-geometry-based delta
|
|
1378
1378
|
t.deltaY && t.deltaMode === 0 ? -t.deltaY / po : (
|
|
@@ -1420,13 +1420,13 @@ function cn() {
|
|
|
1420
1420
|
disableClickPropagation: Xe,
|
|
1421
1421
|
preventDefault: vt,
|
|
1422
1422
|
stop: ge,
|
|
1423
|
-
getPropagationPath:
|
|
1424
|
-
getMousePosition:
|
|
1425
|
-
getWheelDelta:
|
|
1423
|
+
getPropagationPath: Ws,
|
|
1424
|
+
getMousePosition: js,
|
|
1425
|
+
getWheelDelta: Vs,
|
|
1426
1426
|
isExternalTarget: Nn,
|
|
1427
1427
|
addListener: j,
|
|
1428
1428
|
removeListener: rt
|
|
1429
|
-
},
|
|
1429
|
+
}, $s = de.extend({
|
|
1430
1430
|
// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
|
|
1431
1431
|
// Run an animation of a given element to a new position, optionally setting
|
|
1432
1432
|
// duration in seconds (`0.25` by default) and easing linearity factor (3rd
|
|
@@ -1535,7 +1535,7 @@ function cn() {
|
|
|
1535
1535
|
trackResize: !0
|
|
1536
1536
|
},
|
|
1537
1537
|
initialize: function(t, s) {
|
|
1538
|
-
s = w(this, s), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = h(this._onResize, this), this._initEvents(), s.maxBounds && this.setMaxBounds(s.maxBounds), s.zoom !== void 0 && (this._zoom = this._limitZoom(s.zoom)), s.center && s.zoom !== void 0 && this.setView(K(s.center), s.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = qe && G.any3d && !G.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), j(this._proxy,
|
|
1538
|
+
s = w(this, s), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = h(this._onResize, this), this._initEvents(), s.maxBounds && this.setMaxBounds(s.maxBounds), s.zoom !== void 0 && (this._zoom = this._limitZoom(s.zoom)), s.center && s.zoom !== void 0 && this.setView(K(s.center), s.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = qe && G.any3d && !G.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), j(this._proxy, Fs, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
|
1539
1539
|
},
|
|
1540
1540
|
// @section Methods for modifying map state
|
|
1541
1541
|
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
|
|
@@ -1616,7 +1616,7 @@ function cn() {
|
|
|
1616
1616
|
return this.fire("moveend");
|
|
1617
1617
|
if (s.animate !== !0 && !this.getSize().contains(t))
|
|
1618
1618
|
return this._resetView(this.unproject(this.project(this.getCenter()).add(t)), this.getZoom()), this;
|
|
1619
|
-
if (this._panAnim || (this._panAnim = new
|
|
1619
|
+
if (this._panAnim || (this._panAnim = new $s(), this._panAnim.on({
|
|
1620
1620
|
step: this._onPanTransitionStep,
|
|
1621
1621
|
end: this._onPanTransitionEnd
|
|
1622
1622
|
}, this)), s.noMoveStart || this.fire("movestart"), s.animate !== !1) {
|
|
@@ -1638,7 +1638,7 @@ function cn() {
|
|
|
1638
1638
|
t = K(t), s = s === void 0 ? C : s;
|
|
1639
1639
|
var P = Math.max(M.x, M.y), T = P * this.getZoomScale(C, s), S = p.distanceTo(f) || 1, R = 1.42, U = R * R;
|
|
1640
1640
|
function $(mt) {
|
|
1641
|
-
var Ui = mt ? -1 : 1, rh = mt ? T : P, oh = T * T - P * P + Ui * U * U * S * S, hh = 2 * rh * U * S, Vn = oh / hh,
|
|
1641
|
+
var Ui = mt ? -1 : 1, rh = mt ? T : P, oh = T * T - P * P + Ui * U * U * S * S, hh = 2 * rh * U * S, Vn = oh / hh, Ta = Math.sqrt(Vn * Vn + 1) - Vn, lh = Ta < 1e-9 ? -18 : Math.log(Ta);
|
|
1642
1642
|
return lh;
|
|
1643
1643
|
}
|
|
1644
1644
|
function xt(mt) {
|
|
@@ -1660,16 +1660,16 @@ function cn() {
|
|
|
1660
1660
|
function nh(mt) {
|
|
1661
1661
|
return 1 - Math.pow(1 - mt, 1.5);
|
|
1662
1662
|
}
|
|
1663
|
-
var sh = Date.now(),
|
|
1664
|
-
function
|
|
1665
|
-
var mt = (Date.now() - sh) / ah, Ui = nh(mt) *
|
|
1666
|
-
mt <= 1 ? (this._flyToFrame = Q(
|
|
1663
|
+
var sh = Date.now(), Pa = ($(1) - kt) / R, ah = l.duration ? 1e3 * l.duration : 1e3 * Pa * 0.8;
|
|
1664
|
+
function ka() {
|
|
1665
|
+
var mt = (Date.now() - sh) / ah, Ui = nh(mt) * Pa;
|
|
1666
|
+
mt <= 1 ? (this._flyToFrame = Q(ka, this), this._move(
|
|
1667
1667
|
this.unproject(f.add(p.subtract(f).multiplyBy(ih(Ui) / S)), C),
|
|
1668
1668
|
this.getScaleZoom(P / Ae(Ui), C),
|
|
1669
1669
|
{ flyTo: !0 }
|
|
1670
1670
|
)) : this._move(t, s)._moveEnd(!0);
|
|
1671
1671
|
}
|
|
1672
|
-
return this._moveStart(!0, l.noMoveStart),
|
|
1672
|
+
return this._moveStart(!0, l.noMoveStart), ka.call(this), this;
|
|
1673
1673
|
},
|
|
1674
1674
|
// @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this
|
|
1675
1675
|
// Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),
|
|
@@ -2027,7 +2027,7 @@ function cn() {
|
|
|
2027
2027
|
// Given a MouseEvent object, returns the pixel coordinate relative to the
|
|
2028
2028
|
// map container where the event took place.
|
|
2029
2029
|
mouseEventToContainerPoint: function(t) {
|
|
2030
|
-
return
|
|
2030
|
+
return js(t, this._container);
|
|
2031
2031
|
},
|
|
2032
2032
|
// @method mouseEventToLayerPoint(ev: MouseEvent): Point
|
|
2033
2033
|
// Given a MouseEvent object, returns the pixel coordinate relative to
|
|
@@ -2043,7 +2043,7 @@ function cn() {
|
|
|
2043
2043
|
},
|
|
2044
2044
|
// map initialization methods
|
|
2045
2045
|
_initContainer: function(t) {
|
|
2046
|
-
var s = this._container =
|
|
2046
|
+
var s = this._container = Us(t);
|
|
2047
2047
|
if (s) {
|
|
2048
2048
|
if (s._leaflet_id)
|
|
2049
2049
|
throw new Error("Map container is already initialized.");
|
|
@@ -2380,7 +2380,7 @@ function cn() {
|
|
|
2380
2380
|
lt(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
|
2381
2381
|
}
|
|
2382
2382
|
});
|
|
2383
|
-
var
|
|
2383
|
+
var Xs = Dt.extend({
|
|
2384
2384
|
// @section
|
|
2385
2385
|
// @aka Control.Layers options
|
|
2386
2386
|
options: {
|
|
@@ -2549,7 +2549,7 @@ function cn() {
|
|
|
2549
2549
|
});
|
|
2550
2550
|
}
|
|
2551
2551
|
}), Mo = function(t, s, l) {
|
|
2552
|
-
return new
|
|
2552
|
+
return new Xs(t, s, l);
|
|
2553
2553
|
}, Dn = Dt.extend({
|
|
2554
2554
|
// @section
|
|
2555
2555
|
// @aka Control.Zoom options
|
|
@@ -2615,7 +2615,7 @@ function cn() {
|
|
|
2615
2615
|
});
|
|
2616
2616
|
var Lo = function(t) {
|
|
2617
2617
|
return new Dn(t);
|
|
2618
|
-
},
|
|
2618
|
+
}, Ks = Dt.extend({
|
|
2619
2619
|
// @section
|
|
2620
2620
|
// @aka Control.Scale options
|
|
2621
2621
|
options: {
|
|
@@ -2668,7 +2668,7 @@ function cn() {
|
|
|
2668
2668
|
return l = l >= 10 ? 10 : l >= 5 ? 5 : l >= 3 ? 3 : l >= 2 ? 2 : 1, s * l;
|
|
2669
2669
|
}
|
|
2670
2670
|
}), wo = function(t) {
|
|
2671
|
-
return new
|
|
2671
|
+
return new Ks(t);
|
|
2672
2672
|
}, xo = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>', Bn = Dt.extend({
|
|
2673
2673
|
// @section
|
|
2674
2674
|
// @aka Control.Attribution options
|
|
@@ -2728,7 +2728,7 @@ function cn() {
|
|
|
2728
2728
|
var Co = function(t) {
|
|
2729
2729
|
return new Bn(t);
|
|
2730
2730
|
};
|
|
2731
|
-
Dt.Layers =
|
|
2731
|
+
Dt.Layers = Xs, Dt.Zoom = Dn, Dt.Scale = Ks, Dt.Attribution = Bn, Ke.layers = Mo, Ke.zoom = Lo, Ke.scale = wo, Ke.attribution = Co;
|
|
2732
2732
|
var Ht = Pt.extend({
|
|
2733
2733
|
initialize: function(t) {
|
|
2734
2734
|
this._map = t;
|
|
@@ -2758,7 +2758,7 @@ function cn() {
|
|
|
2758
2758
|
Ht.addTo = function(t, s) {
|
|
2759
2759
|
return t.addHandler(s, this), this;
|
|
2760
2760
|
};
|
|
2761
|
-
var bo = { Events: wt },
|
|
2761
|
+
var bo = { Events: wt }, Js = G.touch ? "touchstart mousedown" : "mousedown", se = de.extend({
|
|
2762
2762
|
options: {
|
|
2763
2763
|
// @section
|
|
2764
2764
|
// @aka Draggable options
|
|
@@ -2775,12 +2775,12 @@ function cn() {
|
|
|
2775
2775
|
// @method enable()
|
|
2776
2776
|
// Enables the dragging ability
|
|
2777
2777
|
enable: function() {
|
|
2778
|
-
this._enabled || (j(this._dragStartTarget,
|
|
2778
|
+
this._enabled || (j(this._dragStartTarget, Js, this._onDown, this), this._enabled = !0);
|
|
2779
2779
|
},
|
|
2780
2780
|
// @method disable()
|
|
2781
2781
|
// Disables the dragging ability
|
|
2782
2782
|
disable: function() {
|
|
2783
|
-
this._enabled && (se._dragging === this && this.finishDrag(!0), rt(this._dragStartTarget,
|
|
2783
|
+
this._enabled && (se._dragging === this && this.finishDrag(!0), rt(this._dragStartTarget, Js, this._onDown, this), this._enabled = !1, this._moved = !1);
|
|
2784
2784
|
},
|
|
2785
2785
|
_onDown: function(t) {
|
|
2786
2786
|
if (this._enabled && (this._moved = !1, !Cn(this._element, "leaflet-zoom-anim"))) {
|
|
@@ -2790,7 +2790,7 @@ function cn() {
|
|
|
2790
2790
|
}
|
|
2791
2791
|
if (!(se._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (se._dragging = this, this._preventOutline && Sn(this._element), kn(), je(), !this._moving)) {
|
|
2792
2792
|
this.fire("down");
|
|
2793
|
-
var s = t.touches ? t.touches[0] : t, l =
|
|
2793
|
+
var s = t.touches ? t.touches[0] : t, l = Hs(this._element);
|
|
2794
2794
|
this._startPoint = new W(s.clientX, s.clientY), this._startPos = me(this._element), this._parentScale = An(l);
|
|
2795
2795
|
var f = t.type === "mousedown";
|
|
2796
2796
|
j(document, f ? "mousemove" : "touchmove", this._onMove, this), j(document, f ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
|
@@ -2823,7 +2823,7 @@ function cn() {
|
|
|
2823
2823
|
});
|
|
2824
2824
|
}
|
|
2825
2825
|
});
|
|
2826
|
-
function
|
|
2826
|
+
function Ys(t, s, l) {
|
|
2827
2827
|
var f, p = [1, 4, 2, 8], M, C, P, T, S, R, U, $;
|
|
2828
2828
|
for (M = 0, R = t.length; M < R; M++)
|
|
2829
2829
|
t[M]._code = pe(t[M], s);
|
|
@@ -2834,7 +2834,7 @@ function cn() {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
return t;
|
|
2836
2836
|
}
|
|
2837
|
-
function
|
|
2837
|
+
function Qs(t, s) {
|
|
2838
2838
|
var l, f, p, M, C, P, T, S, R;
|
|
2839
2839
|
if (!t || t.length === 0)
|
|
2840
2840
|
throw new Error("latlngs not passed");
|
|
@@ -2861,17 +2861,17 @@ function cn() {
|
|
|
2861
2861
|
}
|
|
2862
2862
|
var Po = {
|
|
2863
2863
|
__proto__: null,
|
|
2864
|
-
clipPolygon:
|
|
2865
|
-
polygonCenter:
|
|
2864
|
+
clipPolygon: Ys,
|
|
2865
|
+
polygonCenter: Qs,
|
|
2866
2866
|
centroid: Zn
|
|
2867
2867
|
};
|
|
2868
|
-
function
|
|
2868
|
+
function ta(t, s) {
|
|
2869
2869
|
if (!s || !t.length)
|
|
2870
2870
|
return t.slice();
|
|
2871
2871
|
var l = s * s;
|
|
2872
2872
|
return t = Eo(t, l), t = To(t, l), t;
|
|
2873
2873
|
}
|
|
2874
|
-
function
|
|
2874
|
+
function ea(t, s, l) {
|
|
2875
2875
|
return Math.sqrt(Je(t, s, l, !0));
|
|
2876
2876
|
}
|
|
2877
2877
|
function ko(t, s, l) {
|
|
@@ -2896,10 +2896,10 @@ function cn() {
|
|
|
2896
2896
|
So(t[f], t[p]) > s && (l.push(t[f]), p = f);
|
|
2897
2897
|
return p < M - 1 && l.push(t[M - 1]), l;
|
|
2898
2898
|
}
|
|
2899
|
-
var
|
|
2900
|
-
function
|
|
2901
|
-
var M = f ?
|
|
2902
|
-
for (
|
|
2899
|
+
var ia;
|
|
2900
|
+
function na(t, s, l, f, p) {
|
|
2901
|
+
var M = f ? ia : pe(t, l), C = pe(s, l), P, T, S;
|
|
2902
|
+
for (ia = C; ; ) {
|
|
2903
2903
|
if (!(M | C))
|
|
2904
2904
|
return [t, s];
|
|
2905
2905
|
if (M & C)
|
|
@@ -2926,10 +2926,10 @@ function cn() {
|
|
|
2926
2926
|
function zt(t) {
|
|
2927
2927
|
return !E(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] != "undefined";
|
|
2928
2928
|
}
|
|
2929
|
-
function
|
|
2929
|
+
function sa(t) {
|
|
2930
2930
|
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), zt(t);
|
|
2931
2931
|
}
|
|
2932
|
-
function
|
|
2932
|
+
function aa(t, s) {
|
|
2933
2933
|
var l, f, p, M, C, P, T, S;
|
|
2934
2934
|
if (!t || t.length === 0)
|
|
2935
2935
|
throw new Error("latlngs not passed");
|
|
@@ -2959,16 +2959,16 @@ function cn() {
|
|
|
2959
2959
|
}
|
|
2960
2960
|
var Ao = {
|
|
2961
2961
|
__proto__: null,
|
|
2962
|
-
simplify:
|
|
2963
|
-
pointToSegmentDistance:
|
|
2962
|
+
simplify: ta,
|
|
2963
|
+
pointToSegmentDistance: ea,
|
|
2964
2964
|
closestPointOnSegment: ko,
|
|
2965
|
-
clipSegment:
|
|
2965
|
+
clipSegment: na,
|
|
2966
2966
|
_getEdgeIntersection: Ai,
|
|
2967
2967
|
_getBitCode: pe,
|
|
2968
2968
|
_sqClosestPointOnSegment: Je,
|
|
2969
2969
|
isFlat: zt,
|
|
2970
|
-
_flat:
|
|
2971
|
-
polylineCenter:
|
|
2970
|
+
_flat: sa,
|
|
2971
|
+
polylineCenter: aa
|
|
2972
2972
|
}, Fn = {
|
|
2973
2973
|
project: function(t) {
|
|
2974
2974
|
return new W(t.lng, t.lat);
|
|
@@ -3002,7 +3002,7 @@ function cn() {
|
|
|
3002
3002
|
var t = 0.5 / (Math.PI * Un.R);
|
|
3003
3003
|
return Ue(t, 0.5, -t, 0.5);
|
|
3004
3004
|
}()
|
|
3005
|
-
}),
|
|
3005
|
+
}), ra = o({}, ne, {
|
|
3006
3006
|
code: "EPSG:4326",
|
|
3007
3007
|
projection: Fn,
|
|
3008
3008
|
transformation: Ue(1 / 180, 1, -1 / 180, 0.5)
|
|
@@ -3021,7 +3021,7 @@ function cn() {
|
|
|
3021
3021
|
},
|
|
3022
3022
|
infinite: !0
|
|
3023
3023
|
});
|
|
3024
|
-
Xt.Earth = ne, Xt.EPSG3395 = Oo, Xt.EPSG3857 = gn, Xt.EPSG900913 = Zr, Xt.EPSG4326 =
|
|
3024
|
+
Xt.Earth = ne, Xt.EPSG3395 = Oo, Xt.EPSG3857 = gn, Xt.EPSG900913 = Zr, Xt.EPSG4326 = ra, Xt.Simple = zo;
|
|
3025
3025
|
var Bt = de.extend({
|
|
3026
3026
|
// Classes extending `L.Layer` will inherit the following options:
|
|
3027
3027
|
options: {
|
|
@@ -3378,7 +3378,7 @@ function cn() {
|
|
|
3378
3378
|
var l = document.querySelector('link[href$="leaflet.css"]');
|
|
3379
3379
|
return l ? l.href.substring(0, l.href.length - 11 - 1) : "";
|
|
3380
3380
|
}
|
|
3381
|
-
}),
|
|
3381
|
+
}), oa = Ht.extend({
|
|
3382
3382
|
initialize: function(t) {
|
|
3383
3383
|
this._marker = t;
|
|
3384
3384
|
},
|
|
@@ -3576,9 +3576,9 @@ function cn() {
|
|
|
3576
3576
|
this._setPos(s);
|
|
3577
3577
|
},
|
|
3578
3578
|
_initInteraction: function() {
|
|
3579
|
-
if (this.options.interactive && (V(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon),
|
|
3579
|
+
if (this.options.interactive && (V(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), oa)) {
|
|
3580
3580
|
var t = this.options.draggable;
|
|
3581
|
-
this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new
|
|
3581
|
+
this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new oa(this), t && this.dragging.enable();
|
|
3582
3582
|
}
|
|
3583
3583
|
},
|
|
3584
3584
|
// @method setOpacity(opacity: Number): this
|
|
@@ -3850,7 +3850,7 @@ function cn() {
|
|
|
3850
3850
|
getCenter: function() {
|
|
3851
3851
|
if (!this._map)
|
|
3852
3852
|
throw new Error("Must add layer to map before using getCenter()");
|
|
3853
|
-
return
|
|
3853
|
+
return aa(this._defaultShape(), this._map.options.crs);
|
|
3854
3854
|
},
|
|
3855
3855
|
// @method getBounds(): LatLngBounds
|
|
3856
3856
|
// Returns the `LatLngBounds` of the path.
|
|
@@ -3909,13 +3909,13 @@ function cn() {
|
|
|
3909
3909
|
var s = this._parts, l, f, p, M, C, P, T;
|
|
3910
3910
|
for (l = 0, p = 0, M = this._rings.length; l < M; l++)
|
|
3911
3911
|
for (T = this._rings[l], f = 0, C = T.length; f < C - 1; f++)
|
|
3912
|
-
P =
|
|
3912
|
+
P = na(T[f], T[f + 1], t, f, !0), P && (s[p] = s[p] || [], s[p].push(P[0]), (P[1] !== T[f + 1] || f === C - 2) && (s[p].push(P[1]), p++));
|
|
3913
3913
|
}
|
|
3914
3914
|
},
|
|
3915
3915
|
// simplify each clipped part of the polyline for performance
|
|
3916
3916
|
_simplifyPoints: function() {
|
|
3917
3917
|
for (var t = this._parts, s = this.options.smoothFactor, l = 0, f = t.length; l < f; l++)
|
|
3918
|
-
t[l] =
|
|
3918
|
+
t[l] = ta(t[l], s);
|
|
3919
3919
|
},
|
|
3920
3920
|
_update: function() {
|
|
3921
3921
|
this._map && (this._clipPoints(), this._simplifyPoints(), this._updatePath());
|
|
@@ -3930,7 +3930,7 @@ function cn() {
|
|
|
3930
3930
|
return !1;
|
|
3931
3931
|
for (l = 0, M = this._parts.length; l < M; l++)
|
|
3932
3932
|
for (P = this._parts[l], f = 0, C = P.length, p = C - 1; f < C; p = f++)
|
|
3933
|
-
if (!(!s && f === 0) &&
|
|
3933
|
+
if (!(!s && f === 0) && ea(t, P[p], P[f]) <= T)
|
|
3934
3934
|
return !0;
|
|
3935
3935
|
return !1;
|
|
3936
3936
|
}
|
|
@@ -3938,7 +3938,7 @@ function cn() {
|
|
|
3938
3938
|
function Fo(t, s) {
|
|
3939
3939
|
return new Jt(t, s);
|
|
3940
3940
|
}
|
|
3941
|
-
Jt._flat =
|
|
3941
|
+
Jt._flat = sa;
|
|
3942
3942
|
var Te = Jt.extend({
|
|
3943
3943
|
options: {
|
|
3944
3944
|
fill: !0
|
|
@@ -3951,7 +3951,7 @@ function cn() {
|
|
|
3951
3951
|
getCenter: function() {
|
|
3952
3952
|
if (!this._map)
|
|
3953
3953
|
throw new Error("Must add layer to map before using getCenter()");
|
|
3954
|
-
return
|
|
3954
|
+
return Qs(this._defaultShape(), this._map.options.crs);
|
|
3955
3955
|
},
|
|
3956
3956
|
_convertLatLngs: function(t) {
|
|
3957
3957
|
var s = Jt.prototype._convertLatLngs.call(this, t), l = s.length;
|
|
@@ -3971,7 +3971,7 @@ function cn() {
|
|
|
3971
3971
|
return;
|
|
3972
3972
|
}
|
|
3973
3973
|
for (var f = 0, p = this._rings.length, M; f < p; f++)
|
|
3974
|
-
M =
|
|
3974
|
+
M = Ys(this._rings[f], t, !0), M.length && this._parts.push(M);
|
|
3975
3975
|
}
|
|
3976
3976
|
},
|
|
3977
3977
|
_updatePath: function() {
|
|
@@ -4082,10 +4082,10 @@ function cn() {
|
|
|
4082
4082
|
return null;
|
|
4083
4083
|
switch (l.type) {
|
|
4084
4084
|
case "Point":
|
|
4085
|
-
return P = C(f),
|
|
4085
|
+
return P = C(f), ha(M, t, P, s);
|
|
4086
4086
|
case "MultiPoint":
|
|
4087
4087
|
for (S = 0, R = f.length; S < R; S++)
|
|
4088
|
-
P = C(f[S]), p.push(
|
|
4088
|
+
P = C(f[S]), p.push(ha(M, t, P, s));
|
|
4089
4089
|
return new Kt(p);
|
|
4090
4090
|
case "LineString":
|
|
4091
4091
|
case "MultiLineString":
|
|
@@ -4113,7 +4113,7 @@ function cn() {
|
|
|
4113
4113
|
throw new Error("Invalid GeoJSON object.");
|
|
4114
4114
|
}
|
|
4115
4115
|
}
|
|
4116
|
-
function
|
|
4116
|
+
function ha(t, s, l, f) {
|
|
4117
4117
|
return t ? t(s, l) : new Ii(l, f && f.markersInheritOptions && f);
|
|
4118
4118
|
}
|
|
4119
4119
|
function qn(t) {
|
|
@@ -4203,10 +4203,10 @@ function cn() {
|
|
|
4203
4203
|
};
|
|
4204
4204
|
}
|
|
4205
4205
|
});
|
|
4206
|
-
function
|
|
4206
|
+
function la(t, s) {
|
|
4207
4207
|
return new Yt(t, s);
|
|
4208
4208
|
}
|
|
4209
|
-
var Ho =
|
|
4209
|
+
var Ho = la, Bi = Bt.extend({
|
|
4210
4210
|
// @section
|
|
4211
4211
|
// @aka ImageOverlay options
|
|
4212
4212
|
options: {
|
|
@@ -4331,7 +4331,7 @@ function cn() {
|
|
|
4331
4331
|
}
|
|
4332
4332
|
}), qo = function(t, s, l) {
|
|
4333
4333
|
return new Bi(t, s, l);
|
|
4334
|
-
},
|
|
4334
|
+
}, ua = Bi.extend({
|
|
4335
4335
|
// @section
|
|
4336
4336
|
// @aka VideoOverlay options
|
|
4337
4337
|
options: {
|
|
@@ -4372,9 +4372,9 @@ function cn() {
|
|
|
4372
4372
|
// used by this overlay.
|
|
4373
4373
|
});
|
|
4374
4374
|
function Wo(t, s, l) {
|
|
4375
|
-
return new
|
|
4375
|
+
return new ua(t, s, l);
|
|
4376
4376
|
}
|
|
4377
|
-
var
|
|
4377
|
+
var ca = Bi.extend({
|
|
4378
4378
|
_initImage: function() {
|
|
4379
4379
|
var t = this._image = this._url;
|
|
4380
4380
|
V(t, "leaflet-image-layer"), this._zoomAnimated && V(t, "leaflet-zoom-animated"), this.options.className && V(t, this.options.className), t.onselectstart = g, t.onmousemove = g;
|
|
@@ -4384,7 +4384,7 @@ function cn() {
|
|
|
4384
4384
|
// used by this overlay.
|
|
4385
4385
|
});
|
|
4386
4386
|
function jo(t, s, l) {
|
|
4387
|
-
return new
|
|
4387
|
+
return new ca(t, s, l);
|
|
4388
4388
|
}
|
|
4389
4389
|
var qt = Bt.extend({
|
|
4390
4390
|
// @section
|
|
@@ -4922,7 +4922,7 @@ function cn() {
|
|
|
4922
4922
|
this._tooltip.options.sticky && t.originalEvent && (l = this._map.mouseEventToContainerPoint(t.originalEvent), f = this._map.containerPointToLayerPoint(l), s = this._map.layerPointToLatLng(f)), this._tooltip.setLatLng(s);
|
|
4923
4923
|
}
|
|
4924
4924
|
});
|
|
4925
|
-
var
|
|
4925
|
+
var da = ke.extend({
|
|
4926
4926
|
options: {
|
|
4927
4927
|
// @section
|
|
4928
4928
|
// @aka DivIcon options
|
|
@@ -4952,7 +4952,7 @@ function cn() {
|
|
|
4952
4952
|
}
|
|
4953
4953
|
});
|
|
4954
4954
|
function Xo(t) {
|
|
4955
|
-
return new
|
|
4955
|
+
return new da(t);
|
|
4956
4956
|
}
|
|
4957
4957
|
ke.Default = Ye;
|
|
4958
4958
|
var Qe = Bt.extend({
|
|
@@ -5478,10 +5478,10 @@ function cn() {
|
|
|
5478
5478
|
return Qe.prototype._tileReady.call(this, t, s, l);
|
|
5479
5479
|
}
|
|
5480
5480
|
});
|
|
5481
|
-
function
|
|
5481
|
+
function fa(t, s) {
|
|
5482
5482
|
return new Se(t, s);
|
|
5483
5483
|
}
|
|
5484
|
-
var
|
|
5484
|
+
var ma = Se.extend({
|
|
5485
5485
|
// @section
|
|
5486
5486
|
// @aka TileLayer.WMS options
|
|
5487
5487
|
// If any custom options not documented here are used, they will be sent to the
|
|
@@ -5530,7 +5530,7 @@ function cn() {
|
|
|
5530
5530
|
this.wmsParams[s] = this._crs.code, Se.prototype.onAdd.call(this, t);
|
|
5531
5531
|
},
|
|
5532
5532
|
getTileUrl: function(t) {
|
|
5533
|
-
var s = this._tileCoordsToNwSe(t), l = this._crs, f = gt(l.project(s[0]), l.project(s[1])), p = f.min, M = f.max, C = (this._wmsVersion >= 1.3 && this._crs ===
|
|
5533
|
+
var s = this._tileCoordsToNwSe(t), l = this._crs, f = gt(l.project(s[0]), l.project(s[1])), p = f.min, M = f.max, C = (this._wmsVersion >= 1.3 && this._crs === ra ? [p.y, p.x, M.y, M.x] : [p.x, p.y, M.x, M.y]).join(","), P = Se.prototype.getTileUrl.call(this, t);
|
|
5534
5534
|
return P + x(this.wmsParams, P, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + C;
|
|
5535
5535
|
},
|
|
5536
5536
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
|
@@ -5540,9 +5540,9 @@ function cn() {
|
|
|
5540
5540
|
}
|
|
5541
5541
|
});
|
|
5542
5542
|
function Jo(t, s) {
|
|
5543
|
-
return new
|
|
5543
|
+
return new ma(t, s);
|
|
5544
5544
|
}
|
|
5545
|
-
Se.WMS =
|
|
5545
|
+
Se.WMS = ma, fa.wms = Jo;
|
|
5546
5546
|
var Qt = Bt.extend({
|
|
5547
5547
|
// @section
|
|
5548
5548
|
// @aka Renderer options
|
|
@@ -5597,7 +5597,7 @@ function cn() {
|
|
|
5597
5597
|
var t = this.options.padding, s = this._map.getSize(), l = this._map.containerPointToLayerPoint(s.multiplyBy(-t)).round();
|
|
5598
5598
|
this._bounds = new ot(l, l.add(s.multiplyBy(1 + t * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
|
|
5599
5599
|
}
|
|
5600
|
-
}),
|
|
5600
|
+
}), _a = Qt.extend({
|
|
5601
5601
|
// @section
|
|
5602
5602
|
// @aka Canvas options
|
|
5603
5603
|
options: {
|
|
@@ -5781,8 +5781,8 @@ function cn() {
|
|
|
5781
5781
|
}
|
|
5782
5782
|
}
|
|
5783
5783
|
});
|
|
5784
|
-
function
|
|
5785
|
-
return G.canvas ? new
|
|
5784
|
+
function ga(t) {
|
|
5785
|
+
return G.canvas ? new _a(t) : null;
|
|
5786
5786
|
}
|
|
5787
5787
|
var ti = function() {
|
|
5788
5788
|
try {
|
|
@@ -5830,7 +5830,7 @@ function cn() {
|
|
|
5830
5830
|
_bringToBack: function(t) {
|
|
5831
5831
|
be(t._container);
|
|
5832
5832
|
}
|
|
5833
|
-
}, Fi = G.vml ? ti :
|
|
5833
|
+
}, Fi = G.vml ? ti : Ms, ei = Qt.extend({
|
|
5834
5834
|
_initContainer: function() {
|
|
5835
5835
|
this._container = Fi("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = Fi("g"), this._container.appendChild(this._rootGroup);
|
|
5836
5836
|
},
|
|
@@ -5863,7 +5863,7 @@ function cn() {
|
|
|
5863
5863
|
s && (l.stroke ? (s.setAttribute("stroke", l.color), s.setAttribute("stroke-opacity", l.opacity), s.setAttribute("stroke-width", l.weight), s.setAttribute("stroke-linecap", l.lineCap), s.setAttribute("stroke-linejoin", l.lineJoin), l.dashArray ? s.setAttribute("stroke-dasharray", l.dashArray) : s.removeAttribute("stroke-dasharray"), l.dashOffset ? s.setAttribute("stroke-dashoffset", l.dashOffset) : s.removeAttribute("stroke-dashoffset")) : s.setAttribute("stroke", "none"), l.fill ? (s.setAttribute("fill", l.fillColor || l.color), s.setAttribute("fill-opacity", l.fillOpacity), s.setAttribute("fill-rule", l.fillRule || "evenodd")) : s.setAttribute("fill", "none"));
|
|
5864
5864
|
},
|
|
5865
5865
|
_updatePoly: function(t, s) {
|
|
5866
|
-
this._setPath(t,
|
|
5866
|
+
this._setPath(t, Ls(t._parts, s));
|
|
5867
5867
|
},
|
|
5868
5868
|
_updateCircle: function(t) {
|
|
5869
5869
|
var s = t._point, l = Math.max(Math.round(t._radius), 1), f = Math.max(Math.round(t._radiusY), 1) || l, p = "a" + l + "," + f + " 0 1,0 ", M = t._empty() ? "M0 0" : "M" + (s.x - l) + "," + s.y + p + l * 2 + ",0 " + p + -l * 2 + ",0 ";
|
|
@@ -5881,7 +5881,7 @@ function cn() {
|
|
|
5881
5881
|
}
|
|
5882
5882
|
});
|
|
5883
5883
|
G.vml && ei.include(Yo);
|
|
5884
|
-
function
|
|
5884
|
+
function pa(t) {
|
|
5885
5885
|
return G.svg || G.vml ? new ei(t) : null;
|
|
5886
5886
|
}
|
|
5887
5887
|
tt.include({
|
|
@@ -5900,10 +5900,10 @@ function cn() {
|
|
|
5900
5900
|
return s === void 0 && (s = this._createRenderer({ pane: t }), this._paneRenderers[t] = s), s;
|
|
5901
5901
|
},
|
|
5902
5902
|
_createRenderer: function(t) {
|
|
5903
|
-
return this.options.preferCanvas &&
|
|
5903
|
+
return this.options.preferCanvas && ga(t) || pa(t);
|
|
5904
5904
|
}
|
|
5905
5905
|
});
|
|
5906
|
-
var
|
|
5906
|
+
var va = Te.extend({
|
|
5907
5907
|
initialize: function(t, s) {
|
|
5908
5908
|
Te.prototype.initialize.call(this, this._boundsToLatLngs(t), s);
|
|
5909
5909
|
},
|
|
@@ -5922,15 +5922,15 @@ function cn() {
|
|
|
5922
5922
|
}
|
|
5923
5923
|
});
|
|
5924
5924
|
function Qo(t, s) {
|
|
5925
|
-
return new
|
|
5925
|
+
return new va(t, s);
|
|
5926
5926
|
}
|
|
5927
|
-
ei.create = Fi, ei.pointsToPath =
|
|
5927
|
+
ei.create = Fi, ei.pointsToPath = Ls, Yt.geometryToLayer = zi, Yt.coordsToLatLng = qn, Yt.coordsToLatLngs = Ri, Yt.latLngToCoords = Wn, Yt.latLngsToCoords = Ni, Yt.getFeature = Ee, Yt.asFeature = Di, tt.mergeOptions({
|
|
5928
5928
|
// @option boxZoom: Boolean = true
|
|
5929
5929
|
// Whether the map can be zoomed to a rectangular area specified by
|
|
5930
5930
|
// dragging the mouse while pressing the shift key.
|
|
5931
5931
|
boxZoom: !0
|
|
5932
5932
|
});
|
|
5933
|
-
var
|
|
5933
|
+
var ya = Ht.extend({
|
|
5934
5934
|
initialize: function(t) {
|
|
5935
5935
|
this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this._resetStateTimeout = 0, t.on("unload", this._destroy, this);
|
|
5936
5936
|
},
|
|
@@ -5989,7 +5989,7 @@ function cn() {
|
|
|
5989
5989
|
t.keyCode === 27 && (this._finish(), this._clearDeferredResetState(), this._resetState());
|
|
5990
5990
|
}
|
|
5991
5991
|
});
|
|
5992
|
-
tt.addInitHook("addHandler", "boxZoom",
|
|
5992
|
+
tt.addInitHook("addHandler", "boxZoom", ya), tt.mergeOptions({
|
|
5993
5993
|
// @option doubleClickZoom: Boolean|String = true
|
|
5994
5994
|
// Whether the map can be zoomed in by double clicking on it and
|
|
5995
5995
|
// zoomed out by double clicking while holding shift. If passed
|
|
@@ -5997,7 +5997,7 @@ function cn() {
|
|
|
5997
5997
|
// view regardless of where the mouse was.
|
|
5998
5998
|
doubleClickZoom: !0
|
|
5999
5999
|
});
|
|
6000
|
-
var
|
|
6000
|
+
var Ma = Ht.extend({
|
|
6001
6001
|
addHooks: function() {
|
|
6002
6002
|
this._map.on("dblclick", this._onDoubleClick, this);
|
|
6003
6003
|
},
|
|
@@ -6009,7 +6009,7 @@ function cn() {
|
|
|
6009
6009
|
s.options.doubleClickZoom === "center" ? s.setZoom(p) : s.setZoomAround(t.containerPoint, p);
|
|
6010
6010
|
}
|
|
6011
6011
|
});
|
|
6012
|
-
tt.addInitHook("addHandler", "doubleClickZoom",
|
|
6012
|
+
tt.addInitHook("addHandler", "doubleClickZoom", Ma), tt.mergeOptions({
|
|
6013
6013
|
// @option dragging: Boolean = true
|
|
6014
6014
|
// Whether the map is draggable with mouse/touch or not.
|
|
6015
6015
|
dragging: !0,
|
|
@@ -6044,7 +6044,7 @@ function cn() {
|
|
|
6044
6044
|
// solid, preventing the user from dragging outside the bounds.
|
|
6045
6045
|
maxBoundsViscosity: 0
|
|
6046
6046
|
});
|
|
6047
|
-
var
|
|
6047
|
+
var La = Ht.extend({
|
|
6048
6048
|
addHooks: function() {
|
|
6049
6049
|
if (!this._draggable) {
|
|
6050
6050
|
var t = this._map;
|
|
@@ -6123,7 +6123,7 @@ function cn() {
|
|
|
6123
6123
|
}
|
|
6124
6124
|
}
|
|
6125
6125
|
});
|
|
6126
|
-
tt.addInitHook("addHandler", "dragging",
|
|
6126
|
+
tt.addInitHook("addHandler", "dragging", La), tt.mergeOptions({
|
|
6127
6127
|
// @option keyboard: Boolean = true
|
|
6128
6128
|
// Makes the map focusable and allows users to navigate the map with keyboard
|
|
6129
6129
|
// arrows and `+`/`-` keys.
|
|
@@ -6132,7 +6132,7 @@ function cn() {
|
|
|
6132
6132
|
// Amount of pixels to pan when pressing an arrow key.
|
|
6133
6133
|
keyboardPanDelta: 80
|
|
6134
6134
|
});
|
|
6135
|
-
var
|
|
6135
|
+
var wa = Ht.extend({
|
|
6136
6136
|
keyCodes: {
|
|
6137
6137
|
left: [37],
|
|
6138
6138
|
right: [39],
|
|
@@ -6221,7 +6221,7 @@ function cn() {
|
|
|
6221
6221
|
}
|
|
6222
6222
|
}
|
|
6223
6223
|
});
|
|
6224
|
-
tt.addInitHook("addHandler", "keyboard",
|
|
6224
|
+
tt.addInitHook("addHandler", "keyboard", wa), tt.mergeOptions({
|
|
6225
6225
|
// @section Mouse wheel options
|
|
6226
6226
|
// @option scrollWheelZoom: Boolean|String = true
|
|
6227
6227
|
// Whether the map can be zoomed by using the mouse wheel. If passed `'center'`,
|
|
@@ -6237,7 +6237,7 @@ function cn() {
|
|
|
6237
6237
|
// faster (and vice versa).
|
|
6238
6238
|
wheelPxPerZoomLevel: 60
|
|
6239
6239
|
});
|
|
6240
|
-
var
|
|
6240
|
+
var xa = Ht.extend({
|
|
6241
6241
|
addHooks: function() {
|
|
6242
6242
|
j(this._map._container, "wheel", this._onWheelScroll, this), this._delta = 0;
|
|
6243
6243
|
},
|
|
@@ -6245,7 +6245,7 @@ function cn() {
|
|
|
6245
6245
|
rt(this._map._container, "wheel", this._onWheelScroll, this);
|
|
6246
6246
|
},
|
|
6247
6247
|
_onWheelScroll: function(t) {
|
|
6248
|
-
var s =
|
|
6248
|
+
var s = Vs(t), l = this._map.options.wheelDebounceTime;
|
|
6249
6249
|
this._delta += s, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime = +/* @__PURE__ */ new Date());
|
|
6250
6250
|
var f = Math.max(l - (+/* @__PURE__ */ new Date() - this._startTime), 0);
|
|
6251
6251
|
clearTimeout(this._timer), this._timer = setTimeout(h(this._performZoom, this), f), ge(t);
|
|
@@ -6257,7 +6257,7 @@ function cn() {
|
|
|
6257
6257
|
this._delta = 0, this._startTime = null, C && (t.options.scrollWheelZoom === "center" ? t.setZoom(s + C) : t.setZoomAround(this._lastMousePos, s + C));
|
|
6258
6258
|
}
|
|
6259
6259
|
});
|
|
6260
|
-
tt.addInitHook("addHandler", "scrollWheelZoom",
|
|
6260
|
+
tt.addInitHook("addHandler", "scrollWheelZoom", xa);
|
|
6261
6261
|
var th = 600;
|
|
6262
6262
|
tt.mergeOptions({
|
|
6263
6263
|
// @section Touch interaction options
|
|
@@ -6269,7 +6269,7 @@ function cn() {
|
|
|
6269
6269
|
// for it to be considered a valid tap.
|
|
6270
6270
|
tapTolerance: 15
|
|
6271
6271
|
});
|
|
6272
|
-
var
|
|
6272
|
+
var Ca = Ht.extend({
|
|
6273
6273
|
addHooks: function() {
|
|
6274
6274
|
j(this._map._container, "touchstart", this._onDown, this);
|
|
6275
6275
|
},
|
|
@@ -6313,7 +6313,7 @@ function cn() {
|
|
|
6313
6313
|
l._simulated = !0, s.target.dispatchEvent(l);
|
|
6314
6314
|
}
|
|
6315
6315
|
});
|
|
6316
|
-
tt.addInitHook("addHandler", "tapHold",
|
|
6316
|
+
tt.addInitHook("addHandler", "tapHold", Ca), tt.mergeOptions({
|
|
6317
6317
|
// @section Touch interaction options
|
|
6318
6318
|
// @option touchZoom: Boolean|String = *
|
|
6319
6319
|
// Whether the map can be zoomed by touch-dragging with two fingers. If
|
|
@@ -6326,7 +6326,7 @@ function cn() {
|
|
|
6326
6326
|
// and then bounce back when pinch-zooming.
|
|
6327
6327
|
bounceAtZoomLimits: !0
|
|
6328
6328
|
});
|
|
6329
|
-
var
|
|
6329
|
+
var ba = Ht.extend({
|
|
6330
6330
|
addHooks: function() {
|
|
6331
6331
|
V(this._map._container, "leaflet-touch-zoom"), j(this._map._container, "touchstart", this._onTouchStart, this);
|
|
6332
6332
|
},
|
|
@@ -6365,7 +6365,7 @@ function cn() {
|
|
|
6365
6365
|
this._zooming = !1, at(this._animRequest), rt(document, "touchmove", this._onTouchMove, this), rt(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
6366
6366
|
}
|
|
6367
6367
|
});
|
|
6368
|
-
tt.addInitHook("addHandler", "touchZoom",
|
|
6368
|
+
tt.addInitHook("addHandler", "touchZoom", ba), tt.BoxZoom = ya, tt.DoubleClickZoom = Ma, tt.Drag = La, tt.Keyboard = wa, tt.ScrollWheelZoom = xa, tt.TapHold = Ca, tt.TouchZoom = ba, i.Bounds = ot, i.Browser = G, i.CRS = Xt, i.Canvas = _a, i.Circle = Hn, i.CircleMarker = Oi, i.Class = Pt, i.Control = Dt, i.DivIcon = da, i.DivOverlay = qt, i.DomEvent = vo, i.DomUtil = go, i.Draggable = se, i.Evented = de, i.FeatureGroup = Kt, i.GeoJSON = Yt, i.GridLayer = Qe, i.Handler = Ht, i.Icon = ke, i.ImageOverlay = Bi, i.LatLng = it, i.LatLngBounds = pt, i.Layer = Bt, i.LayerGroup = Pe, i.LineUtil = Ao, i.Map = tt, i.Marker = Ii, i.Mixin = bo, i.Path = ae, i.Point = W, i.PolyUtil = Po, i.Polygon = Te, i.Polyline = Jt, i.Popup = Zi, i.PosAnimation = $s, i.Projection = Io, i.Rectangle = va, i.Renderer = Qt, i.SVG = ei, i.SVGOverlay = ca, i.TileLayer = Se, i.Tooltip = Gi, i.Transformation = _n, i.Util = Gt, i.VideoOverlay = ua, i.bind = h, i.bounds = gt, i.canvas = ga, i.circle = Go, i.circleMarker = Zo, i.control = Ke, i.divIcon = Xo, i.extend = o, i.featureGroup = No, i.geoJSON = la, i.geoJson = Ho, i.gridLayer = Ko, i.icon = Do, i.imageOverlay = qo, i.latLng = K, i.latLngBounds = ht, i.layerGroup = Ro, i.map = yo, i.marker = Bo, i.point = H, i.polygon = Uo, i.polyline = Fo, i.popup = Vo, i.rectangle = Qo, i.setOptions = w, i.stamp = d, i.svg = pa, i.svgOverlay = jo, i.tileLayer = fa, i.tooltip = $o, i.transformation = Ue, i.version = a, i.videoOverlay = Wo;
|
|
6369
6369
|
var eh = window.L;
|
|
6370
6370
|
i.noConflict = function() {
|
|
6371
6371
|
return window.L = eh, this;
|
|
@@ -6373,11 +6373,11 @@ function cn() {
|
|
|
6373
6373
|
});
|
|
6374
6374
|
}(qi, qi.exports)), qi.exports;
|
|
6375
6375
|
}
|
|
6376
|
-
var
|
|
6377
|
-
const N = /* @__PURE__ */ mh(
|
|
6376
|
+
var ls = cn();
|
|
6377
|
+
const N = /* @__PURE__ */ mh(ls), om = /* @__PURE__ */ fh({
|
|
6378
6378
|
__proto__: null,
|
|
6379
6379
|
default: N
|
|
6380
|
-
}, [
|
|
6380
|
+
}, [ls]), ye = {
|
|
6381
6381
|
mapType: "GaoDe",
|
|
6382
6382
|
tileType: "Normal",
|
|
6383
6383
|
mapInfoShow: "",
|
|
@@ -6522,7 +6522,7 @@ N.Icon.Default.mergeOptions({
|
|
|
6522
6522
|
shadowUrl: $n.shadown,
|
|
6523
6523
|
imagePath: "data:image/png;base64,"
|
|
6524
6524
|
});
|
|
6525
|
-
const Qn = 18,
|
|
6525
|
+
const Qn = 18, ur = 20;
|
|
6526
6526
|
function vh(n, e, i, a) {
|
|
6527
6527
|
var c, _;
|
|
6528
6528
|
const o = ph[n], r = o[e].Map, h = o.key, u = h ? { [h]: o[h] } : {}, d = i.getCenter();
|
|
@@ -6530,7 +6530,7 @@ function vh(n, e, i, a) {
|
|
|
6530
6530
|
const m = X({
|
|
6531
6531
|
subdomains: o.Subdomains,
|
|
6532
6532
|
attribution: `${n} ${e}`,
|
|
6533
|
-
maxZoom: (c = i.options.maxZoom) != null ? c :
|
|
6533
|
+
maxZoom: (c = i.options.maxZoom) != null ? c : ur,
|
|
6534
6534
|
maxNativeZoom: Qn,
|
|
6535
6535
|
zIndex: 9
|
|
6536
6536
|
}, u);
|
|
@@ -6585,7 +6585,7 @@ function yh(n, e, i) {
|
|
|
6585
6585
|
({ url: c, options: _ }) => {
|
|
6586
6586
|
var y, w, x;
|
|
6587
6587
|
return N.tileLayer(c, At(X({}, _), {
|
|
6588
|
-
maxZoom: (w = (y = _ == null ? void 0 : _.maxZoom) != null ? y : n.options.maxZoom) != null ? w :
|
|
6588
|
+
maxZoom: (w = (y = _ == null ? void 0 : _.maxZoom) != null ? y : n.options.maxZoom) != null ? w : ur,
|
|
6589
6589
|
maxNativeZoom: (x = _ == null ? void 0 : _.maxNativeZoom) != null ? x : Qn,
|
|
6590
6590
|
zIndex: 100
|
|
6591
6591
|
}));
|
|
@@ -6628,11 +6628,11 @@ function Lh(n) {
|
|
|
6628
6628
|
}
|
|
6629
6629
|
};
|
|
6630
6630
|
}
|
|
6631
|
-
var
|
|
6631
|
+
var za = { exports: {} };
|
|
6632
6632
|
(function(n, e) {
|
|
6633
6633
|
(function(i, a) {
|
|
6634
6634
|
a(e);
|
|
6635
|
-
})(
|
|
6635
|
+
})(lr, function(i) {
|
|
6636
6636
|
var a = L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|
6637
6637
|
options: {
|
|
6638
6638
|
maxClusterRadius: 80,
|
|
@@ -7640,7 +7640,7 @@ var Oa = { exports: {} };
|
|
|
7640
7640
|
}
|
|
7641
7641
|
}), i.MarkerClusterGroup = a, i.MarkerCluster = o, Object.defineProperty(i, "__esModule", { value: !0 });
|
|
7642
7642
|
});
|
|
7643
|
-
})(
|
|
7643
|
+
})(za, za.exports);
|
|
7644
7644
|
const ve = 24, wh = `<svg xmlns="http://www.w3.org/2000/svg" width="${ve}" height="${ve}" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z" opacity="0.5"/><path fill="currentColor" d="M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z"><animateTransform attributeName="transform" dur="1s" from="0 12 12" repeatCount="indefinite" to="360 12 12" type="rotate"/></path></svg>`;
|
|
7645
7645
|
function xh(n) {
|
|
7646
7646
|
let e = 0;
|
|
@@ -7734,7 +7734,7 @@ function Ch(n) {
|
|
|
7734
7734
|
function ts(n) {
|
|
7735
7735
|
return n.GetUserData();
|
|
7736
7736
|
}
|
|
7737
|
-
function
|
|
7737
|
+
function cr(n, e) {
|
|
7738
7738
|
const i = n.GetUserData1();
|
|
7739
7739
|
i.customMarker = e;
|
|
7740
7740
|
}
|
|
@@ -7945,7 +7945,7 @@ function Ph(n, e, i) {
|
|
|
7945
7945
|
};
|
|
7946
7946
|
}
|
|
7947
7947
|
const c = g();
|
|
7948
|
-
return
|
|
7948
|
+
return cr(a, d), d;
|
|
7949
7949
|
}
|
|
7950
7950
|
class kh extends N.Polyline {
|
|
7951
7951
|
constructor(e, i) {
|
|
@@ -8046,7 +8046,7 @@ class Th {
|
|
|
8046
8046
|
(e = this.cancelMarkerHook) == null || e.call(this), this.polylineTrack.remove();
|
|
8047
8047
|
}
|
|
8048
8048
|
}
|
|
8049
|
-
const
|
|
8049
|
+
const Ra = [
|
|
8050
8050
|
"#5B8FF9",
|
|
8051
8051
|
"#E8684A",
|
|
8052
8052
|
"#9270CA",
|
|
@@ -8066,7 +8066,7 @@ class Eh {
|
|
|
8066
8066
|
});
|
|
8067
8067
|
}
|
|
8068
8068
|
getColor() {
|
|
8069
|
-
return
|
|
8069
|
+
return Ra[this.mapTrajektoria.size % Ra.length];
|
|
8070
8070
|
}
|
|
8071
8071
|
getTrajektoria(e) {
|
|
8072
8072
|
return this.mapTrajektoria.has(e) || this.mapTrajektoria.set(
|
|
@@ -8427,12 +8427,26 @@ const ji = {
|
|
|
8427
8427
|
horizontalPadding: 12,
|
|
8428
8428
|
font: "12px Arial, Microsoft YaHei, sans-serif"
|
|
8429
8429
|
};
|
|
8430
|
-
class
|
|
8430
|
+
class es extends N.Layer {
|
|
8431
8431
|
constructor(e = {}) {
|
|
8432
8432
|
super(), this.layerOptions = e, this.glCanvas = N.DomUtil.create("canvas", "leaflet-webgl-marker-layer"), this.titleCanvas = N.DomUtil.create("canvas", "leaflet-webgl-title-layer"), this.markers = [], this.markerSet = /* @__PURE__ */ new Set(), this.hiddenMarkers = /* @__PURE__ */ new Set(), this.markerChangeHandles = /* @__PURE__ */ new Map(), this.markerImageUrls = /* @__PURE__ */ new WeakMap(), this.textures = /* @__PURE__ */ new Map(), this.pendingImages = /* @__PURE__ */ new Set(), this.titleMetricsCache = /* @__PURE__ */ new Map(), this.titleMeasureCanvas = document.createElement("canvas"), this.redrawFrame = -1, this.drawToken = 0, this.topLeft = N.point(0, 0), this.drawZoom = 0, this.zooming = !1, this.currentDrawShowTitle = !0, [this.glCanvas, this.titleCanvas].forEach((i) => {
|
|
8433
8433
|
N.DomUtil.addClass(i, "leaflet-zoom-animated"), i.style.position = "absolute", i.style.transformOrigin = "0 0";
|
|
8434
8434
|
}), this.glCanvas.style.pointerEvents = "auto", this.titleCanvas.style.pointerEvents = "none";
|
|
8435
8435
|
}
|
|
8436
|
+
static isSupported() {
|
|
8437
|
+
try {
|
|
8438
|
+
const e = document.createElement("canvas");
|
|
8439
|
+
return !!(e.getContext("webgl", {
|
|
8440
|
+
alpha: !0,
|
|
8441
|
+
antialias: !1,
|
|
8442
|
+
depth: !1,
|
|
8443
|
+
stencil: !1,
|
|
8444
|
+
preserveDrawingBuffer: !1
|
|
8445
|
+
}) || e.getContext("experimental-webgl"));
|
|
8446
|
+
} catch (e) {
|
|
8447
|
+
return !1;
|
|
8448
|
+
}
|
|
8449
|
+
}
|
|
8436
8450
|
onAdd(e) {
|
|
8437
8451
|
this.map = e;
|
|
8438
8452
|
const i = e.getPanes().overlayPane;
|
|
@@ -8484,8 +8498,10 @@ class cr extends N.Layer {
|
|
|
8484
8498
|
stencil: !1,
|
|
8485
8499
|
preserveDrawingBuffer: !1
|
|
8486
8500
|
});
|
|
8487
|
-
if (!e)
|
|
8501
|
+
if (!e) {
|
|
8502
|
+
console.warn("[bvmap-leaflet] WebGL marker layer unavailable, no WebGL context.");
|
|
8488
8503
|
return;
|
|
8504
|
+
}
|
|
8489
8505
|
const i = this.createShader(
|
|
8490
8506
|
e,
|
|
8491
8507
|
e.VERTEX_SHADER,
|
|
@@ -8530,7 +8546,11 @@ class cr extends N.Layer {
|
|
|
8530
8546
|
}
|
|
8531
8547
|
`
|
|
8532
8548
|
), o = i && a ? this.createProgram(e, i, a) : void 0;
|
|
8533
|
-
|
|
8549
|
+
if (!o) {
|
|
8550
|
+
console.warn("[bvmap-leaflet] WebGL marker layer unavailable, shader program failed.");
|
|
8551
|
+
return;
|
|
8552
|
+
}
|
|
8553
|
+
this.gl = e, this.program = o, this.buffers = {
|
|
8534
8554
|
center: e.createBuffer(),
|
|
8535
8555
|
offset: e.createBuffer(),
|
|
8536
8556
|
texCoord: e.createBuffer(),
|
|
@@ -8543,7 +8563,7 @@ class cr extends N.Layer {
|
|
|
8543
8563
|
resolution: e.getUniformLocation(o, "u_resolution"),
|
|
8544
8564
|
image: e.getUniformLocation(o, "u_image"),
|
|
8545
8565
|
grayscale: e.getUniformLocation(o, "u_grayscale")
|
|
8546
|
-
}, e.useProgram(o), e.enable(e.BLEND), e.blendFunc(e.SRC_ALPHA, e.ONE_MINUS_SRC_ALPHA)
|
|
8566
|
+
}, e.useProgram(o), e.enable(e.BLEND), e.blendFunc(e.SRC_ALPHA, e.ONE_MINUS_SRC_ALPHA);
|
|
8547
8567
|
}
|
|
8548
8568
|
reset() {
|
|
8549
8569
|
var i;
|
|
@@ -8811,7 +8831,7 @@ class cr extends N.Layer {
|
|
|
8811
8831
|
class Ah extends N.Layer {
|
|
8812
8832
|
constructor(e = {}) {
|
|
8813
8833
|
var i;
|
|
8814
|
-
super(), this.layerOptions = e, this.clusterCanvas = N.DomUtil.create("canvas", "leaflet-webgl-grid-cluster-layer"), this.markers = [], this.markerSet = /* @__PURE__ */ new Set(), this.hiddenMarkers = /* @__PURE__ */ new Set(), this.markerChangeHandles = /* @__PURE__ */ new Map(), this.clusters = [], this.redrawFrame = -1, this.topLeft = N.point(0, 0), this.drawZoom = 0, this.zooming = !1, this.markerLayer = new
|
|
8834
|
+
super(), this.layerOptions = e, this.clusterCanvas = N.DomUtil.create("canvas", "leaflet-webgl-grid-cluster-layer"), this.markers = [], this.markerSet = /* @__PURE__ */ new Set(), this.hiddenMarkers = /* @__PURE__ */ new Set(), this.markerChangeHandles = /* @__PURE__ */ new Map(), this.clusters = [], this.redrawFrame = -1, this.topLeft = N.point(0, 0), this.drawZoom = 0, this.zooming = !1, this.markerLayer = new es(At(X({}, e), {
|
|
8815
8835
|
showTitle: (i = e.showTitle) != null ? i : !1,
|
|
8816
8836
|
shouldIgnoreClick: (a, o) => {
|
|
8817
8837
|
var r;
|
|
@@ -9035,7 +9055,7 @@ Oh();
|
|
|
9035
9055
|
class zh {
|
|
9036
9056
|
constructor(e, i) {
|
|
9037
9057
|
var r, h, u, d;
|
|
9038
|
-
this.radius = 40, this.chunkTimers = /* @__PURE__ */ new Set(), this.removedMarkers = /* @__PURE__ */ new Set(), this.visibleNoClusterMarkers = /* @__PURE__ */ new Set(), this.noClusterSyncTimer = -1, this.markerSet = /* @__PURE__ */ new Set(), this.clusterClickHandle = [], this.szMarkers = [], this.asyncHandleHelper = new Rh((m) => this.addMarkers(m)), i.clusterType == "NO_CLUSTER" ? this.radius = -1 : i.clusterType == "NORMAL" && (this.radius = (r = i.clusterRadius) != null ? r : 40), this.renderOptions = i, this.map = e, this.gRealtimeTrack = new Eh(e), this.infoWindow = new bh(e);
|
|
9058
|
+
this.radius = 40, this.chunkTimers = /* @__PURE__ */ new Set(), this.removedMarkers = /* @__PURE__ */ new Set(), this.visibleNoClusterMarkers = /* @__PURE__ */ new Set(), this.noClusterSyncTimer = -1, this.markerSet = /* @__PURE__ */ new Set(), this.useCanvasNoClusterFallback = !1, this.clusterClickHandle = [], this.szMarkers = [], this.asyncHandleHelper = new Rh((m) => this.addMarkers(m)), i.clusterType == "NO_CLUSTER" ? this.radius = -1 : i.clusterType == "NORMAL" && (this.radius = (r = i.clusterRadius) != null ? r : 40), this.renderOptions = i, this.map = e, this.gRealtimeTrack = new Eh(e), this.useCanvasNoClusterFallback = this.radius < 0 && i.renderMode == "WEBGL" && !es.isSupported(), this.useCanvasNoClusterFallback && console.warn("[bvmap-leaflet] WebGL no-cluster marker rendering is unavailable, fallback to Canvas."), this.infoWindow = new bh(e);
|
|
9039
9059
|
const a = i.clusterRadiusFn ? i.clusterRadiusFn : () => {
|
|
9040
9060
|
var m;
|
|
9041
9061
|
return (m = i.clusterRadius) != null ? m : this.radius;
|
|
@@ -9046,7 +9066,7 @@ class zh {
|
|
|
9046
9066
|
showTitle: (h = i.canvasShowTitle) != null ? h : !i.disableMarkerTitle,
|
|
9047
9067
|
boundsPadding: i.noClusterBoundsPadding,
|
|
9048
9068
|
maxTitleCount: i.canvasMaxTitleCount
|
|
9049
|
-
}), this.webglNoClusterLayer = new
|
|
9069
|
+
}), this.webglNoClusterLayer = new es({
|
|
9050
9070
|
markerSize: i.canvasMarkerSize,
|
|
9051
9071
|
clickTolerance: i.canvasClickTolerance,
|
|
9052
9072
|
showTitle: (u = i.canvasShowTitle) != null ? u : !i.disableMarkerTitle,
|
|
@@ -9191,10 +9211,10 @@ class zh {
|
|
|
9191
9211
|
e.forEach((h) => this.removedMarkers.delete(h)), i || (this.szMarkers.push(...e), e.forEach((h) => this.markerSet.add(h))), this.radius < 0 ? this.isCanvasNoCluster() ? (a = this.canvasNoClusterLayer) == null || a.addMarkers(e) : this.isWebGLNoCluster() ? (o = this.webglNoClusterLayer) == null || o.addMarkers(e) : this.scheduleNoClusterVisibleSync(e) : this.isWebGLGridCluster() ? (r = this.webglGridClusterLayer) == null || r.addMarkers(e) : this.markers.addLayers(e);
|
|
9192
9212
|
}
|
|
9193
9213
|
isCanvasNoCluster() {
|
|
9194
|
-
return this.radius < 0 && this.renderOptions.renderMode == "CANVAS";
|
|
9214
|
+
return this.radius < 0 && (this.renderOptions.renderMode == "CANVAS" || this.useCanvasNoClusterFallback);
|
|
9195
9215
|
}
|
|
9196
9216
|
isWebGLNoCluster() {
|
|
9197
|
-
return this.radius < 0 && this.renderOptions.renderMode == "WEBGL";
|
|
9217
|
+
return this.radius < 0 && this.renderOptions.renderMode == "WEBGL" && !this.useCanvasNoClusterFallback;
|
|
9198
9218
|
}
|
|
9199
9219
|
isWebGLGridCluster() {
|
|
9200
9220
|
return this.radius >= 0 && this.renderOptions.renderMode == "WEBGL";
|
|
@@ -9298,7 +9318,7 @@ class zh {
|
|
|
9298
9318
|
intervalTick: this.intervalTick,
|
|
9299
9319
|
realtimeTrackMgr: this.gRealtimeTrack
|
|
9300
9320
|
});
|
|
9301
|
-
i.push(_),
|
|
9321
|
+
i.push(_), cr(c.marker, _), a.push(c.marker);
|
|
9302
9322
|
}
|
|
9303
9323
|
return this.addMarkerWrapper(a), i;
|
|
9304
9324
|
}
|
|
@@ -9369,7 +9389,7 @@ class Rh {
|
|
|
9369
9389
|
});
|
|
9370
9390
|
}
|
|
9371
9391
|
}
|
|
9372
|
-
const
|
|
9392
|
+
const Na = L.extend({}, L.DomUtil);
|
|
9373
9393
|
L.extend(L.DomUtil, {
|
|
9374
9394
|
/**
|
|
9375
9395
|
* Resets the 3D CSS transform of `el` so it is
|
|
@@ -9386,7 +9406,7 @@ L.extend(L.DomUtil, {
|
|
|
9386
9406
|
setTransform: function(n, e, i, a, o) {
|
|
9387
9407
|
var r = e || new L.Point(0, 0);
|
|
9388
9408
|
if (!a)
|
|
9389
|
-
return e = r._round(),
|
|
9409
|
+
return e = r._round(), Na.setTransform.apply(this, arguments);
|
|
9390
9410
|
r = r.rotateFrom(a, o), n.style[L.DomUtil.TRANSFORM] = "translate3d(" + r.x + "px," + r.y + "px,0)" + (i ? " scale(" + i + ")" : "") + " rotate(" + a + "rad)";
|
|
9391
9411
|
},
|
|
9392
9412
|
/**
|
|
@@ -9403,7 +9423,7 @@ L.extend(L.DomUtil, {
|
|
|
9403
9423
|
*/
|
|
9404
9424
|
setPosition: function(n, e, i, a, o) {
|
|
9405
9425
|
if (!i)
|
|
9406
|
-
return
|
|
9426
|
+
return Na.setPosition.apply(this, arguments);
|
|
9407
9427
|
n._leaflet_pos = e, L.Browser.any3d ? L.DomUtil.setTransform(n, e, o, i, a) : (n.style.left = e.x + "px", n.style.top = e.y + "px");
|
|
9408
9428
|
},
|
|
9409
9429
|
/**
|
|
@@ -9457,7 +9477,7 @@ L.extend(L.Point.prototype, {
|
|
|
9457
9477
|
);
|
|
9458
9478
|
}
|
|
9459
9479
|
});
|
|
9460
|
-
const
|
|
9480
|
+
const Da = L.extend({}, L.DivOverlay.prototype);
|
|
9461
9481
|
L.DivOverlay.include({
|
|
9462
9482
|
/**
|
|
9463
9483
|
* Update L.Popup and L.Tooltip anchor positions after
|
|
@@ -9466,14 +9486,14 @@ L.DivOverlay.include({
|
|
|
9466
9486
|
* @listens L.Map~rotate
|
|
9467
9487
|
*/
|
|
9468
9488
|
getEvents: function() {
|
|
9469
|
-
return L.extend(
|
|
9489
|
+
return L.extend(Da.getEvents.apply(this, arguments), { rotate: this._updatePosition });
|
|
9470
9490
|
},
|
|
9471
9491
|
/**
|
|
9472
9492
|
* 0. update element anchor point (divOverlayProto v1.9.3)
|
|
9473
9493
|
* 1. rotate around anchor point (subtract anchor -> rotate point -> add anchor)
|
|
9474
9494
|
*/
|
|
9475
9495
|
_updatePosition: function() {
|
|
9476
|
-
if (this._map && (
|
|
9496
|
+
if (this._map && (Da._updatePosition.apply(this, arguments), this._map && this._map._rotate && this._zoomAnimated)) {
|
|
9477
9497
|
var n = this._getAnchor(), e = L.DomUtil.getPosition(this._container).subtract(n);
|
|
9478
9498
|
L.DomUtil.setPosition(this._container, this._map.rotatedPointToMapPanePoint(e).add(n));
|
|
9479
9499
|
}
|
|
@@ -9509,17 +9529,17 @@ L.Popup.include({
|
|
|
9509
9529
|
}
|
|
9510
9530
|
}
|
|
9511
9531
|
});
|
|
9512
|
-
const
|
|
9532
|
+
const Ba = L.extend({}, L.Tooltip.prototype);
|
|
9513
9533
|
L.Tooltip.include({
|
|
9514
9534
|
_animateZoom: function(n) {
|
|
9515
9535
|
if (!this._map._rotate)
|
|
9516
|
-
return
|
|
9536
|
+
return Ba._animateZoom.apply(this, arguments);
|
|
9517
9537
|
var e = this._map._latLngToNewLayerPoint(this._latlng, n.zoom, n.center);
|
|
9518
9538
|
e = this._map.rotatedPointToMapPanePoint(e), this._setPosition(e);
|
|
9519
9539
|
},
|
|
9520
9540
|
_updatePosition: function() {
|
|
9521
9541
|
if (!this._map._rotate)
|
|
9522
|
-
return
|
|
9542
|
+
return Ba._updatePosition.apply(this, arguments);
|
|
9523
9543
|
var n = this._map.latLngToLayerPoint(this._latlng);
|
|
9524
9544
|
n = this._map.rotatedPointToMapPanePoint(n), this._setPosition(n);
|
|
9525
9545
|
}
|
|
@@ -9533,7 +9553,7 @@ L.Icon.include({
|
|
|
9533
9553
|
n.className = "leaflet-marker-" + e + " " + (i.className || ""), r && (n.style.marginLeft = -r.x + "px", n.style.marginTop = -r.y + "px", n.style[L.DomUtil.TRANSFORM + "Origin"] = r.x + "px " + r.y + "px 0px"), o && (n.style.width = o.x + "px", n.style.height = o.y + "px");
|
|
9534
9554
|
}
|
|
9535
9555
|
});
|
|
9536
|
-
const
|
|
9556
|
+
const Za = L.extend({}, L.Marker.prototype);
|
|
9537
9557
|
L.Marker.mergeOptions({
|
|
9538
9558
|
/**
|
|
9539
9559
|
* Rotation of this marker in rad
|
|
@@ -9554,7 +9574,7 @@ L.Marker.mergeOptions({
|
|
|
9554
9574
|
*/
|
|
9555
9575
|
scale: void 0
|
|
9556
9576
|
});
|
|
9557
|
-
var
|
|
9577
|
+
var is, Ga = {
|
|
9558
9578
|
// _onDragStart: function() {
|
|
9559
9579
|
// if (!this._marker._map._rotate) {
|
|
9560
9580
|
// return markerDragProto._onDragStart.apply(this, arguments);
|
|
@@ -9568,7 +9588,7 @@ var es, Za = {
|
|
|
9568
9588
|
e._latlng = r, n.latlng = r, n.oldLatLng = this._oldLatLng, i ? e.setLatLng(r) : e.fire("move", n), e.fire("drag", n);
|
|
9569
9589
|
},
|
|
9570
9590
|
_onDragEnd: function(n) {
|
|
9571
|
-
this._marker._map._rotate && this._marker.update(),
|
|
9591
|
+
this._marker._map._rotate && this._marker.update(), is._onDragEnd.apply(this, arguments);
|
|
9572
9592
|
}
|
|
9573
9593
|
};
|
|
9574
9594
|
L.Marker.include({
|
|
@@ -9579,14 +9599,14 @@ L.Marker.include({
|
|
|
9579
9599
|
* @listens L.Map~rotate
|
|
9580
9600
|
*/
|
|
9581
9601
|
getEvents: function() {
|
|
9582
|
-
return L.extend(
|
|
9602
|
+
return L.extend(Za.getEvents.apply(this, arguments), { rotate: this.update });
|
|
9583
9603
|
},
|
|
9584
9604
|
_initInteraction: function() {
|
|
9585
|
-
var n =
|
|
9586
|
-
return this.dragging && this.dragging.enabled() && this._map && this._map._rotate && (
|
|
9605
|
+
var n = Za._initInteraction.apply(this, arguments);
|
|
9606
|
+
return this.dragging && this.dragging.enabled() && this._map && this._map._rotate && (is = is || Object.getPrototypeOf(this.dragging), this.dragging.disable(), Object.assign(this.dragging, {
|
|
9587
9607
|
// _onDragStart: MarkerDrag._onDragStart.bind(this.dragging),
|
|
9588
|
-
_onDrag:
|
|
9589
|
-
_onDragEnd:
|
|
9608
|
+
_onDrag: Ga._onDrag.bind(this.dragging),
|
|
9609
|
+
_onDragEnd: Ga._onDragEnd.bind(this.dragging)
|
|
9590
9610
|
}), this.dragging.enable()), n;
|
|
9591
9611
|
},
|
|
9592
9612
|
_setPos: function(n) {
|
|
@@ -9604,7 +9624,7 @@ L.Marker.include({
|
|
|
9604
9624
|
this.options.rotation = n, this.update();
|
|
9605
9625
|
}
|
|
9606
9626
|
});
|
|
9607
|
-
const
|
|
9627
|
+
const Fa = L.extend({}, L.GridLayer.prototype);
|
|
9608
9628
|
L.GridLayer.include({
|
|
9609
9629
|
/**
|
|
9610
9630
|
* Redraw L.TileLayer bounds after the map is
|
|
@@ -9613,11 +9633,11 @@ L.GridLayer.include({
|
|
|
9613
9633
|
* @listens L.Map~rotate
|
|
9614
9634
|
*/
|
|
9615
9635
|
getEvents: function() {
|
|
9616
|
-
var n =
|
|
9636
|
+
var n = Fa.getEvents.apply(this, arguments);
|
|
9617
9637
|
return this._map._rotate && !this.options.updateWhenIdle && (this._onRotate || (this._onRotate = L.Util.throttle(this._onMoveEnd, this.options.updateInterval, this)), n.rotate = this._onRotate), n;
|
|
9618
9638
|
},
|
|
9619
9639
|
_getTiledPixelBounds: function(n) {
|
|
9620
|
-
return this._map._rotate ? this._map._getNewPixelBounds(n, this._tileZoom) :
|
|
9640
|
+
return this._map._rotate ? this._map._getNewPixelBounds(n, this._tileZoom) : Fa._getTiledPixelBounds.apply(this, arguments);
|
|
9621
9641
|
}
|
|
9622
9642
|
});
|
|
9623
9643
|
const Vi = L.extend({}, L.Renderer.prototype);
|
|
@@ -10402,7 +10422,7 @@ L.Map.include({
|
|
|
10402
10422
|
);
|
|
10403
10423
|
}
|
|
10404
10424
|
});
|
|
10405
|
-
function
|
|
10425
|
+
function Ua(n, e) {
|
|
10406
10426
|
const i = dr();
|
|
10407
10427
|
if (n == "GaoDe")
|
|
10408
10428
|
e = i.no_trans(e.lng, e.lat);
|
|
@@ -10417,14 +10437,14 @@ L.GridLayer.include({
|
|
|
10417
10437
|
_setZoomTransform: function(n, e, i) {
|
|
10418
10438
|
const a = this.maptype;
|
|
10419
10439
|
var o = e;
|
|
10420
|
-
o != null && a && (o =
|
|
10440
|
+
o != null && a && (o = Ua(a, o));
|
|
10421
10441
|
var r = this._map.getZoomScale(i, n.zoom), h = n.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(o, i)).round();
|
|
10422
10442
|
L.Browser.any3d ? L.DomUtil.setTransform(n.el, h, r) : L.DomUtil.setPosition(n.el, h);
|
|
10423
10443
|
},
|
|
10424
10444
|
_getTiledPixelBounds: function(n) {
|
|
10425
10445
|
var e = n;
|
|
10426
10446
|
const i = this.maptype;
|
|
10427
|
-
e != null && i && (e =
|
|
10447
|
+
e != null && i && (e = Ua(i, e));
|
|
10428
10448
|
const a = i == "Baidu" ? L.CRS.Baidu : L.CRS.EPSG3857;
|
|
10429
10449
|
var o = this._map, r = o._animatingZoom ? Math.max(o._animateToZoom, o.getZoom()) : o.getZoom(), h = o.getZoomScale(r, this._tileZoom), u = a.latLngToPoint(e, this._tileZoom).floor(), d = o.getSize().divideBy(h * 2);
|
|
10430
10450
|
return new L.Bounds(
|
|
@@ -10923,7 +10943,7 @@ function Fh(n) {
|
|
|
10923
10943
|
function $i(n) {
|
|
10924
10944
|
return n.toString().trim().slice(n.toString().length - 1, n.toString().length) === "m";
|
|
10925
10945
|
}
|
|
10926
|
-
function
|
|
10946
|
+
function Ha(n) {
|
|
10927
10947
|
return n.toString().trim().slice(n.toString().length - 1, n.toString().length) === "%";
|
|
10928
10948
|
}
|
|
10929
10949
|
function Xi(n) {
|
|
@@ -10970,7 +10990,7 @@ L.Polyline.include({
|
|
|
10970
10990
|
return Z;
|
|
10971
10991
|
})();
|
|
10972
10992
|
let y, w, x, b;
|
|
10973
|
-
if (isNaN(h) ?
|
|
10993
|
+
if (isNaN(h) ? Ha(h) ? console.error(
|
|
10974
10994
|
"Error: arrowhead frequency option cannot be given in percent. Try another unit."
|
|
10975
10995
|
) : $i(h) ? (x = h.slice(0, h.length - 1) / _, b = 1 / x, b = Math.floor(b), x = 1 / b) : Xi(h) && (x = (() => {
|
|
10976
10996
|
let Z = h.slice(0, h.length - 2);
|
|
@@ -11053,14 +11073,14 @@ L.Polyline.include({
|
|
|
11053
11073
|
E.push(it);
|
|
11054
11074
|
};
|
|
11055
11075
|
for (var k = 0; k < y.length; k++) {
|
|
11056
|
-
let F = n, { perArrowheadOptions: B } = F, Y =
|
|
11076
|
+
let F = n, { perArrowheadOptions: B } = F, Y = Ia(F, ["perArrowheadOptions"]);
|
|
11057
11077
|
if (B = B ? B(k) : {}, B = Object.assign(
|
|
11058
11078
|
Y,
|
|
11059
11079
|
Fh(B)
|
|
11060
11080
|
), o = (J = B.size) != null ? J : o, $i(o)) {
|
|
11061
11081
|
let Q = o.slice(0, o.length - 1);
|
|
11062
11082
|
z(Q, B);
|
|
11063
|
-
} else if (
|
|
11083
|
+
} else if (Ha(o)) {
|
|
11064
11084
|
let Q = o.slice(0, o.length - 1), at = n.frequency === "endonly" && n.proportionalToTotal ? _ * Q / 100 : _ / (v.length - 1) * Q / 100;
|
|
11065
11085
|
z(at, B);
|
|
11066
11086
|
} else Xi(o) ? D(n.size, B) : console.error(
|
|
@@ -11247,7 +11267,7 @@ class Uh {
|
|
|
11247
11267
|
m.y / te
|
|
11248
11268
|
)}`;
|
|
11249
11269
|
if (!u[v]) {
|
|
11250
|
-
const g = Math.floor(m.x / te) * te + te / 2, c = Math.floor(m.y / te) * te + te / 2, _ = e.containerPointToLatLng(new
|
|
11270
|
+
const g = Math.floor(m.x / te) * te + te / 2, c = Math.floor(m.y / te) * te + te / 2, _ = e.containerPointToLatLng(new ls.Point(g, c)), y = () => w.length === 1 ? (m.x - g, m.y - c, d.latlng) : _, w = [];
|
|
11251
11271
|
u[v] = {
|
|
11252
11272
|
getP: y,
|
|
11253
11273
|
items: w
|
|
@@ -11435,7 +11455,7 @@ class qh {
|
|
|
11435
11455
|
this.markerCurrent.remove(), this.lastPointIndex = 0, this.polyine.setLatLngs([]), this.polyineBlack.setLatLngs([]);
|
|
11436
11456
|
}
|
|
11437
11457
|
}
|
|
11438
|
-
const re = 1024,
|
|
11458
|
+
const re = 1024, vs = class vs {
|
|
11439
11459
|
constructor(e) {
|
|
11440
11460
|
this.baseline = new Hh(), this.timeCallback = null, this._currentPoints = null, this.intervalToken = null, this.pastTimeTotal = 0, this.startTime = 0, this.bPause = !0, this.playSegments = [], this.playStartTrackTime = 0, this.fastModeTotalDuration = 0, this.fastModePlayTime = 0, this.playRate = 1, this.baseline.addTo(e), this.passedLine = new qh(e), this.map = e, this.applyRotation();
|
|
11441
11461
|
}
|
|
@@ -11576,8 +11596,8 @@ const re = 1024, ps = class ps {
|
|
|
11576
11596
|
this.passedLine.SetMarkerFitView();
|
|
11577
11597
|
}
|
|
11578
11598
|
};
|
|
11579
|
-
|
|
11580
|
-
let
|
|
11599
|
+
vs.iOverflowPlayRate = re;
|
|
11600
|
+
let ns = vs;
|
|
11581
11601
|
var Wh = { exports: {} };
|
|
11582
11602
|
(function(n, e) {
|
|
11583
11603
|
((i, a) => {
|
|
@@ -12655,7 +12675,7 @@ var Wh = { exports: {} };
|
|
|
12655
12675
|
};
|
|
12656
12676
|
}, window);
|
|
12657
12677
|
})(Wh);
|
|
12658
|
-
const
|
|
12678
|
+
const ss = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAYxJREFUSEvVVUFygzAMXKUXk0cE+Al5SZOXNH1J8pOmLwHyiOAT6sgxDBiBSdNLc2EmtrXSarUiPPGrt9szMWe7ptmvfUZrL8q9W5J8yfd/AZTGZBvgnYgKBgoAlaua+dIC37m11yUWZimSwG9EZx9UYjwCAyCg6v8nuqT3+3EORAUojSk2RI5vMJ9Saz/DHnSVgegk4C3zUatGBaiTpJSALfM+t7bPXGuyA/LJhPd9tePiJIiU7y+P+J1TkQcpodA1quBmzIGJROvHnbWXkNclmXZvw8RGALUxH8Jp2jQqdUsAfRWDnk0ocvQQVXOqiA2adk6StWjcCcbrXGSoyW7FedbJ2MUjqp4FkAAZAepwMTA6Z+bruMkRr1lDUUix1uRD2jS5RlEMoE4SHg7mpMn9BAdK6MBelqkEEs8HswzaZPRjgya9Ca18ovel0Z+zCm+KmUbtnNn1/iK2/OdmJ1SFbjmw6Gpo1xotQ4FEV6aycB674dWF8xuZam+iFQwfxebgZQAnYQBLKzIE+QEAKDEsC3KscgAAAABJRU5ErkJggg==";
|
|
12659
12679
|
class jh {
|
|
12660
12680
|
constructor(e) {
|
|
12661
12681
|
this.map = e, this.mutilsHandle = new Vh(this.map), this.circleHandle = new mr(e), this.polygonHandle = new fr(e);
|
|
@@ -12682,7 +12702,7 @@ class Vh {
|
|
|
12682
12702
|
}), this.szClear.splice(0, this.szClear.length);
|
|
12683
12703
|
}
|
|
12684
12704
|
}
|
|
12685
|
-
function
|
|
12705
|
+
function us(n, e) {
|
|
12686
12706
|
const i = n.getContainer().style.cursor;
|
|
12687
12707
|
return n.getContainer().style.cursor = "crosshair", {
|
|
12688
12708
|
resume() {
|
|
@@ -12698,11 +12718,11 @@ class fr {
|
|
|
12698
12718
|
return !!this.polygon;
|
|
12699
12719
|
}
|
|
12700
12720
|
create() {
|
|
12701
|
-
const { resume: e } =
|
|
12721
|
+
const { resume: e } = us(this.map);
|
|
12702
12722
|
this.safeOffMapCreateClick();
|
|
12703
12723
|
const i = this.latlngsCreate, a = (o) => {
|
|
12704
12724
|
const r = document.createElement("div"), h = document.createElement("img");
|
|
12705
|
-
h.src =
|
|
12725
|
+
h.src = ss;
|
|
12706
12726
|
const u = document.createElement("div");
|
|
12707
12727
|
u.innerText = `${i.length + 1}`, u.style.backgroundColor = "white", u.style.textAlign = "center", r.appendChild(h), r.appendChild(u);
|
|
12708
12728
|
const d = L.marker(o.latlng, {
|
|
@@ -12774,11 +12794,11 @@ class mr {
|
|
|
12774
12794
|
}
|
|
12775
12795
|
}
|
|
12776
12796
|
create() {
|
|
12777
|
-
console.log(
|
|
12778
|
-
const { resume: e } =
|
|
12797
|
+
console.log(ss), this.safeOffMapCreateClick();
|
|
12798
|
+
const { resume: e } = us(this.map), i = (a) => {
|
|
12779
12799
|
this.centerMarker ? this.centerMarker.setLatLng(a.latlng) : this.centerMarker = L.marker(a.latlng, {
|
|
12780
12800
|
icon: L.icon({
|
|
12781
|
-
iconUrl:
|
|
12801
|
+
iconUrl: ss,
|
|
12782
12802
|
iconSize: [24, 24]
|
|
12783
12803
|
})
|
|
12784
12804
|
}).addTo(this.map);
|
|
@@ -13286,7 +13306,7 @@ class sl {
|
|
|
13286
13306
|
this.path.remove(), this.titleArray.forEach((e) => e.remove());
|
|
13287
13307
|
}
|
|
13288
13308
|
}
|
|
13289
|
-
const
|
|
13309
|
+
const qa = 6378137, al = function(e) {
|
|
13290
13310
|
const i = function(_) {
|
|
13291
13311
|
return _ * Math.PI / 180;
|
|
13292
13312
|
};
|
|
@@ -13294,7 +13314,7 @@ const Ha = 6378137, al = function(e) {
|
|
|
13294
13314
|
if (v > 2) {
|
|
13295
13315
|
for (var g = 0; g < v; g++)
|
|
13296
13316
|
g === v - 2 ? (h = v - 2, u = v - 1, d = 0) : g === v - 1 ? (h = v - 1, u = 0, d = 1) : (h = g, u = g + 1, d = g + 2), a = e[h], o = e[u], r = e[d], m += (i(r.lng) - i(a.lng)) * Math.sin(i(o.lat));
|
|
13297
|
-
m = m *
|
|
13317
|
+
m = m * qa * qa / 2;
|
|
13298
13318
|
}
|
|
13299
13319
|
return Math.abs(m);
|
|
13300
13320
|
};
|
|
@@ -13410,7 +13430,7 @@ function ul(n) {
|
|
|
13410
13430
|
n("EPSG:" + (32600 + e), "+proj=utm +zone=" + e + " +datum=WGS84 +units=m"), n("EPSG:" + (32700 + e), "+proj=utm +zone=" + e + " +south +datum=WGS84 +units=m");
|
|
13411
13431
|
n.WGS84 = n["EPSG:4326"], n["EPSG:3785"] = n["EPSG:3857"], n.GOOGLE = n["EPSG:3857"], n["EPSG:900913"] = n["EPSG:3857"], n["EPSG:102113"] = n["EPSG:3857"];
|
|
13412
13432
|
}
|
|
13413
|
-
var Le = 1, we = 2, De = 3, cl = 4,
|
|
13433
|
+
var Le = 1, we = 2, De = 3, cl = 4, as = 5, Wa = 6378137, dl = 6356752314e-3, ja = 0.0066943799901413165, oi = 484813681109536e-20, A = Math.PI / 2, fl = 0.16666666666666666, ml = 0.04722222222222222, _l = 0.022156084656084655, I = 1e-10, yt = 0.017453292519943295, jt = 57.29577951308232, nt = Math.PI / 4, mi = Math.PI * 2, dt = 3.14159265359, St = {};
|
|
13414
13434
|
St.greenwich = 0;
|
|
13415
13435
|
St.lisbon = -9.131906111111;
|
|
13416
13436
|
St.paris = 2.337229166667;
|
|
@@ -13446,15 +13466,15 @@ const gl = {
|
|
|
13446
13466
|
"us-in": { to_meter: 0.025400050800101 },
|
|
13447
13467
|
"us-yd": { to_meter: 0.914401828803658 }
|
|
13448
13468
|
};
|
|
13449
|
-
var
|
|
13469
|
+
var Va = /[\s_\-\/\(\)]/g;
|
|
13450
13470
|
function he(n, e) {
|
|
13451
13471
|
if (n[e])
|
|
13452
13472
|
return n[e];
|
|
13453
|
-
for (var i = Object.keys(n), a = e.toLowerCase().replace(
|
|
13454
|
-
if (r = i[o], h = r.toLowerCase().replace(
|
|
13473
|
+
for (var i = Object.keys(n), a = e.toLowerCase().replace(Va, ""), o = -1, r, h; ++o < i.length; )
|
|
13474
|
+
if (r = i[o], h = r.toLowerCase().replace(Va, ""), h === a)
|
|
13455
13475
|
return n[r];
|
|
13456
13476
|
}
|
|
13457
|
-
function
|
|
13477
|
+
function rs(n) {
|
|
13458
13478
|
var e = {}, i = n.split("+").map(function(u) {
|
|
13459
13479
|
return u.trim();
|
|
13460
13480
|
}).filter(function(u) {
|
|
@@ -13563,7 +13583,7 @@ function as(n) {
|
|
|
13563
13583
|
o = i[a], a in h ? (r = h[a], typeof r == "function" ? r(o) : e[r] = o) : e[a] = o;
|
|
13564
13584
|
return typeof e.datumCode == "string" && e.datumCode !== "WGS84" && (e.datumCode = e.datumCode.toLowerCase()), e;
|
|
13565
13585
|
}
|
|
13566
|
-
var _i = 1, gr = 2, pr = 3, an = 4, vr = 5,
|
|
13586
|
+
var _i = 1, gr = 2, pr = 3, an = 4, vr = 5, cs = -1, pl = /\s/, vl = /[A-Za-z]/, yl = /[A-Za-z84_]/, fn = /[,\]]/, yr = /[\d\.E\-\+]/;
|
|
13567
13587
|
function ie(n) {
|
|
13568
13588
|
if (typeof n != "string")
|
|
13569
13589
|
throw new Error("not a string");
|
|
@@ -13588,7 +13608,7 @@ ie.prototype.readCharicter = function() {
|
|
|
13588
13608
|
return this.afterquote(n);
|
|
13589
13609
|
case pr:
|
|
13590
13610
|
return this.number(n);
|
|
13591
|
-
case
|
|
13611
|
+
case cs:
|
|
13592
13612
|
return;
|
|
13593
13613
|
}
|
|
13594
13614
|
};
|
|
@@ -13609,7 +13629,7 @@ ie.prototype.afterItem = function(n) {
|
|
|
13609
13629
|
return;
|
|
13610
13630
|
}
|
|
13611
13631
|
if (n === "]") {
|
|
13612
|
-
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = _i, this.currentObject = this.stack.pop(), this.currentObject || (this.state =
|
|
13632
|
+
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = _i, this.currentObject = this.stack.pop(), this.currentObject || (this.state = cs);
|
|
13613
13633
|
return;
|
|
13614
13634
|
}
|
|
13615
13635
|
};
|
|
@@ -13669,7 +13689,7 @@ ie.prototype.neutral = function(n) {
|
|
|
13669
13689
|
ie.prototype.output = function() {
|
|
13670
13690
|
for (; this.place < this.text.length; )
|
|
13671
13691
|
this.readCharicter();
|
|
13672
|
-
if (this.state ===
|
|
13692
|
+
if (this.state === cs)
|
|
13673
13693
|
return this.root;
|
|
13674
13694
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
|
13675
13695
|
};
|
|
@@ -13855,7 +13875,7 @@ function Ct(n) {
|
|
|
13855
13875
|
var e = this;
|
|
13856
13876
|
if (arguments.length === 2) {
|
|
13857
13877
|
var i = arguments[1];
|
|
13858
|
-
typeof i == "string" ? i.charAt(0) === "+" ? Ct[n] =
|
|
13878
|
+
typeof i == "string" ? i.charAt(0) === "+" ? Ct[n] = rs(arguments[1]) : Ct[n] = Lr(arguments[1]) : Ct[n] = i;
|
|
13859
13879
|
} else if (arguments.length === 1) {
|
|
13860
13880
|
if (Array.isArray(n))
|
|
13861
13881
|
return n.map(function(a) {
|
|
@@ -13906,14 +13926,14 @@ function Ol(n) {
|
|
|
13906
13926
|
if (Sl(e))
|
|
13907
13927
|
return Ct["EPSG:3857"];
|
|
13908
13928
|
var i = Al(e);
|
|
13909
|
-
return i ?
|
|
13929
|
+
return i ? rs(i) : e;
|
|
13910
13930
|
}
|
|
13911
13931
|
if (Il(n))
|
|
13912
|
-
return
|
|
13932
|
+
return rs(n);
|
|
13913
13933
|
} else
|
|
13914
13934
|
return n;
|
|
13915
13935
|
}
|
|
13916
|
-
function
|
|
13936
|
+
function $a(n, e) {
|
|
13917
13937
|
n = n || {};
|
|
13918
13938
|
var i, a;
|
|
13919
13939
|
if (!e)
|
|
@@ -13981,14 +14001,14 @@ const Bl = {
|
|
|
13981
14001
|
};
|
|
13982
14002
|
function Zl() {
|
|
13983
14003
|
}
|
|
13984
|
-
function
|
|
14004
|
+
function Xa(n) {
|
|
13985
14005
|
return n;
|
|
13986
14006
|
}
|
|
13987
14007
|
var Gl = ["longlat", "identity"];
|
|
13988
14008
|
const Fl = {
|
|
13989
14009
|
init: Zl,
|
|
13990
|
-
forward:
|
|
13991
|
-
inverse:
|
|
14010
|
+
forward: Xa,
|
|
14011
|
+
inverse: Xa,
|
|
13992
14012
|
names: Gl
|
|
13993
14013
|
};
|
|
13994
14014
|
var Ul = [Bl, Fl], Qi = {}, rn = [];
|
|
@@ -14350,12 +14370,12 @@ var tn = {
|
|
|
14350
14370
|
}
|
|
14351
14371
|
};
|
|
14352
14372
|
for (var Xl in tn) {
|
|
14353
|
-
var
|
|
14354
|
-
tn[
|
|
14373
|
+
var Ka = tn[Xl];
|
|
14374
|
+
tn[Ka.datumName] = Ka;
|
|
14355
14375
|
}
|
|
14356
14376
|
function Kl(n, e, i, a, o, r, h) {
|
|
14357
14377
|
var u = {};
|
|
14358
|
-
return n === void 0 || n === "none" ? u.datum_type =
|
|
14378
|
+
return n === void 0 || n === "none" ? u.datum_type = as : u.datum_type = cl, e && (u.datum_params = e.map(parseFloat), (u.datum_params[0] !== 0 || u.datum_params[1] !== 0 || u.datum_params[2] !== 0) && (u.datum_type = Le), u.datum_params.length > 3 && (u.datum_params[3] !== 0 || u.datum_params[4] !== 0 || u.datum_params[5] !== 0 || u.datum_params[6] !== 0) && (u.datum_type = we, u.datum_params[3] *= oi, u.datum_params[4] *= oi, u.datum_params[5] *= oi, u.datum_params[6] = u.datum_params[6] / 1e6 + 1)), h && (u.datum_type = De, u.grids = h), u.a = i, u.b = a, u.es = o, u.ep2 = r, u;
|
|
14359
14379
|
}
|
|
14360
14380
|
var xr = {};
|
|
14361
14381
|
function Jl(n, e) {
|
|
@@ -14391,14 +14411,14 @@ function eu(n, e) {
|
|
|
14391
14411
|
nFields: n.getInt32(8, e),
|
|
14392
14412
|
nSubgridFields: n.getInt32(24, e),
|
|
14393
14413
|
nSubgrids: n.getInt32(40, e),
|
|
14394
|
-
shiftType:
|
|
14414
|
+
shiftType: os(n, 56, 64).trim(),
|
|
14395
14415
|
fromSemiMajorAxis: n.getFloat64(120, e),
|
|
14396
14416
|
fromSemiMinorAxis: n.getFloat64(136, e),
|
|
14397
14417
|
toSemiMajorAxis: n.getFloat64(152, e),
|
|
14398
14418
|
toSemiMinorAxis: n.getFloat64(168, e)
|
|
14399
14419
|
};
|
|
14400
14420
|
}
|
|
14401
|
-
function
|
|
14421
|
+
function os(n, e, i) {
|
|
14402
14422
|
return String.fromCharCode.apply(null, new Uint8Array(n.buffer.slice(e, i)));
|
|
14403
14423
|
}
|
|
14404
14424
|
function iu(n, e, i) {
|
|
@@ -14425,8 +14445,8 @@ function nu(n) {
|
|
|
14425
14445
|
}
|
|
14426
14446
|
function su(n, e, i) {
|
|
14427
14447
|
return {
|
|
14428
|
-
name:
|
|
14429
|
-
parent:
|
|
14448
|
+
name: os(n, e + 8, e + 16).trim(),
|
|
14449
|
+
parent: os(n, e + 24, e + 24 + 8).trim(),
|
|
14430
14450
|
lowerLatitude: n.getFloat64(e + 72, i),
|
|
14431
14451
|
upperLatitude: n.getFloat64(e + 88, i),
|
|
14432
14452
|
lowerLongitude: n.getFloat64(e + 104, i),
|
|
@@ -14479,7 +14499,7 @@ function Vt(n, e) {
|
|
|
14479
14499
|
h.ep2,
|
|
14480
14500
|
u
|
|
14481
14501
|
);
|
|
14482
|
-
|
|
14502
|
+
$a(this, i), $a(this, a), this.a = r.a, this.b = r.b, this.rf = r.rf, this.sphere = r.sphere, this.es = h.es, this.e = h.e, this.ep2 = h.ep2, this.datum = d, this.init(), e(null, this);
|
|
14483
14503
|
}
|
|
14484
14504
|
Vt.projections = Wl;
|
|
14485
14505
|
Vt.projections.start();
|
|
@@ -14561,26 +14581,26 @@ function Ki(n) {
|
|
|
14561
14581
|
return n === Le || n === we;
|
|
14562
14582
|
}
|
|
14563
14583
|
function lu(n, e, i) {
|
|
14564
|
-
if (ru(n, e) || n.datum_type ===
|
|
14584
|
+
if (ru(n, e) || n.datum_type === as || e.datum_type === as)
|
|
14565
14585
|
return i;
|
|
14566
14586
|
var a = n.a, o = n.es;
|
|
14567
14587
|
if (n.datum_type === De) {
|
|
14568
|
-
var r =
|
|
14588
|
+
var r = Ja(n, !1, i);
|
|
14569
14589
|
if (r !== 0)
|
|
14570
14590
|
return;
|
|
14571
|
-
a =
|
|
14591
|
+
a = Wa, o = ja;
|
|
14572
14592
|
}
|
|
14573
14593
|
var h = e.a, u = e.b, d = e.es;
|
|
14574
|
-
if (e.datum_type === De && (h =
|
|
14594
|
+
if (e.datum_type === De && (h = Wa, u = dl, d = ja), o === d && a === h && !Ki(n.datum_type) && !Ki(e.datum_type))
|
|
14575
14595
|
return i;
|
|
14576
14596
|
if (i = Cr(i, o, a), Ki(n.datum_type) && (i = ou(i, n.datum_type, n.datum_params)), Ki(e.datum_type) && (i = hu(i, e.datum_type, e.datum_params)), i = br(i, d, h, u), e.datum_type === De) {
|
|
14577
|
-
var m =
|
|
14597
|
+
var m = Ja(e, !0, i);
|
|
14578
14598
|
if (m !== 0)
|
|
14579
14599
|
return;
|
|
14580
14600
|
}
|
|
14581
14601
|
return i;
|
|
14582
14602
|
}
|
|
14583
|
-
function
|
|
14603
|
+
function Ja(n, e, i) {
|
|
14584
14604
|
if (n.grids === null || n.grids.length === 0)
|
|
14585
14605
|
return console.log("Grid shift grids not found"), -1;
|
|
14586
14606
|
var a = { x: -i.x, y: i.y }, o = { x: Number.NaN, y: Number.NaN }, r = [];
|
|
@@ -14610,14 +14630,14 @@ function uu(n, e, i) {
|
|
|
14610
14630
|
return a;
|
|
14611
14631
|
var o = { x: n.x, y: n.y };
|
|
14612
14632
|
o.x -= i.ll[0], o.y -= i.ll[1], o.x = O(o.x - Math.PI) + Math.PI;
|
|
14613
|
-
var r =
|
|
14633
|
+
var r = Ya(o, i);
|
|
14614
14634
|
if (e) {
|
|
14615
14635
|
if (isNaN(r.x))
|
|
14616
14636
|
return a;
|
|
14617
14637
|
r.x = o.x - r.x, r.y = o.y - r.y;
|
|
14618
14638
|
var h = 9, u = 1e-12, d, m;
|
|
14619
14639
|
do {
|
|
14620
|
-
if (m =
|
|
14640
|
+
if (m = Ya(r, i), isNaN(m.x)) {
|
|
14621
14641
|
console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");
|
|
14622
14642
|
break;
|
|
14623
14643
|
}
|
|
@@ -14630,7 +14650,7 @@ function uu(n, e, i) {
|
|
|
14630
14650
|
isNaN(r.x) || (a.x = n.x + r.x, a.y = n.y + r.y);
|
|
14631
14651
|
return a;
|
|
14632
14652
|
}
|
|
14633
|
-
function
|
|
14653
|
+
function Ya(n, e) {
|
|
14634
14654
|
var i = { x: n.x / e.del[0], y: n.y / e.del[1] }, a = { x: Math.floor(i.x), y: Math.floor(i.y) }, o = { x: i.x - 1 * a.x, y: i.y - 1 * a.y }, r = { x: Number.NaN, y: Number.NaN }, h;
|
|
14635
14655
|
if (a.x < 0 || a.x >= e.lim[0] || a.y < 0 || a.y >= e.lim[1])
|
|
14636
14656
|
return r;
|
|
@@ -14644,7 +14664,7 @@ function Ja(n, e) {
|
|
|
14644
14664
|
var v = { x: e.cvs[h][0], y: e.cvs[h][1] }, g = o.x * o.y, c = o.x * (1 - o.y), _ = (1 - o.x) * (1 - o.y), y = (1 - o.x) * o.y;
|
|
14645
14665
|
return r.x = _ * u.x + c * d.x + y * v.x + g * m.x, r.y = _ * u.y + c * d.y + y * v.y + g * m.y, r;
|
|
14646
14666
|
}
|
|
14647
|
-
function
|
|
14667
|
+
function Qa(n, e, i) {
|
|
14648
14668
|
var a = i.x, o = i.y, r = i.z || 0, h, u, d, m = {};
|
|
14649
14669
|
for (d = 0; d < 3; d++)
|
|
14650
14670
|
if (!(e && d === 2 && i.z === void 0))
|
|
@@ -14680,9 +14700,9 @@ function Pr(n) {
|
|
|
14680
14700
|
return n.length > 2 && (e.z = n[2]), n.length > 3 && (e.m = n[3]), e;
|
|
14681
14701
|
}
|
|
14682
14702
|
function cu(n) {
|
|
14683
|
-
|
|
14703
|
+
tr(n.x), tr(n.y);
|
|
14684
14704
|
}
|
|
14685
|
-
function
|
|
14705
|
+
function tr(n) {
|
|
14686
14706
|
if (typeof Number.isFinite == "function") {
|
|
14687
14707
|
if (Number.isFinite(n))
|
|
14688
14708
|
return;
|
|
@@ -14703,7 +14723,7 @@ function on(n, e, i, a) {
|
|
|
14703
14723
|
m: i.m
|
|
14704
14724
|
};
|
|
14705
14725
|
var r = i.z !== void 0;
|
|
14706
|
-
if (cu(i), n.datum && e.datum && du(n, e) && (o = new Vt("WGS84"), i = on(n, o, i, a), n = o), a && n.axis !== "enu" && (i =
|
|
14726
|
+
if (cu(i), n.datum && e.datum && du(n, e) && (o = new Vt("WGS84"), i = on(n, o, i, a), n = o), a && n.axis !== "enu" && (i = Qa(n, !1, i)), n.projName === "longlat")
|
|
14707
14727
|
i = {
|
|
14708
14728
|
x: i.x * yt,
|
|
14709
14729
|
y: i.y * yt,
|
|
@@ -14728,9 +14748,9 @@ function on(n, e, i, a) {
|
|
|
14728
14748
|
x: i.x / e.to_meter,
|
|
14729
14749
|
y: i.y / e.to_meter,
|
|
14730
14750
|
z: i.z || 0
|
|
14731
|
-
})), a && e.axis !== "enu" ?
|
|
14751
|
+
})), a && e.axis !== "enu" ? Qa(e, !0, i) : (i && !r && delete i.z, i);
|
|
14732
14752
|
}
|
|
14733
|
-
var
|
|
14753
|
+
var er = Vt("WGS84");
|
|
14734
14754
|
function Jn(n, e, i, a) {
|
|
14735
14755
|
var o, r, h;
|
|
14736
14756
|
return Array.isArray(i) ? (o = on(n, e, i, a) || { x: NaN, y: NaN }, i.length > 2 ? typeof n.name != "undefined" && n.name === "geocent" || typeof e.name != "undefined" && e.name === "geocent" ? typeof o.z == "number" ? [o.x, o.y, o.z].concat(i.slice(3)) : [o.x, o.y, i[2]].concat(i.slice(3)) : [o.x, o.y].concat(i.slice(2)) : [o.x, o.y]) : (r = on(n, e, i, a), h = Object.keys(i), h.length === 2 || h.forEach(function(u) {
|
|
@@ -14742,13 +14762,13 @@ function Jn(n, e, i, a) {
|
|
|
14742
14762
|
r[u] = i[u];
|
|
14743
14763
|
}), r);
|
|
14744
14764
|
}
|
|
14745
|
-
function
|
|
14765
|
+
function ir(n) {
|
|
14746
14766
|
return n instanceof Vt ? n : n.oProj ? n.oProj : Vt(n);
|
|
14747
14767
|
}
|
|
14748
14768
|
function It(n, e, i) {
|
|
14749
|
-
n =
|
|
14769
|
+
n = ir(n);
|
|
14750
14770
|
var a = !1, o;
|
|
14751
|
-
return typeof e == "undefined" ? (e = n, n =
|
|
14771
|
+
return typeof e == "undefined" ? (e = n, n = er, a = !0) : (typeof e.x != "undefined" || Array.isArray(e)) && (i = e, e = n, n = er, a = !0), e = ir(e), i ? Jn(n, e, i) : (o = {
|
|
14752
14772
|
forward: function(r, h) {
|
|
14753
14773
|
return Jn(n, e, r, h);
|
|
14754
14774
|
},
|
|
@@ -14757,7 +14777,7 @@ function It(n, e, i) {
|
|
|
14757
14777
|
}
|
|
14758
14778
|
}, a && (o.oProj = e), o);
|
|
14759
14779
|
}
|
|
14760
|
-
var
|
|
14780
|
+
var nr = 6, kr = "AJSAJS", Tr = "AFAFAF", Re = 65, Tt = 73, Nt = 79, si = 86, ai = 90;
|
|
14761
14781
|
const fu = {
|
|
14762
14782
|
forward: Er,
|
|
14763
14783
|
inverse: mu,
|
|
@@ -14770,17 +14790,17 @@ function Er(n, e) {
|
|
|
14770
14790
|
}), e);
|
|
14771
14791
|
}
|
|
14772
14792
|
function mu(n) {
|
|
14773
|
-
var e =
|
|
14793
|
+
var e = ds(Ir(n.toUpperCase()));
|
|
14774
14794
|
return e.lat && e.lon ? [e.lon, e.lat, e.lon, e.lat] : [e.left, e.bottom, e.right, e.top];
|
|
14775
14795
|
}
|
|
14776
14796
|
function Sr(n) {
|
|
14777
|
-
var e =
|
|
14797
|
+
var e = ds(Ir(n.toUpperCase()));
|
|
14778
14798
|
return e.lat && e.lon ? [e.lon, e.lat] : [(e.left + e.right) / 2, (e.top + e.bottom) / 2];
|
|
14779
14799
|
}
|
|
14780
14800
|
function Yn(n) {
|
|
14781
14801
|
return n * (Math.PI / 180);
|
|
14782
14802
|
}
|
|
14783
|
-
function
|
|
14803
|
+
function sr(n) {
|
|
14784
14804
|
return 180 * (n / Math.PI);
|
|
14785
14805
|
}
|
|
14786
14806
|
function _u(n) {
|
|
@@ -14794,19 +14814,19 @@ function _u(n) {
|
|
|
14794
14814
|
zoneLetter: gu(e)
|
|
14795
14815
|
};
|
|
14796
14816
|
}
|
|
14797
|
-
function
|
|
14817
|
+
function ds(n) {
|
|
14798
14818
|
var e = n.northing, i = n.easting, a = n.zoneLetter, o = n.zoneNumber;
|
|
14799
14819
|
if (o < 0 || o > 60)
|
|
14800
14820
|
return null;
|
|
14801
14821
|
var r = 0.9996, h = 6378137, u = 669438e-8, d, m = (1 - Math.sqrt(1 - u)) / (1 + Math.sqrt(1 - u)), v, g, c, _, y, w, x, b, k, E = i - 5e5, z = e;
|
|
14802
14822
|
a < "N" && (z -= 1e7), x = (o - 1) * 6 - 180 + 3, d = u / (1 - u), w = z / r, b = w / (h * (1 - u / 4 - 3 * u * u / 64 - 5 * u * u * u / 256)), k = b + (3 * m / 2 - 27 * m * m * m / 32) * Math.sin(2 * b) + (21 * m * m / 16 - 55 * m * m * m * m / 32) * Math.sin(4 * b) + 151 * m * m * m / 96 * Math.sin(6 * b), v = h / Math.sqrt(1 - u * Math.sin(k) * Math.sin(k)), g = Math.tan(k) * Math.tan(k), c = d * Math.cos(k) * Math.cos(k), _ = h * (1 - u) / Math.pow(1 - u * Math.sin(k) * Math.sin(k), 1.5), y = E / (v * r);
|
|
14803
14823
|
var D = k - v * Math.tan(k) / _ * (y * y / 2 - (5 + 3 * g + 10 * c - 4 * c * c - 9 * d) * y * y * y * y / 24 + (61 + 90 * g + 298 * c + 45 * g * g - 252 * d - 3 * c * c) * y * y * y * y * y * y / 720);
|
|
14804
|
-
D =
|
|
14824
|
+
D = sr(D);
|
|
14805
14825
|
var F = (y - (1 + 2 * g + c) * y * y * y / 6 + (5 - 2 * c + 28 * g - 3 * c * c + 8 * d + 24 * g * g) * y * y * y * y * y / 120) / Math.cos(k);
|
|
14806
|
-
F = x +
|
|
14826
|
+
F = x + sr(F);
|
|
14807
14827
|
var J;
|
|
14808
14828
|
if (n.accuracy) {
|
|
14809
|
-
var Z =
|
|
14829
|
+
var Z = ds({
|
|
14810
14830
|
northing: n.northing + n.accuracy,
|
|
14811
14831
|
easting: n.easting + n.accuracy,
|
|
14812
14832
|
zoneLetter: n.zoneLetter,
|
|
@@ -14838,8 +14858,8 @@ function vu(n, e, i) {
|
|
|
14838
14858
|
return yu(o, r, a);
|
|
14839
14859
|
}
|
|
14840
14860
|
function Ar(n) {
|
|
14841
|
-
var e = n %
|
|
14842
|
-
return e === 0 && (e =
|
|
14861
|
+
var e = n % nr;
|
|
14862
|
+
return e === 0 && (e = nr), e;
|
|
14843
14863
|
}
|
|
14844
14864
|
function yu(n, e, i) {
|
|
14845
14865
|
var a = i - 1, o = kr.charCodeAt(a), r = Tr.charCodeAt(a), h = o + n - 1, u = r + e, d = !1;
|
|
@@ -14993,10 +15013,10 @@ Ze.fromMGRS = function(n) {
|
|
|
14993
15013
|
Ze.prototype.toMGRS = function(n) {
|
|
14994
15014
|
return Er([this.x, this.y], n);
|
|
14995
15015
|
};
|
|
14996
|
-
var xu = 1, Cu = 0.25,
|
|
14997
|
-
function
|
|
15016
|
+
var xu = 1, Cu = 0.25, ar = 0.046875, rr = 0.01953125, or = 0.01068115234375, bu = 0.75, Pu = 0.46875, ku = 0.013020833333333334, Tu = 0.007120768229166667, Eu = 0.3645833333333333, Su = 0.005696614583333333, Au = 0.3076171875;
|
|
15017
|
+
function fs(n) {
|
|
14998
15018
|
var e = [];
|
|
14999
|
-
e[0] = xu - n * (Cu + n * (
|
|
15019
|
+
e[0] = xu - n * (Cu + n * (ar + n * (rr + n * or))), e[1] = n * (bu - n * (ar + n * (rr + n * or)));
|
|
15000
15020
|
var i = n * n;
|
|
15001
15021
|
return e[2] = i * (Pu - n * (ku + n * Tu)), i *= n, e[3] = i * (Eu - n * Su), e[4] = i * n * Au, e;
|
|
15002
15022
|
}
|
|
@@ -15004,7 +15024,7 @@ function Fe(n, e, i, a) {
|
|
|
15004
15024
|
return i *= e, e *= e, a[0] * n - i * (a[1] + e * (a[2] + e * (a[3] + e * a[4])));
|
|
15005
15025
|
}
|
|
15006
15026
|
var Iu = 20;
|
|
15007
|
-
function
|
|
15027
|
+
function ms(n, e, i) {
|
|
15008
15028
|
for (var a = 1 / (1 - e), o = n, r = Iu; r; --r) {
|
|
15009
15029
|
var h = Math.sin(o), u = 1 - e * h * h;
|
|
15010
15030
|
if (u = (Fe(o, h, Math.cos(o), i) - n) * (u * Math.sqrt(u)) * a, o -= u, Math.abs(u) < I)
|
|
@@ -15013,7 +15033,7 @@ function fs(n, e, i) {
|
|
|
15013
15033
|
return o;
|
|
15014
15034
|
}
|
|
15015
15035
|
function Ou() {
|
|
15016
|
-
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 =
|
|
15036
|
+
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 = fs(this.es), this.ml0 = Fe(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
|
15017
15037
|
}
|
|
15018
15038
|
function zu(n) {
|
|
15019
15039
|
var e = n.x, i = n.y, a = O(e - this.long0), o, r, h, u = Math.sin(i), d = Math.cos(i);
|
|
@@ -15039,7 +15059,7 @@ function zu(n) {
|
|
|
15039
15059
|
function Ru(n) {
|
|
15040
15060
|
var e, i, a, o, r = (n.x - this.x0) * (1 / this.a), h = (n.y - this.y0) * (1 / this.a);
|
|
15041
15061
|
if (this.es)
|
|
15042
|
-
if (e = this.ml0 + h / this.k0, i =
|
|
15062
|
+
if (e = this.ml0 + h / this.k0, i = ms(e, this.es, this.en), Math.abs(i) < A) {
|
|
15043
15063
|
var g = Math.sin(i), c = Math.cos(i), _ = Math.abs(c) > I ? Math.tan(i) : 0, y = this.ep2 * Math.pow(c, 2), w = Math.pow(y, 2), x = Math.pow(_, 2), b = Math.pow(x, 2);
|
|
15044
15064
|
e = 1 - this.es * Math.pow(g, 2);
|
|
15045
15065
|
var k = r * Math.sqrt(e) / this.k0, E = Math.pow(k, 2);
|
|
@@ -15076,7 +15096,7 @@ function Bu(n) {
|
|
|
15076
15096
|
var e = Math.abs(n);
|
|
15077
15097
|
return e = Du(e * (1 + e / (Et(1, e) + 1))), n < 0 ? -e : e;
|
|
15078
15098
|
}
|
|
15079
|
-
function
|
|
15099
|
+
function _s(n, e) {
|
|
15080
15100
|
for (var i = 2 * Math.cos(2 * e), a = n.length - 1, o = n[a], r = 0, h; --a >= 0; )
|
|
15081
15101
|
h = -r + i * o + n[a], r = o, o = h;
|
|
15082
15102
|
return e + h * Math.sin(2 * e);
|
|
@@ -15101,12 +15121,12 @@ function Fu() {
|
|
|
15101
15121
|
this.approx && (en.init.apply(this), this.forward = en.forward, this.inverse = en.inverse), 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.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
|
|
15102
15122
|
var n = this.es / (1 + Math.sqrt(1 - this.es)), e = n / (2 - n), i = e;
|
|
15103
15123
|
this.cgb[0] = e * (2 + e * (-2 / 3 + e * (-2 + e * (116 / 45 + e * (26 / 45 + e * (-2854 / 675)))))), this.cbg[0] = e * (-2 + e * (2 / 3 + e * (4 / 3 + e * (-82 / 45 + e * (32 / 45 + e * (4642 / 4725)))))), i = i * e, this.cgb[1] = i * (7 / 3 + e * (-8 / 5 + e * (-227 / 45 + e * (2704 / 315 + e * (2323 / 945))))), this.cbg[1] = i * (5 / 3 + e * (-16 / 15 + e * (-13 / 9 + e * (904 / 315 + e * (-1522 / 945))))), i = i * e, this.cgb[2] = i * (56 / 15 + e * (-136 / 35 + e * (-1262 / 105 + e * (73814 / 2835)))), this.cbg[2] = i * (-26 / 15 + e * (34 / 21 + e * (8 / 5 + e * (-12686 / 2835)))), i = i * e, this.cgb[3] = i * (4279 / 630 + e * (-332 / 35 + e * (-399572 / 14175))), this.cbg[3] = i * (1237 / 630 + e * (-12 / 5 + e * (-24832 / 14175))), i = i * e, this.cgb[4] = i * (4174 / 315 + e * (-144838 / 6237)), this.cbg[4] = i * (-734 / 315 + e * (109598 / 31185)), i = i * e, this.cgb[5] = i * (601676 / 22275), this.cbg[5] = i * (444337 / 155925), i = Math.pow(e, 2), this.Qn = this.k0 / (1 + e) * (1 + i * (1 / 4 + i * (1 / 64 + i / 256))), this.utg[0] = e * (-0.5 + e * (2 / 3 + e * (-37 / 96 + e * (1 / 360 + e * (81 / 512 + e * (-96199 / 604800)))))), this.gtu[0] = e * (0.5 + e * (-2 / 3 + e * (5 / 16 + e * (41 / 180 + e * (-127 / 288 + e * (7891 / 37800)))))), this.utg[1] = i * (-1 / 48 + e * (-1 / 15 + e * (437 / 1440 + e * (-46 / 105 + e * (1118711 / 3870720))))), this.gtu[1] = i * (13 / 48 + e * (-3 / 5 + e * (557 / 1440 + e * (281 / 630 + e * (-1983433 / 1935360))))), i = i * e, this.utg[2] = i * (-17 / 480 + e * (37 / 840 + e * (209 / 4480 + e * (-5569 / 90720)))), this.gtu[2] = i * (61 / 240 + e * (-103 / 140 + e * (15061 / 26880 + e * (167603 / 181440)))), i = i * e, this.utg[3] = i * (-4397 / 161280 + e * (11 / 504 + e * (830251 / 7257600))), this.gtu[3] = i * (49561 / 161280 + e * (-179 / 168 + e * (6601661 / 7257600))), i = i * e, this.utg[4] = i * (-4583 / 161280 + e * (108847 / 3991680)), this.gtu[4] = i * (34729 / 80640 + e * (-3418889 / 1995840)), i = i * e, this.utg[5] = i * (-20648693 / 638668800), this.gtu[5] = i * (212378941 / 319334400);
|
|
15104
|
-
var a =
|
|
15124
|
+
var a = _s(this.cbg, this.lat0);
|
|
15105
15125
|
this.Zb = -this.Qn * (a + Zu(this.gtu, 2 * a));
|
|
15106
15126
|
}
|
|
15107
15127
|
function Uu(n) {
|
|
15108
15128
|
var e = O(n.x - this.long0), i = n.y;
|
|
15109
|
-
i =
|
|
15129
|
+
i = _s(this.cbg, i);
|
|
15110
15130
|
var a = Math.sin(i), o = Math.cos(i), r = Math.sin(e), h = Math.cos(e);
|
|
15111
15131
|
i = Math.atan2(a, h * o), e = Math.atan2(r * o, Et(a, o * h)), e = Bu(Math.tan(e));
|
|
15112
15132
|
var u = zr(this.gtu, 2 * i, 2 * e);
|
|
@@ -15122,7 +15142,7 @@ function Hu(n) {
|
|
|
15122
15142
|
var r = zr(this.utg, 2 * i, 2 * e);
|
|
15123
15143
|
i = i + r[0], e = e + r[1], e = Math.atan(Or(e));
|
|
15124
15144
|
var h = Math.sin(i), u = Math.cos(i), d = Math.sin(e), m = Math.cos(e);
|
|
15125
|
-
i = Math.atan2(h * m, Et(d, m * u)), e = Math.atan2(d, m * u), a = O(e + this.long0), o =
|
|
15145
|
+
i = Math.atan2(h * m, Et(d, m * u)), e = Math.atan2(d, m * u), a = O(e + this.long0), o = _s(this.cgb, i);
|
|
15126
15146
|
} else
|
|
15127
15147
|
a = 1 / 0, o = 1 / 0;
|
|
15128
15148
|
return n.x = a, n.y = o, n;
|
|
@@ -15156,36 +15176,36 @@ const Xu = {
|
|
|
15156
15176
|
names: $u,
|
|
15157
15177
|
dependsOn: ju
|
|
15158
15178
|
};
|
|
15159
|
-
function
|
|
15179
|
+
function gs(n, e) {
|
|
15160
15180
|
return Math.pow((1 - n) / (1 + n), e);
|
|
15161
15181
|
}
|
|
15162
15182
|
var Ku = 20;
|
|
15163
15183
|
function Ju() {
|
|
15164
15184
|
var n = Math.sin(this.lat0), e = Math.cos(this.lat0);
|
|
15165
|
-
e *= e, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * n * n), this.C = Math.sqrt(1 + this.es * e * e / (1 - this.es)), this.phic0 = Math.asin(n / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + nt) / (Math.pow(Math.tan(0.5 * this.lat0 + nt), this.C) *
|
|
15185
|
+
e *= e, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * n * n), this.C = Math.sqrt(1 + this.es * e * e / (1 - this.es)), this.phic0 = Math.asin(n / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + nt) / (Math.pow(Math.tan(0.5 * this.lat0 + nt), this.C) * gs(this.e * n, this.ratexp));
|
|
15166
15186
|
}
|
|
15167
15187
|
function Yu(n) {
|
|
15168
15188
|
var e = n.x, i = n.y;
|
|
15169
|
-
return n.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * i + nt), this.C) *
|
|
15189
|
+
return n.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * i + nt), this.C) * gs(this.e * Math.sin(i), this.ratexp)) - A, n.x = this.C * e, n;
|
|
15170
15190
|
}
|
|
15171
15191
|
function Qu(n) {
|
|
15172
|
-
for (var e = 1e-14, i = n.x / this.C, a = n.y, o = Math.pow(Math.tan(0.5 * a + nt) / this.K, 1 / this.C), r = Ku; r > 0 && (a = 2 * Math.atan(o *
|
|
15192
|
+
for (var e = 1e-14, i = n.x / this.C, a = n.y, o = Math.pow(Math.tan(0.5 * a + nt) / this.K, 1 / this.C), r = Ku; r > 0 && (a = 2 * Math.atan(o * gs(this.e * Math.sin(n.y), -0.5 * this.e)) - A, !(Math.abs(a - n.y) < e)); --r)
|
|
15173
15193
|
n.y = a;
|
|
15174
15194
|
return r ? (n.x = i, n.y = a, n) : null;
|
|
15175
15195
|
}
|
|
15176
15196
|
var tc = ["gauss"];
|
|
15177
|
-
const
|
|
15197
|
+
const ps = {
|
|
15178
15198
|
init: Ju,
|
|
15179
15199
|
forward: Yu,
|
|
15180
15200
|
inverse: Qu,
|
|
15181
15201
|
names: tc
|
|
15182
15202
|
};
|
|
15183
15203
|
function ec() {
|
|
15184
|
-
|
|
15204
|
+
ps.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
|
|
15185
15205
|
}
|
|
15186
15206
|
function ic(n) {
|
|
15187
15207
|
var e, i, a, o;
|
|
15188
|
-
return n.x = O(n.x - this.long0),
|
|
15208
|
+
return n.x = O(n.x - this.long0), ps.forward.apply(this, [n]), e = Math.sin(n.y), i = Math.cos(n.y), a = Math.cos(n.x), o = this.k0 * this.R2 / (1 + this.sinc0 * e + this.cosc0 * i * a), n.x = o * i * Math.sin(n.x), n.y = o * (this.cosc0 * e - this.sinc0 * i * a), n.x = this.a * n.x + this.x0, n.y = this.a * n.y + this.y0, n;
|
|
15189
15209
|
}
|
|
15190
15210
|
function nc(n) {
|
|
15191
15211
|
var e, i, a, o, r;
|
|
@@ -15194,7 +15214,7 @@ function nc(n) {
|
|
|
15194
15214
|
e = Math.sin(h), i = Math.cos(h), o = Math.asin(i * this.sinc0 + n.y * e * this.cosc0 / r), a = Math.atan2(n.x * e, r * this.cosc0 * i - n.y * this.sinc0 * e);
|
|
15195
15215
|
} else
|
|
15196
15216
|
o = this.phic0, a = 0;
|
|
15197
|
-
return n.x = a, n.y = o,
|
|
15217
|
+
return n.x = a, n.y = o, ps.inverse.apply(this, [n]), n.x = O(n.x + this.long0), n;
|
|
15198
15218
|
}
|
|
15199
15219
|
var sc = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
|
15200
15220
|
const ac = {
|
|
@@ -15671,7 +15691,7 @@ const wd = {
|
|
|
15671
15691
|
inverse: Md,
|
|
15672
15692
|
names: Ld
|
|
15673
15693
|
};
|
|
15674
|
-
var
|
|
15694
|
+
var hr = 20;
|
|
15675
15695
|
function xd() {
|
|
15676
15696
|
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = yi(this.es), this.e1 = Mi(this.es), this.e2 = Li(this.es), this.e3 = wi(this.es), this.ml0 = this.a * bt(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
|
15677
15697
|
}
|
|
@@ -15695,7 +15715,7 @@ function bd(n) {
|
|
|
15695
15715
|
else {
|
|
15696
15716
|
h = this.lat0 + o / this.a, u = a * a / this.a / this.a + h * h, d = h;
|
|
15697
15717
|
var v;
|
|
15698
|
-
for (r =
|
|
15718
|
+
for (r = hr; r; --r)
|
|
15699
15719
|
if (v = Math.tan(d), m = -1 * (h * (d * v + 1) - d - 0.5 * (d * d + u) * v) / ((d - h) / v - 1), d += m, Math.abs(m) <= I) {
|
|
15700
15720
|
i = d;
|
|
15701
15721
|
break;
|
|
@@ -15707,7 +15727,7 @@ function bd(n) {
|
|
|
15707
15727
|
else {
|
|
15708
15728
|
h = (this.ml0 + o) / this.a, u = a * a / this.a / this.a + h * h, d = h;
|
|
15709
15729
|
var g, c, _, y, w;
|
|
15710
|
-
for (r =
|
|
15730
|
+
for (r = hr; r; --r)
|
|
15711
15731
|
if (w = this.e * Math.sin(d), g = Math.sqrt(1 - w * w) * Math.tan(d), c = this.a * bt(this.e0, this.e1, this.e2, this.e3, d), _ = this.e0 - 2 * this.e1 * Math.cos(2 * d) + 4 * this.e2 * Math.cos(4 * d) - 6 * this.e3 * Math.cos(6 * d), y = c / this.a, m = (h * (g * y + 1) - y - 0.5 * g * (y * y + u)) / (this.es * Math.sin(2 * d) * (y * y + u - 2 * h * y) / (4 * g) + (h - y) * (g * _ - 2 / Math.sin(2 * d)) - _), d -= m, Math.abs(m) <= I) {
|
|
15712
15732
|
i = d;
|
|
15713
15733
|
break;
|
|
@@ -15783,7 +15803,7 @@ const Dd = {
|
|
|
15783
15803
|
};
|
|
15784
15804
|
var Bd = 20;
|
|
15785
15805
|
function Zd() {
|
|
15786
|
-
this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en =
|
|
15806
|
+
this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en = fs(this.es);
|
|
15787
15807
|
}
|
|
15788
15808
|
function Gd(n) {
|
|
15789
15809
|
var e, i, a = n.x, o = n.y;
|
|
@@ -15805,7 +15825,7 @@ function Gd(n) {
|
|
|
15805
15825
|
}
|
|
15806
15826
|
function Fd(n) {
|
|
15807
15827
|
var e, i, a, o;
|
|
15808
|
-
return n.x -= this.x0, a = n.x / this.a, n.y -= this.y0, e = n.y / this.a, this.sphere ? (e /= this.C_y, a = a / (this.C_x * (this.m + Math.cos(e))), this.m ? e = le((this.m * e + Math.sin(e)) / this.n) : this.n !== 1 && (e = le(Math.sin(e) / this.n)), a = O(a + this.long0), e = ue(e)) : (e =
|
|
15828
|
+
return n.x -= this.x0, a = n.x / this.a, n.y -= this.y0, e = n.y / this.a, this.sphere ? (e /= this.C_y, a = a / (this.C_x * (this.m + Math.cos(e))), this.m ? e = le((this.m * e + Math.sin(e)) / this.n) : this.n !== 1 && (e = le(Math.sin(e) / this.n)), a = O(a + this.long0), e = ue(e)) : (e = ms(n.y / this.a, this.es, this.en), o = Math.abs(e), o < A ? (o = Math.sin(e), i = this.long0 + n.x * Math.sqrt(1 - this.es * o * o) / (this.a * Math.cos(e)), a = O(i)) : o - I < A && (a = this.long0)), n.x = a, n.y = e, n;
|
|
15809
15829
|
}
|
|
15810
15830
|
var Ud = ["Sinusoidal", "sinu"];
|
|
15811
15831
|
const Hd = {
|
|
@@ -15992,7 +16012,7 @@ const Mf = {
|
|
|
15992
16012
|
inverse: vf,
|
|
15993
16013
|
names: yf
|
|
15994
16014
|
};
|
|
15995
|
-
var
|
|
16015
|
+
var hs = [
|
|
15996
16016
|
[1, 22199e-21, -715515e-10, 31103e-10],
|
|
15997
16017
|
[0.9986, -482243e-9, -24897e-9, -13309e-10],
|
|
15998
16018
|
[0.9954, -83103e-8, -448605e-10, -986701e-12],
|
|
@@ -16052,7 +16072,7 @@ function bf(n) {
|
|
|
16052
16072
|
var e = O(n.x - this.long0), i = Math.abs(n.y), a = Math.floor(i * Dr);
|
|
16053
16073
|
a < 0 ? a = 0 : a >= Ne && (a = Ne - 1), i = jt * (i - Lf * a);
|
|
16054
16074
|
var o = {
|
|
16055
|
-
x: ln(
|
|
16075
|
+
x: ln(hs[a], i) * e,
|
|
16056
16076
|
y: ln(ri[a], i)
|
|
16057
16077
|
};
|
|
16058
16078
|
return n.y < 0 && (o.y = -o.y), o.x = o.x * this.a * Rr + this.x0, o.y = o.y * this.a * Nr + this.y0, o;
|
|
@@ -16063,7 +16083,7 @@ function Pf(n) {
|
|
|
16063
16083
|
y: Math.abs(n.y - this.y0) / (this.a * Nr)
|
|
16064
16084
|
};
|
|
16065
16085
|
if (e.y >= 1)
|
|
16066
|
-
e.x /=
|
|
16086
|
+
e.x /= hs[Ne][0], e.y = n.y < 0 ? -A : A;
|
|
16067
16087
|
else {
|
|
16068
16088
|
var i = Math.floor(e.y * Ne);
|
|
16069
16089
|
for (i < 0 ? i = 0 : i >= Ne && (i = Ne - 1); ; )
|
|
@@ -16076,7 +16096,7 @@ function Pf(n) {
|
|
|
16076
16096
|
var a = ri[i], o = 5 * (e.y - a[0]) / (ri[i + 1][0] - a[0]);
|
|
16077
16097
|
o = xf(function(r) {
|
|
16078
16098
|
return (ln(a, r) - e.y) / wf(a, r);
|
|
16079
|
-
}, o, I, 100), e.x /= ln(
|
|
16099
|
+
}, o, I, 100), e.x /= ln(hs[i], o), e.y = (5 * i + o) * yt, n.y < 0 && (e.y = -e.y);
|
|
16080
16100
|
}
|
|
16081
16101
|
return e.x = O(e.x + this.long0), e;
|
|
16082
16102
|
}
|
|
@@ -16276,7 +16296,7 @@ function Xf() {
|
|
|
16276
16296
|
var n;
|
|
16277
16297
|
if (this.phi1 = this.lat1, Math.abs(this.phi1) < pi)
|
|
16278
16298
|
throw new Error();
|
|
16279
|
-
this.es ? (this.en =
|
|
16299
|
+
this.es ? (this.en = fs(this.es), this.m1 = Fe(
|
|
16280
16300
|
this.phi1,
|
|
16281
16301
|
this.am1 = Math.sin(this.phi1),
|
|
16282
16302
|
n = Math.cos(this.phi1),
|
|
@@ -16290,7 +16310,7 @@ function Kf(n) {
|
|
|
16290
16310
|
function Jf(n) {
|
|
16291
16311
|
n.x = (n.x - (this.x0 || 0)) / this.a, n.y = (n.y - (this.y0 || 0)) / this.a;
|
|
16292
16312
|
var e, i, a, o;
|
|
16293
|
-
if (i = Et(n.x, n.y = this.am1 - n.y), o =
|
|
16313
|
+
if (i = Et(n.x, n.y = this.am1 - n.y), o = ms(this.am1 + this.m1 - i, this.es, this.en), (e = Math.abs(o)) < A)
|
|
16294
16314
|
e = Math.sin(o), a = i * Math.atan2(n.x, n.y) * Math.sqrt(1 - this.es * e * e) / Math.cos(o);
|
|
16295
16315
|
else if (Math.abs(e - A) <= pi)
|
|
16296
16316
|
a = 0;
|
|
@@ -16535,7 +16555,7 @@ function mm(n) {
|
|
|
16535
16555
|
e.push(r);
|
|
16536
16556
|
const u = Me("clusterType")[0], d = new zh(a, At(X({}, n.renderOptions), {
|
|
16537
16557
|
clusterType: u
|
|
16538
|
-
})), m = new
|
|
16558
|
+
})), m = new ns(a), v = new jh(a);
|
|
16539
16559
|
function g(x) {
|
|
16540
16560
|
const k = x.map((E) => E.getBounds()).filter((E) => E);
|
|
16541
16561
|
if (k && k.length > 0) {
|
|
@@ -16623,7 +16643,7 @@ function mm(n) {
|
|
|
16623
16643
|
d.removeMarkers(d.getAllMarkers());
|
|
16624
16644
|
},
|
|
16625
16645
|
setCursor() {
|
|
16626
|
-
return
|
|
16646
|
+
return us(a);
|
|
16627
16647
|
},
|
|
16628
16648
|
extraLayerManager: h
|
|
16629
16649
|
},
|