leaflet-html 0.13.5 → 0.13.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/leaflet-html.js +191 -175
- package/dist/leaflet-html.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/leaflet-html.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var Lt = (v, d, c) =>
|
1
|
+
var zs = Object.defineProperty;
|
2
|
+
var As = (v, d, c) => d in v ? zs(v, d, { enumerable: !0, configurable: !0, writable: !0, value: c }) : v[d] = c;
|
3
|
+
var Lt = (v, d, c) => As(v, typeof d != "symbol" ? d + "" : d, c);
|
4
4
|
var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, yi = { exports: {} };
|
5
5
|
/* @preserve
|
6
6
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
@@ -118,7 +118,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
118
118
|
function lt(t) {
|
119
119
|
t && ki.call(window, t);
|
120
120
|
}
|
121
|
-
var
|
121
|
+
var so = {
|
122
122
|
__proto__: null,
|
123
123
|
extend: x,
|
124
124
|
create: s,
|
@@ -153,7 +153,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
153
153
|
n.constructor = e, e.prototype = n;
|
154
154
|
for (var o in this)
|
155
155
|
Object.prototype.hasOwnProperty.call(this, o) && o !== "prototype" && o !== "__super__" && (e[o] = this[o]);
|
156
|
-
return t.statics && x(e, t.statics), t.includes && (
|
156
|
+
return t.statics && x(e, t.statics), t.includes && (ro(t.includes), x.apply(null, [n].concat(t.includes))), x(n, t), delete n.statics, delete n.includes, n.options && (n.options = i.options ? s(i.options) : {}, x(n.options, t.options)), n._initHooks = [], n.callInitHooks = function() {
|
157
157
|
if (!this._initHooksCalled) {
|
158
158
|
i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
|
159
159
|
for (var r = 0, u = n._initHooks.length; r < u; r++)
|
@@ -171,7 +171,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
171
171
|
};
|
172
172
|
return this.prototype._initHooks = this.prototype._initHooks || [], this.prototype._initHooks.push(i), this;
|
173
173
|
};
|
174
|
-
function
|
174
|
+
function ro(t) {
|
175
175
|
if (!(typeof L > "u" || !L || !L.Mixin)) {
|
176
176
|
t = W(t) ? t : [t];
|
177
177
|
for (var e = 0; e < t.length; e++)
|
@@ -890,7 +890,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
890
890
|
var t = 0.5 / (Math.PI * Re.R);
|
891
891
|
return Kt(t, 0.5, -t, 0.5);
|
892
892
|
}()
|
893
|
-
}),
|
893
|
+
}), ao = x({}, He, {
|
894
894
|
code: "EPSG:900913"
|
895
895
|
});
|
896
896
|
function zi(t) {
|
@@ -905,7 +905,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
905
905
|
}
|
906
906
|
return i || "M0 0";
|
907
907
|
}
|
908
|
-
var Fe = document.documentElement.style, le = "ActiveXObject" in window,
|
908
|
+
var Fe = document.documentElement.style, le = "ActiveXObject" in window, ho = le && !document.addEventListener, Zi = "msLaunchUri" in navigator && !("documentMode" in document), Ge = mt("webkit"), Ii = mt("android"), Bi = mt("android 2") || mt("android 3"), uo = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), lo = Ii && mt("Google") && uo < 537 && !("AudioNode" in window), Ue = !!window.opera, Ni = !Zi && mt("chrome"), Ri = mt("gecko") && !Ge && !Ue && !le, co = !Ni && mt("safari"), Di = mt("phantom"), Hi = "OTransition" in Fe, fo = navigator.platform.indexOf("Win") === 0, Fi = le && "transition" in Fe, We = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Bi, Gi = "MozPerspective" in Fe, _o = !window.L_DISABLE_3D && (Fi || We || Gi) && !Hi && !Di, Yt = typeof orientation < "u" || mt("mobile"), po = Yt && Ge, mo = Yt && We, Ui = !window.PointerEvent && window.MSPointerEvent, Wi = !!(window.PointerEvent || Ui), Vi = "ontouchstart" in window || !!window.TouchEvent, go = !window.L_NO_TOUCH && (Vi || Wi), vo = Yt && Ue, yo = Yt && Ri, Lo = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, wo = function() {
|
909
909
|
var t = !1;
|
910
910
|
try {
|
911
911
|
var e = Object.defineProperty({}, "passive", {
|
@@ -917,12 +917,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
917
917
|
} catch {
|
918
918
|
}
|
919
919
|
return t;
|
920
|
-
}(),
|
920
|
+
}(), bo = function() {
|
921
921
|
return !!document.createElement("canvas").getContext;
|
922
|
-
}(), Ve = !!(document.createElementNS && zi("svg").createSVGRect),
|
922
|
+
}(), Ve = !!(document.createElementNS && zi("svg").createSVGRect), Po = !!Ve && function() {
|
923
923
|
var t = document.createElement("div");
|
924
924
|
return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
|
925
|
-
}(),
|
925
|
+
}(), xo = !Ve && function() {
|
926
926
|
try {
|
927
927
|
var t = document.createElement("div");
|
928
928
|
t.innerHTML = '<v:shape adj="1"/>';
|
@@ -931,78 +931,78 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
931
931
|
} catch {
|
932
932
|
return !1;
|
933
933
|
}
|
934
|
-
}(),
|
934
|
+
}(), Co = navigator.platform.indexOf("Mac") === 0, To = navigator.platform.indexOf("Linux") === 0;
|
935
935
|
function mt(t) {
|
936
936
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
937
937
|
}
|
938
938
|
var S = {
|
939
939
|
ie: le,
|
940
|
-
ielt9:
|
940
|
+
ielt9: ho,
|
941
941
|
edge: Zi,
|
942
942
|
webkit: Ge,
|
943
943
|
android: Ii,
|
944
944
|
android23: Bi,
|
945
|
-
androidStock:
|
945
|
+
androidStock: lo,
|
946
946
|
opera: Ue,
|
947
947
|
chrome: Ni,
|
948
948
|
gecko: Ri,
|
949
|
-
safari:
|
949
|
+
safari: co,
|
950
950
|
phantom: Di,
|
951
951
|
opera12: Hi,
|
952
|
-
win:
|
952
|
+
win: fo,
|
953
953
|
ie3d: Fi,
|
954
954
|
webkit3d: We,
|
955
955
|
gecko3d: Gi,
|
956
|
-
any3d:
|
956
|
+
any3d: _o,
|
957
957
|
mobile: Yt,
|
958
|
-
mobileWebkit:
|
959
|
-
mobileWebkit3d:
|
958
|
+
mobileWebkit: po,
|
959
|
+
mobileWebkit3d: mo,
|
960
960
|
msPointer: Ui,
|
961
961
|
pointer: Wi,
|
962
|
-
touch:
|
962
|
+
touch: go,
|
963
963
|
touchNative: Vi,
|
964
|
-
mobileOpera:
|
965
|
-
mobileGecko:
|
966
|
-
retina:
|
967
|
-
passiveEvents:
|
968
|
-
canvas:
|
964
|
+
mobileOpera: vo,
|
965
|
+
mobileGecko: yo,
|
966
|
+
retina: Lo,
|
967
|
+
passiveEvents: wo,
|
968
|
+
canvas: bo,
|
969
969
|
svg: Ve,
|
970
|
-
vml:
|
971
|
-
inlineSvg:
|
972
|
-
mac:
|
973
|
-
linux:
|
970
|
+
vml: xo,
|
971
|
+
inlineSvg: Po,
|
972
|
+
mac: Co,
|
973
|
+
linux: To
|
974
974
|
}, qi = S.msPointer ? "MSPointerDown" : "pointerdown", ji = S.msPointer ? "MSPointerMove" : "pointermove", Ji = S.msPointer ? "MSPointerUp" : "pointerup", Ki = S.msPointer ? "MSPointerCancel" : "pointercancel", qe = {
|
975
975
|
touchstart: qi,
|
976
976
|
touchmove: ji,
|
977
977
|
touchend: Ji,
|
978
978
|
touchcancel: Ki
|
979
979
|
}, Yi = {
|
980
|
-
touchstart:
|
980
|
+
touchstart: zo,
|
981
981
|
touchmove: ce,
|
982
982
|
touchend: ce,
|
983
983
|
touchcancel: ce
|
984
984
|
}, Rt = {}, Xi = !1;
|
985
|
-
function To(t, e, i) {
|
986
|
-
return e === "touchstart" && Eo(), Yi[e] ? (i = Yi[e].bind(this, i), t.addEventListener(qe[e], i, !1), i) : (console.warn("wrong event specified:", e), _);
|
987
|
-
}
|
988
985
|
function Mo(t, e, i) {
|
986
|
+
return e === "touchstart" && Oo(), Yi[e] ? (i = Yi[e].bind(this, i), t.addEventListener(qe[e], i, !1), i) : (console.warn("wrong event specified:", e), _);
|
987
|
+
}
|
988
|
+
function So(t, e, i) {
|
989
989
|
if (!qe[e]) {
|
990
990
|
console.warn("wrong event specified:", e);
|
991
991
|
return;
|
992
992
|
}
|
993
993
|
t.removeEventListener(qe[e], i, !1);
|
994
994
|
}
|
995
|
-
function
|
995
|
+
function ko(t) {
|
996
996
|
Rt[t.pointerId] = t;
|
997
997
|
}
|
998
|
-
function
|
998
|
+
function Eo(t) {
|
999
999
|
Rt[t.pointerId] && (Rt[t.pointerId] = t);
|
1000
1000
|
}
|
1001
1001
|
function $i(t) {
|
1002
1002
|
delete Rt[t.pointerId];
|
1003
1003
|
}
|
1004
|
-
function
|
1005
|
-
Xi || (document.addEventListener(qi,
|
1004
|
+
function Oo() {
|
1005
|
+
Xi || (document.addEventListener(qi, ko, !0), document.addEventListener(ji, Eo, !0), document.addEventListener(Ji, $i, !0), document.addEventListener(Ki, $i, !0), Xi = !0);
|
1006
1006
|
}
|
1007
1007
|
function ce(t, e) {
|
1008
1008
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
@@ -1012,17 +1012,17 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1012
1012
|
e.changedTouches = [e], t(e);
|
1013
1013
|
}
|
1014
1014
|
}
|
1015
|
-
function
|
1015
|
+
function zo(t, e) {
|
1016
1016
|
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && tt(e), ce(t, e);
|
1017
1017
|
}
|
1018
|
-
function
|
1018
|
+
function Ao(t) {
|
1019
1019
|
var e = {}, i, n;
|
1020
1020
|
for (n in t)
|
1021
1021
|
i = t[n], e[n] = i && i.bind ? i.bind(t) : i;
|
1022
1022
|
return t = e, e.type = "dblclick", e.detail = 2, e.isTrusted = !1, e._simulated = !0, e;
|
1023
1023
|
}
|
1024
|
-
var
|
1025
|
-
function
|
1024
|
+
var Zo = 200;
|
1025
|
+
function Io(t, e) {
|
1026
1026
|
t.addEventListener("dblclick", e);
|
1027
1027
|
var i = 0, n;
|
1028
1028
|
function o(r) {
|
@@ -1038,7 +1038,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1038
1038
|
return m instanceof HTMLInputElement || m instanceof HTMLSelectElement;
|
1039
1039
|
}))) {
|
1040
1040
|
var f = Date.now();
|
1041
|
-
f - i <=
|
1041
|
+
f - i <= Zo ? (n++, n === 2 && e(Ao(r))) : n = 1, i = f;
|
1042
1042
|
}
|
1043
1043
|
}
|
1044
1044
|
}
|
@@ -1047,7 +1047,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1047
1047
|
simDblclick: o
|
1048
1048
|
};
|
1049
1049
|
}
|
1050
|
-
function
|
1050
|
+
function Bo(t, e) {
|
1051
1051
|
t.removeEventListener("dblclick", e.dblclick), t.removeEventListener("click", e.simDblclick);
|
1052
1052
|
}
|
1053
1053
|
var je = _e(
|
@@ -1111,9 +1111,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1111
1111
|
return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
|
1112
1112
|
}
|
1113
1113
|
function ct(t, e) {
|
1114
|
-
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style &&
|
1114
|
+
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style && No(t, e);
|
1115
1115
|
}
|
1116
|
-
function
|
1116
|
+
function No(t, e) {
|
1117
1117
|
var i = !1, n = "DXImageTransform.Microsoft.Alpha";
|
1118
1118
|
try {
|
1119
1119
|
i = t.filters.item(n);
|
@@ -1188,7 +1188,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1188
1188
|
boundingClientRect: e
|
1189
1189
|
};
|
1190
1190
|
}
|
1191
|
-
var
|
1191
|
+
var Ro = {
|
1192
1192
|
__proto__: null,
|
1193
1193
|
TRANSFORM: je,
|
1194
1194
|
TRANSITION: Xt,
|
@@ -1268,7 +1268,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1268
1268
|
var r = function(f) {
|
1269
1269
|
return i.call(n || t, f || window.event);
|
1270
1270
|
}, u = r;
|
1271
|
-
!S.touchNative && S.pointer && e.indexOf("touch") === 0 ? r =
|
1271
|
+
!S.touchNative && S.pointer && e.indexOf("touch") === 0 ? r = Mo(t, e, r) : S.touch && e === "dblclick" ? r = Io(t, r) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(ii[e] || e, r, S.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (r = function(f) {
|
1272
1272
|
f = f || window.event, ri(t, f) && u(f);
|
1273
1273
|
}, t.addEventListener(ii[e], r, !1)) : t.addEventListener(e, u, !1) : t.attachEvent("on" + e, r), t[gt] = t[gt] || {}, t[gt][o] = r;
|
1274
1274
|
}
|
@@ -1277,7 +1277,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1277
1277
|
var r = t[gt] && t[gt][o];
|
1278
1278
|
if (!r)
|
1279
1279
|
return this;
|
1280
|
-
!S.touchNative && S.pointer && e.indexOf("touch") === 0 ?
|
1280
|
+
!S.touchNative && S.pointer && e.indexOf("touch") === 0 ? So(t, e, r) : S.touch && e === "dblclick" ? Bo(t, r) : "removeEventListener" in t ? t.removeEventListener(ii[e] || e, r, !1) : t.detachEvent("on" + e, r), t[gt][o] = null;
|
1281
1281
|
}
|
1282
1282
|
function It(t) {
|
1283
1283
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
@@ -1312,11 +1312,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1312
1312
|
(t.clientY - n.top) / i.y - e.clientTop
|
1313
1313
|
);
|
1314
1314
|
}
|
1315
|
-
var
|
1315
|
+
var Do = S.linux && S.chrome ? window.devicePixelRatio : S.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
|
1316
1316
|
function rn(t) {
|
1317
1317
|
return S.edge ? t.wheelDeltaY / 2 : (
|
1318
1318
|
// Don't trust window-geometry-based delta
|
1319
|
-
t.deltaY && t.deltaMode === 0 ? -t.deltaY /
|
1319
|
+
t.deltaY && t.deltaMode === 0 ? -t.deltaY / Do : (
|
1320
1320
|
// Pixels
|
1321
1321
|
t.deltaY && t.deltaMode === 1 ? -t.deltaY * 20 : (
|
1322
1322
|
// Lines
|
@@ -1352,7 +1352,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1352
1352
|
}
|
1353
1353
|
return i !== t;
|
1354
1354
|
}
|
1355
|
-
var
|
1355
|
+
var Ho = {
|
1356
1356
|
__proto__: null,
|
1357
1357
|
on: z,
|
1358
1358
|
off: F,
|
@@ -1579,8 +1579,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1579
1579
|
t = B(t), e = e === void 0 ? u : e;
|
1580
1580
|
var f = Math.max(r.x, r.y), m = f * this.getZoomScale(u, e), P = o.distanceTo(n) || 1, T = 1.42, k = T * T;
|
1581
1581
|
function I(Y) {
|
1582
|
-
var Se = Y ? -1 : 1,
|
1583
|
-
return
|
1582
|
+
var Se = Y ? -1 : 1, Ss = Y ? m : f, ks = m * m - f * f + Se * k * k * P * P, Es = 2 * Ss * k * P, gi = ks / Es, Fn = Math.sqrt(gi * gi + 1) - gi, Os = Fn < 1e-9 ? -18 : Math.log(Fn);
|
1583
|
+
return Os;
|
1584
1584
|
}
|
1585
1585
|
function it(Y) {
|
1586
1586
|
return (Math.exp(Y) - Math.exp(-Y)) / 2;
|
@@ -1595,17 +1595,17 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1595
1595
|
function qt(Y) {
|
1596
1596
|
return f * ($(rt) / $(rt + T * Y));
|
1597
1597
|
}
|
1598
|
-
function
|
1598
|
+
function xs(Y) {
|
1599
1599
|
return f * ($(rt) * ft(rt + T * Y) - it(rt)) / k;
|
1600
1600
|
}
|
1601
|
-
function
|
1601
|
+
function Cs(Y) {
|
1602
1602
|
return 1 - Math.pow(1 - Y, 1.5);
|
1603
1603
|
}
|
1604
|
-
var
|
1604
|
+
var Ts = Date.now(), Dn = (I(1) - rt) / T, Ms = i.duration ? 1e3 * i.duration : 1e3 * Dn * 0.8;
|
1605
1605
|
function Hn() {
|
1606
|
-
var Y = (Date.now() -
|
1606
|
+
var Y = (Date.now() - Ts) / Ms, Se = Cs(Y) * Dn;
|
1607
1607
|
Y <= 1 ? (this._flyToFrame = nt(Hn, this), this._move(
|
1608
|
-
this.unproject(n.add(o.subtract(n).multiplyBy(
|
1608
|
+
this.unproject(n.add(o.subtract(n).multiplyBy(xs(Se) / P)), u),
|
1609
1609
|
this.getScaleZoom(f / qt(Se), u),
|
1610
1610
|
{ flyTo: !0 }
|
1611
1611
|
)) : this._move(t, e)._moveEnd(!0);
|
@@ -2243,7 +2243,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2243
2243
|
this._animatingZoom && (this._mapPane && j(this._mapPane, "leaflet-zoom-anim"), this._animatingZoom = !1, this._move(this._animateToCenter, this._animateToZoom, void 0, !0), this._tempFireZoomEvent && this.fire("zoom"), delete this._tempFireZoomEvent, this.fire("move"), this._moveEnd(!0));
|
2244
2244
|
}
|
2245
2245
|
});
|
2246
|
-
function
|
2246
|
+
function Fo(t, e) {
|
2247
2247
|
return new N(t, e);
|
2248
2248
|
}
|
2249
2249
|
var _t = Pt.extend({
|
@@ -2489,7 +2489,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2489
2489
|
F(t, "click", tt), e._preventClick = !1;
|
2490
2490
|
});
|
2491
2491
|
}
|
2492
|
-
}),
|
2492
|
+
}), Go = function(t, e, i) {
|
2493
2493
|
return new hn(t, e, i);
|
2494
2494
|
}, ai = _t.extend({
|
2495
2495
|
// @section
|
@@ -2554,7 +2554,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2554
2554
|
}), N.addInitHook(function() {
|
2555
2555
|
this.options.zoomControl && (this.zoomControl = new ai(), this.addControl(this.zoomControl));
|
2556
2556
|
});
|
2557
|
-
var
|
2557
|
+
var Uo = function(t) {
|
2558
2558
|
return new ai(t);
|
2559
2559
|
}, un = _t.extend({
|
2560
2560
|
// @section
|
@@ -2608,16 +2608,16 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2608
2608
|
var e = Math.pow(10, (Math.floor(t) + "").length - 1), i = t / e;
|
2609
2609
|
return i = i >= 10 ? 10 : i >= 5 ? 5 : i >= 3 ? 3 : i >= 2 ? 2 : 1, e * i;
|
2610
2610
|
}
|
2611
|
-
}),
|
2611
|
+
}), Wo = function(t) {
|
2612
2612
|
return new un(t);
|
2613
|
-
},
|
2613
|
+
}, Vo = '<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>', hi = _t.extend({
|
2614
2614
|
// @section
|
2615
2615
|
// @aka Control.Attribution options
|
2616
2616
|
options: {
|
2617
2617
|
position: "bottomright",
|
2618
2618
|
// @option prefix: String|false = 'Leaflet'
|
2619
2619
|
// The HTML text shown before the attributions. Pass `false` to disable.
|
2620
|
-
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (S.inlineSvg ?
|
2620
|
+
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (S.inlineSvg ? Vo + " " : "") + "Leaflet</a>"
|
2621
2621
|
},
|
2622
2622
|
initialize: function(t) {
|
2623
2623
|
C(this, t), this._attributions = {};
|
@@ -2666,10 +2666,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2666
2666
|
}), N.addInitHook(function() {
|
2667
2667
|
this.options.attributionControl && new hi().addTo(this);
|
2668
2668
|
});
|
2669
|
-
var
|
2669
|
+
var qo = function(t) {
|
2670
2670
|
return new hi(t);
|
2671
2671
|
};
|
2672
|
-
_t.Layers = hn, _t.Zoom = ai, _t.Scale = un, _t.Attribution = hi, ne.layers =
|
2672
|
+
_t.Layers = hn, _t.Zoom = ai, _t.Scale = un, _t.Attribution = hi, ne.layers = Go, ne.zoom = Uo, ne.scale = Wo, ne.attribution = qo;
|
2673
2673
|
var vt = Pt.extend({
|
2674
2674
|
initialize: function(t) {
|
2675
2675
|
this._map = t;
|
@@ -2699,7 +2699,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2699
2699
|
vt.addTo = function(t, e) {
|
2700
2700
|
return t.addHandler(e, this), this;
|
2701
2701
|
};
|
2702
|
-
var
|
2702
|
+
var jo = { Events: ht }, ln = S.touch ? "touchstart mousedown" : "mousedown", Et = Jt.extend({
|
2703
2703
|
options: {
|
2704
2704
|
// @section
|
2705
2705
|
// @aka Draggable options
|
@@ -2800,7 +2800,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2800
2800
|
}
|
2801
2801
|
return B([e / n, i / n]);
|
2802
2802
|
}
|
2803
|
-
var
|
2803
|
+
var Jo = {
|
2804
2804
|
__proto__: null,
|
2805
2805
|
clipPolygon: cn,
|
2806
2806
|
polygonCenter: dn,
|
@@ -2810,15 +2810,15 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2810
2810
|
if (!e || !t.length)
|
2811
2811
|
return t.slice();
|
2812
2812
|
var i = e * e;
|
2813
|
-
return t =
|
2813
|
+
return t = Xo(t, i), t = Yo(t, i), t;
|
2814
2814
|
}
|
2815
2815
|
function _n(t, e, i) {
|
2816
2816
|
return Math.sqrt(oe(t, e, i, !0));
|
2817
2817
|
}
|
2818
|
-
function
|
2818
|
+
function Ko(t, e, i) {
|
2819
2819
|
return oe(t, e, i);
|
2820
2820
|
}
|
2821
|
-
function
|
2821
|
+
function Yo(t, e) {
|
2822
2822
|
var i = t.length, n = typeof Uint8Array < "u" ? Uint8Array : Array, o = new n(i);
|
2823
2823
|
o[0] = o[i - 1] = 1, li(t, o, e, 0, i - 1);
|
2824
2824
|
var r, u = [];
|
@@ -2832,9 +2832,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2832
2832
|
m = oe(t[f], t[n], t[o], !0), m > r && (u = f, r = m);
|
2833
2833
|
r > i && (e[u] = 1, li(t, e, i, n, u), li(t, e, i, u, o));
|
2834
2834
|
}
|
2835
|
-
function
|
2835
|
+
function Xo(t, e) {
|
2836
2836
|
for (var i = [t[0]], n = 1, o = 0, r = t.length; n < r; n++)
|
2837
|
-
|
2837
|
+
$o(t[n], t[o]) > e && (i.push(t[n]), o = n);
|
2838
2838
|
return o < r - 1 && i.push(t[r - 1]), i;
|
2839
2839
|
}
|
2840
2840
|
var pn;
|
@@ -2856,7 +2856,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2856
2856
|
var i = 0;
|
2857
2857
|
return t.x < e.min.x ? i |= 1 : t.x > e.max.x && (i |= 2), t.y < e.min.y ? i |= 4 : t.y > e.max.y && (i |= 8), i;
|
2858
2858
|
}
|
2859
|
-
function
|
2859
|
+
function $o(t, e) {
|
2860
2860
|
var i = e.x - t.x, n = e.y - t.y;
|
2861
2861
|
return i * i + n * n;
|
2862
2862
|
}
|
@@ -2898,11 +2898,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2898
2898
|
var rt = e.unproject(E(P));
|
2899
2899
|
return B([rt.lat + T.lat, rt.lng + T.lng]);
|
2900
2900
|
}
|
2901
|
-
var
|
2901
|
+
var Qo = {
|
2902
2902
|
__proto__: null,
|
2903
2903
|
simplify: fn,
|
2904
2904
|
pointToSegmentDistance: _n,
|
2905
|
-
closestPointOnSegment:
|
2905
|
+
closestPointOnSegment: Ko,
|
2906
2906
|
clipSegment: mn,
|
2907
2907
|
_getEdgeIntersection: ge,
|
2908
2908
|
_getBitCode: Nt,
|
@@ -2931,12 +2931,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2931
2931
|
P = o * Math.sin(u), P = Math.pow((1 - P) / (1 + P), o / 2), m = Math.PI / 2 - 2 * Math.atan(r * P) - u, u += m;
|
2932
2932
|
return new D(u * e, t.x * e / i);
|
2933
2933
|
}
|
2934
|
-
},
|
2934
|
+
}, ts = {
|
2935
2935
|
__proto__: null,
|
2936
2936
|
LonLat: ci,
|
2937
2937
|
Mercator: di,
|
2938
2938
|
SphericalMercator: Re
|
2939
|
-
},
|
2939
|
+
}, es = x({}, kt, {
|
2940
2940
|
code: "EPSG:3395",
|
2941
2941
|
projection: di,
|
2942
2942
|
transformation: function() {
|
@@ -2947,7 +2947,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2947
2947
|
code: "EPSG:4326",
|
2948
2948
|
projection: ci,
|
2949
2949
|
transformation: Kt(1 / 180, 1, -1 / 180, 0.5)
|
2950
|
-
}),
|
2950
|
+
}), is = x({}, xt, {
|
2951
2951
|
projection: ci,
|
2952
2952
|
transformation: Kt(1, 0, -1, 0),
|
2953
2953
|
scale: function(t) {
|
@@ -2962,7 +2962,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2962
2962
|
},
|
2963
2963
|
infinite: !0
|
2964
2964
|
});
|
2965
|
-
xt.Earth = kt, xt.EPSG3395 =
|
2965
|
+
xt.Earth = kt, xt.EPSG3395 = es, xt.EPSG3857 = He, xt.EPSG900913 = ao, xt.EPSG4326 = yn, xt.Simple = is;
|
2966
2966
|
var pt = Jt.extend({
|
2967
2967
|
// Classes extending `L.Layer` will inherit the following options:
|
2968
2968
|
options: {
|
@@ -3166,7 +3166,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3166
3166
|
getLayerId: function(t) {
|
3167
3167
|
return l(t);
|
3168
3168
|
}
|
3169
|
-
}),
|
3169
|
+
}), ns = function(t, e) {
|
3170
3170
|
return new Ft(t, e);
|
3171
3171
|
}, Ct = Ft.extend({
|
3172
3172
|
addLayer: function(t) {
|
@@ -3200,7 +3200,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3200
3200
|
}
|
3201
3201
|
return t;
|
3202
3202
|
}
|
3203
|
-
}),
|
3203
|
+
}), os = function(t, e) {
|
3204
3204
|
return new Ct(t, e);
|
3205
3205
|
}, Gt = Pt.extend({
|
3206
3206
|
/* @section
|
@@ -3288,7 +3288,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3288
3288
|
return S.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
|
3289
3289
|
}
|
3290
3290
|
});
|
3291
|
-
function
|
3291
|
+
function ss(t) {
|
3292
3292
|
return new Gt(t);
|
3293
3293
|
}
|
3294
3294
|
var se = Gt.extend({
|
@@ -3554,7 +3554,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3554
3554
|
return this.options.icon.options.tooltipAnchor;
|
3555
3555
|
}
|
3556
3556
|
});
|
3557
|
-
function
|
3557
|
+
function rs(t, e) {
|
3558
3558
|
return new ve(t, e);
|
3559
3559
|
}
|
3560
3560
|
var Ot = pt.extend({
|
@@ -3701,7 +3701,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3701
3701
|
return t.distanceTo(this._point) <= this._radius + this._clickTolerance();
|
3702
3702
|
}
|
3703
3703
|
});
|
3704
|
-
function
|
3704
|
+
function as(t, e) {
|
3705
3705
|
return new ye(t, e);
|
3706
3706
|
}
|
3707
3707
|
var fi = ye.extend({
|
@@ -3742,7 +3742,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3742
3742
|
this._updateBounds();
|
3743
3743
|
}
|
3744
3744
|
});
|
3745
|
-
function
|
3745
|
+
function hs(t, e, i) {
|
3746
3746
|
return new fi(t, e, i);
|
3747
3747
|
}
|
3748
3748
|
var Tt = Ot.extend({
|
@@ -3876,7 +3876,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3876
3876
|
return !1;
|
3877
3877
|
}
|
3878
3878
|
});
|
3879
|
-
function
|
3879
|
+
function us(t, e) {
|
3880
3880
|
return new Tt(t, e);
|
3881
3881
|
}
|
3882
3882
|
Tt._flat = gn;
|
@@ -3929,7 +3929,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3929
3929
|
return e || Tt.prototype._containsPoint.call(this, t, !0);
|
3930
3930
|
}
|
3931
3931
|
});
|
3932
|
-
function
|
3932
|
+
function ls(t, e) {
|
3933
3933
|
return new Ut(t, e);
|
3934
3934
|
}
|
3935
3935
|
var Mt = Ct.extend({
|
@@ -4147,7 +4147,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4147
4147
|
function bn(t, e) {
|
4148
4148
|
return new Mt(t, e);
|
4149
4149
|
}
|
4150
|
-
var
|
4150
|
+
var cs = bn, xe = pt.extend({
|
4151
4151
|
// @section
|
4152
4152
|
// @aka ImageOverlay options
|
4153
4153
|
options: {
|
@@ -4270,7 +4270,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4270
4270
|
getCenter: function() {
|
4271
4271
|
return this._bounds.getCenter();
|
4272
4272
|
}
|
4273
|
-
}),
|
4273
|
+
}), ds = function(t, e, i) {
|
4274
4274
|
return new xe(t, e, i);
|
4275
4275
|
}, Pn = xe.extend({
|
4276
4276
|
// @section
|
@@ -4312,7 +4312,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4312
4312
|
// Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
|
4313
4313
|
// used by this overlay.
|
4314
4314
|
});
|
4315
|
-
function
|
4315
|
+
function fs(t, e, i) {
|
4316
4316
|
return new Pn(t, e, i);
|
4317
4317
|
}
|
4318
4318
|
var xn = xe.extend({
|
@@ -4324,7 +4324,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4324
4324
|
// Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
|
4325
4325
|
// used by this overlay.
|
4326
4326
|
});
|
4327
|
-
function
|
4327
|
+
function _s(t, e, i) {
|
4328
4328
|
return new xn(t, e, i);
|
4329
4329
|
}
|
4330
4330
|
var yt = pt.extend({
|
@@ -4610,7 +4610,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4610
4610
|
_getAnchor: function() {
|
4611
4611
|
return E(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
|
4612
4612
|
}
|
4613
|
-
}),
|
4613
|
+
}), ps = function(t, e) {
|
4614
4614
|
return new Ce(t, e);
|
4615
4615
|
};
|
4616
4616
|
N.mergeOptions({
|
@@ -4762,7 +4762,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4762
4762
|
_getAnchor: function() {
|
4763
4763
|
return E(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
|
4764
4764
|
}
|
4765
|
-
}),
|
4765
|
+
}), ms = function(t, e) {
|
4766
4766
|
return new Te(t, e);
|
4767
4767
|
};
|
4768
4768
|
N.include({
|
@@ -4892,7 +4892,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4892
4892
|
return null;
|
4893
4893
|
}
|
4894
4894
|
});
|
4895
|
-
function
|
4895
|
+
function gs(t) {
|
4896
4896
|
return new Cn(t);
|
4897
4897
|
}
|
4898
4898
|
Gt.Default = se;
|
@@ -5296,7 +5296,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5296
5296
|
return !0;
|
5297
5297
|
}
|
5298
5298
|
});
|
5299
|
-
function
|
5299
|
+
function vs(t) {
|
5300
5300
|
return new re(t);
|
5301
5301
|
}
|
5302
5302
|
var Vt = re.extend({
|
@@ -5480,10 +5480,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5480
5480
|
return x(this.wmsParams, t), e || this.redraw(), this;
|
5481
5481
|
}
|
5482
5482
|
});
|
5483
|
-
function
|
5483
|
+
function ys(t, e) {
|
5484
5484
|
return new Mn(t, e);
|
5485
5485
|
}
|
5486
|
-
Vt.WMS = Mn, Tn.wms =
|
5486
|
+
Vt.WMS = Mn, Tn.wms = ys;
|
5487
5487
|
var St = pt.extend({
|
5488
5488
|
// @section
|
5489
5489
|
// @aka Renderer options
|
@@ -5735,7 +5735,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5735
5735
|
return function(t) {
|
5736
5736
|
return document.createElement("<" + t + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">');
|
5737
5737
|
};
|
5738
|
-
}(),
|
5738
|
+
}(), Ls = {
|
5739
5739
|
_initContainer: function() {
|
5740
5740
|
this._container = R("div", "leaflet-vml-container");
|
5741
5741
|
},
|
@@ -5821,7 +5821,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5821
5821
|
Ht(t._path);
|
5822
5822
|
}
|
5823
5823
|
});
|
5824
|
-
S.vml && he.include(
|
5824
|
+
S.vml && he.include(Ls);
|
5825
5825
|
function En(t) {
|
5826
5826
|
return S.svg || S.vml ? new he(t) : null;
|
5827
5827
|
}
|
@@ -5862,7 +5862,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5862
5862
|
];
|
5863
5863
|
}
|
5864
5864
|
});
|
5865
|
-
function
|
5865
|
+
function ws(t, e) {
|
5866
5866
|
return new On(t, e);
|
5867
5867
|
}
|
5868
5868
|
he.create = Me, he.pointsToPath = Ai, Mt.geometryToLayer = Le, Mt.coordsToLatLng = _i, Mt.coordsToLatLngs = we, Mt.latLngToCoords = pi, Mt.latLngsToCoords = be, Mt.getFeature = Wt, Mt.asFeature = Pe, N.mergeOptions({
|
@@ -6199,7 +6199,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
6199
6199
|
}
|
6200
6200
|
});
|
6201
6201
|
N.addInitHook("addHandler", "scrollWheelZoom", Bn);
|
6202
|
-
var
|
6202
|
+
var bs = 600;
|
6203
6203
|
N.mergeOptions({
|
6204
6204
|
// @section Touch interaction options
|
6205
6205
|
// @option tapHold: Boolean
|
@@ -6222,7 +6222,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
6222
6222
|
var e = t.touches[0];
|
6223
6223
|
this._startPos = this._newPos = new O(e.clientX, e.clientY), this._holdTimeout = setTimeout(a(function() {
|
6224
6224
|
this._cancel(), this._isTapValid() && (z(document, "touchend", tt), z(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
|
6225
|
-
}, this),
|
6225
|
+
}, this), bs), z(document, "touchend touchcancel contextmenu", this._cancel, this), z(document, "touchmove", this._onMove, this);
|
6226
6226
|
}
|
6227
6227
|
},
|
6228
6228
|
_cancelClickPrevent: function t() {
|
@@ -6306,10 +6306,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
6306
6306
|
this._zooming = !1, lt(this._animRequest), F(document, "touchmove", this._onTouchMove, this), F(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));
|
6307
6307
|
}
|
6308
6308
|
});
|
6309
|
-
N.addInitHook("addHandler", "touchZoom", Rn), N.BoxZoom = zn, N.DoubleClickZoom = An, N.Drag = Zn, N.Keyboard = In, N.ScrollWheelZoom = Bn, N.TapHold = Nn, N.TouchZoom = Rn, c.Bounds = V, c.Browser = S, c.CRS = xt, c.Canvas = Sn, c.Circle = fi, c.CircleMarker = ye, c.Class = Pt, c.Control = _t, c.DivIcon = Cn, c.DivOverlay = yt, c.DomEvent =
|
6310
|
-
var
|
6309
|
+
N.addInitHook("addHandler", "touchZoom", Rn), N.BoxZoom = zn, N.DoubleClickZoom = An, N.Drag = Zn, N.Keyboard = In, N.ScrollWheelZoom = Bn, N.TapHold = Nn, N.TouchZoom = Rn, c.Bounds = V, c.Browser = S, c.CRS = xt, c.Canvas = Sn, c.Circle = fi, c.CircleMarker = ye, c.Class = Pt, c.Control = _t, c.DivIcon = Cn, c.DivOverlay = yt, c.DomEvent = Ho, c.DomUtil = Ro, c.Draggable = Et, c.Evented = Jt, c.FeatureGroup = Ct, c.GeoJSON = Mt, c.GridLayer = re, c.Handler = vt, c.Icon = Gt, c.ImageOverlay = xe, c.LatLng = D, c.LatLngBounds = st, c.Layer = pt, c.LayerGroup = Ft, c.LineUtil = Qo, c.Map = N, c.Marker = ve, c.Mixin = jo, c.Path = Ot, c.Point = O, c.PolyUtil = Jo, c.Polygon = Ut, c.Polyline = Tt, c.Popup = Ce, c.PosAnimation = an, c.Projection = ts, c.Rectangle = On, c.Renderer = St, c.SVG = he, c.SVGOverlay = xn, c.TileLayer = Vt, c.Tooltip = Te, c.Transformation = De, c.Util = so, c.VideoOverlay = Pn, c.bind = a, c.bounds = ot, c.canvas = kn, c.circle = hs, c.circleMarker = as, c.control = ne, c.divIcon = gs, c.extend = x, c.featureGroup = os, c.geoJSON = bn, c.geoJson = cs, c.gridLayer = vs, c.icon = ss, c.imageOverlay = ds, c.latLng = B, c.latLngBounds = J, c.layerGroup = ns, c.map = Fo, c.marker = rs, c.point = E, c.polygon = ls, c.polyline = us, c.popup = ps, c.rectangle = ws, c.setOptions = C, c.stamp = l, c.svg = En, c.svgOverlay = _s, c.tileLayer = Tn, c.tooltip = ms, c.transformation = Kt, c.version = g, c.videoOverlay = fs;
|
6310
|
+
var Ps = window.L;
|
6311
6311
|
c.noConflict = function() {
|
6312
|
-
return window.L =
|
6312
|
+
return window.L = Ps, this;
|
6313
6313
|
}, window.L = c;
|
6314
6314
|
});
|
6315
6315
|
})(yi, yi.exports);
|
@@ -6326,7 +6326,7 @@ const et = "l:layer:connected", Jn = "l:popup:connected", Oe = "l:icon:connected
|
|
6326
6326
|
});
|
6327
6327
|
}
|
6328
6328
|
};
|
6329
|
-
class
|
6329
|
+
class Zs extends HTMLElement {
|
6330
6330
|
constructor() {
|
6331
6331
|
super();
|
6332
6332
|
}
|
@@ -6336,7 +6336,7 @@ class As extends HTMLElement {
|
|
6336
6336
|
});
|
6337
6337
|
}
|
6338
6338
|
}
|
6339
|
-
class
|
6339
|
+
class Is extends HTMLElement {
|
6340
6340
|
constructor() {
|
6341
6341
|
super();
|
6342
6342
|
}
|
@@ -6365,7 +6365,7 @@ class zt extends HTMLElement {
|
|
6365
6365
|
(d = this.layer) == null || d.remove();
|
6366
6366
|
}
|
6367
6367
|
}
|
6368
|
-
class
|
6368
|
+
class Bs extends zt {
|
6369
6369
|
constructor() {
|
6370
6370
|
super(), this.layer = null;
|
6371
6371
|
}
|
@@ -6397,7 +6397,7 @@ class Is extends zt {
|
|
6397
6397
|
}).observe(this, { childList: !0 });
|
6398
6398
|
}
|
6399
6399
|
}
|
6400
|
-
class
|
6400
|
+
class Ns extends Error {
|
6401
6401
|
/**
|
6402
6402
|
* @param {Issue[]} issues
|
6403
6403
|
*/
|
@@ -6411,16 +6411,16 @@ class Bs extends Error {
|
|
6411
6411
|
return JSON.stringify(this.issues, null, 2);
|
6412
6412
|
}
|
6413
6413
|
}
|
6414
|
-
const
|
6414
|
+
const Rs = (v) => ({
|
6415
6415
|
status: "clean",
|
6416
6416
|
issues: [],
|
6417
6417
|
value: v
|
6418
|
-
}),
|
6419
|
-
const c = v(
|
6418
|
+
}), Ds = ({ value: v }) => v, wt = (v, d) => {
|
6419
|
+
const c = v(Rs(d));
|
6420
6420
|
if (c.status !== "clean")
|
6421
|
-
throw new
|
6422
|
-
return
|
6423
|
-
},
|
6421
|
+
throw new Ns(c.issues);
|
6422
|
+
return Ds(c);
|
6423
|
+
}, Hs = (v) => (d) => {
|
6424
6424
|
let { status: c, issues: g } = d;
|
6425
6425
|
const x = {};
|
6426
6426
|
for (const s of Object.keys(v)) {
|
@@ -6436,7 +6436,7 @@ const Ns = (v) => ({
|
|
6436
6436
|
a.status !== "clean" && (g = a.status), !(a.value === null && a.status === "clean") && (c = [...c, ...a.issues], x[s] = a.value);
|
6437
6437
|
}
|
6438
6438
|
return { status: g, issues: c, value: x };
|
6439
|
-
},
|
6439
|
+
}, Fs = (...v) => (d) => {
|
6440
6440
|
for (let c = 0; c < v.length && (d = v[c](d), d.status !== "abort"); c++)
|
6441
6441
|
;
|
6442
6442
|
return d;
|
@@ -6449,21 +6449,21 @@ const Ns = (v) => ({
|
|
6449
6449
|
let g = c.getAttribute(v);
|
6450
6450
|
return g === null ? {
|
6451
6451
|
status: "abort",
|
6452
|
-
issues: [...d.issues,
|
6452
|
+
issues: [...d.issues, Js(c, v)],
|
6453
6453
|
value: null
|
6454
6454
|
} : { ...d, value: g };
|
6455
|
-
},
|
6455
|
+
}, Gs = () => (v) => {
|
6456
6456
|
let d = parseInt(v.value);
|
6457
6457
|
return isNaN(d) ? {
|
6458
6458
|
status: "abort",
|
6459
|
-
issues: [...v.issues,
|
6459
|
+
issues: [...v.issues, Vs(v.value)],
|
6460
6460
|
value: d
|
6461
6461
|
} : { ...v, value: d };
|
6462
|
-
},
|
6462
|
+
}, Us = () => (v) => {
|
6463
6463
|
let d = parseFloat(v.value);
|
6464
6464
|
return isNaN(d) ? {
|
6465
6465
|
status: "abort",
|
6466
|
-
issues: [...v.issues,
|
6466
|
+
issues: [...v.issues, qs(v.value)],
|
6467
6467
|
value: d
|
6468
6468
|
} : { ...v, value: d };
|
6469
6469
|
}, ze = () => (v) => {
|
@@ -6473,21 +6473,21 @@ const Ns = (v) => ({
|
|
6473
6473
|
} catch (c) {
|
6474
6474
|
return {
|
6475
6475
|
status: "abort",
|
6476
|
-
issues: [...v.issues,
|
6476
|
+
issues: [...v.issues, js(c)],
|
6477
6477
|
value: null
|
6478
6478
|
};
|
6479
6479
|
}
|
6480
6480
|
return { ...v, value: d };
|
6481
|
-
},
|
6481
|
+
}, Ws = () => (v) => ({ ...v, value: v.value.toLowerCase() === "true" }), Ee = (v, ...d) => Fs(Q(v), ...d), Vs = (v) => ({
|
6482
6482
|
code: "parse_int",
|
6483
6483
|
message: `could not parse int given: "${v}"`
|
6484
|
-
}),
|
6484
|
+
}), qs = (v) => ({
|
6485
6485
|
code: "parse_float",
|
6486
6486
|
message: `could not parse float given: "${v}"`
|
6487
|
-
}),
|
6487
|
+
}), js = (v) => ({
|
6488
6488
|
code: "parse_json",
|
6489
6489
|
message: v.message
|
6490
|
-
}),
|
6490
|
+
}), Js = (v, d) => ({
|
6491
6491
|
code: "missing_attribute",
|
6492
6492
|
message: `${v.tagName.toLowerCase()} missing attribute '${d}'`
|
6493
6493
|
}), Ze = class Ze extends HTMLElement {
|
@@ -6529,8 +6529,8 @@ const Ns = (v) => ({
|
|
6529
6529
|
}), $n(this, this.map), this.hasAttribute("fit-world"))
|
6530
6530
|
this.map.fitWorld();
|
6531
6531
|
else {
|
6532
|
-
const g =
|
6533
|
-
zoom: Ee("zoom",
|
6532
|
+
const g = Hs({
|
6533
|
+
zoom: Ee("zoom", Gs()),
|
6534
6534
|
center: Ee("center", ze())
|
6535
6535
|
}), { zoom: x, center: s } = wt(g, this);
|
6536
6536
|
this.map.setView(s, x);
|
@@ -6567,7 +6567,7 @@ class Qn extends zt {
|
|
6567
6567
|
connectedCallback() {
|
6568
6568
|
const d = wt(Ee("lat-lng", ze()), this), c = wt(
|
6569
6569
|
Be({
|
6570
|
-
opacity: Li(ut(Q("opacity")), wi(
|
6570
|
+
opacity: Li(ut(Q("opacity")), wi(Us()))
|
6571
6571
|
}),
|
6572
6572
|
this
|
6573
6573
|
), g = this.closest("l-pane");
|
@@ -6593,7 +6593,7 @@ class Qn extends zt {
|
|
6593
6593
|
}
|
6594
6594
|
}
|
6595
6595
|
Lt(Qn, "observedAttributes", ["lat-lng", "opacity", "icon"]);
|
6596
|
-
class
|
6596
|
+
class Ks extends HTMLElement {
|
6597
6597
|
constructor() {
|
6598
6598
|
super();
|
6599
6599
|
}
|
@@ -6603,7 +6603,7 @@ class Js extends HTMLElement {
|
|
6603
6603
|
});
|
6604
6604
|
}
|
6605
6605
|
}
|
6606
|
-
class
|
6606
|
+
class Ys extends HTMLElement {
|
6607
6607
|
constructor() {
|
6608
6608
|
super();
|
6609
6609
|
}
|
@@ -6623,28 +6623,41 @@ class Ks extends HTMLElement {
|
|
6623
6623
|
this.dispatchEvent(x);
|
6624
6624
|
}
|
6625
6625
|
}
|
6626
|
+
const to = (v) => {
|
6627
|
+
const d = {}, c = v.getAttribute("tile-size");
|
6628
|
+
if (c) {
|
6629
|
+
const g = parseInt(c);
|
6630
|
+
d.tileSize = isNaN(g) ? G.point(JSON.parse(c)) : g;
|
6631
|
+
}
|
6632
|
+
return d;
|
6633
|
+
};
|
6626
6634
|
class Ci extends zt {
|
6627
6635
|
constructor() {
|
6628
6636
|
super(), this.layer = null;
|
6629
6637
|
}
|
6630
6638
|
connectedCallback() {
|
6631
6639
|
const d = wt(Q("url-template"), this), c = Ci.parseTemplateAttributes(d), g = {};
|
6632
|
-
for (const
|
6633
|
-
const
|
6634
|
-
|
6640
|
+
for (const y of c) {
|
6641
|
+
const _ = this.getAttribute(y);
|
6642
|
+
_ !== null && (g[y] = _);
|
6635
6643
|
}
|
6636
6644
|
const x = {};
|
6637
6645
|
this.parentElement.tagName.toLowerCase() === "l-pane" && (x.pane = this.parentElement.getAttribute("name"));
|
6638
6646
|
const s = this.getAttribute("name"), a = Be({
|
6639
6647
|
attribution: ut(Q("attribution")),
|
6640
6648
|
errorTileUrl: ut(Q("error-tile-url"))
|
6641
|
-
}), h = wt(a, this);
|
6642
|
-
this.layer = G.tileLayer(d, {
|
6643
|
-
|
6649
|
+
}), h = wt(a, this), l = to(this);
|
6650
|
+
this.layer = G.tileLayer(d, {
|
6651
|
+
...g,
|
6652
|
+
...x,
|
6653
|
+
...h,
|
6654
|
+
...l
|
6655
|
+
});
|
6656
|
+
const p = new CustomEvent(et, {
|
6644
6657
|
detail: { name: s, layer: this.layer },
|
6645
6658
|
bubbles: !0
|
6646
6659
|
});
|
6647
|
-
this.dispatchEvent(
|
6660
|
+
this.dispatchEvent(p);
|
6648
6661
|
}
|
6649
6662
|
/**
|
6650
6663
|
* @param {string} urlTemplate
|
@@ -6655,7 +6668,7 @@ class Ci extends zt {
|
|
6655
6668
|
return [...d.matchAll(c)].map((g) => g[1]);
|
6656
6669
|
}
|
6657
6670
|
}
|
6658
|
-
class
|
6671
|
+
class Xs extends zt {
|
6659
6672
|
static get observedAttributes() {
|
6660
6673
|
return ["options"];
|
6661
6674
|
}
|
@@ -6684,31 +6697,34 @@ class Ys extends zt {
|
|
6684
6697
|
if (s)
|
6685
6698
|
try {
|
6686
6699
|
return JSON.parse(s);
|
6687
|
-
} catch (
|
6700
|
+
} catch (y) {
|
6688
6701
|
return console.error(
|
6689
6702
|
"Error whilst parsing JSON for options attribute in l-tile-layer-wms",
|
6690
|
-
|
6703
|
+
y
|
6691
6704
|
), {};
|
6692
6705
|
}
|
6693
6706
|
else
|
6694
6707
|
return {};
|
6695
6708
|
}, h = {};
|
6696
|
-
this.parentElement.tagName.toLowerCase() === "l-pane" && (h.pane = this.parentElement.getAttribute("name"))
|
6709
|
+
this.parentElement.tagName.toLowerCase() === "l-pane" && (h.pane = this.parentElement.getAttribute("name"));
|
6710
|
+
const l = to(this);
|
6711
|
+
this.layer = G.tileLayer.wms(d, {
|
6697
6712
|
...x,
|
6698
6713
|
...a(),
|
6699
|
-
...h
|
6714
|
+
...h,
|
6715
|
+
...l
|
6700
6716
|
});
|
6701
|
-
const
|
6717
|
+
const p = new CustomEvent(et, {
|
6702
6718
|
detail: { name: c, layer: this.layer },
|
6703
6719
|
bubbles: !0
|
6704
6720
|
});
|
6705
|
-
this.dispatchEvent(
|
6721
|
+
this.dispatchEvent(p);
|
6706
6722
|
}
|
6707
6723
|
reloadLayer() {
|
6708
6724
|
this.layer && this.layer.remove(), this.initLayer();
|
6709
6725
|
}
|
6710
6726
|
}
|
6711
|
-
class
|
6727
|
+
class eo extends HTMLElement {
|
6712
6728
|
constructor() {
|
6713
6729
|
super();
|
6714
6730
|
}
|
@@ -6732,8 +6748,8 @@ class to extends HTMLElement {
|
|
6732
6748
|
});
|
6733
6749
|
}
|
6734
6750
|
}
|
6735
|
-
Lt(
|
6736
|
-
class
|
6751
|
+
Lt(eo, "observedAttributes", ["bounds"]);
|
6752
|
+
class io extends zt {
|
6737
6753
|
constructor() {
|
6738
6754
|
super(), this.layer = null;
|
6739
6755
|
}
|
@@ -6766,8 +6782,8 @@ class eo extends zt {
|
|
6766
6782
|
this.layer !== null && (d === "url" ? this.layer.setUrl(g) : d === "bounds" ? this.layer.setBounds(JSON.parse(g)) : d === "opacity" && this.layer.setOpacity(parseFloat(g)));
|
6767
6783
|
}
|
6768
6784
|
}
|
6769
|
-
Lt(
|
6770
|
-
class
|
6785
|
+
Lt(io, "observedAttributes", ["url", "bounds", "opacity"]);
|
6786
|
+
class $s extends zt {
|
6771
6787
|
constructor() {
|
6772
6788
|
super();
|
6773
6789
|
}
|
@@ -6790,7 +6806,7 @@ class Xs extends zt {
|
|
6790
6806
|
);
|
6791
6807
|
}
|
6792
6808
|
}
|
6793
|
-
class
|
6809
|
+
class Qs extends HTMLElement {
|
6794
6810
|
constructor() {
|
6795
6811
|
super(), this.layer = null;
|
6796
6812
|
}
|
@@ -6807,7 +6823,7 @@ class $s extends HTMLElement {
|
|
6807
6823
|
));
|
6808
6824
|
}
|
6809
6825
|
}
|
6810
|
-
const ue = (v) => v.replace(/-./g, (d) => d[1].toUpperCase()),
|
6826
|
+
const ue = (v) => v.replace(/-./g, (d) => d[1].toUpperCase()), tr = (v) => v.split("").map((d, c) => d.toUpperCase() === d ? `${c !== 0 ? "-" : ""}${d.toLowerCase()}` : d).join(""), vi = [
|
6811
6827
|
"icon-url",
|
6812
6828
|
"icon-retina-url",
|
6813
6829
|
"shadow-url",
|
@@ -6871,7 +6887,7 @@ const ue = (v) => v.replace(/-./g, (d) => d[1].toUpperCase()), Qs = (v) => v.spl
|
|
6871
6887
|
);
|
6872
6888
|
}), d.crossOrigin = Li(
|
6873
6889
|
ut(Q("cross-origin")),
|
6874
|
-
wi(
|
6890
|
+
wi(Ws())
|
6875
6891
|
);
|
6876
6892
|
const c = Be(d);
|
6877
6893
|
return wt(c, this);
|
@@ -6882,7 +6898,7 @@ Lt(Ie, "observedAttributes", [
|
|
6882
6898
|
...Un,
|
6883
6899
|
...Wn
|
6884
6900
|
]);
|
6885
|
-
let Pi = Ie,
|
6901
|
+
let Pi = Ie, er = class extends HTMLElement {
|
6886
6902
|
constructor() {
|
6887
6903
|
super(), this.icon = null;
|
6888
6904
|
}
|
@@ -6901,7 +6917,7 @@ let Pi = Ie, tr = class extends HTMLElement {
|
|
6901
6917
|
);
|
6902
6918
|
}
|
6903
6919
|
};
|
6904
|
-
class
|
6920
|
+
class no extends HTMLElement {
|
6905
6921
|
constructor() {
|
6906
6922
|
super(), this.tooltip = null;
|
6907
6923
|
}
|
@@ -6928,8 +6944,8 @@ class io extends HTMLElement {
|
|
6928
6944
|
this.tooltip && (d === "content" ? this.tooltip.setContent(g) : d === "permanent" ? this.tooltip.options.permanent = this.hasAttribute("permanent") : d === "interactive" ? this.tooltip.options.interactive = this.hasAttribute("interactive") : d === "direction" && (this.tooltip.options.direction = g));
|
6929
6945
|
}
|
6930
6946
|
}
|
6931
|
-
Lt(
|
6932
|
-
class
|
6947
|
+
Lt(no, "observedAttributes", ["content", "permanent", "interactive", "direction"]);
|
6948
|
+
class ir extends HTMLElement {
|
6933
6949
|
constructor() {
|
6934
6950
|
super();
|
6935
6951
|
}
|
@@ -6958,10 +6974,10 @@ const Ti = (v) => {
|
|
6958
6974
|
}
|
6959
6975
|
}, X = (v, d, c) => ({
|
6960
6976
|
camel: v,
|
6961
|
-
kebab:
|
6962
|
-
parser:
|
6977
|
+
kebab: tr(v),
|
6978
|
+
parser: nr(d),
|
6963
6979
|
defaultValue: c
|
6964
|
-
}),
|
6980
|
+
}), nr = (v) => {
|
6965
6981
|
switch (v.toLowerCase()) {
|
6966
6982
|
case "boolean":
|
6967
6983
|
return (d) => d === "true";
|
@@ -6999,7 +7015,7 @@ const Ti = (v) => {
|
|
6999
7015
|
rectangle: [],
|
7000
7016
|
interactiveLayer: [X("interactive", "boolean", !0)]
|
7001
7017
|
};
|
7002
|
-
return
|
7018
|
+
return or(v).flatMap((c) => d[c]);
|
7003
7019
|
}, Vn = {
|
7004
7020
|
circle: ["path"],
|
7005
7021
|
polyline: ["path"],
|
@@ -7007,14 +7023,14 @@ const Ti = (v) => {
|
|
7007
7023
|
rectangle: ["polygon"],
|
7008
7024
|
path: ["interactiveLayer"],
|
7009
7025
|
interactiveLayer: []
|
7010
|
-
},
|
7026
|
+
}, or = (v) => {
|
7011
7027
|
let d = v, c = [v];
|
7012
7028
|
for (; Vn[d].length > 0; ) {
|
7013
7029
|
let g = Vn[d][0];
|
7014
7030
|
c.push(g), d = g;
|
7015
7031
|
}
|
7016
7032
|
return c;
|
7017
|
-
},
|
7033
|
+
}, sr = (v, d, c, g) => {
|
7018
7034
|
let s = [
|
7019
7035
|
...Ti(d),
|
7020
7036
|
...Ae(d)
|
@@ -7054,15 +7070,15 @@ const Ti = (v) => {
|
|
7054
7070
|
}
|
7055
7071
|
let h = Ae("polyline").find((l) => l.kebab === c);
|
7056
7072
|
typeof h < "u" && v.setStyle({ [h.camel]: a });
|
7057
|
-
},
|
7073
|
+
}, rr = (v) => {
|
7058
7074
|
let d = Ti(v).map((g) => g.kebab), c = Ae(v).map((g) => g.kebab);
|
7059
7075
|
return [...d, ...c];
|
7060
|
-
},
|
7076
|
+
}, ar = (v, d) => {
|
7061
7077
|
let c = {};
|
7062
7078
|
return Ae(d).forEach((g) => {
|
7063
7079
|
v.hasAttribute(g.kebab) && (c[g.camel] = g.parser(v.getAttribute(g.kebab)));
|
7064
7080
|
}), c;
|
7065
|
-
},
|
7081
|
+
}, hr = (v, d) => Ti(d).map((c) => {
|
7066
7082
|
const g = Q(c.kebab), x = wt(g, v);
|
7067
7083
|
return c.parser(x);
|
7068
7084
|
}), ke = (v, d) => {
|
@@ -7073,7 +7089,7 @@ const Ti = (v) => {
|
|
7073
7089
|
});
|
7074
7090
|
}
|
7075
7091
|
connectedCallback() {
|
7076
|
-
const x =
|
7092
|
+
const x = hr(this, d), s = ar(this, d);
|
7077
7093
|
this.layer = v(...x, s);
|
7078
7094
|
const a = new CustomEvent(et, {
|
7079
7095
|
cancelable: !0,
|
@@ -7089,10 +7105,10 @@ const Ti = (v) => {
|
|
7089
7105
|
* @param {string} newValue
|
7090
7106
|
*/
|
7091
7107
|
attributeChangedCallback(x, s, a) {
|
7092
|
-
this.layer !== null &&
|
7108
|
+
this.layer !== null && sr(this.layer, d, x, a);
|
7093
7109
|
}
|
7094
7110
|
}
|
7095
|
-
return Lt(c, "observedAttributes",
|
7111
|
+
return Lt(c, "observedAttributes", rr(d)), c;
|
7096
7112
|
};
|
7097
7113
|
var qn = { exports: {} };
|
7098
7114
|
(function(v, d) {
|
@@ -8107,7 +8123,7 @@ var qn = { exports: {} };
|
|
8107
8123
|
}), c.MarkerClusterGroup = g, c.MarkerCluster = x, Object.defineProperty(c, "__esModule", { value: !0 });
|
8108
8124
|
});
|
8109
8125
|
})(qn, qn.exports);
|
8110
|
-
class
|
8126
|
+
class oo extends zt {
|
8111
8127
|
constructor() {
|
8112
8128
|
super(), this.layer = null;
|
8113
8129
|
}
|
@@ -8146,13 +8162,13 @@ class no extends zt {
|
|
8146
8162
|
return Function("cluster", `"use strict";return (${c})`)(d);
|
8147
8163
|
}
|
8148
8164
|
}
|
8149
|
-
Lt(
|
8165
|
+
Lt(oo, "observedAttributes", [
|
8150
8166
|
"show-coverage-on-hover",
|
8151
8167
|
"icon-options"
|
8152
8168
|
]);
|
8153
|
-
const
|
8154
|
-
customElements.define("l-map", bi), customElements.define("l-pane",
|
8169
|
+
const cr = (() => {
|
8170
|
+
customElements.define("l-map", bi), customElements.define("l-pane", ir), customElements.define("l-control-layers", Is), customElements.define("l-base-layers", Zs), customElements.define("l-overlay-layers", Ks), customElements.define("l-layer-group", Bs), customElements.define("l-tile-layer", Ci), customElements.define("l-tile-layer-wms", Xs), customElements.define("l-marker-cluster-group", oo), customElements.define("l-marker", Qn), customElements.define("l-popup", Ys), customElements.define("l-lat-lng-bounds", eo), customElements.define("l-image-overlay", io), customElements.define("l-video-overlay", $s), customElements.define("l-geojson", Qs), customElements.define("l-icon", Pi), customElements.define("l-circle", ke(G.circle, "circle")), customElements.define("l-polyline", ke(G.polyline, "polyline")), customElements.define("l-polygon", ke(G.polygon, "polygon")), customElements.define("l-rectangle", ke(G.rectangle, "rectangle")), customElements.define("l-tooltip", no), customElements.define("l-div-icon", er);
|
8155
8171
|
})();
|
8156
8172
|
export {
|
8157
|
-
|
8173
|
+
cr as default
|
8158
8174
|
};
|