leaflet-html 0.13.4 → 0.13.6
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/README.md +2 -3
- package/dist/leaflet-html.js +470 -453
- package/dist/leaflet-html.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/leaflet-html.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var Lt = (
|
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
|
7
7
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
8
8
|
*/
|
9
|
-
(function(
|
10
|
-
(function(c,
|
11
|
-
|
9
|
+
(function(v, d) {
|
10
|
+
(function(c, g) {
|
11
|
+
g(d);
|
12
12
|
})(jn, function(c) {
|
13
|
-
var
|
13
|
+
var g = "1.9.4";
|
14
14
|
function x(t) {
|
15
15
|
var e, i, n, o;
|
16
16
|
for (i = 1, n = arguments.length; i < n; i++) {
|
@@ -48,7 +48,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
48
48
|
n ? o = arguments : (t.apply(i, arguments), setTimeout(u, e), n = !0);
|
49
49
|
}, r;
|
50
50
|
}
|
51
|
-
function
|
51
|
+
function y(t, e, i) {
|
52
52
|
var n = e[1], o = e[0], r = n - o;
|
53
53
|
return t === n && i ? t : ((t - o) % r + r) % r + o;
|
54
54
|
}
|
@@ -79,9 +79,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
79
79
|
n.push(encodeURIComponent(i ? o.toUpperCase() : o) + "=" + encodeURIComponent(t[o]));
|
80
80
|
return (!e || e.indexOf("?") === -1 ? "?" : "&") + n.join("&");
|
81
81
|
}
|
82
|
-
var
|
82
|
+
var A = /\{ *([\w_ -]+) *\}/g;
|
83
83
|
function U(t, e) {
|
84
|
-
return t.replace(
|
84
|
+
return t.replace(A, function(i, n) {
|
85
85
|
var o = e[n];
|
86
86
|
if (o === void 0)
|
87
87
|
throw new Error("No value provided for variable " + i);
|
@@ -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,
|
@@ -128,7 +128,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
128
128
|
},
|
129
129
|
stamp: l,
|
130
130
|
throttle: p,
|
131
|
-
wrapNum:
|
131
|
+
wrapNum: y,
|
132
132
|
falseFn: _,
|
133
133
|
formatNum: b,
|
134
134
|
trim: w,
|
@@ -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++)
|
@@ -805,7 +805,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
805
805
|
// Returns a `LatLng` where lat and lng has been wrapped according to the
|
806
806
|
// CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.
|
807
807
|
wrapLatLng: function(t) {
|
808
|
-
var e = this.wrapLng ?
|
808
|
+
var e = this.wrapLng ? y(t.lng, this.wrapLng, !0) : t.lng, i = this.wrapLat ? y(t.lat, this.wrapLat, !0) : t.lat, n = t.alt;
|
809
809
|
return new D(i, e, n);
|
810
810
|
},
|
811
811
|
// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
|
@@ -890,13 +890,13 @@ 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) {
|
897
897
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
898
898
|
}
|
899
|
-
function
|
899
|
+
function Ai(t, e) {
|
900
900
|
var i = "", n, o, r, u, f, m;
|
901
901
|
for (n = 0, r = t.length; n < r; n++) {
|
902
902
|
for (f = t[n], o = 0, u = f.length; o < u; o++)
|
@@ -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:
|
941
|
-
edge:
|
940
|
+
ielt9: ho,
|
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
1024
|
var Zo = 200;
|
1025
|
-
function
|
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 <= Zo ? (n++, n === 2 && e(
|
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(
|
@@ -1092,7 +1092,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1092
1092
|
var i = fe(t);
|
1093
1093
|
return i.length > 0 && new RegExp("(^|\\s)" + e + "(\\s|$)").test(i);
|
1094
1094
|
}
|
1095
|
-
function
|
1095
|
+
function Z(t, e) {
|
1096
1096
|
if (t.classList !== void 0)
|
1097
1097
|
for (var i = M(e), n = 0, o = i.length; n < o; n++)
|
1098
1098
|
t.classList.add(i[n]);
|
@@ -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);
|
@@ -1129,14 +1129,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1129
1129
|
return t[i];
|
1130
1130
|
return !1;
|
1131
1131
|
}
|
1132
|
-
function
|
1132
|
+
function At(t, e, i) {
|
1133
1133
|
var n = e || new O(0, 0);
|
1134
1134
|
t.style[je] = (S.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
|
1135
1135
|
}
|
1136
1136
|
function K(t, e) {
|
1137
|
-
t._leaflet_pos = e, S.any3d ?
|
1137
|
+
t._leaflet_pos = e, S.any3d ? At(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
|
1138
1138
|
}
|
1139
|
-
function
|
1139
|
+
function Zt(t) {
|
1140
1140
|
return t._leaflet_pos || new O(0, 0);
|
1141
1141
|
}
|
1142
1142
|
var Qt, te, Ye;
|
@@ -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,
|
@@ -1201,15 +1201,15 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1201
1201
|
toFront: Dt,
|
1202
1202
|
toBack: Ht,
|
1203
1203
|
hasClass: Je,
|
1204
|
-
addClass:
|
1204
|
+
addClass: Z,
|
1205
1205
|
removeClass: j,
|
1206
1206
|
setClass: Ke,
|
1207
1207
|
getClass: fe,
|
1208
1208
|
setOpacity: ct,
|
1209
1209
|
testProp: _e,
|
1210
|
-
setTransform:
|
1210
|
+
setTransform: At,
|
1211
1211
|
setPosition: K,
|
1212
|
-
getPosition:
|
1212
|
+
getPosition: Zt,
|
1213
1213
|
get disableTextSelection() {
|
1214
1214
|
return Qt;
|
1215
1215
|
},
|
@@ -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,
|
@@ -1374,7 +1374,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1374
1374
|
// argument of the [cubic bezier curve](https://cubic-bezier.com/#0,0,.5,1),
|
1375
1375
|
// `0.5` by default).
|
1376
1376
|
run: function(t, e, i, n) {
|
1377
|
-
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos =
|
1377
|
+
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos = Zt(t), this._offset = e.subtract(this._startPos), this._startTime = +/* @__PURE__ */ new Date(), this.fire("start"), this._animate();
|
1378
1378
|
},
|
1379
1379
|
// @method stop()
|
1380
1380
|
// Stops the animation (if currently running).
|
@@ -1561,7 +1561,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1561
1561
|
step: this._onPanTransitionStep,
|
1562
1562
|
end: this._onPanTransitionEnd
|
1563
1563
|
}, this)), e.noMoveStart || this.fire("movestart"), e.animate !== !1) {
|
1564
|
-
|
1564
|
+
Z(this._mapPane, "leaflet-pan-anim");
|
1565
1565
|
var i = this._getMapPanePos().subtract(t).round();
|
1566
1566
|
this._panAnim.run(this._mapPane, i, e.duration || 0.25, e.easeLinearity);
|
1567
1567
|
} else
|
@@ -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);
|
@@ -1993,13 +1993,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1993
1993
|
},
|
1994
1994
|
_initLayout: function() {
|
1995
1995
|
var t = this._container;
|
1996
|
-
this._fadeAnimated = this.options.fadeAnimation && S.any3d,
|
1996
|
+
this._fadeAnimated = this.options.fadeAnimation && S.any3d, Z(t, "leaflet-container" + (S.touch ? " leaflet-touch" : "") + (S.retina ? " leaflet-retina" : "") + (S.ielt9 ? " leaflet-oldie" : "") + (S.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
|
1997
1997
|
var e = $t(t, "position");
|
1998
1998
|
e !== "absolute" && e !== "relative" && e !== "fixed" && e !== "sticky" && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
|
1999
1999
|
},
|
2000
2000
|
_initPanes: function() {
|
2001
2001
|
var t = this._panes = {};
|
2002
|
-
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), K(this._mapPane, new O(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (
|
2002
|
+
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), K(this._mapPane, new O(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (Z(t.markerPane, "leaflet-zoom-hide"), Z(t.shadowPane, "leaflet-zoom-hide"));
|
2003
2003
|
},
|
2004
2004
|
// private methods that modify map state
|
2005
2005
|
// @section Map state change events
|
@@ -2128,7 +2128,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2128
2128
|
},
|
2129
2129
|
// private methods for getting map state
|
2130
2130
|
_getMapPanePos: function() {
|
2131
|
-
return
|
2131
|
+
return Zt(this._mapPane) || new O(0, 0);
|
2132
2132
|
},
|
2133
2133
|
_moved: function() {
|
2134
2134
|
var t = this._getMapPanePos();
|
@@ -2206,7 +2206,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2206
2206
|
var t = this._proxy = R("div", "leaflet-proxy leaflet-zoom-animated");
|
2207
2207
|
this._panes.mapPane.appendChild(t), this.on("zoomanim", function(e) {
|
2208
2208
|
var i = je, n = this._proxy.style[i];
|
2209
|
-
|
2209
|
+
At(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), n === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
|
2210
2210
|
}, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
|
2211
2211
|
},
|
2212
2212
|
_destroyAnimProxy: function() {
|
@@ -2214,7 +2214,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2214
2214
|
},
|
2215
2215
|
_animMoveEnd: function() {
|
2216
2216
|
var t = this.getCenter(), e = this.getZoom();
|
2217
|
-
|
2217
|
+
At(this._proxy, this.project(t, e), this.getZoomScale(e, 1));
|
2218
2218
|
},
|
2219
2219
|
_catchTransitionEnd: function(t) {
|
2220
2220
|
this._animatingZoom && t.propertyName.indexOf("transform") >= 0 && this._onZoomTransitionEnd();
|
@@ -2233,7 +2233,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2233
2233
|
}, this), !0);
|
2234
2234
|
},
|
2235
2235
|
_animateZoom: function(t, e, i, n) {
|
2236
|
-
this._mapPane && (i && (this._animatingZoom = !0, this._animateToCenter = t, this._animateToZoom = e,
|
2236
|
+
this._mapPane && (i && (this._animatingZoom = !0, this._animateToCenter = t, this._animateToZoom = e, Z(this._mapPane, "leaflet-zoom-anim")), this.fire("zoomanim", {
|
2237
2237
|
center: t,
|
2238
2238
|
zoom: e,
|
2239
2239
|
noUpdate: n
|
@@ -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({
|
@@ -2283,7 +2283,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2283
2283
|
addTo: function(t) {
|
2284
2284
|
this.remove(), this._map = t;
|
2285
2285
|
var e = this._container = this.onAdd(t), i = this.getPosition(), n = t._controlCorners[i];
|
2286
|
-
return
|
2286
|
+
return Z(e, "leaflet-control"), i.indexOf("bottom") !== -1 ? n.insertBefore(e, n.firstChild) : n.appendChild(e), this._map.on("unload", this.remove, this), this;
|
2287
2287
|
},
|
2288
2288
|
// @method remove: this
|
2289
2289
|
// Removes the control from the map it is currently active on.
|
@@ -2390,9 +2390,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2390
2390
|
// @method expand(): this
|
2391
2391
|
// Expand the control container if collapsed.
|
2392
2392
|
expand: function() {
|
2393
|
-
|
2393
|
+
Z(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null;
|
2394
2394
|
var t = this._map.getSize().y - (this._container.offsetTop + 50);
|
2395
|
-
return t < this._section.clientHeight ? (
|
2395
|
+
return t < this._section.clientHeight ? (Z(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") : j(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this;
|
2396
2396
|
},
|
2397
2397
|
// @method collapse(): this
|
2398
2398
|
// Collapse the control container if expanded.
|
@@ -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
|
@@ -2546,7 +2546,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2546
2546
|
},
|
2547
2547
|
_updateDisabled: function() {
|
2548
2548
|
var t = this._map, e = "leaflet-disabled";
|
2549
|
-
j(this._zoomInButton, e), j(this._zoomOutButton, e), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || t._zoom === t.getMinZoom()) && (
|
2549
|
+
j(this._zoomInButton, e), j(this._zoomOutButton, e), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || t._zoom === t.getMinZoom()) && (Z(this._zoomOutButton, e), this._zoomOutButton.setAttribute("aria-disabled", "true")), (this._disabled || t._zoom === t.getMaxZoom()) && (Z(this._zoomInButton, e), this._zoomInButton.setAttribute("aria-disabled", "true"));
|
2550
2550
|
}
|
2551
2551
|
});
|
2552
2552
|
N.mergeOptions({
|
@@ -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
|
@@ -2732,7 +2732,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2732
2732
|
if (!(Et._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (Et._dragging = this, this._preventOutline && ti(this._element), Xe(), Qt(), !this._moving)) {
|
2733
2733
|
this.fire("down");
|
2734
2734
|
var e = t.touches ? t.touches[0] : t, i = en(this._element);
|
2735
|
-
this._startPoint = new O(e.clientX, e.clientY), this._startPos =
|
2735
|
+
this._startPoint = new O(e.clientX, e.clientY), this._startPos = Zt(this._element), this._parentScale = ei(i);
|
2736
2736
|
var n = t.type === "mousedown";
|
2737
2737
|
z(document, n ? "mousemove" : "touchmove", this._onMove, this), z(document, n ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
2738
2738
|
}
|
@@ -2745,7 +2745,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2745
2745
|
return;
|
2746
2746
|
}
|
2747
2747
|
var e = t.touches && t.touches.length === 1 ? t.touches[0] : t, i = new O(e.clientX, e.clientY)._subtract(this._startPoint);
|
2748
|
-
!i.x && !i.y || Math.abs(i.x) + Math.abs(i.y) < this.options.clickTolerance || (i.x /= this._parentScale.x, i.y /= this._parentScale.y, tt(t), this._moved || (this.fire("dragstart"), this._moved = !0,
|
2748
|
+
!i.x && !i.y || Math.abs(i.x) + Math.abs(i.y) < this.options.clickTolerance || (i.x /= this._parentScale.x, i.y /= this._parentScale.y, tt(t), this._moved || (this.fire("dragstart"), this._moved = !0, Z(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), Z(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(i), this._moving = !0, this._lastEvent = t, this._updatePosition());
|
2749
2749
|
}
|
2750
2750
|
},
|
2751
2751
|
_updatePosition: function() {
|
@@ -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({
|
@@ -3330,7 +3330,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3330
3330
|
predrag: this._onPreDrag,
|
3331
3331
|
drag: this._onDrag,
|
3332
3332
|
dragend: this._onDragEnd
|
3333
|
-
}, this).enable(),
|
3333
|
+
}, this).enable(), Z(t, "leaflet-marker-draggable");
|
3334
3334
|
},
|
3335
3335
|
removeHooks: function() {
|
3336
3336
|
this._draggable.off({
|
@@ -3344,7 +3344,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3344
3344
|
return this._draggable && this._draggable._moved;
|
3345
3345
|
},
|
3346
3346
|
_adjustPan: function(t) {
|
3347
|
-
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, r =
|
3347
|
+
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, r = Zt(e._icon), u = i.getPixelBounds(), f = i.getPixelOrigin(), m = ot(
|
3348
3348
|
u.min._subtract(f).add(o),
|
3349
3349
|
u.max._subtract(f).subtract(o)
|
3350
3350
|
);
|
@@ -3363,7 +3363,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3363
3363
|
this._marker.options.autoPan && (lt(this._panRequest), this._panRequest = nt(this._adjustPan.bind(this, t)));
|
3364
3364
|
},
|
3365
3365
|
_onDrag: function(t) {
|
3366
|
-
var e = this._marker, i = e._shadow, n =
|
3366
|
+
var e = this._marker, i = e._shadow, n = Zt(e._icon), o = e._map.layerPointToLatLng(n);
|
3367
3367
|
i && K(i, n), e._latlng = o, t.latlng = o, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t);
|
3368
3368
|
},
|
3369
3369
|
_onDragEnd: function(t) {
|
@@ -3490,12 +3490,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3490
3490
|
},
|
3491
3491
|
_initIcon: function() {
|
3492
3492
|
var t = this.options, e = "leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide"), i = t.icon.createIcon(this._icon), n = !1;
|
3493
|
-
i !== this._icon && (this._icon && this._removeIcon(), n = !0, t.title && (i.title = t.title), i.tagName === "IMG" && (i.alt = t.alt || "")),
|
3493
|
+
i !== this._icon && (this._icon && this._removeIcon(), n = !0, t.title && (i.title = t.title), i.tagName === "IMG" && (i.alt = t.alt || "")), Z(i, e), t.keyboard && (i.tabIndex = "0", i.setAttribute("role", "button")), this._icon = i, t.riseOnHover && this.on({
|
3494
3494
|
mouseover: this._bringToFront,
|
3495
3495
|
mouseout: this._resetZIndex
|
3496
3496
|
}), this.options.autoPanOnFocus && z(i, "focus", this._panOnFocus, this);
|
3497
3497
|
var o = t.icon.createShadow(this._shadow), r = !1;
|
3498
|
-
o !== this._shadow && (this._removeShadow(), r = !0), o && (
|
3498
|
+
o !== this._shadow && (this._removeShadow(), r = !0), o && (Z(o, e), o.alt = ""), this._shadow = o, t.opacity < 1 && this._updateOpacity(), n && this.getPane().appendChild(this._icon), this._initInteraction(), o && r && this.getPane(t.shadowPane).appendChild(this._shadow);
|
3499
3499
|
},
|
3500
3500
|
_removeIcon: function() {
|
3501
3501
|
this.options.riseOnHover && this.off({
|
@@ -3517,7 +3517,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3517
3517
|
this._setPos(e);
|
3518
3518
|
},
|
3519
3519
|
_initInteraction: function() {
|
3520
|
-
if (this.options.interactive && (
|
3520
|
+
if (this.options.interactive && (Z(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), Ln)) {
|
3521
3521
|
var t = this.options.draggable;
|
3522
3522
|
this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new Ln(this), t && this.dragging.enable();
|
3523
3523
|
}
|
@@ -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: {
|
@@ -4179,7 +4179,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4179
4179
|
this._url = t, this._bounds = J(e), C(this, i);
|
4180
4180
|
},
|
4181
4181
|
onAdd: function() {
|
4182
|
-
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (
|
4182
|
+
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (Z(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
|
4183
4183
|
},
|
4184
4184
|
onRemove: function() {
|
4185
4185
|
q(this._image), this.options.interactive && this.removeInteractiveTarget(this._image);
|
@@ -4237,7 +4237,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4237
4237
|
},
|
4238
4238
|
_initImage: function() {
|
4239
4239
|
var t = this._url.tagName === "IMG", e = this._image = t ? this._url : R("img");
|
4240
|
-
if (
|
4240
|
+
if (Z(e, "leaflet-image-layer"), this._zoomAnimated && Z(e, "leaflet-zoom-animated"), this.options.className && Z(e, this.options.className), e.onselectstart = _, e.onmousemove = _, e.onload = a(this.fire, this, "load"), e.onerror = a(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (e.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), t) {
|
4241
4241
|
this._url = e.src;
|
4242
4242
|
return;
|
4243
4243
|
}
|
@@ -4245,7 +4245,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4245
4245
|
},
|
4246
4246
|
_animateZoom: function(t) {
|
4247
4247
|
var e = this._map.getZoomScale(t.zoom), i = this._map._latLngBoundsToNewLayerBounds(this._bounds, t.zoom, t.center).min;
|
4248
|
-
|
4248
|
+
At(this._image, i, e);
|
4249
4249
|
},
|
4250
4250
|
_reset: function() {
|
4251
4251
|
var t = this._image, e = new V(
|
@@ -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
|
@@ -4296,7 +4296,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4296
4296
|
},
|
4297
4297
|
_initImage: function() {
|
4298
4298
|
var t = this._url.tagName === "VIDEO", e = this._image = t ? this._url : R("video");
|
4299
|
-
if (
|
4299
|
+
if (Z(e, "leaflet-image-layer"), this._zoomAnimated && Z(e, "leaflet-zoom-animated"), this.options.className && Z(e, this.options.className), e.onselectstart = _, e.onmousemove = _, e.onloadeddata = a(this.fire, this, "load"), t) {
|
4300
4300
|
for (var i = e.getElementsByTagName("source"), n = [], o = 0; o < i.length; o++)
|
4301
4301
|
n.push(i[o].src);
|
4302
4302
|
this._url = i.length > 0 ? n : [e.src];
|
@@ -4312,19 +4312,19 @@ 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({
|
4319
4319
|
_initImage: function() {
|
4320
4320
|
var t = this._image = this._url;
|
4321
|
-
|
4321
|
+
Z(t, "leaflet-image-layer"), this._zoomAnimated && Z(t, "leaflet-zoom-animated"), this.options.className && Z(t, this.options.className), t.onselectstart = _, t.onmousemove = _;
|
4322
4322
|
}
|
4323
4323
|
// @method getElement(): SVGElement
|
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({
|
@@ -4372,7 +4372,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4372
4372
|
return this._map ? this.close() : (arguments.length ? this._source = t : t = this._source, this._prepareOpen(), this.openOn(t._map)), this;
|
4373
4373
|
},
|
4374
4374
|
onAdd: function(t) {
|
4375
|
-
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && ct(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && ct(this._container, 1), this.bringToFront(), this.options.interactive && (
|
4375
|
+
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && ct(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && ct(this._container, 1), this.bringToFront(), this.options.interactive && (Z(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
|
4376
4376
|
},
|
4377
4377
|
onRemove: function(t) {
|
4378
4378
|
t._fadeAnimated ? (ct(this._container, 0), this._removeTimeout = setTimeout(a(q, void 0, this._container), 200)) : q(this._container), this.options.interactive && (j(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
|
@@ -4589,7 +4589,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4589
4589
|
var i = t.offsetWidth;
|
4590
4590
|
i = Math.min(i, this.options.maxWidth), i = Math.max(i, this.options.minWidth), e.width = i + 1 + "px", e.whiteSpace = "", e.height = "";
|
4591
4591
|
var n = t.offsetHeight, o = this.options.maxHeight, r = "leaflet-popup-scrolled";
|
4592
|
-
o && n > o ? (e.height = o + "px",
|
4592
|
+
o && n > o ? (e.height = o + "px", Z(t, r)) : j(t, r), this._containerWidth = this._container.offsetWidth;
|
4593
4593
|
},
|
4594
4594
|
_animateZoom: function(t) {
|
4595
4595
|
var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center), i = this._getAnchor();
|
@@ -4602,7 +4602,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4602
4602
|
return;
|
4603
4603
|
}
|
4604
4604
|
var t = this._map, e = parseInt($t(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, o = new O(this._containerLeft, -i - this._containerBottom);
|
4605
|
-
o._add(
|
4605
|
+
o._add(Zt(this._container));
|
4606
4606
|
var r = t.layerPointToContainerPoint(o), u = E(this.options.autoPanPadding), f = E(this.options.autoPanPaddingTopLeft || u), m = E(this.options.autoPanPaddingBottomRight || u), P = t.getSize(), T = 0, k = 0;
|
4607
4607
|
r.x + n + m.x > P.x && (T = r.x + n - P.x + m.x), r.x - T - f.x < 0 && (T = r.x - f.x), r.y + i + m.y > P.y && (k = r.y + i - P.y + m.y), r.y - k - f.y < 0 && (k = r.y - f.y), (T || k) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([T, k]));
|
4608
4608
|
}
|
@@ -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({
|
@@ -4746,7 +4746,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4746
4746
|
},
|
4747
4747
|
_setPosition: function(t) {
|
4748
4748
|
var e, i, n = this._map, o = this._container, r = n.latLngToContainerPoint(n.getCenter()), u = n.layerPointToContainerPoint(t), f = this.options.direction, m = o.offsetWidth, P = o.offsetHeight, T = E(this.options.offset), k = this._getAnchor();
|
4749
|
-
f === "top" ? (e = m / 2, i = P) : f === "bottom" ? (e = m / 2, i = 0) : f === "center" ? (e = m / 2, i = P / 2) : f === "right" ? (e = 0, i = P / 2) : f === "left" ? (e = m, i = P / 2) : u.x < r.x ? (f = "right", e = 0, i = P / 2) : (f = "left", e = m + (T.x + k.x) * 2, i = P / 2), t = t.subtract(E(e, i, !0)).add(T).add(k), j(o, "leaflet-tooltip-right"), j(o, "leaflet-tooltip-left"), j(o, "leaflet-tooltip-top"), j(o, "leaflet-tooltip-bottom"),
|
4749
|
+
f === "top" ? (e = m / 2, i = P) : f === "bottom" ? (e = m / 2, i = 0) : f === "center" ? (e = m / 2, i = P / 2) : f === "right" ? (e = 0, i = P / 2) : f === "left" ? (e = m, i = P / 2) : u.x < r.x ? (f = "right", e = 0, i = P / 2) : (f = "left", e = m + (T.x + k.x) * 2, i = P / 2), t = t.subtract(E(e, i, !0)).add(T).add(k), j(o, "leaflet-tooltip-right"), j(o, "leaflet-tooltip-left"), j(o, "leaflet-tooltip-top"), j(o, "leaflet-tooltip-bottom"), Z(o, "leaflet-tooltip-" + f), K(o, t);
|
4750
4750
|
},
|
4751
4751
|
_updatePosition: function() {
|
4752
4752
|
var t = this._map.latLngToLayerPoint(this._latlng);
|
@@ -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;
|
@@ -5145,7 +5145,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5145
5145
|
},
|
5146
5146
|
_setZoomTransform: function(t, e, i) {
|
5147
5147
|
var n = this._map.getZoomScale(i, t.zoom), o = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e, i)).round();
|
5148
|
-
S.any3d ?
|
5148
|
+
S.any3d ? At(t.el, o, n) : K(t.el, o);
|
5149
5149
|
},
|
5150
5150
|
_resetGrid: function() {
|
5151
5151
|
var t = this._map, e = t.options.crs, i = this._tileSize = this.getTileSize(), n = this._tileZoom, o = this._map.getPixelWorldBounds(this._tileZoom);
|
@@ -5245,7 +5245,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5245
5245
|
}));
|
5246
5246
|
},
|
5247
5247
|
_initTile: function(t) {
|
5248
|
-
|
5248
|
+
Z(t, "leaflet-tile");
|
5249
5249
|
var e = this.getTileSize();
|
5250
5250
|
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = _, t.onmousemove = _, S.ielt9 && this.options.opacity < 1 && ct(t, this.options.opacity);
|
5251
5251
|
},
|
@@ -5267,7 +5267,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5267
5267
|
coords: t
|
5268
5268
|
});
|
5269
5269
|
var n = this._tileCoordsToKey(t);
|
5270
|
-
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (ct(i.el, 0), lt(this._fadeFrame), this._fadeFrame = nt(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (
|
5270
|
+
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (ct(i.el, 0), lt(this._fadeFrame), this._fadeFrame = nt(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (Z(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
|
5271
5271
|
tile: i.el,
|
5272
5272
|
coords: t
|
5273
5273
|
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), S.ielt9 || !this._map._fadeAnimated ? nt(this._pruneTiles, this) : setTimeout(a(this._pruneTiles, this), 250)));
|
@@ -5277,8 +5277,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5277
5277
|
},
|
5278
5278
|
_wrapCoords: function(t) {
|
5279
5279
|
var e = new O(
|
5280
|
-
this._wrapX ?
|
5281
|
-
this._wrapY ?
|
5280
|
+
this._wrapX ? y(t.x, this._wrapX) : t.x,
|
5281
|
+
this._wrapY ? y(t.y, this._wrapY) : t.y
|
5282
5282
|
);
|
5283
5283
|
return e.z = t.z, e;
|
5284
5284
|
},
|
@@ -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
|
@@ -5497,7 +5497,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5497
5497
|
C(this, t), l(this), this._layers = this._layers || {};
|
5498
5498
|
},
|
5499
5499
|
onAdd: function() {
|
5500
|
-
this._container || (this._initContainer(),
|
5500
|
+
this._container || (this._initContainer(), Z(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
|
5501
5501
|
},
|
5502
5502
|
onRemove: function() {
|
5503
5503
|
this.off("update", this._updatePaths, this), this._destroyContainer();
|
@@ -5519,7 +5519,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5519
5519
|
},
|
5520
5520
|
_updateTransform: function(t, e) {
|
5521
5521
|
var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), o = this._map.project(this._center, e), r = n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t, e));
|
5522
|
-
S.any3d ?
|
5522
|
+
S.any3d ? At(this._container, r, i) : K(this._container, r);
|
5523
5523
|
},
|
5524
5524
|
_reset: function() {
|
5525
5525
|
this._update(), this._updateTransform(this._center, this._zoom);
|
@@ -5691,7 +5691,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5691
5691
|
if (!this._mouseHoverThrottled) {
|
5692
5692
|
for (var i, n, o = this._drawFirst; o; o = o.next)
|
5693
5693
|
i = o.layer, i.options.interactive && i._containsPoint(e) && (n = i);
|
5694
|
-
n !== this._hoveredLayer && (this._handleMouseOut(t), n && (
|
5694
|
+
n !== this._hoveredLayer && (this._handleMouseOut(t), n && (Z(this._container, "leaflet-interactive"), this._fireEvent([n], t, "mouseover"), this._hoveredLayer = n)), this._fireEvent(this._hoveredLayer ? [this._hoveredLayer] : !1, t), this._mouseHoverThrottled = !0, setTimeout(a(function() {
|
5695
5695
|
this._mouseHoverThrottled = !1;
|
5696
5696
|
}, this), 32);
|
5697
5697
|
}
|
@@ -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
|
},
|
@@ -5744,7 +5744,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5744
5744
|
},
|
5745
5745
|
_initPath: function(t) {
|
5746
5746
|
var e = t._container = ae("shape");
|
5747
|
-
|
5747
|
+
Z(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path = ae("path"), e.appendChild(t._path), this._updateStyle(t), this._layers[l(t)] = t;
|
5748
5748
|
},
|
5749
5749
|
_addPath: function(t) {
|
5750
5750
|
var e = t._container;
|
@@ -5788,7 +5788,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5788
5788
|
// methods below are called by vector layers implementations
|
5789
5789
|
_initPath: function(t) {
|
5790
5790
|
var e = t._path = Me("path");
|
5791
|
-
t.options.className &&
|
5791
|
+
t.options.className && Z(e, t.options.className), t.options.interactive && Z(e, "leaflet-interactive"), this._updateStyle(t), this._layers[l(t)] = t;
|
5792
5792
|
},
|
5793
5793
|
_addPath: function(t) {
|
5794
5794
|
this._rootGroup || this._initContainer(), this._rootGroup.appendChild(t._path), t.addInteractiveTarget(t._path);
|
@@ -5804,7 +5804,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5804
5804
|
e && (i.stroke ? (e.setAttribute("stroke", i.color), e.setAttribute("stroke-opacity", i.opacity), e.setAttribute("stroke-width", i.weight), e.setAttribute("stroke-linecap", i.lineCap), e.setAttribute("stroke-linejoin", i.lineJoin), i.dashArray ? e.setAttribute("stroke-dasharray", i.dashArray) : e.removeAttribute("stroke-dasharray"), i.dashOffset ? e.setAttribute("stroke-dashoffset", i.dashOffset) : e.removeAttribute("stroke-dashoffset")) : e.setAttribute("stroke", "none"), i.fill ? (e.setAttribute("fill", i.fillColor || i.color), e.setAttribute("fill-opacity", i.fillOpacity), e.setAttribute("fill-rule", i.fillRule || "evenodd")) : e.setAttribute("fill", "none"));
|
5805
5805
|
},
|
5806
5806
|
_updatePoly: function(t, e) {
|
5807
|
-
this._setPath(t,
|
5807
|
+
this._setPath(t, Ai(t._parts, e));
|
5808
5808
|
},
|
5809
5809
|
_updateCircle: function(t) {
|
5810
5810
|
var e = t._point, i = Math.max(Math.round(t._radius), 1), n = Math.max(Math.round(t._radiusY), 1) || i, o = "a" + i + "," + n + " 0 1,0 ", r = t._empty() ? "M0 0" : "M" + (e.x - i) + "," + e.y + o + i * 2 + ",0 " + o + -i * 2 + ",0 ";
|
@@ -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,10 +5862,10 @@ 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
|
-
he.create = Me, he.pointsToPath =
|
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({
|
5869
5869
|
// @option boxZoom: Boolean = true
|
5870
5870
|
// Whether the map can be zoomed to a rectangular area specified by
|
5871
5871
|
// dragging the mouse while pressing the shift key.
|
@@ -5904,7 +5904,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5904
5904
|
}, this);
|
5905
5905
|
},
|
5906
5906
|
_onMouseMove: function(t) {
|
5907
|
-
this._moved || (this._moved = !0, this._box = R("div", "leaflet-zoom-box", this._container),
|
5907
|
+
this._moved || (this._moved = !0, this._box = R("div", "leaflet-zoom-box", this._container), Z(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(t);
|
5908
5908
|
var e = new V(this._point, this._startPoint), i = e.getSize();
|
5909
5909
|
K(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
|
5910
5910
|
},
|
@@ -5938,7 +5938,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5938
5938
|
// view regardless of where the mouse was.
|
5939
5939
|
doubleClickZoom: !0
|
5940
5940
|
});
|
5941
|
-
var
|
5941
|
+
var An = vt.extend({
|
5942
5942
|
addHooks: function() {
|
5943
5943
|
this._map.on("dblclick", this._onDoubleClick, this);
|
5944
5944
|
},
|
@@ -5950,7 +5950,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5950
5950
|
e.options.doubleClickZoom === "center" ? e.setZoom(o) : e.setZoomAround(t.containerPoint, o);
|
5951
5951
|
}
|
5952
5952
|
});
|
5953
|
-
N.addInitHook("addHandler", "doubleClickZoom",
|
5953
|
+
N.addInitHook("addHandler", "doubleClickZoom", An), N.mergeOptions({
|
5954
5954
|
// @option dragging: Boolean = true
|
5955
5955
|
// Whether the map is draggable with mouse/touch or not.
|
5956
5956
|
dragging: !0,
|
@@ -5985,7 +5985,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5985
5985
|
// solid, preventing the user from dragging outside the bounds.
|
5986
5986
|
maxBoundsViscosity: 0
|
5987
5987
|
});
|
5988
|
-
var
|
5988
|
+
var Zn = vt.extend({
|
5989
5989
|
addHooks: function() {
|
5990
5990
|
if (!this._draggable) {
|
5991
5991
|
var t = this._map;
|
@@ -5995,7 +5995,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5995
5995
|
dragend: this._onDragEnd
|
5996
5996
|
}, this), this._draggable.on("predrag", this._onPreDragLimit, this), t.options.worldCopyJump && (this._draggable.on("predrag", this._onPreDragWrap, this), t.on("zoomend", this._onZoomEnd, this), t.whenReady(this._onZoomEnd, this));
|
5997
5997
|
}
|
5998
|
-
|
5998
|
+
Z(this._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this._positions = [], this._times = [];
|
5999
5999
|
},
|
6000
6000
|
removeHooks: function() {
|
6001
6001
|
j(this._map._container, "leaflet-grab"), j(this._map._container, "leaflet-touch-drag"), this._draggable.disable();
|
@@ -6064,7 +6064,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
6064
6064
|
}
|
6065
6065
|
}
|
6066
6066
|
});
|
6067
|
-
N.addInitHook("addHandler", "dragging",
|
6067
|
+
N.addInitHook("addHandler", "dragging", Zn), N.mergeOptions({
|
6068
6068
|
// @option keyboard: Boolean = true
|
6069
6069
|
// Makes the map focusable and allows users to navigate the map with keyboard
|
6070
6070
|
// arrows and `+`/`-` keys.
|
@@ -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() {
|
@@ -6269,7 +6269,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
6269
6269
|
});
|
6270
6270
|
var Rn = vt.extend({
|
6271
6271
|
addHooks: function() {
|
6272
|
-
|
6272
|
+
Z(this._map._container, "leaflet-touch-zoom"), z(this._map._container, "touchstart", this._onTouchStart, this);
|
6273
6273
|
},
|
6274
6274
|
removeHooks: function() {
|
6275
6275
|
j(this._map._container, "leaflet-touch-zoom"), F(this._map._container, "touchstart", this._onTouchStart, this);
|
@@ -6306,20 +6306,20 @@ 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 =
|
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);
|
6316
6316
|
var G = yi.exports;
|
6317
|
-
const et = "l:layer:connected", Jn = "l:popup:connected", Oe = "l:icon:connected", Gn = "l:layer:removed", Kn = "l:latlngbounds:connected", Yn = "l:latlngbounds:changed", xi = "l:tooltip:connected", Xn = "l:pane:connected", $n = (
|
6318
|
-
if (
|
6319
|
-
const
|
6320
|
-
|
6317
|
+
const et = "l:layer:connected", Jn = "l:popup:connected", Oe = "l:icon:connected", Gn = "l:layer:removed", Kn = "l:latlngbounds:connected", Yn = "l:latlngbounds:changed", xi = "l:tooltip:connected", Xn = "l:pane:connected", $n = (v, d, c = !0) => {
|
6318
|
+
if (v.hasAttribute("on")) {
|
6319
|
+
const g = v.getAttribute("on");
|
6320
|
+
g !== null && g.split(/\s+/).forEach((x) => {
|
6321
6321
|
d !== null && d.on(x, (s) => {
|
6322
|
-
|
6322
|
+
v.dispatchEvent(
|
6323
6323
|
new CustomEvent(x, { bubbles: c, detail: s })
|
6324
6324
|
);
|
6325
6325
|
});
|
@@ -6336,21 +6336,21 @@ class Zs extends HTMLElement {
|
|
6336
6336
|
});
|
6337
6337
|
}
|
6338
6338
|
}
|
6339
|
-
class
|
6339
|
+
class Is extends HTMLElement {
|
6340
6340
|
constructor() {
|
6341
6341
|
super();
|
6342
6342
|
}
|
6343
6343
|
connectedCallback() {
|
6344
|
-
const d = {}, c = {},
|
6344
|
+
const d = {}, c = {}, g = G.control.layers(d, c);
|
6345
6345
|
this.addEventListener(et, (s) => {
|
6346
6346
|
const { type: a, name: h, layer: l } = s.detail;
|
6347
|
-
a === "overlay" ?
|
6347
|
+
a === "overlay" ? g.addOverlay(l, h) : a === "base" && g.addBaseLayer(l, h), s.preventDefault();
|
6348
6348
|
});
|
6349
6349
|
const x = new CustomEvent(et, {
|
6350
6350
|
cancelable: !0,
|
6351
6351
|
bubbles: !0,
|
6352
6352
|
detail: {
|
6353
|
-
layer:
|
6353
|
+
layer: g
|
6354
6354
|
}
|
6355
6355
|
});
|
6356
6356
|
this.dispatchEvent(x);
|
@@ -6365,14 +6365,14 @@ 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
|
}
|
6372
6372
|
connectedCallback() {
|
6373
6373
|
const d = this.getAttribute("name"), c = G.layerGroup();
|
6374
6374
|
this.layer = c;
|
6375
|
-
const
|
6375
|
+
const g = new CustomEvent(et, {
|
6376
6376
|
cancelable: !0,
|
6377
6377
|
bubbles: !0,
|
6378
6378
|
detail: {
|
@@ -6380,7 +6380,7 @@ class Is extends zt {
|
|
6380
6380
|
name: d
|
6381
6381
|
}
|
6382
6382
|
});
|
6383
|
-
this.dispatchEvent(
|
6383
|
+
this.dispatchEvent(g), this.addEventListener(et, (s) => {
|
6384
6384
|
s.stopPropagation(), c.addLayer(s.detail.layer);
|
6385
6385
|
}), new MutationObserver(function(s) {
|
6386
6386
|
s.forEach((a) => {
|
@@ -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,98 +6411,98 @@ 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
|
-
value:
|
6418
|
-
}),
|
6419
|
-
const c =
|
6417
|
+
value: 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
|
-
},
|
6424
|
-
let { status: c, issues:
|
6421
|
+
throw new Ns(c.issues);
|
6422
|
+
return Ds(c);
|
6423
|
+
}, Hs = (v) => (d) => {
|
6424
|
+
let { status: c, issues: g } = d;
|
6425
6425
|
const x = {};
|
6426
|
-
for (const s of Object.keys(
|
6427
|
-
let a =
|
6428
|
-
a.status === "abort" && (c = "abort",
|
6426
|
+
for (const s of Object.keys(v)) {
|
6427
|
+
let a = v[s](d);
|
6428
|
+
a.status === "abort" && (c = "abort", g = [...g, ...a.issues]), x[s] = a.value;
|
6429
6429
|
}
|
6430
|
-
return { status: c, issues:
|
6431
|
-
}, Be = (
|
6432
|
-
let { issues: c } = d,
|
6430
|
+
return { status: c, issues: g, value: x };
|
6431
|
+
}, Be = (v) => (d) => {
|
6432
|
+
let { issues: c } = d, g = "clean";
|
6433
6433
|
const x = {};
|
6434
|
-
for (const s of Object.keys(
|
6435
|
-
let a =
|
6436
|
-
a.status !== "clean" && (
|
6434
|
+
for (const s of Object.keys(v)) {
|
6435
|
+
let a = v[s](d);
|
6436
|
+
a.status !== "clean" && (g = a.status), !(a.value === null && a.status === "clean") && (c = [...c, ...a.issues], x[s] = a.value);
|
6437
6437
|
}
|
6438
|
-
return { status:
|
6439
|
-
},
|
6440
|
-
for (let c = 0; c <
|
6438
|
+
return { status: g, issues: c, value: x };
|
6439
|
+
}, Fs = (...v) => (d) => {
|
6440
|
+
for (let c = 0; c < v.length && (d = v[c](d), d.status !== "abort"); c++)
|
6441
6441
|
;
|
6442
6442
|
return d;
|
6443
|
-
}, Li = (...
|
6444
|
-
for (let c = 0; c <
|
6445
|
-
d =
|
6443
|
+
}, Li = (...v) => (d) => {
|
6444
|
+
for (let c = 0; c < v.length; c++)
|
6445
|
+
d = v[c](d);
|
6446
6446
|
return d;
|
6447
|
-
}, wi = (
|
6447
|
+
}, wi = (v) => (d) => d.value === null ? d : v(d), ut = (v) => (d) => (d = v(d), d.value === null ? { status: "clean", issues: [], value: null } : d), Q = (v) => (d) => {
|
6448
6448
|
const c = d.value;
|
6449
|
-
let
|
6450
|
-
return
|
6449
|
+
let g = c.getAttribute(v);
|
6450
|
+
return g === null ? {
|
6451
6451
|
status: "abort",
|
6452
|
-
issues: [...d.issues,
|
6452
|
+
issues: [...d.issues, Js(c, v)],
|
6453
6453
|
value: null
|
6454
|
-
} : { ...d, value:
|
6455
|
-
},
|
6456
|
-
let d = parseInt(
|
6454
|
+
} : { ...d, value: g };
|
6455
|
+
}, Gs = () => (v) => {
|
6456
|
+
let d = parseInt(v.value);
|
6457
6457
|
return isNaN(d) ? {
|
6458
6458
|
status: "abort",
|
6459
|
-
issues: [...
|
6459
|
+
issues: [...v.issues, Vs(v.value)],
|
6460
6460
|
value: d
|
6461
|
-
} : { ...
|
6462
|
-
},
|
6463
|
-
let d = parseFloat(
|
6461
|
+
} : { ...v, value: d };
|
6462
|
+
}, Us = () => (v) => {
|
6463
|
+
let d = parseFloat(v.value);
|
6464
6464
|
return isNaN(d) ? {
|
6465
6465
|
status: "abort",
|
6466
|
-
issues: [...
|
6466
|
+
issues: [...v.issues, qs(v.value)],
|
6467
6467
|
value: d
|
6468
|
-
} : { ...
|
6469
|
-
}, ze = () => (
|
6468
|
+
} : { ...v, value: d };
|
6469
|
+
}, ze = () => (v) => {
|
6470
6470
|
let d;
|
6471
6471
|
try {
|
6472
|
-
d = JSON.parse(
|
6472
|
+
d = JSON.parse(v.value);
|
6473
6473
|
} catch (c) {
|
6474
6474
|
return {
|
6475
6475
|
status: "abort",
|
6476
|
-
issues: [...
|
6476
|
+
issues: [...v.issues, js(c)],
|
6477
6477
|
value: null
|
6478
6478
|
};
|
6479
6479
|
}
|
6480
|
-
return { ...
|
6481
|
-
},
|
6480
|
+
return { ...v, value: d };
|
6481
|
+
}, Ws = () => (v) => ({ ...v, value: v.value.toLowerCase() === "true" }), Ee = (v, ...d) => Fs(Q(v), ...d), Vs = (v) => ({
|
6482
6482
|
code: "parse_int",
|
6483
|
-
message: `could not parse int given: "${
|
6484
|
-
}),
|
6483
|
+
message: `could not parse int given: "${v}"`
|
6484
|
+
}), qs = (v) => ({
|
6485
6485
|
code: "parse_float",
|
6486
|
-
message: `could not parse float given: "${
|
6487
|
-
}),
|
6486
|
+
message: `could not parse float given: "${v}"`
|
6487
|
+
}), js = (v) => ({
|
6488
6488
|
code: "parse_json",
|
6489
|
-
message:
|
6490
|
-
}),
|
6489
|
+
message: v.message
|
6490
|
+
}), Js = (v, d) => ({
|
6491
6491
|
code: "missing_attribute",
|
6492
|
-
message: `${
|
6493
|
-
}),
|
6492
|
+
message: `${v.tagName.toLowerCase()} missing attribute '${d}'`
|
6493
|
+
}), Ze = class Ze extends HTMLElement {
|
6494
6494
|
constructor() {
|
6495
6495
|
super(), this.map = null;
|
6496
|
-
const d = (
|
6497
|
-
const { bounds: x, method: s } =
|
6496
|
+
const d = (g) => {
|
6497
|
+
const { bounds: x, method: s } = g.detail;
|
6498
6498
|
this.map !== null && this.map[s](x);
|
6499
6499
|
};
|
6500
|
-
this.addEventListener(Kn, d), this.addEventListener(Yn, d), this.addEventListener(Xn, (
|
6501
|
-
const { name: x } =
|
6500
|
+
this.addEventListener(Kn, d), this.addEventListener(Yn, d), this.addEventListener(Xn, (g) => {
|
6501
|
+
const { name: x } = g.detail;
|
6502
6502
|
this.map.createPane(x);
|
6503
|
-
}), new MutationObserver(function(
|
6504
|
-
|
6505
|
-
if (x.target instanceof
|
6503
|
+
}), new MutationObserver(function(g) {
|
6504
|
+
g.forEach((x) => {
|
6505
|
+
if (x.target instanceof Ze) {
|
6506
6506
|
const s = x.target;
|
6507
6507
|
x.removedNodes.forEach((a) => {
|
6508
6508
|
a instanceof zt && s.map !== null && a.layer !== null && (s.dispatchEvent(new CustomEvent(Gn, {
|
@@ -6517,7 +6517,8 @@ const Ns = (g) => ({
|
|
6517
6517
|
}).observe(this, { childList: !0 });
|
6518
6518
|
}
|
6519
6519
|
connectedCallback() {
|
6520
|
-
|
6520
|
+
const d = { zoomControl: this.hasAttribute("zoom-control") };
|
6521
|
+
if (this.hasAttribute("attribution-control") && (d.attributionControl = this.getAttribute("attribution-control").toLowerCase() === "true"), this.map = G.map(this, d), this.map.whenReady(() => {
|
6521
6522
|
this.dispatchEvent(
|
6522
6523
|
new CustomEvent("ready", {
|
6523
6524
|
bubbles: !0,
|
@@ -6528,33 +6529,33 @@ const Ns = (g) => ({
|
|
6528
6529
|
}), $n(this, this.map), this.hasAttribute("fit-world"))
|
6529
6530
|
this.map.fitWorld();
|
6530
6531
|
else {
|
6531
|
-
const
|
6532
|
-
zoom: Ee("zoom",
|
6532
|
+
const g = Hs({
|
6533
|
+
zoom: Ee("zoom", Gs()),
|
6533
6534
|
center: Ee("center", ze())
|
6534
|
-
}), { zoom:
|
6535
|
-
this.map.setView(
|
6535
|
+
}), { zoom: x, center: s } = wt(g, this);
|
6536
|
+
this.map.setView(s, x);
|
6536
6537
|
}
|
6537
6538
|
if (this.hasAttribute("locate")) {
|
6538
|
-
const
|
6539
|
-
this.map.locate(wt(
|
6539
|
+
const g = Ee("locate", ze());
|
6540
|
+
this.map.locate(wt(g, this));
|
6540
6541
|
}
|
6541
|
-
const
|
6542
|
-
"l-control-layers": (
|
6543
|
-
default: (
|
6542
|
+
const c = {
|
6543
|
+
"l-control-layers": (g, x) => g.addTo(x),
|
6544
|
+
default: (g, x) => x.addLayer(g)
|
6544
6545
|
};
|
6545
|
-
this.addEventListener(et, (
|
6546
|
-
const { layer:
|
6547
|
-
(
|
6548
|
-
}), this.addEventListener(Gn, (
|
6549
|
-
this.map !== null && this.map.removeLayer(
|
6546
|
+
this.addEventListener(et, (g) => {
|
6547
|
+
const { layer: x } = g.detail, s = g.target.localName;
|
6548
|
+
(c[s] || c.default)(x, this.map);
|
6549
|
+
}), this.addEventListener(Gn, (g) => {
|
6550
|
+
this.map !== null && this.map.removeLayer(g.detail.layer);
|
6550
6551
|
});
|
6551
6552
|
}
|
6552
|
-
attributeChangedCallback(d, c,
|
6553
|
-
this.map !== null && (d === "zoom" ? this.map.setZoom(parseInt(
|
6553
|
+
attributeChangedCallback(d, c, g) {
|
6554
|
+
this.map !== null && (d === "zoom" ? this.map.setZoom(parseInt(g)) : d === "center" && this.map.setView(JSON.parse(g)));
|
6554
6555
|
}
|
6555
6556
|
};
|
6556
|
-
Lt(
|
6557
|
-
let bi =
|
6557
|
+
Lt(Ze, "observedAttributes", ["zoom", "center", "zoom-control"]);
|
6558
|
+
let bi = Ze;
|
6558
6559
|
class Qn extends zt {
|
6559
6560
|
constructor() {
|
6560
6561
|
super(), this.layer = null, this.addEventListener(Oe, (d) => {
|
@@ -6566,11 +6567,11 @@ class Qn extends zt {
|
|
6566
6567
|
connectedCallback() {
|
6567
6568
|
const d = wt(Ee("lat-lng", ze()), this), c = wt(
|
6568
6569
|
Be({
|
6569
|
-
opacity: Li(ut(Q("opacity")), wi(
|
6570
|
+
opacity: Li(ut(Q("opacity")), wi(Us()))
|
6570
6571
|
}),
|
6571
6572
|
this
|
6572
|
-
),
|
6573
|
-
if (
|
6573
|
+
), g = this.closest("l-pane");
|
6574
|
+
if (g !== null && (c.pane = g.getAttribute("name")), this.layer = G.marker(d, c), this.hasAttribute("icon")) {
|
6574
6575
|
const s = G.icon(JSON.parse(this.getAttribute("icon")));
|
6575
6576
|
this.layer.setIcon(s);
|
6576
6577
|
}
|
@@ -6587,12 +6588,12 @@ class Qn extends zt {
|
|
6587
6588
|
});
|
6588
6589
|
this.dispatchEvent(x);
|
6589
6590
|
}
|
6590
|
-
attributeChangedCallback(d, c,
|
6591
|
-
this.layer !== null && (d === "lat-lng" && this.layer.setLatLng(JSON.parse(
|
6591
|
+
attributeChangedCallback(d, c, g) {
|
6592
|
+
this.layer !== null && (d === "lat-lng" && this.layer.setLatLng(JSON.parse(g)), d === "opacity" && this.layer.setOpacity(parseFloat(g)), d === "icon" && this.layer.setIcon(G.icon(JSON.parse(g))));
|
6592
6593
|
}
|
6593
6594
|
}
|
6594
6595
|
Lt(Qn, "observedAttributes", ["lat-lng", "opacity", "icon"]);
|
6595
|
-
class
|
6596
|
+
class Ks extends HTMLElement {
|
6596
6597
|
constructor() {
|
6597
6598
|
super();
|
6598
6599
|
}
|
@@ -6602,15 +6603,15 @@ class Js extends HTMLElement {
|
|
6602
6603
|
});
|
6603
6604
|
}
|
6604
6605
|
}
|
6605
|
-
class
|
6606
|
+
class Ys extends HTMLElement {
|
6606
6607
|
constructor() {
|
6607
6608
|
super();
|
6608
6609
|
}
|
6609
6610
|
connectedCallback() {
|
6610
6611
|
const d = this.getAttribute("content");
|
6611
6612
|
let c = !1;
|
6612
|
-
const
|
6613
|
-
|
6613
|
+
const g = this.getAttribute("open-popup");
|
6614
|
+
g !== null && (c = g !== "false");
|
6614
6615
|
const x = new CustomEvent(Jn, {
|
6615
6616
|
cancelable: !0,
|
6616
6617
|
bubbles: !0,
|
@@ -6622,28 +6623,41 @@ class Ks extends HTMLElement {
|
|
6622
6623
|
this.dispatchEvent(x);
|
6623
6624
|
}
|
6624
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
|
+
};
|
6625
6634
|
class Ci extends zt {
|
6626
6635
|
constructor() {
|
6627
6636
|
super(), this.layer = null;
|
6628
6637
|
}
|
6629
6638
|
connectedCallback() {
|
6630
|
-
const d = wt(Q("url-template"), this), c = Ci.parseTemplateAttributes(d),
|
6631
|
-
for (const
|
6632
|
-
const
|
6633
|
-
|
6639
|
+
const d = wt(Q("url-template"), this), c = Ci.parseTemplateAttributes(d), g = {};
|
6640
|
+
for (const y of c) {
|
6641
|
+
const _ = this.getAttribute(y);
|
6642
|
+
_ !== null && (g[y] = _);
|
6634
6643
|
}
|
6635
6644
|
const x = {};
|
6636
6645
|
this.parentElement.tagName.toLowerCase() === "l-pane" && (x.pane = this.parentElement.getAttribute("name"));
|
6637
6646
|
const s = this.getAttribute("name"), a = Be({
|
6638
6647
|
attribution: ut(Q("attribution")),
|
6639
6648
|
errorTileUrl: ut(Q("error-tile-url"))
|
6640
|
-
}), h = wt(a, this);
|
6641
|
-
this.layer = G.tileLayer(d, {
|
6642
|
-
|
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, {
|
6643
6657
|
detail: { name: s, layer: this.layer },
|
6644
6658
|
bubbles: !0
|
6645
6659
|
});
|
6646
|
-
this.dispatchEvent(
|
6660
|
+
this.dispatchEvent(p);
|
6647
6661
|
}
|
6648
6662
|
/**
|
6649
6663
|
* @param {string} urlTemplate
|
@@ -6651,10 +6665,10 @@ class Ci extends zt {
|
|
6651
6665
|
*/
|
6652
6666
|
static parseTemplateAttributes(d) {
|
6653
6667
|
const c = /{(.*?)}/g;
|
6654
|
-
return [...d.matchAll(c)].map((
|
6668
|
+
return [...d.matchAll(c)].map((g) => g[1]);
|
6655
6669
|
}
|
6656
6670
|
}
|
6657
|
-
class
|
6671
|
+
class Xs extends zt {
|
6658
6672
|
static get observedAttributes() {
|
6659
6673
|
return ["options"];
|
6660
6674
|
}
|
@@ -6664,11 +6678,11 @@ class Ys extends zt {
|
|
6664
6678
|
connectedCallback() {
|
6665
6679
|
this.initLayer();
|
6666
6680
|
}
|
6667
|
-
attributeChangedCallback(d, c,
|
6668
|
-
d === "options" && c !==
|
6681
|
+
attributeChangedCallback(d, c, g) {
|
6682
|
+
d === "options" && c !== g && this.isConnected && this.reloadLayer();
|
6669
6683
|
}
|
6670
6684
|
initLayer() {
|
6671
|
-
const d = wt(Q("url-template"), this), c = this.getAttribute("name"),
|
6685
|
+
const d = wt(Q("url-template"), this), c = this.getAttribute("name"), g = Be({
|
6672
6686
|
// Leaflet.tileLayer default options: https://leafletjs.com/reference.html#tilelayer-wms-layers
|
6673
6687
|
layers: Q("layers"),
|
6674
6688
|
styles: ut(Q("styles")),
|
@@ -6679,35 +6693,38 @@ class Ys extends zt {
|
|
6679
6693
|
uppercase: ut(Q("uppercase")),
|
6680
6694
|
// Inherited option from Layer: https://leafletjs.com/reference.html#tilelayer-wms-attribution
|
6681
6695
|
attribution: ut(Q("attribution"))
|
6682
|
-
}), x = wt(
|
6696
|
+
}), x = wt(g, this), s = this.getAttribute("options"), a = () => {
|
6683
6697
|
if (s)
|
6684
6698
|
try {
|
6685
6699
|
return JSON.parse(s);
|
6686
|
-
} catch (
|
6700
|
+
} catch (y) {
|
6687
6701
|
return console.error(
|
6688
6702
|
"Error whilst parsing JSON for options attribute in l-tile-layer-wms",
|
6689
|
-
|
6703
|
+
y
|
6690
6704
|
), {};
|
6691
6705
|
}
|
6692
6706
|
else
|
6693
6707
|
return {};
|
6694
6708
|
}, h = {};
|
6695
|
-
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, {
|
6696
6712
|
...x,
|
6697
6713
|
...a(),
|
6698
|
-
...h
|
6714
|
+
...h,
|
6715
|
+
...l
|
6699
6716
|
});
|
6700
|
-
const
|
6717
|
+
const p = new CustomEvent(et, {
|
6701
6718
|
detail: { name: c, layer: this.layer },
|
6702
6719
|
bubbles: !0
|
6703
6720
|
});
|
6704
|
-
this.dispatchEvent(
|
6721
|
+
this.dispatchEvent(p);
|
6705
6722
|
}
|
6706
6723
|
reloadLayer() {
|
6707
6724
|
this.layer && this.layer.remove(), this.initLayer();
|
6708
6725
|
}
|
6709
6726
|
}
|
6710
|
-
class
|
6727
|
+
class eo extends HTMLElement {
|
6711
6728
|
constructor() {
|
6712
6729
|
super();
|
6713
6730
|
}
|
@@ -6715,8 +6732,8 @@ class to extends HTMLElement {
|
|
6715
6732
|
let d = this.getAttribute("bounds");
|
6716
6733
|
d !== null && this.dispatchEvent(this.getEvent(Kn, JSON.parse(d)));
|
6717
6734
|
}
|
6718
|
-
attributeChangedCallback(d, c,
|
6719
|
-
this.dispatchEvent(this.getEvent(Yn, JSON.parse(
|
6735
|
+
attributeChangedCallback(d, c, g) {
|
6736
|
+
this.dispatchEvent(this.getEvent(Yn, JSON.parse(g)));
|
6720
6737
|
}
|
6721
6738
|
/**
|
6722
6739
|
* @param {LatLngBounds} bounds
|
@@ -6731,8 +6748,8 @@ class to extends HTMLElement {
|
|
6731
6748
|
});
|
6732
6749
|
}
|
6733
6750
|
}
|
6734
|
-
Lt(
|
6735
|
-
class
|
6751
|
+
Lt(eo, "observedAttributes", ["bounds"]);
|
6752
|
+
class io extends zt {
|
6736
6753
|
constructor() {
|
6737
6754
|
super(), this.layer = null;
|
6738
6755
|
}
|
@@ -6747,11 +6764,11 @@ class eo extends zt {
|
|
6747
6764
|
console.warn("attribute 'bounds' not set");
|
6748
6765
|
return;
|
6749
6766
|
}
|
6750
|
-
const
|
6767
|
+
const g = {
|
6751
6768
|
opacity: parseFloat(this.getAttribute("opacity") || "1.0"),
|
6752
6769
|
alt: this.getAttribute("alt") || ""
|
6753
6770
|
}, x = this.closest("l-pane");
|
6754
|
-
x !== null && (
|
6771
|
+
x !== null && (g.pane = x.getAttribute("name")), this.layer = G.imageOverlay(d, JSON.parse(c), g), this.dispatchEvent(
|
6755
6772
|
new CustomEvent(et, {
|
6756
6773
|
cancelable: !0,
|
6757
6774
|
bubbles: !0,
|
@@ -6761,23 +6778,23 @@ class eo extends zt {
|
|
6761
6778
|
})
|
6762
6779
|
);
|
6763
6780
|
}
|
6764
|
-
attributeChangedCallback(d, c,
|
6765
|
-
this.layer !== null && (d === "url" ? this.layer.setUrl(
|
6781
|
+
attributeChangedCallback(d, c, g) {
|
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)));
|
6766
6783
|
}
|
6767
6784
|
}
|
6768
|
-
Lt(
|
6769
|
-
class
|
6785
|
+
Lt(io, "observedAttributes", ["url", "bounds", "opacity"]);
|
6786
|
+
class $s extends zt {
|
6770
6787
|
constructor() {
|
6771
6788
|
super();
|
6772
6789
|
}
|
6773
6790
|
connectedCallback() {
|
6774
|
-
const d = JSON.parse(this.getAttribute("url")), c = JSON.parse(this.getAttribute("bounds")),
|
6791
|
+
const d = JSON.parse(this.getAttribute("url")), c = JSON.parse(this.getAttribute("bounds")), g = {
|
6775
6792
|
opacity: parseFloat(this.getAttribute("opacity") || "1.0"),
|
6776
6793
|
alt: this.getAttribute("alt") || "",
|
6777
6794
|
autoplay: !0,
|
6778
6795
|
muted: !0,
|
6779
6796
|
playsInline: !0
|
6780
|
-
}, x = G.videoOverlay(d, c,
|
6797
|
+
}, x = G.videoOverlay(d, c, g);
|
6781
6798
|
this.dispatchEvent(
|
6782
6799
|
new CustomEvent(et, {
|
6783
6800
|
cancelable: !0,
|
@@ -6789,13 +6806,13 @@ class Xs extends zt {
|
|
6789
6806
|
);
|
6790
6807
|
}
|
6791
6808
|
}
|
6792
|
-
class
|
6809
|
+
class Qs extends HTMLElement {
|
6793
6810
|
constructor() {
|
6794
6811
|
super(), this.layer = null;
|
6795
6812
|
}
|
6796
6813
|
connectedCallback() {
|
6797
|
-
const d = this.getAttribute("geojson"), c = {},
|
6798
|
-
|
6814
|
+
const d = this.getAttribute("geojson"), c = {}, g = this.closest("l-pane");
|
6815
|
+
g !== null && (c.pane = g.getAttribute("name")), d !== null && (this.layer = G.geoJSON(JSON.parse(d), c), this.dispatchEvent(
|
6799
6816
|
new CustomEvent(et, {
|
6800
6817
|
bubbles: !0,
|
6801
6818
|
cancelable: !0,
|
@@ -6806,7 +6823,7 @@ class $s extends HTMLElement {
|
|
6806
6823
|
));
|
6807
6824
|
}
|
6808
6825
|
}
|
6809
|
-
const ue = (
|
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 = [
|
6810
6827
|
"icon-url",
|
6811
6828
|
"icon-retina-url",
|
6812
6829
|
"shadow-url",
|
@@ -6839,10 +6856,10 @@ const ue = (g) => g.replace(/-./g, (d) => d[1].toUpperCase()), Qs = (g) => g.spl
|
|
6839
6856
|
* @param {string} _
|
6840
6857
|
* @param {string} newValue
|
6841
6858
|
*/
|
6842
|
-
attributeChangedCallback(d, c,
|
6859
|
+
attributeChangedCallback(d, c, g) {
|
6843
6860
|
if (Ie.observedAttributes.indexOf(d) !== -1 && this.icon !== null) {
|
6844
6861
|
let x = {};
|
6845
|
-
vi.indexOf(d) !== -1 ? x[ue(d)] =
|
6862
|
+
vi.indexOf(d) !== -1 ? x[ue(d)] = g : Wn.indexOf(d) !== -1 ? x[ue(d)] = g.toLowerCase() === "true" : x[ue(d)] = JSON.parse(g), this.icon = G.icon({
|
6846
6863
|
...this.icon.options,
|
6847
6864
|
...x
|
6848
6865
|
});
|
@@ -6861,16 +6878,16 @@ const ue = (g) => g.replace(/-./g, (d) => d[1].toUpperCase()), Qs = (g) => g.spl
|
|
6861
6878
|
*/
|
6862
6879
|
_parseOptions() {
|
6863
6880
|
const d = {};
|
6864
|
-
vi.forEach((
|
6865
|
-
d[ue(
|
6866
|
-
}), Un.forEach((
|
6867
|
-
d[ue(
|
6868
|
-
ut(Q(
|
6881
|
+
vi.forEach((g) => {
|
6882
|
+
d[ue(g)] = ut(Q(g));
|
6883
|
+
}), Un.forEach((g) => {
|
6884
|
+
d[ue(g)] = Li(
|
6885
|
+
ut(Q(g)),
|
6869
6886
|
wi(ze())
|
6870
6887
|
);
|
6871
6888
|
}), d.crossOrigin = Li(
|
6872
6889
|
ut(Q("cross-origin")),
|
6873
|
-
wi(
|
6890
|
+
wi(Ws())
|
6874
6891
|
);
|
6875
6892
|
const c = Be(d);
|
6876
6893
|
return wt(c, this);
|
@@ -6881,7 +6898,7 @@ Lt(Ie, "observedAttributes", [
|
|
6881
6898
|
...Un,
|
6882
6899
|
...Wn
|
6883
6900
|
]);
|
6884
|
-
let Pi = Ie,
|
6901
|
+
let Pi = Ie, er = class extends HTMLElement {
|
6885
6902
|
constructor() {
|
6886
6903
|
super(), this.icon = null;
|
6887
6904
|
}
|
@@ -6900,7 +6917,7 @@ let Pi = Ie, tr = class extends HTMLElement {
|
|
6900
6917
|
);
|
6901
6918
|
}
|
6902
6919
|
};
|
6903
|
-
class
|
6920
|
+
class no extends HTMLElement {
|
6904
6921
|
constructor() {
|
6905
6922
|
super(), this.tooltip = null;
|
6906
6923
|
}
|
@@ -6923,12 +6940,12 @@ class io extends HTMLElement {
|
|
6923
6940
|
* @param {string} attName
|
6924
6941
|
* @param {string} newValue
|
6925
6942
|
*/
|
6926
|
-
attributeChangedCallback(d, c,
|
6927
|
-
this.tooltip && (d === "content" ? this.tooltip.setContent(
|
6943
|
+
attributeChangedCallback(d, c, g) {
|
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));
|
6928
6945
|
}
|
6929
6946
|
}
|
6930
|
-
Lt(
|
6931
|
-
class
|
6947
|
+
Lt(no, "observedAttributes", ["content", "permanent", "interactive", "direction"]);
|
6948
|
+
class ir extends HTMLElement {
|
6932
6949
|
constructor() {
|
6933
6950
|
super();
|
6934
6951
|
}
|
@@ -6944,8 +6961,8 @@ class er extends HTMLElement {
|
|
6944
6961
|
);
|
6945
6962
|
}
|
6946
6963
|
}
|
6947
|
-
const Ti = (
|
6948
|
-
switch (
|
6964
|
+
const Ti = (v) => {
|
6965
|
+
switch (v) {
|
6949
6966
|
case "circle":
|
6950
6967
|
return [X("latLng", "latlng", null)];
|
6951
6968
|
case "rectangle":
|
@@ -6955,13 +6972,13 @@ const Ti = (g) => {
|
|
6955
6972
|
case "polyline":
|
6956
6973
|
return [X("latLngs", "latlng", null)];
|
6957
6974
|
}
|
6958
|
-
}, X = (
|
6959
|
-
camel:
|
6960
|
-
kebab:
|
6961
|
-
parser:
|
6975
|
+
}, X = (v, d, c) => ({
|
6976
|
+
camel: v,
|
6977
|
+
kebab: tr(v),
|
6978
|
+
parser: nr(d),
|
6962
6979
|
defaultValue: c
|
6963
|
-
}),
|
6964
|
-
switch (
|
6980
|
+
}), nr = (v) => {
|
6981
|
+
switch (v.toLowerCase()) {
|
6965
6982
|
case "boolean":
|
6966
6983
|
return (d) => d === "true";
|
6967
6984
|
case "number":
|
@@ -6974,7 +6991,7 @@ const Ti = (g) => {
|
|
6974
6991
|
default:
|
6975
6992
|
return (d) => d;
|
6976
6993
|
}
|
6977
|
-
},
|
6994
|
+
}, Ae = (v) => {
|
6978
6995
|
const d = {
|
6979
6996
|
circle: [X("radius", "number", null)],
|
6980
6997
|
path: [
|
@@ -6998,7 +7015,7 @@ const Ti = (g) => {
|
|
6998
7015
|
rectangle: [],
|
6999
7016
|
interactiveLayer: [X("interactive", "boolean", !0)]
|
7000
7017
|
};
|
7001
|
-
return
|
7018
|
+
return or(v).flatMap((c) => d[c]);
|
7002
7019
|
}, Vn = {
|
7003
7020
|
circle: ["path"],
|
7004
7021
|
polyline: ["path"],
|
@@ -7006,65 +7023,65 @@ const Ti = (g) => {
|
|
7006
7023
|
rectangle: ["polygon"],
|
7007
7024
|
path: ["interactiveLayer"],
|
7008
7025
|
interactiveLayer: []
|
7009
|
-
},
|
7010
|
-
let d =
|
7026
|
+
}, or = (v) => {
|
7027
|
+
let d = v, c = [v];
|
7011
7028
|
for (; Vn[d].length > 0; ) {
|
7012
|
-
let
|
7013
|
-
c.push(
|
7029
|
+
let g = Vn[d][0];
|
7030
|
+
c.push(g), d = g;
|
7014
7031
|
}
|
7015
7032
|
return c;
|
7016
|
-
},
|
7033
|
+
}, sr = (v, d, c, g) => {
|
7017
7034
|
let s = [
|
7018
7035
|
...Ti(d),
|
7019
|
-
...
|
7036
|
+
...Ae(d)
|
7020
7037
|
].find((l) => l.kebab === c);
|
7021
7038
|
if (typeof s > "u")
|
7022
7039
|
return;
|
7023
|
-
const a = s.parser(
|
7024
|
-
if (
|
7040
|
+
const a = s.parser(g);
|
7041
|
+
if (v instanceof G.Circle)
|
7025
7042
|
switch (c) {
|
7026
7043
|
case "lat-lng":
|
7027
|
-
|
7044
|
+
v.setLatLng(JSON.parse(g));
|
7028
7045
|
break;
|
7029
7046
|
case "radius":
|
7030
|
-
|
7047
|
+
v.setRadius(parseFloat(g));
|
7031
7048
|
break;
|
7032
7049
|
}
|
7033
|
-
else if (
|
7050
|
+
else if (v instanceof G.Rectangle)
|
7034
7051
|
switch (c) {
|
7035
7052
|
case "lat-lngs":
|
7036
|
-
|
7053
|
+
v.setLatLngs(JSON.parse(g));
|
7037
7054
|
break;
|
7038
7055
|
case "lat-lng-bounds":
|
7039
|
-
|
7056
|
+
v.setBounds(JSON.parse(g));
|
7040
7057
|
break;
|
7041
7058
|
}
|
7042
|
-
else if (
|
7059
|
+
else if (v instanceof G.Polygon)
|
7043
7060
|
switch (c) {
|
7044
7061
|
case "lat-lngs":
|
7045
|
-
|
7062
|
+
v.setLatLngs(JSON.parse(g));
|
7046
7063
|
break;
|
7047
7064
|
}
|
7048
|
-
else if (
|
7065
|
+
else if (v instanceof G.Polyline)
|
7049
7066
|
switch (c) {
|
7050
7067
|
case "lat-lngs":
|
7051
|
-
|
7068
|
+
v.setLatLngs(JSON.parse(g));
|
7052
7069
|
break;
|
7053
7070
|
}
|
7054
|
-
let h =
|
7055
|
-
typeof h < "u" &&
|
7056
|
-
},
|
7057
|
-
let d = Ti(
|
7071
|
+
let h = Ae("polyline").find((l) => l.kebab === c);
|
7072
|
+
typeof h < "u" && v.setStyle({ [h.camel]: a });
|
7073
|
+
}, rr = (v) => {
|
7074
|
+
let d = Ti(v).map((g) => g.kebab), c = Ae(v).map((g) => g.kebab);
|
7058
7075
|
return [...d, ...c];
|
7059
|
-
},
|
7076
|
+
}, ar = (v, d) => {
|
7060
7077
|
let c = {};
|
7061
|
-
return
|
7062
|
-
|
7078
|
+
return Ae(d).forEach((g) => {
|
7079
|
+
v.hasAttribute(g.kebab) && (c[g.camel] = g.parser(v.getAttribute(g.kebab)));
|
7063
7080
|
}), c;
|
7064
|
-
},
|
7065
|
-
const
|
7081
|
+
}, hr = (v, d) => Ti(d).map((c) => {
|
7082
|
+
const g = Q(c.kebab), x = wt(g, v);
|
7066
7083
|
return c.parser(x);
|
7067
|
-
}), ke = (
|
7084
|
+
}), ke = (v, d) => {
|
7068
7085
|
class c extends HTMLElement {
|
7069
7086
|
constructor() {
|
7070
7087
|
super(), this.layer = null, this.addEventListener(xi, (x) => {
|
@@ -7072,8 +7089,8 @@ const Ti = (g) => {
|
|
7072
7089
|
});
|
7073
7090
|
}
|
7074
7091
|
connectedCallback() {
|
7075
|
-
const x =
|
7076
|
-
this.layer =
|
7092
|
+
const x = hr(this, d), s = ar(this, d);
|
7093
|
+
this.layer = v(...x, s);
|
7077
7094
|
const a = new CustomEvent(et, {
|
7078
7095
|
cancelable: !0,
|
7079
7096
|
bubbles: !0,
|
@@ -7088,17 +7105,17 @@ const Ti = (g) => {
|
|
7088
7105
|
* @param {string} newValue
|
7089
7106
|
*/
|
7090
7107
|
attributeChangedCallback(x, s, a) {
|
7091
|
-
this.layer !== null &&
|
7108
|
+
this.layer !== null && sr(this.layer, d, x, a);
|
7092
7109
|
}
|
7093
7110
|
}
|
7094
|
-
return Lt(c, "observedAttributes",
|
7111
|
+
return Lt(c, "observedAttributes", rr(d)), c;
|
7095
7112
|
};
|
7096
7113
|
var qn = { exports: {} };
|
7097
|
-
(function(
|
7098
|
-
(function(c,
|
7099
|
-
|
7114
|
+
(function(v, d) {
|
7115
|
+
(function(c, g) {
|
7116
|
+
g(d);
|
7100
7117
|
})(jn, function(c) {
|
7101
|
-
var
|
7118
|
+
var g = L.MarkerClusterGroup = L.FeatureGroup.extend({
|
7102
7119
|
options: {
|
7103
7120
|
maxClusterRadius: 80,
|
7104
7121
|
//A cluster will cover at most this many pixels from its center
|
@@ -7169,14 +7186,14 @@ var qn = { exports: {} };
|
|
7169
7186
|
addLayers: function(s, a) {
|
7170
7187
|
if (!L.Util.isArray(s))
|
7171
7188
|
return this.addLayer(s);
|
7172
|
-
var h = this._featureGroup, l = this._nonPointGroup, p = this.options.chunkedLoading,
|
7189
|
+
var h = this._featureGroup, l = this._nonPointGroup, p = this.options.chunkedLoading, y = this.options.chunkInterval, _ = this.options.chunkProgress, b = s.length, w = 0, M = !0, C;
|
7173
7190
|
if (this._map) {
|
7174
|
-
var H = (/* @__PURE__ */ new Date()).getTime(),
|
7191
|
+
var H = (/* @__PURE__ */ new Date()).getTime(), A = L.bind(function() {
|
7175
7192
|
var W = (/* @__PURE__ */ new Date()).getTime();
|
7176
7193
|
for (this._map && this._unspiderfy && this._unspiderfy(); w < b; w++) {
|
7177
7194
|
if (p && w % 200 === 0) {
|
7178
7195
|
var bt = (/* @__PURE__ */ new Date()).getTime() - W;
|
7179
|
-
if (bt >
|
7196
|
+
if (bt > y)
|
7180
7197
|
break;
|
7181
7198
|
}
|
7182
7199
|
if (C = s[w], C instanceof L.LayerGroup) {
|
@@ -7192,9 +7209,9 @@ var qn = { exports: {} };
|
|
7192
7209
|
h.removeLayer(jt);
|
7193
7210
|
}
|
7194
7211
|
}
|
7195
|
-
_ && _(w, b, (/* @__PURE__ */ new Date()).getTime() - H), w === b ? (this._topClusterLevel._recalculateBounds(), this._refreshClustersIcons(), this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds)) : setTimeout(
|
7212
|
+
_ && _(w, b, (/* @__PURE__ */ new Date()).getTime() - H), w === b ? (this._topClusterLevel._recalculateBounds(), this._refreshClustersIcons(), this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds)) : setTimeout(A, this.options.chunkDelay);
|
7196
7213
|
}, this);
|
7197
|
-
|
7214
|
+
A();
|
7198
7215
|
} else
|
7199
7216
|
for (var U = this._needsClustering; w < b; w++) {
|
7200
7217
|
if (C = s[w], C instanceof L.LayerGroup) {
|
@@ -7211,14 +7228,14 @@ var qn = { exports: {} };
|
|
7211
7228
|
},
|
7212
7229
|
//Takes an array of markers and removes them in bulk
|
7213
7230
|
removeLayers: function(s) {
|
7214
|
-
var a, h, l = s.length, p = this._featureGroup,
|
7231
|
+
var a, h, l = s.length, p = this._featureGroup, y = this._nonPointGroup, _ = !0;
|
7215
7232
|
if (!this._map) {
|
7216
7233
|
for (a = 0; a < l; a++) {
|
7217
7234
|
if (h = s[a], h instanceof L.LayerGroup) {
|
7218
7235
|
_ && (s = s.slice(), _ = !1), this._extractNonGroupLayers(h, s), l = s.length;
|
7219
7236
|
continue;
|
7220
7237
|
}
|
7221
|
-
this._arraySplice(this._needsClustering, h),
|
7238
|
+
this._arraySplice(this._needsClustering, h), y.removeLayer(h), this.hasLayer(h) && this._needsRemoving.push({ layer: h, latlng: h._latlng }), this.fire("layerremove", { layer: h });
|
7222
7239
|
}
|
7223
7240
|
return this;
|
7224
7241
|
}
|
@@ -7239,7 +7256,7 @@ var qn = { exports: {} };
|
|
7239
7256
|
continue;
|
7240
7257
|
}
|
7241
7258
|
if (!h.__parent) {
|
7242
|
-
|
7259
|
+
y.removeLayer(h), this.fire("layerremove", { layer: h });
|
7243
7260
|
continue;
|
7244
7261
|
}
|
7245
7262
|
this._removeLayer(h, !0, !0), this.fire("layerremove", { layer: h }), p.hasLayer(h) && (p.removeLayer(h), h.clusterShow && h.clusterShow());
|
@@ -7262,14 +7279,14 @@ var qn = { exports: {} };
|
|
7262
7279
|
},
|
7263
7280
|
//Overrides LayerGroup.eachLayer
|
7264
7281
|
eachLayer: function(s, a) {
|
7265
|
-
var h = this._needsClustering.slice(), l = this._needsRemoving, p,
|
7266
|
-
for (this._topClusterLevel && this._topClusterLevel.getAllChildMarkers(h),
|
7282
|
+
var h = this._needsClustering.slice(), l = this._needsRemoving, p, y, _;
|
7283
|
+
for (this._topClusterLevel && this._topClusterLevel.getAllChildMarkers(h), y = h.length - 1; y >= 0; y--) {
|
7267
7284
|
for (p = !0, _ = l.length - 1; _ >= 0; _--)
|
7268
|
-
if (l[_].layer === h[
|
7285
|
+
if (l[_].layer === h[y]) {
|
7269
7286
|
p = !1;
|
7270
7287
|
break;
|
7271
7288
|
}
|
7272
|
-
p && s.call(a, h[
|
7289
|
+
p && s.call(a, h[y]);
|
7273
7290
|
}
|
7274
7291
|
this._nonPointGroup.eachLayer(s, a);
|
7275
7292
|
},
|
@@ -7366,11 +7383,11 @@ var qn = { exports: {} };
|
|
7366
7383
|
//Internal function for removing a marker from everything.
|
7367
7384
|
//dontUpdateMap: set to true if you will handle updating the map manually (for bulk functions)
|
7368
7385
|
_removeLayer: function(s, a, h) {
|
7369
|
-
var l = this._gridClusters, p = this._gridUnclustered,
|
7386
|
+
var l = this._gridClusters, p = this._gridUnclustered, y = this._featureGroup, _ = this._map, b = Math.floor(this._map.getMinZoom());
|
7370
7387
|
a && this._removeFromGridUnclustered(s, this._maxZoom);
|
7371
7388
|
var w = s.__parent, M = w._markers, C;
|
7372
7389
|
for (this._arraySplice(M, s); w && (w._childCount--, w._boundsNeedUpdate = !0, !(w._zoom < b)); )
|
7373
|
-
a && w._childCount <= 1 ? (C = w._markers[0] === s ? w._markers[1] : w._markers[0], l[w._zoom].removeObject(w, _.project(w._cLatLng, w._zoom)), p[w._zoom].addObject(C, _.project(C.getLatLng(), w._zoom)), this._arraySplice(w.__parent._childClusters, w), w.__parent._markers.push(C), C.__parent = w.__parent, w._icon && (
|
7390
|
+
a && w._childCount <= 1 ? (C = w._markers[0] === s ? w._markers[1] : w._markers[0], l[w._zoom].removeObject(w, _.project(w._cLatLng, w._zoom)), p[w._zoom].addObject(C, _.project(C.getLatLng(), w._zoom)), this._arraySplice(w.__parent._childClusters, w), w.__parent._markers.push(C), C.__parent = w.__parent, w._icon && (y.removeLayer(w), h || y.addLayer(C))) : w._iconNeedsUpdate = !0, w = w.__parent;
|
7374
7391
|
delete s.__parent;
|
7375
7392
|
},
|
7376
7393
|
_isOrIsParent: function(s, a) {
|
@@ -7442,15 +7459,15 @@ var qn = { exports: {} };
|
|
7442
7459
|
},
|
7443
7460
|
//Zoom: Zoom to start adding at (Pass this._maxZoom to start at the bottom)
|
7444
7461
|
_addLayer: function(s, a) {
|
7445
|
-
var h = this._gridClusters, l = this._gridUnclustered, p = Math.floor(this._map.getMinZoom()),
|
7462
|
+
var h = this._gridClusters, l = this._gridUnclustered, p = Math.floor(this._map.getMinZoom()), y, _;
|
7446
7463
|
for (this.options.singleMarkerMode && this._overrideMarkerIcon(s), s.on(this._childMarkerEventHandlers, this); a >= p; a--) {
|
7447
|
-
|
7448
|
-
var b = h[a].getNearObject(
|
7464
|
+
y = this._map.project(s.getLatLng(), a);
|
7465
|
+
var b = h[a].getNearObject(y);
|
7449
7466
|
if (b) {
|
7450
7467
|
b._addChild(s), s.__parent = b;
|
7451
7468
|
return;
|
7452
7469
|
}
|
7453
|
-
if (b = l[a].getNearObject(
|
7470
|
+
if (b = l[a].getNearObject(y), b) {
|
7454
7471
|
var w = b.__parent;
|
7455
7472
|
w && this._removeLayer(b, !1);
|
7456
7473
|
var M = new this._markerCluster(this, a, b, s);
|
@@ -7461,7 +7478,7 @@ var qn = { exports: {} };
|
|
7461
7478
|
w._addChild(C), this._removeFromGridUnclustered(b, a);
|
7462
7479
|
return;
|
7463
7480
|
}
|
7464
|
-
l[a].addObject(s,
|
7481
|
+
l[a].addObject(s, y);
|
7465
7482
|
}
|
7466
7483
|
this._topClusterLevel._addChild(s), s.__parent = this._topClusterLevel;
|
7467
7484
|
},
|
@@ -7581,11 +7598,11 @@ var qn = { exports: {} };
|
|
7581
7598
|
this._map._mapPane.className += " leaflet-cluster-anim", this._inZoomAnimation++;
|
7582
7599
|
},
|
7583
7600
|
_animationZoomIn: function(s, a) {
|
7584
|
-
var h = this._getExpandedVisibleBounds(), l = this._featureGroup, p = Math.floor(this._map.getMinZoom()),
|
7601
|
+
var h = this._getExpandedVisibleBounds(), l = this._featureGroup, p = Math.floor(this._map.getMinZoom()), y;
|
7585
7602
|
this._ignoreMove = !0, this._topClusterLevel._recursively(h, s, p, function(_) {
|
7586
7603
|
var b = _._latlng, w = _._markers, M;
|
7587
|
-
for (h.contains(b) || (b = null), _._isSingleParent() && s + 1 === a ? (l.removeLayer(_), _._recursivelyAddChildrenToMap(null, a, h)) : (_.clusterHide(), _._recursivelyAddChildrenToMap(b, a, h)),
|
7588
|
-
M = w[
|
7604
|
+
for (h.contains(b) || (b = null), _._isSingleParent() && s + 1 === a ? (l.removeLayer(_), _._recursivelyAddChildrenToMap(null, a, h)) : (_.clusterHide(), _._recursivelyAddChildrenToMap(b, a, h)), y = w.length - 1; y >= 0; y--)
|
7605
|
+
M = w[y], h.contains(M._latlng) || l.removeLayer(M);
|
7589
7606
|
}), this._forceLayout(), this._topClusterLevel._recursivelyBecomeVisible(h, a), l.eachLayer(function(_) {
|
7590
7607
|
!(_ instanceof L.MarkerCluster) && _._icon && _.clusterShow();
|
7591
7608
|
}), this._topClusterLevel._recursively(h, s, a, function(_) {
|
@@ -7610,7 +7627,7 @@ var qn = { exports: {} };
|
|
7610
7627
|
_animationZoomOutSingle: function(s, a, h) {
|
7611
7628
|
var l = this._getExpandedVisibleBounds(), p = Math.floor(this._map.getMinZoom());
|
7612
7629
|
s._recursivelyAnimateChildrenInAndAddSelfToMap(l, p, a + 1, h);
|
7613
|
-
var
|
7630
|
+
var y = this;
|
7614
7631
|
this._forceLayout(), s._recursivelyBecomeVisible(l, h), this._enqueue(function() {
|
7615
7632
|
if (s._childCount === 1) {
|
7616
7633
|
var _ = s._markers[0];
|
@@ -7619,7 +7636,7 @@ var qn = { exports: {} };
|
|
7619
7636
|
s._recursively(l, h, p, function(b) {
|
7620
7637
|
b._recursivelyRemoveChildrenFromMap(l, p, a + 1);
|
7621
7638
|
});
|
7622
|
-
|
7639
|
+
y._animationEnd();
|
7623
7640
|
});
|
7624
7641
|
},
|
7625
7642
|
_animationEnd: function() {
|
@@ -7657,14 +7674,14 @@ var qn = { exports: {} };
|
|
7657
7674
|
},
|
7658
7675
|
//Zoom to the minimum of showing all of the child markers, or the extents of this cluster
|
7659
7676
|
zoomToBounds: function(s) {
|
7660
|
-
for (var a = this._childClusters.slice(), h = this._group._map, l = h.getBoundsZoom(this._bounds), p = this._zoom + 1,
|
7677
|
+
for (var a = this._childClusters.slice(), h = this._group._map, l = h.getBoundsZoom(this._bounds), p = this._zoom + 1, y = h.getZoom(), _; a.length > 0 && l > p; ) {
|
7661
7678
|
p++;
|
7662
7679
|
var b = [];
|
7663
7680
|
for (_ = 0; _ < a.length; _++)
|
7664
7681
|
b = b.concat(a[_]._childClusters);
|
7665
7682
|
a = b;
|
7666
7683
|
}
|
7667
|
-
l > p ? this._group._map.setView(this._latlng, p) : l <=
|
7684
|
+
l > p ? this._group._map.setView(this._latlng, p) : l <= y ? this._group._map.setView(this._latlng, y + 1) : this._group._map.fitBounds(this._bounds, s);
|
7668
7685
|
},
|
7669
7686
|
getBounds: function() {
|
7670
7687
|
var s = new L.LatLngBounds();
|
@@ -7702,12 +7719,12 @@ var qn = { exports: {} };
|
|
7702
7719
|
s._southWest && (s._southWest.lat = 1 / 0, s._southWest.lng = 1 / 0), s._northEast && (s._northEast.lat = -1 / 0, s._northEast.lng = -1 / 0);
|
7703
7720
|
},
|
7704
7721
|
_recalculateBounds: function() {
|
7705
|
-
var s = this._markers, a = this._childClusters, h = 0, l = 0, p = this._childCount,
|
7722
|
+
var s = this._markers, a = this._childClusters, h = 0, l = 0, p = this._childCount, y, _, b, w;
|
7706
7723
|
if (p !== 0) {
|
7707
|
-
for (this._resetBounds(),
|
7708
|
-
b = s[
|
7709
|
-
for (
|
7710
|
-
_ = a[
|
7724
|
+
for (this._resetBounds(), y = 0; y < s.length; y++)
|
7725
|
+
b = s[y]._latlng, this._bounds.extend(b), h += b.lat, l += b.lng;
|
7726
|
+
for (y = 0; y < a.length; y++)
|
7727
|
+
_ = a[y], _._boundsNeedUpdate && _._recalculateBounds(), this._bounds.extend(_._bounds), b = _._wLatLng, w = _._childCount, h += b.lat * w, l += b.lng * w;
|
7711
7728
|
this._latlng = this._wLatLng = new L.LatLng(h / p, l / p), this._boundsNeedUpdate = !1;
|
7712
7729
|
}
|
7713
7730
|
},
|
@@ -7721,14 +7738,14 @@ var qn = { exports: {} };
|
|
7721
7738
|
this._group._map.getMinZoom(),
|
7722
7739
|
h - 1,
|
7723
7740
|
function(l) {
|
7724
|
-
var p = l._markers,
|
7725
|
-
for (
|
7726
|
-
_ = p[
|
7741
|
+
var p = l._markers, y, _;
|
7742
|
+
for (y = p.length - 1; y >= 0; y--)
|
7743
|
+
_ = p[y], _._icon && (_._setPos(a), _.clusterHide());
|
7727
7744
|
},
|
7728
7745
|
function(l) {
|
7729
|
-
var p = l._childClusters,
|
7730
|
-
for (
|
7731
|
-
_ = p[
|
7746
|
+
var p = l._childClusters, y, _;
|
7747
|
+
for (y = p.length - 1; y >= 0; y--)
|
7748
|
+
_ = p[y], _._icon && (_._setPos(a), _.clusterHide());
|
7732
7749
|
}
|
7733
7750
|
);
|
7734
7751
|
},
|
@@ -7755,8 +7772,8 @@ var qn = { exports: {} };
|
|
7755
7772
|
function(l) {
|
7756
7773
|
if (a !== l._zoom)
|
7757
7774
|
for (var p = l._markers.length - 1; p >= 0; p--) {
|
7758
|
-
var
|
7759
|
-
h.contains(
|
7775
|
+
var y = l._markers[p];
|
7776
|
+
h.contains(y._latlng) && (s && (y._backupLatlng = y.getLatLng(), y.setLatLng(s), y.clusterHide && y.clusterHide()), l._group._featureGroup.addLayer(y));
|
7760
7777
|
}
|
7761
7778
|
},
|
7762
7779
|
function(l) {
|
@@ -7781,18 +7798,18 @@ var qn = { exports: {} };
|
|
7781
7798
|
},
|
7782
7799
|
//exceptBounds: If set, don't remove any markers/clusters in it
|
7783
7800
|
_recursivelyRemoveChildrenFromMap: function(s, a, h, l) {
|
7784
|
-
var p,
|
7801
|
+
var p, y;
|
7785
7802
|
this._recursively(
|
7786
7803
|
s,
|
7787
7804
|
a - 1,
|
7788
7805
|
h - 1,
|
7789
7806
|
function(_) {
|
7790
|
-
for (
|
7791
|
-
p = _._markers[
|
7807
|
+
for (y = _._markers.length - 1; y >= 0; y--)
|
7808
|
+
p = _._markers[y], (!l || !l.contains(p._latlng)) && (_._group._featureGroup.removeLayer(p), p.clusterShow && p.clusterShow());
|
7792
7809
|
},
|
7793
7810
|
function(_) {
|
7794
|
-
for (
|
7795
|
-
p = _._childClusters[
|
7811
|
+
for (y = _._childClusters.length - 1; y >= 0; y--)
|
7812
|
+
p = _._childClusters[y], (!l || !l.contains(p._latlng)) && (_._group._featureGroup.removeLayer(p), p.clusterShow && p.clusterShow());
|
7796
7813
|
}
|
7797
7814
|
);
|
7798
7815
|
},
|
@@ -7803,10 +7820,10 @@ var qn = { exports: {} };
|
|
7803
7820
|
// runAtEveryLevel: function that takes an L.MarkerCluster as an argument that should be applied on every level
|
7804
7821
|
// runAtBottomLevel: function that takes an L.MarkerCluster as an argument that should be applied at only the bottom level
|
7805
7822
|
_recursively: function(s, a, h, l, p) {
|
7806
|
-
var
|
7823
|
+
var y = this._childClusters, _ = this._zoom, b, w;
|
7807
7824
|
if (a <= _ && (l && l(this), p && _ === h && p(this)), _ < a || _ < h)
|
7808
|
-
for (b =
|
7809
|
-
w =
|
7825
|
+
for (b = y.length - 1; b >= 0; b--)
|
7826
|
+
w = y[b], w._boundsNeedUpdate && w._recalculateBounds(), s.intersects(w._bounds) && w._recursively(s, a, h, l, p);
|
7810
7827
|
},
|
7811
7828
|
//Returns true if we are the parent of only one cluster and that cluster is the same as us
|
7812
7829
|
_isSingleParent: function() {
|
@@ -7825,7 +7842,7 @@ var qn = { exports: {} };
|
|
7825
7842
|
this._cellSize = s, this._sqCellSize = s * s, this._grid = {}, this._objectPoint = {};
|
7826
7843
|
}, L.DistanceGrid.prototype = {
|
7827
7844
|
addObject: function(s, a) {
|
7828
|
-
var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid,
|
7845
|
+
var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid, y = p[l] = p[l] || {}, _ = y[h] = y[h] || [], b = L.Util.stamp(s);
|
7829
7846
|
this._objectPoint[b] = a, _.push(s);
|
7830
7847
|
},
|
7831
7848
|
updateObject: function(s, a) {
|
@@ -7833,28 +7850,28 @@ var qn = { exports: {} };
|
|
7833
7850
|
},
|
7834
7851
|
//Returns true if the object was found
|
7835
7852
|
removeObject: function(s, a) {
|
7836
|
-
var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid,
|
7853
|
+
var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid, y = p[l] = p[l] || {}, _ = y[h] = y[h] || [], b, w;
|
7837
7854
|
for (delete this._objectPoint[L.Util.stamp(s)], b = 0, w = _.length; b < w; b++)
|
7838
7855
|
if (_[b] === s)
|
7839
|
-
return _.splice(b, 1), w === 1 && delete
|
7856
|
+
return _.splice(b, 1), w === 1 && delete y[h], !0;
|
7840
7857
|
},
|
7841
7858
|
eachObject: function(s, a) {
|
7842
|
-
var h, l, p,
|
7859
|
+
var h, l, p, y, _, b, w, M = this._grid;
|
7843
7860
|
for (h in M) {
|
7844
7861
|
_ = M[h];
|
7845
7862
|
for (l in _)
|
7846
|
-
for (b = _[l], p = 0,
|
7847
|
-
w = s.call(a, b[p]), w && (p--,
|
7863
|
+
for (b = _[l], p = 0, y = b.length; p < y; p++)
|
7864
|
+
w = s.call(a, b[p]), w && (p--, y--);
|
7848
7865
|
}
|
7849
7866
|
},
|
7850
7867
|
getNearObject: function(s) {
|
7851
|
-
var a = this._getCoord(s.x), h = this._getCoord(s.y), l, p,
|
7868
|
+
var a = this._getCoord(s.x), h = this._getCoord(s.y), l, p, y, _, b, w, M, C, H = this._objectPoint, A = this._sqCellSize, U = null;
|
7852
7869
|
for (l = h - 1; l <= h + 1; l++)
|
7853
7870
|
if (_ = this._grid[l], _) {
|
7854
7871
|
for (p = a - 1; p <= a + 1; p++)
|
7855
7872
|
if (b = _[p], b)
|
7856
|
-
for (
|
7857
|
-
M = b[
|
7873
|
+
for (y = 0, w = b.length; y < w; y++)
|
7874
|
+
M = b[y], C = this._sqDist(H[L.Util.stamp(M)], s), (C < A || C <= A && U === null) && (A = C, U = M);
|
7858
7875
|
}
|
7859
7876
|
return U;
|
7860
7877
|
},
|
@@ -7886,9 +7903,9 @@ var qn = { exports: {} };
|
|
7886
7903
|
* in consideration for the hull.
|
7887
7904
|
*/
|
7888
7905
|
findMostDistantPointFromBaseLine: function(s, a) {
|
7889
|
-
var h = 0, l = null, p = [],
|
7890
|
-
for (
|
7891
|
-
if (_ = a[
|
7906
|
+
var h = 0, l = null, p = [], y, _, b;
|
7907
|
+
for (y = a.length - 1; y >= 0; y--) {
|
7908
|
+
if (_ = a[y], b = this.getDistant(_, s), b > 0)
|
7892
7909
|
p.push(_);
|
7893
7910
|
else
|
7894
7911
|
continue;
|
@@ -7919,12 +7936,12 @@ var qn = { exports: {} };
|
|
7919
7936
|
* @returns {Array}
|
7920
7937
|
*/
|
7921
7938
|
getConvexHull: function(s) {
|
7922
|
-
var a = !1, h = !1, l = !1, p = !1,
|
7939
|
+
var a = !1, h = !1, l = !1, p = !1, y = null, _ = null, b = null, w = null, M = null, C = null, H;
|
7923
7940
|
for (H = s.length - 1; H >= 0; H--) {
|
7924
|
-
var
|
7925
|
-
(a === !1 ||
|
7941
|
+
var A = s[H];
|
7942
|
+
(a === !1 || A.lat > a) && (y = A, a = A.lat), (h === !1 || A.lat < h) && (_ = A, h = A.lat), (l === !1 || A.lng > l) && (b = A, l = A.lng), (p === !1 || A.lng < p) && (w = A, p = A.lng);
|
7926
7943
|
}
|
7927
|
-
h !== a ? (C = _, M =
|
7944
|
+
h !== a ? (C = _, M = y) : (C = w, M = b);
|
7928
7945
|
var U = [].concat(
|
7929
7946
|
this.buildConvexHull([C, M], s),
|
7930
7947
|
this.buildConvexHull([M, C], s)
|
@@ -7961,21 +7978,21 @@ var qn = { exports: {} };
|
|
7961
7978
|
this._group._inZoomAnimation || (this._animationUnspiderfy(s), this._group._spiderfied = null);
|
7962
7979
|
},
|
7963
7980
|
_generatePointsCircle: function(s, a) {
|
7964
|
-
var h = this._group.options.spiderfyDistanceMultiplier * this._circleFootSeparation * (2 + s), l = h / this._2PI, p = this._2PI / s,
|
7965
|
-
for (l = Math.max(l, 35),
|
7966
|
-
b = this._circleStartAngle + _ * p,
|
7967
|
-
return
|
7981
|
+
var h = this._group.options.spiderfyDistanceMultiplier * this._circleFootSeparation * (2 + s), l = h / this._2PI, p = this._2PI / s, y = [], _, b;
|
7982
|
+
for (l = Math.max(l, 35), y.length = s, _ = 0; _ < s; _++)
|
7983
|
+
b = this._circleStartAngle + _ * p, y[_] = new L.Point(a.x + l * Math.cos(b), a.y + l * Math.sin(b))._round();
|
7984
|
+
return y;
|
7968
7985
|
},
|
7969
7986
|
_generatePointsSpiral: function(s, a) {
|
7970
|
-
var h = this._group.options.spiderfyDistanceMultiplier, l = h * this._spiralLengthStart, p = h * this._spiralFootSeparation,
|
7987
|
+
var h = this._group.options.spiderfyDistanceMultiplier, l = h * this._spiralLengthStart, p = h * this._spiralFootSeparation, y = h * this._spiralLengthFactor * this._2PI, _ = 0, b = [], w;
|
7971
7988
|
for (b.length = s, w = s; w >= 0; w--)
|
7972
|
-
w < s && (b[w] = new L.Point(a.x + l * Math.cos(_), a.y + l * Math.sin(_))._round()), _ += p / l + w * 5e-4, l +=
|
7989
|
+
w < s && (b[w] = new L.Point(a.x + l * Math.cos(_), a.y + l * Math.sin(_))._round()), _ += p / l + w * 5e-4, l += y / _;
|
7973
7990
|
return b;
|
7974
7991
|
},
|
7975
7992
|
_noanimationUnspiderfy: function() {
|
7976
|
-
var s = this._group, a = s._map, h = s._featureGroup, l = this.getAllChildMarkers(null, !0), p,
|
7977
|
-
for (s._ignoreMove = !0, this.setOpacity(1),
|
7978
|
-
p = l[
|
7993
|
+
var s = this._group, a = s._map, h = s._featureGroup, l = this.getAllChildMarkers(null, !0), p, y;
|
7994
|
+
for (s._ignoreMove = !0, this.setOpacity(1), y = l.length - 1; y >= 0; y--)
|
7995
|
+
p = l[y], h.removeLayer(p), p._preSpiderfyLatlng && (p.setLatLng(p._preSpiderfyLatlng), delete p._preSpiderfyLatlng), p.setZIndexOffset && p.setZIndexOffset(0), p._spiderLeg && (a.removeLayer(p._spiderLeg), delete p._spiderLeg);
|
7979
7996
|
s.fire("unspiderfied", {
|
7980
7997
|
cluster: this,
|
7981
7998
|
markers: l
|
@@ -7983,9 +8000,9 @@ var qn = { exports: {} };
|
|
7983
8000
|
}
|
7984
8001
|
}), L.MarkerClusterNonAnimated = L.MarkerCluster.extend({
|
7985
8002
|
_animationSpiderfy: function(s, a) {
|
7986
|
-
var h = this._group, l = h._map, p = h._featureGroup,
|
8003
|
+
var h = this._group, l = h._map, p = h._featureGroup, y = this._group.options.spiderLegPolylineOptions, _, b, w, M;
|
7987
8004
|
for (h._ignoreMove = !0, _ = 0; _ < s.length; _++)
|
7988
|
-
M = l.layerPointToLatLng(a[_]), b = s[_], w = new L.Polyline([this._latlng, M],
|
8005
|
+
M = l.layerPointToLatLng(a[_]), b = s[_], w = new L.Polyline([this._latlng, M], y), l.addLayer(w), b._spiderLeg = w, b._preSpiderfyLatlng = b._latlng, b.setLatLng(M), b.setZIndexOffset && b.setZIndexOffset(1e6), p.addLayer(b);
|
7989
8006
|
this.setOpacity(0.3), h._ignoreMove = !1, h.fire("spiderfied", {
|
7990
8007
|
cluster: this,
|
7991
8008
|
markers: s
|
@@ -7996,11 +8013,11 @@ var qn = { exports: {} };
|
|
7996
8013
|
}
|
7997
8014
|
}), L.MarkerCluster.include({
|
7998
8015
|
_animationSpiderfy: function(s, a) {
|
7999
|
-
var h = this, l = this._group, p = l._map,
|
8016
|
+
var h = this, l = this._group, p = l._map, y = l._featureGroup, _ = this._latlng, b = p.latLngToLayerPoint(_), w = L.Path.SVG, M = L.extend({}, this._group.options.spiderLegPolylineOptions), C = M.opacity, H, A, U, W, bt, at;
|
8000
8017
|
for (C === void 0 && (C = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity), w ? (M.opacity = 0, M.className = (M.className || "") + " leaflet-cluster-spider-leg") : M.opacity = C, l._ignoreMove = !0, H = 0; H < s.length; H++)
|
8001
|
-
|
8018
|
+
A = s[H], at = p.layerPointToLatLng(a[H]), U = new L.Polyline([_, at], M), p.addLayer(U), A._spiderLeg = U, w && (W = U._path, bt = W.getTotalLength() + 0.1, W.style.strokeDasharray = bt, W.style.strokeDashoffset = bt), A.setZIndexOffset && A.setZIndexOffset(1e6), A.clusterHide && A.clusterHide(), y.addLayer(A), A._setPos && A._setPos(b);
|
8002
8019
|
for (l._forceLayout(), l._animationStart(), H = s.length - 1; H >= 0; H--)
|
8003
|
-
at = p.layerPointToLatLng(a[H]),
|
8020
|
+
at = p.layerPointToLatLng(a[H]), A = s[H], A._preSpiderfyLatlng = A._latlng, A.setLatLng(at), A.clusterShow && A.clusterShow(), w && (U = A._spiderLeg, W = U._path, W.style.strokeDashoffset = 0, U.setStyle({ opacity: C }));
|
8004
8021
|
this.setOpacity(0.3), l._ignoreMove = !1, setTimeout(function() {
|
8005
8022
|
l._animationEnd(), l.fire("spiderfied", {
|
8006
8023
|
cluster: h,
|
@@ -8009,9 +8026,9 @@ var qn = { exports: {} };
|
|
8009
8026
|
}, 200);
|
8010
8027
|
},
|
8011
8028
|
_animationUnspiderfy: function(s) {
|
8012
|
-
var a = this, h = this._group, l = h._map, p = h._featureGroup,
|
8029
|
+
var a = this, h = this._group, l = h._map, p = h._featureGroup, y = s ? l._latLngToNewLayerPoint(this._latlng, s.zoom, s.center) : l.latLngToLayerPoint(this._latlng), _ = this.getAllChildMarkers(null, !0), b = L.Path.SVG, w, M, C, H, A, U;
|
8013
8030
|
for (h._ignoreMove = !0, h._animationStart(), this.setOpacity(1), M = _.length - 1; M >= 0; M--)
|
8014
|
-
w = _[M], w._preSpiderfyLatlng && (w.closePopup(), w.setLatLng(w._preSpiderfyLatlng), delete w._preSpiderfyLatlng, U = !0, w._setPos && (w._setPos(
|
8031
|
+
w = _[M], w._preSpiderfyLatlng && (w.closePopup(), w.setLatLng(w._preSpiderfyLatlng), delete w._preSpiderfyLatlng, U = !0, w._setPos && (w._setPos(y), U = !1), w.clusterHide && (w.clusterHide(), U = !1), U && p.removeLayer(w), b && (C = w._spiderLeg, H = C._path, A = H.getTotalLength() + 0.1, H.style.strokeDashoffset = A, C.setStyle({ opacity: 0 })));
|
8015
8032
|
h._ignoreMove = !1, setTimeout(function() {
|
8016
8033
|
var W = 0;
|
8017
8034
|
for (M = _.length - 1; M >= 0; M--)
|
@@ -8103,10 +8120,10 @@ var qn = { exports: {} };
|
|
8103
8120
|
var h = this.options.icon;
|
8104
8121
|
return L.setOptions(h, s), this.setIcon(h), a && this.__parent && this.__parent._group.refreshClusters(this), this;
|
8105
8122
|
}
|
8106
|
-
}), c.MarkerClusterGroup =
|
8123
|
+
}), c.MarkerClusterGroup = g, c.MarkerCluster = x, Object.defineProperty(c, "__esModule", { value: !0 });
|
8107
8124
|
});
|
8108
8125
|
})(qn, qn.exports);
|
8109
|
-
class
|
8126
|
+
class oo extends zt {
|
8110
8127
|
constructor() {
|
8111
8128
|
super(), this.layer = null;
|
8112
8129
|
}
|
@@ -8116,7 +8133,7 @@ class no extends zt {
|
|
8116
8133
|
showCoverageOnHover: this.hasAttribute("show-coverage-on-hover"),
|
8117
8134
|
iconCreateFunction: this._createIconCreateFunction(c)
|
8118
8135
|
});
|
8119
|
-
const
|
8136
|
+
const g = new CustomEvent(et, {
|
8120
8137
|
cancelable: !0,
|
8121
8138
|
bubbles: !0,
|
8122
8139
|
detail: {
|
@@ -8124,15 +8141,15 @@ class no extends zt {
|
|
8124
8141
|
name: d
|
8125
8142
|
}
|
8126
8143
|
});
|
8127
|
-
this.dispatchEvent(
|
8144
|
+
this.dispatchEvent(g), this.addEventListener(et, (x) => {
|
8128
8145
|
x.stopPropagation(), this.layer.addLayer(x.detail.layer);
|
8129
8146
|
});
|
8130
8147
|
}
|
8131
8148
|
_createIconCreateFunction(d) {
|
8132
8149
|
if (d) {
|
8133
|
-
let { size: c, content:
|
8150
|
+
let { size: c, content: g, className: x } = JSON.parse(d);
|
8134
8151
|
return (s) => {
|
8135
|
-
const a = this._callClusterFunction(s, c), h = this._callClusterFunction(s,
|
8152
|
+
const a = this._callClusterFunction(s, c), h = this._callClusterFunction(s, g);
|
8136
8153
|
return L.divIcon({
|
8137
8154
|
html: h,
|
8138
8155
|
className: x,
|
@@ -8145,13 +8162,13 @@ class no extends zt {
|
|
8145
8162
|
return Function("cluster", `"use strict";return (${c})`)(d);
|
8146
8163
|
}
|
8147
8164
|
}
|
8148
|
-
Lt(
|
8165
|
+
Lt(oo, "observedAttributes", [
|
8149
8166
|
"show-coverage-on-hover",
|
8150
8167
|
"icon-options"
|
8151
8168
|
]);
|
8152
|
-
const
|
8153
|
-
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);
|
8154
8171
|
})();
|
8155
8172
|
export {
|
8156
|
-
|
8173
|
+
cr as default
|
8157
8174
|
};
|