leaflet-html 0.13.7 → 0.13.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/leaflet-html.js +422 -417
- package/dist/leaflet-html.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/leaflet-html.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
var zs = Object.defineProperty;
|
2
2
|
var As = (v, d, c) => d in v ? zs(v, d, { enumerable: !0, configurable: !0, writable: !0, value: c }) : v[d] = c;
|
3
3
|
var Lt = (v, d, c) => As(v, typeof d != "symbol" ? d + "" : d, c);
|
4
|
-
var
|
4
|
+
var Vn = 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
|
@@ -9,9 +9,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
9
9
|
(function(v, d) {
|
10
10
|
(function(c, g) {
|
11
11
|
g(d);
|
12
|
-
})(
|
12
|
+
})(Vn, function(c) {
|
13
13
|
var g = "1.9.4";
|
14
|
-
function
|
14
|
+
function P(t) {
|
15
15
|
var e, i, n, o;
|
16
16
|
for (i = 1, n = arguments.length; i < n; i++) {
|
17
17
|
o = arguments[i];
|
@@ -55,17 +55,17 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
55
55
|
function _() {
|
56
56
|
return !1;
|
57
57
|
}
|
58
|
-
function
|
58
|
+
function w(t, e) {
|
59
59
|
if (e === !1)
|
60
60
|
return t;
|
61
61
|
var i = Math.pow(10, e === void 0 ? 6 : e);
|
62
62
|
return Math.round(t * i) / i;
|
63
63
|
}
|
64
|
-
function
|
64
|
+
function b(t) {
|
65
65
|
return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
|
66
66
|
}
|
67
67
|
function M(t) {
|
68
|
-
return
|
68
|
+
return b(t).split(/\s+/);
|
69
69
|
}
|
70
70
|
function C(t, e) {
|
71
71
|
Object.prototype.hasOwnProperty.call(t, "options") || (t.options = t.options ? s(t.options) : {});
|
@@ -91,14 +91,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
91
91
|
var W = Array.isArray || function(t) {
|
92
92
|
return Object.prototype.toString.call(t) === "[object Array]";
|
93
93
|
};
|
94
|
-
function
|
94
|
+
function wt(t, e) {
|
95
95
|
for (var i = 0; i < t.length; i++)
|
96
96
|
if (t[i] === e)
|
97
97
|
return i;
|
98
98
|
return -1;
|
99
99
|
}
|
100
100
|
var at = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
|
101
|
-
function
|
101
|
+
function Vt(t) {
|
102
102
|
return window["webkit" + t] || window["moz" + t] || window["ms" + t];
|
103
103
|
}
|
104
104
|
var Mi = 0;
|
@@ -106,7 +106,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
106
106
|
var e = +/* @__PURE__ */ new Date(), i = Math.max(0, 16 - (e - Mi));
|
107
107
|
return Mi = e + i, window.setTimeout(t, i);
|
108
108
|
}
|
109
|
-
var Ne = window.requestAnimationFrame ||
|
109
|
+
var Ne = window.requestAnimationFrame || Vt("RequestAnimationFrame") || Si, ki = window.cancelAnimationFrame || Vt("CancelAnimationFrame") || Vt("CancelRequestAnimationFrame") || function(t) {
|
110
110
|
window.clearTimeout(t);
|
111
111
|
};
|
112
112
|
function nt(t, e, i) {
|
@@ -120,7 +120,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
120
120
|
}
|
121
121
|
var so = {
|
122
122
|
__proto__: null,
|
123
|
-
extend:
|
123
|
+
extend: P,
|
124
124
|
create: s,
|
125
125
|
bind: a,
|
126
126
|
get lastId() {
|
@@ -130,42 +130,42 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
130
130
|
throttle: p,
|
131
131
|
wrapNum: y,
|
132
132
|
falseFn: _,
|
133
|
-
formatNum:
|
134
|
-
trim:
|
133
|
+
formatNum: w,
|
134
|
+
trim: b,
|
135
135
|
splitWords: M,
|
136
136
|
setOptions: C,
|
137
137
|
getParamString: H,
|
138
138
|
template: U,
|
139
139
|
isArray: W,
|
140
|
-
indexOf:
|
140
|
+
indexOf: wt,
|
141
141
|
emptyImageUrl: at,
|
142
142
|
requestFn: Ne,
|
143
143
|
cancelFn: ki,
|
144
144
|
requestAnimFrame: nt,
|
145
145
|
cancelAnimFrame: lt
|
146
146
|
};
|
147
|
-
function
|
147
|
+
function xt() {
|
148
148
|
}
|
149
|
-
|
149
|
+
xt.extend = function(t) {
|
150
150
|
var e = function() {
|
151
151
|
C(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
|
152
152
|
}, i = e.__super__ = this.prototype, n = s(i);
|
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 &&
|
156
|
+
return t.statics && P(e, t.statics), t.includes && (ro(t.includes), P.apply(null, [n].concat(t.includes))), P(n, t), delete n.statics, delete n.includes, n.options && (n.options = i.options ? s(i.options) : {}, P(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++)
|
160
160
|
n._initHooks[r].call(this);
|
161
161
|
}
|
162
162
|
}, e;
|
163
|
-
},
|
163
|
+
}, xt.include = function(t) {
|
164
164
|
var e = this.prototype.options;
|
165
|
-
return
|
166
|
-
},
|
167
|
-
return
|
168
|
-
},
|
165
|
+
return P(this.prototype, t), t.options && (this.prototype.options = e, this.mergeOptions(t.options)), this;
|
166
|
+
}, xt.mergeOptions = function(t) {
|
167
|
+
return P(this.prototype.options, t), this;
|
168
|
+
}, xt.addInitHook = function(t) {
|
169
169
|
var e = Array.prototype.slice.call(arguments, 1), i = typeof t == "function" ? t : function() {
|
170
170
|
this[t].apply(this, e);
|
171
171
|
};
|
@@ -261,7 +261,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
261
261
|
fire: function(t, e, i) {
|
262
262
|
if (!this.listens(t, i))
|
263
263
|
return this;
|
264
|
-
var n =
|
264
|
+
var n = P({}, e, {
|
265
265
|
type: t,
|
266
266
|
target: this,
|
267
267
|
sourceTarget: e && e.sourceTarget || this
|
@@ -335,14 +335,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
335
335
|
},
|
336
336
|
_propagateEvent: function(t) {
|
337
337
|
for (var e in this._eventParents)
|
338
|
-
this._eventParents[e].fire(t.type,
|
338
|
+
this._eventParents[e].fire(t.type, P({
|
339
339
|
layer: t.target,
|
340
340
|
propagatedFrom: t.target
|
341
341
|
}, t), !0);
|
342
342
|
}
|
343
343
|
};
|
344
344
|
ht.addEventListener = ht.on, ht.removeEventListener = ht.clearAllEventListeners = ht.off, ht.addOneTimeEventListener = ht.once, ht.fireEvent = ht.fire, ht.hasEventListeners = ht.listens;
|
345
|
-
var Jt =
|
345
|
+
var Jt = xt.extend(ht);
|
346
346
|
function O(t, e, i) {
|
347
347
|
this.x = i ? Math.round(t) : t, this.y = i ? Math.round(e) : e;
|
348
348
|
}
|
@@ -453,18 +453,18 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
453
453
|
// @method toString(): String
|
454
454
|
// Returns a string representation of the point for debugging purposes.
|
455
455
|
toString: function() {
|
456
|
-
return "Point(" +
|
456
|
+
return "Point(" + w(this.x) + ", " + w(this.y) + ")";
|
457
457
|
}
|
458
458
|
};
|
459
459
|
function E(t, e, i) {
|
460
460
|
return t instanceof O ? t : W(t) ? new O(t[0], t[1]) : t == null ? t : typeof t == "object" && "x" in t && "y" in t ? new O(t.x, t.y) : new O(t, e, i);
|
461
461
|
}
|
462
|
-
function
|
462
|
+
function q(t, e) {
|
463
463
|
if (t)
|
464
464
|
for (var i = e ? [t, e] : t, n = 0, o = i.length; n < o; n++)
|
465
465
|
this.extend(i[n]);
|
466
466
|
}
|
467
|
-
|
467
|
+
q.prototype = {
|
468
468
|
// @method extend(point: Point): this
|
469
469
|
// Extends the bounds to contain the given point.
|
470
470
|
// @alternative
|
@@ -521,7 +521,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
521
521
|
// Returns `true` if the rectangle contains the given point.
|
522
522
|
contains: function(t) {
|
523
523
|
var e, i;
|
524
|
-
return typeof t[0] == "number" || t instanceof O ? t = E(t) : t = ot(t), t instanceof
|
524
|
+
return typeof t[0] == "number" || t instanceof O ? t = E(t) : t = ot(t), t instanceof q ? (e = t.min, i = t.max) : e = i = t, e.x >= this.min.x && i.x <= this.max.x && e.y >= this.min.y && i.y <= this.max.y;
|
525
525
|
},
|
526
526
|
// @method intersects(otherBounds: Bounds): Boolean
|
527
527
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds
|
@@ -562,7 +562,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
562
562
|
}
|
563
563
|
};
|
564
564
|
function ot(t, e) {
|
565
|
-
return !t || t instanceof
|
565
|
+
return !t || t instanceof q ? t : new q(t, e);
|
566
566
|
}
|
567
567
|
function st(t, e) {
|
568
568
|
if (t)
|
@@ -709,7 +709,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
709
709
|
// @method toString(): String
|
710
710
|
// Returns a string representation of the point (for debugging purposes).
|
711
711
|
toString: function(t) {
|
712
|
-
return "LatLng(" +
|
712
|
+
return "LatLng(" + w(this.lat, t) + ", " + w(this.lng, t) + ")";
|
713
713
|
},
|
714
714
|
// @method distanceTo(otherLatLng: LatLng): Number
|
715
715
|
// Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).
|
@@ -737,7 +737,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
737
737
|
function B(t, e, i) {
|
738
738
|
return t instanceof D ? t : W(t) && typeof t[0] != "object" ? t.length === 3 ? new D(t[0], t[1], t[2]) : t.length === 2 ? new D(t[0], t[1]) : null : t == null ? t : typeof t == "object" && "lat" in t ? new D(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : e === void 0 ? null : new D(t, e, i);
|
739
739
|
}
|
740
|
-
var
|
740
|
+
var Pt = {
|
741
741
|
// @method latLngToPoint(latlng: LatLng, zoom: Number): Point
|
742
742
|
// Projects geographical coordinates into pixel coordinates for a given zoom.
|
743
743
|
latLngToPoint: function(t, e) {
|
@@ -782,7 +782,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
782
782
|
if (this.infinite)
|
783
783
|
return null;
|
784
784
|
var e = this.projection.bounds, i = this.scale(t), n = this.transformation.transform(e.min, i), o = this.transformation.transform(e.max, i);
|
785
|
-
return new
|
785
|
+
return new q(n, o);
|
786
786
|
},
|
787
787
|
// @method distance(latlng1: LatLng, latlng2: LatLng): Number
|
788
788
|
// Returns the distance between two geographical coordinates.
|
@@ -819,7 +819,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
819
819
|
var r = t.getSouthWest(), u = t.getNorthEast(), f = new D(r.lat - n, r.lng - o), m = new D(u.lat - n, u.lng - o);
|
820
820
|
return new st(f, m);
|
821
821
|
}
|
822
|
-
}, kt =
|
822
|
+
}, kt = P({}, Pt, {
|
823
823
|
wrapLng: [-180, 180],
|
824
824
|
// Mean Earth Radius, as recommended for use by
|
825
825
|
// the International Union of Geodesy and Geophysics,
|
@@ -849,7 +849,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
849
849
|
},
|
850
850
|
bounds: function() {
|
851
851
|
var t = Oi * Math.PI;
|
852
|
-
return new
|
852
|
+
return new q([-t, -t], [t, t]);
|
853
853
|
}()
|
854
854
|
};
|
855
855
|
function De(t, e, i, n) {
|
@@ -883,14 +883,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
883
883
|
function Kt(t, e, i, n) {
|
884
884
|
return new De(t, e, i, n);
|
885
885
|
}
|
886
|
-
var He =
|
886
|
+
var He = P({}, kt, {
|
887
887
|
code: "EPSG:3857",
|
888
888
|
projection: Re,
|
889
889
|
transformation: function() {
|
890
890
|
var t = 0.5 / (Math.PI * Re.R);
|
891
891
|
return Kt(t, 0.5, -t, 0.5);
|
892
892
|
}()
|
893
|
-
}), ao =
|
893
|
+
}), ao = P({}, He, {
|
894
894
|
code: "EPSG:900913"
|
895
895
|
});
|
896
896
|
function zi(t) {
|
@@ -905,7 +905,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
905
905
|
}
|
906
906
|
return i || "M0 0";
|
907
907
|
}
|
908
|
-
var Fe = document.documentElement.style, le = "ActiveXObject" in window, 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),
|
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), qi = "ontouchstart" in window || !!window.TouchEvent, go = !window.L_NO_TOUCH && (qi || Wi), vo = Yt && Ue, yo = Yt && Ri, Lo = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, bo = 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
|
+
}(), wo = function() {
|
921
921
|
return !!document.createElement("canvas").getContext;
|
922
|
-
}(),
|
922
|
+
}(), qe = !!(document.createElementNS && zi("svg").createSVGRect), xo = !!qe && 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
|
+
}(), Po = !qe && function() {
|
926
926
|
try {
|
927
927
|
var t = document.createElement("div");
|
928
928
|
t.innerHTML = '<v:shape adj="1"/>';
|
@@ -960,20 +960,20 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
960
960
|
msPointer: Ui,
|
961
961
|
pointer: Wi,
|
962
962
|
touch: go,
|
963
|
-
touchNative:
|
963
|
+
touchNative: qi,
|
964
964
|
mobileOpera: vo,
|
965
965
|
mobileGecko: yo,
|
966
966
|
retina: Lo,
|
967
|
-
passiveEvents:
|
968
|
-
canvas:
|
969
|
-
svg:
|
970
|
-
vml:
|
971
|
-
inlineSvg:
|
967
|
+
passiveEvents: bo,
|
968
|
+
canvas: wo,
|
969
|
+
svg: qe,
|
970
|
+
vml: Po,
|
971
|
+
inlineSvg: xo,
|
972
972
|
mac: Co,
|
973
973
|
linux: To
|
974
|
-
},
|
975
|
-
touchstart:
|
976
|
-
touchmove:
|
974
|
+
}, ji = S.msPointer ? "MSPointerDown" : "pointerdown", Vi = S.msPointer ? "MSPointerMove" : "pointermove", Ji = S.msPointer ? "MSPointerUp" : "pointerup", Ki = S.msPointer ? "MSPointerCancel" : "pointercancel", je = {
|
975
|
+
touchstart: ji,
|
976
|
+
touchmove: Vi,
|
977
977
|
touchend: Ji,
|
978
978
|
touchcancel: Ki
|
979
979
|
}, Yi = {
|
@@ -983,14 +983,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
983
983
|
touchcancel: ce
|
984
984
|
}, Rt = {}, Xi = !1;
|
985
985
|
function Mo(t, e, i) {
|
986
|
-
return e === "touchstart" && Oo(), Yi[e] ? (i = Yi[e].bind(this, i), t.addEventListener(
|
986
|
+
return e === "touchstart" && Oo(), Yi[e] ? (i = Yi[e].bind(this, i), t.addEventListener(je[e], i, !1), i) : (console.warn("wrong event specified:", e), _);
|
987
987
|
}
|
988
988
|
function So(t, e, i) {
|
989
|
-
if (!
|
989
|
+
if (!je[e]) {
|
990
990
|
console.warn("wrong event specified:", e);
|
991
991
|
return;
|
992
992
|
}
|
993
|
-
t.removeEventListener(
|
993
|
+
t.removeEventListener(je[e], i, !1);
|
994
994
|
}
|
995
995
|
function ko(t) {
|
996
996
|
Rt[t.pointerId] = t;
|
@@ -1002,7 +1002,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1002
1002
|
delete Rt[t.pointerId];
|
1003
1003
|
}
|
1004
1004
|
function Oo() {
|
1005
|
-
Xi || (document.addEventListener(
|
1005
|
+
Xi || (document.addEventListener(ji, ko, !0), document.addEventListener(Vi, 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")) {
|
@@ -1050,7 +1050,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1050
1050
|
function Bo(t, e) {
|
1051
1051
|
t.removeEventListener("dblclick", e.dblclick), t.removeEventListener("click", e.simDblclick);
|
1052
1052
|
}
|
1053
|
-
var
|
1053
|
+
var Ve = _e(
|
1054
1054
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
1055
1055
|
), Xt = _e(
|
1056
1056
|
["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
|
@@ -1070,7 +1070,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1070
1070
|
var n = document.createElement(t);
|
1071
1071
|
return n.className = e || "", i && i.appendChild(n), n;
|
1072
1072
|
}
|
1073
|
-
function
|
1073
|
+
function j(t) {
|
1074
1074
|
var e = t.parentNode;
|
1075
1075
|
e && e.removeChild(t);
|
1076
1076
|
}
|
@@ -1101,8 +1101,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1101
1101
|
Ke(t, (r ? r + " " : "") + e);
|
1102
1102
|
}
|
1103
1103
|
}
|
1104
|
-
function
|
1105
|
-
t.classList !== void 0 ? t.classList.remove(e) : Ke(t,
|
1104
|
+
function V(t, e) {
|
1105
|
+
t.classList !== void 0 ? t.classList.remove(e) : Ke(t, b((" " + fe(t) + " ").replace(" " + e + " ", " ")));
|
1106
1106
|
}
|
1107
1107
|
function Ke(t, e) {
|
1108
1108
|
t.className.baseVal === void 0 ? t.className = e : t.className.baseVal = e;
|
@@ -1131,7 +1131,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1131
1131
|
}
|
1132
1132
|
function At(t, e, i) {
|
1133
1133
|
var n = e || new O(0, 0);
|
1134
|
-
t.style[
|
1134
|
+
t.style[Ve] = (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
1137
|
t._leaflet_pos = e, S.any3d ? At(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
|
@@ -1190,19 +1190,19 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1190
1190
|
}
|
1191
1191
|
var Ro = {
|
1192
1192
|
__proto__: null,
|
1193
|
-
TRANSFORM:
|
1193
|
+
TRANSFORM: Ve,
|
1194
1194
|
TRANSITION: Xt,
|
1195
1195
|
TRANSITION_END: Qi,
|
1196
1196
|
get: tn,
|
1197
1197
|
getStyle: $t,
|
1198
1198
|
create: R,
|
1199
|
-
remove:
|
1199
|
+
remove: j,
|
1200
1200
|
empty: de,
|
1201
1201
|
toFront: Dt,
|
1202
1202
|
toBack: Ht,
|
1203
1203
|
hasClass: Je,
|
1204
1204
|
addClass: Z,
|
1205
|
-
removeClass:
|
1205
|
+
removeClass: V,
|
1206
1206
|
setClass: Ke,
|
1207
1207
|
getClass: fe,
|
1208
1208
|
setOpacity: ct,
|
@@ -1243,7 +1243,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1243
1243
|
oi(t, o, e[o], i);
|
1244
1244
|
else if (e = M(e), arguments.length === 2)
|
1245
1245
|
nn(t, function(f) {
|
1246
|
-
return
|
1246
|
+
return wt(e, f) !== -1;
|
1247
1247
|
});
|
1248
1248
|
else
|
1249
1249
|
for (var r = 0, u = e.length; r < u; r++)
|
@@ -1484,7 +1484,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1484
1484
|
// animation options.
|
1485
1485
|
setView: function(t, e, i) {
|
1486
1486
|
if (e = e === void 0 ? this._zoom : this._limitZoom(e), t = this._limitCenter(B(t), e, this.options.maxBounds), i = i || {}, this._stop(), this._loaded && !i.reset && i !== !0) {
|
1487
|
-
i.animate !== void 0 && (i.zoom =
|
1487
|
+
i.animate !== void 0 && (i.zoom = P({ animate: i.animate }, i.zoom), i.pan = P({ animate: i.animate, duration: i.duration }, i.pan));
|
1488
1488
|
var n = this._zoom !== e ? this._tryAnimatedZoom && this._tryAnimatedZoom(t, e, i.zoom) : this._tryAnimatedPan(t, i.pan);
|
1489
1489
|
if (n)
|
1490
1490
|
return clearTimeout(this._sizeTimer), this;
|
@@ -1577,9 +1577,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1577
1577
|
this._stop();
|
1578
1578
|
var n = this.project(this.getCenter()), o = this.project(t), r = this.getSize(), u = this._zoom;
|
1579
1579
|
t = B(t), e = e === void 0 ? u : e;
|
1580
|
-
var f = Math.max(r.x, r.y), m = f * this.getZoomScale(u, e),
|
1580
|
+
var f = Math.max(r.x, r.y), m = f * this.getZoomScale(u, e), x = o.distanceTo(n) || 1, T = 1.42, k = T * T;
|
1581
1581
|
function I(Y) {
|
1582
|
-
var Se = Y ? -1 : 1, Ss = Y ? m : f, ks = m * m - f * f + Se * k * k *
|
1582
|
+
var Se = Y ? -1 : 1, Ss = Y ? m : f, ks = m * m - f * f + Se * k * k * x * x, Es = 2 * Ss * k * x, gi = ks / Es, Fn = Math.sqrt(gi * gi + 1) - gi, Os = Fn < 1e-9 ? -18 : Math.log(Fn);
|
1583
1583
|
return Os;
|
1584
1584
|
}
|
1585
1585
|
function it(Y) {
|
@@ -1592,10 +1592,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1592
1592
|
return it(Y) / $(Y);
|
1593
1593
|
}
|
1594
1594
|
var rt = I(0);
|
1595
|
-
function
|
1595
|
+
function jt(Y) {
|
1596
1596
|
return f * ($(rt) / $(rt + T * Y));
|
1597
1597
|
}
|
1598
|
-
function
|
1598
|
+
function Ps(Y) {
|
1599
1599
|
return f * ($(rt) * ft(rt + T * Y) - it(rt)) / k;
|
1600
1600
|
}
|
1601
1601
|
function Cs(Y) {
|
@@ -1605,8 +1605,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1605
1605
|
function Hn() {
|
1606
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(
|
1609
|
-
this.getScaleZoom(f /
|
1608
|
+
this.unproject(n.add(o.subtract(n).multiplyBy(Ps(Se) / x)), u),
|
1609
|
+
this.getScaleZoom(f / jt(Se), u),
|
1610
1610
|
{ flyTo: !0 }
|
1611
1611
|
)) : this._move(t, e)._moveEnd(!0);
|
1612
1612
|
}
|
@@ -1653,8 +1653,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1653
1653
|
var i = E(e.paddingTopLeft || e.padding || [0, 0]), n = E(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()), r = this.project(t), u = this.getPixelBounds(), f = ot([u.min.add(i), u.max.subtract(n)]), m = f.getSize();
|
1654
1654
|
if (!f.contains(r)) {
|
1655
1655
|
this._enforcingBounds = !0;
|
1656
|
-
var
|
1657
|
-
o.x +=
|
1656
|
+
var x = r.subtract(f.getCenter()), T = f.extend(r).getSize().subtract(m);
|
1657
|
+
o.x += x.x < 0 ? -T.x : T.x, o.y += x.y < 0 ? -T.y : T.y, this.panTo(this.unproject(o), e), this._enforcingBounds = !1;
|
1658
1658
|
}
|
1659
1659
|
return this;
|
1660
1660
|
},
|
@@ -1673,7 +1673,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1673
1673
|
invalidateSize: function(t) {
|
1674
1674
|
if (!this._loaded)
|
1675
1675
|
return this;
|
1676
|
-
t =
|
1676
|
+
t = P({
|
1677
1677
|
animate: !1,
|
1678
1678
|
pan: !0
|
1679
1679
|
}, t === !0 ? { animate: !0 } : t);
|
@@ -1701,7 +1701,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1701
1701
|
// modern browsers ([Chrome 50 and newer](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins))
|
1702
1702
|
// See `Locate options` for more details.
|
1703
1703
|
locate: function(t) {
|
1704
|
-
if (t = this._locateOptions =
|
1704
|
+
if (t = this._locateOptions = P({
|
1705
1705
|
timeout: 1e4,
|
1706
1706
|
watch: !1
|
1707
1707
|
// setView: false
|
@@ -1769,12 +1769,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1769
1769
|
} catch {
|
1770
1770
|
this._container._leaflet_id = void 0, this._containerId = void 0;
|
1771
1771
|
}
|
1772
|
-
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(),
|
1772
|
+
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), j(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (lt(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload");
|
1773
1773
|
var t;
|
1774
1774
|
for (t in this._layers)
|
1775
1775
|
this._layers[t].remove();
|
1776
1776
|
for (t in this._panes)
|
1777
|
-
|
1777
|
+
j(this._panes[t]);
|
1778
1778
|
return this._layers = [], this._panes = [], delete this._mapPane, delete this._renderer, this;
|
1779
1779
|
},
|
1780
1780
|
// @section Other Methods
|
@@ -1820,7 +1820,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1820
1820
|
// the given bounds in its entirety.
|
1821
1821
|
getBoundsZoom: function(t, e, i) {
|
1822
1822
|
t = J(t), i = E(i || [0, 0]);
|
1823
|
-
var n = this.getZoom() || 0, o = this.getMinZoom(), r = this.getMaxZoom(), u = t.getNorthWest(), f = t.getSouthEast(), m = this.getSize().subtract(i),
|
1823
|
+
var n = this.getZoom() || 0, o = this.getMinZoom(), r = this.getMaxZoom(), u = t.getNorthWest(), f = t.getSouthEast(), m = this.getSize().subtract(i), x = ot(this.project(f, n), this.project(u, n)).getSize(), T = S.any3d ? this.options.zoomSnap : 1, k = m.x / x.x, I = m.y / x.y, it = e ? Math.max(k, I) : Math.min(k, I);
|
1824
1824
|
return n = this.getScaleZoom(it, n), T && (n = Math.round(n / (T / 100)) * (T / 100), n = e ? Math.ceil(n / T) * T : Math.floor(n / T) * T), Math.max(o, Math.min(r, n));
|
1825
1825
|
},
|
1826
1826
|
// @method getSize(): Point
|
@@ -1836,7 +1836,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
1836
1836
|
// coordinates (sometimes useful in layer and overlay implementations).
|
1837
1837
|
getPixelBounds: function(t, e) {
|
1838
1838
|
var i = this._getTopLeftPoint(t, e);
|
1839
|
-
return new
|
1839
|
+
return new q(i, i.add(this.getSize()));
|
1840
1840
|
},
|
1841
1841
|
// TODO: Check semantics - isn't the pixel origin the 0,0 coord relative to
|
1842
1842
|
// the map pane? "left point of the map layer" can be confusing, specially
|
@@ -2088,7 +2088,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2088
2088
|
_mouseEvents: ["click", "dblclick", "mouseover", "mouseout", "contextmenu"],
|
2089
2089
|
_fireDOMEvent: function(t, e, i) {
|
2090
2090
|
if (t.type === "click") {
|
2091
|
-
var n =
|
2091
|
+
var n = P({}, t);
|
2092
2092
|
n.type = "preclick", this._fireDOMEvent(n, n.type, i);
|
2093
2093
|
}
|
2094
2094
|
var o = this._findEventTargets(t, e);
|
@@ -2103,11 +2103,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2103
2103
|
originalEvent: t
|
2104
2104
|
};
|
2105
2105
|
if (t.type !== "keypress" && t.type !== "keydown" && t.type !== "keyup") {
|
2106
|
-
var
|
2107
|
-
m.containerPoint =
|
2106
|
+
var x = f.getLatLng && (!f._radius || f._radius <= 10);
|
2107
|
+
m.containerPoint = x ? this.latLngToContainerPoint(f.getLatLng()) : this.mouseEventToContainerPoint(t), m.layerPoint = this.containerPointToLayerPoint(m.containerPoint), m.latlng = x ? f.getLatLng() : this.layerPointToLatLng(m.layerPoint);
|
2108
2108
|
}
|
2109
2109
|
for (u = 0; u < o.length; u++)
|
2110
|
-
if (o[u].fire(e, m, !0), m.originalEvent._stopped || o[u].options.bubblingMouseEvents === !1 &&
|
2110
|
+
if (o[u].fire(e, m, !0), m.originalEvent._stopped || o[u].options.bubblingMouseEvents === !1 && wt(this._mouseEvents, e) !== -1)
|
2111
2111
|
return;
|
2112
2112
|
}
|
2113
2113
|
},
|
@@ -2167,14 +2167,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2167
2167
|
_limitCenter: function(t, e, i) {
|
2168
2168
|
if (!i)
|
2169
2169
|
return t;
|
2170
|
-
var n = this.project(t, e), o = this.getSize().divideBy(2), r = new
|
2170
|
+
var n = this.project(t, e), o = this.getSize().divideBy(2), r = new q(n.subtract(o), n.add(o)), u = this._getBoundsOffset(r, i, e);
|
2171
2171
|
return Math.abs(u.x) <= 1 && Math.abs(u.y) <= 1 ? t : this.unproject(n.add(u), e);
|
2172
2172
|
},
|
2173
2173
|
// adjust offset for view to get inside bounds
|
2174
2174
|
_limitOffset: function(t, e) {
|
2175
2175
|
if (!e)
|
2176
2176
|
return t;
|
2177
|
-
var i = this.getPixelBounds(), n = new
|
2177
|
+
var i = this.getPixelBounds(), n = new q(i.min.add(t), i.max.add(t));
|
2178
2178
|
return t.add(this._getBoundsOffset(n, e));
|
2179
2179
|
},
|
2180
2180
|
// returns offset needed for pxBounds to get inside maxBounds at a specified zoom
|
@@ -2196,7 +2196,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2196
2196
|
this.fire("move");
|
2197
2197
|
},
|
2198
2198
|
_onPanTransitionEnd: function() {
|
2199
|
-
|
2199
|
+
V(this._mapPane, "leaflet-pan-anim"), this.fire("moveend");
|
2200
2200
|
},
|
2201
2201
|
_tryAnimatedPan: function(t, e) {
|
2202
2202
|
var i = this._getCenterOffset(t)._trunc();
|
@@ -2205,12 +2205,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2205
2205
|
_createAnimProxy: function() {
|
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
|
-
var i =
|
2208
|
+
var i = Ve, 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() {
|
2213
|
-
|
2213
|
+
j(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy;
|
2214
2214
|
},
|
2215
2215
|
_animMoveEnd: function() {
|
2216
2216
|
var t = this.getCenter(), e = this.getZoom();
|
@@ -2240,13 +2240,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2240
2240
|
}), this._tempFireZoomEvent || (this._tempFireZoomEvent = this._zoom !== this._animateToZoom), this._move(this._animateToCenter, this._animateToZoom, void 0, !0), setTimeout(a(this._onZoomTransitionEnd, this), 250));
|
2241
2241
|
},
|
2242
2242
|
_onZoomTransitionEnd: function() {
|
2243
|
-
this._animatingZoom && (this._mapPane &&
|
2243
|
+
this._animatingZoom && (this._mapPane && V(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
2246
|
function Fo(t, e) {
|
2247
2247
|
return new N(t, e);
|
2248
2248
|
}
|
2249
|
-
var _t =
|
2249
|
+
var _t = xt.extend({
|
2250
2250
|
// @section
|
2251
2251
|
// @aka Control Options
|
2252
2252
|
options: {
|
@@ -2288,7 +2288,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2288
2288
|
// @method remove: this
|
2289
2289
|
// Removes the control from the map it is currently active on.
|
2290
2290
|
remove: function() {
|
2291
|
-
return this._map ? (
|
2291
|
+
return this._map ? (j(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null, this) : this;
|
2292
2292
|
},
|
2293
2293
|
_refocusOnMap: function(t) {
|
2294
2294
|
this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
|
@@ -2317,8 +2317,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2317
2317
|
},
|
2318
2318
|
_clearControlPos: function() {
|
2319
2319
|
for (var t in this._controlCorners)
|
2320
|
-
|
2321
|
-
|
2320
|
+
j(this._controlCorners[t]);
|
2321
|
+
j(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
2322
2322
|
}
|
2323
2323
|
});
|
2324
2324
|
var hn = _t.extend({
|
@@ -2392,12 +2392,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
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 ? (Z(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") :
|
2395
|
+
return t < this._section.clientHeight ? (Z(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") : V(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this;
|
2396
2396
|
},
|
2397
2397
|
// @method collapse(): this
|
2398
2398
|
// Collapse the control container if expanded.
|
2399
2399
|
collapse: function() {
|
2400
|
-
return
|
2400
|
+
return V(this._container, "leaflet-control-layers-expanded"), this;
|
2401
2401
|
},
|
2402
2402
|
_initLayout: function() {
|
2403
2403
|
var t = "leaflet-control-layers", e = this._container = R("div", t), i = this.options.collapsed;
|
@@ -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
|
-
|
2549
|
+
V(this._zoomInButton, e), V(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({
|
@@ -2610,14 +2610,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2610
2610
|
}
|
2611
2611
|
}), Wo = function(t) {
|
2612
2612
|
return new un(t);
|
2613
|
-
},
|
2613
|
+
}, qo = '<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 ? qo + " " : "") + "Leaflet</a>"
|
2621
2621
|
},
|
2622
2622
|
initialize: function(t) {
|
2623
2623
|
C(this, t), this._attributions = {};
|
@@ -2666,11 +2666,11 @@ 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 jo = 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 = Go, ne.zoom = Uo, ne.scale = Wo, ne.attribution =
|
2673
|
-
var vt =
|
2672
|
+
_t.Layers = hn, _t.Zoom = ai, _t.Scale = un, _t.Attribution = hi, ne.layers = Go, ne.zoom = Uo, ne.scale = Wo, ne.attribution = jo;
|
2673
|
+
var vt = xt.extend({
|
2674
2674
|
initialize: function(t) {
|
2675
2675
|
this._map = t;
|
2676
2676
|
},
|
@@ -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 Vo = { Events: ht }, ln = S.touch ? "touchstart mousedown" : "mousedown", Et = Jt.extend({
|
2703
2703
|
options: {
|
2704
2704
|
// @section
|
2705
2705
|
// @aka Draggable options
|
@@ -2756,7 +2756,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2756
2756
|
this._enabled && this.finishDrag();
|
2757
2757
|
},
|
2758
2758
|
finishDrag: function(t) {
|
2759
|
-
|
2759
|
+
V(document.body, "leaflet-dragging"), this._lastTarget && (V(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), F(document, "mousemove touchmove", this._onMove, this), F(document, "mouseup touchend touchcancel", this._onUp, this), $e(), te();
|
2760
2760
|
var e = this._moved && this._moving;
|
2761
2761
|
this._moving = !1, Et._dragging = !1, e && this.fire("dragend", {
|
2762
2762
|
noInertia: t,
|
@@ -2765,18 +2765,18 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2765
2765
|
}
|
2766
2766
|
});
|
2767
2767
|
function cn(t, e, i) {
|
2768
|
-
var n, o = [1, 4, 2, 8], r, u, f, m,
|
2768
|
+
var n, o = [1, 4, 2, 8], r, u, f, m, x, T, k, I;
|
2769
2769
|
for (r = 0, T = t.length; r < T; r++)
|
2770
2770
|
t[r]._code = Nt(t[r], e);
|
2771
2771
|
for (f = 0; f < 4; f++) {
|
2772
2772
|
for (k = o[f], n = [], r = 0, T = t.length, u = T - 1; r < T; u = r++)
|
2773
|
-
m = t[r],
|
2773
|
+
m = t[r], x = t[u], m._code & k ? x._code & k || (I = ge(x, m, k, e, i), I._code = Nt(I, e), n.push(I)) : (x._code & k && (I = ge(x, m, k, e, i), I._code = Nt(I, e), n.push(I)), n.push(m));
|
2774
2774
|
t = n;
|
2775
2775
|
}
|
2776
2776
|
return t;
|
2777
2777
|
}
|
2778
2778
|
function dn(t, e) {
|
2779
|
-
var i, n, o, r, u, f, m,
|
2779
|
+
var i, n, o, r, u, f, m, x, T;
|
2780
2780
|
if (!t || t.length === 0)
|
2781
2781
|
throw new Error("latlngs not passed");
|
2782
2782
|
dt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
@@ -2787,11 +2787,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2787
2787
|
var rt = B(t[i]);
|
2788
2788
|
ft.push(e.project(B([rt.lat - k.lat, rt.lng - k.lng])));
|
2789
2789
|
}
|
2790
|
-
for (f = m =
|
2791
|
-
o = ft[i], r = ft[n], u = o.y * r.x - r.y * o.x, m += (o.x + r.x) * u,
|
2792
|
-
f === 0 ? T = ft[0] : T = [m / f,
|
2793
|
-
var
|
2794
|
-
return B([
|
2790
|
+
for (f = m = x = 0, i = 0, n = $ - 1; i < $; n = i++)
|
2791
|
+
o = ft[i], r = ft[n], u = o.y * r.x - r.y * o.x, m += (o.x + r.x) * u, x += (o.y + r.y) * u, f += u * 3;
|
2792
|
+
f === 0 ? T = ft[0] : T = [m / f, x / f];
|
2793
|
+
var jt = e.unproject(E(T));
|
2794
|
+
return B([jt.lat + k.lat, jt.lng + k.lng]);
|
2795
2795
|
}
|
2796
2796
|
function ui(t) {
|
2797
2797
|
for (var e = 0, i = 0, n = 0, o = 0; o < t.length; o++) {
|
@@ -2839,18 +2839,18 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2839
2839
|
}
|
2840
2840
|
var pn;
|
2841
2841
|
function mn(t, e, i, n, o) {
|
2842
|
-
var r = n ? pn : Nt(t, i), u = Nt(e, i), f, m,
|
2842
|
+
var r = n ? pn : Nt(t, i), u = Nt(e, i), f, m, x;
|
2843
2843
|
for (pn = u; ; ) {
|
2844
2844
|
if (!(r | u))
|
2845
2845
|
return [t, e];
|
2846
2846
|
if (r & u)
|
2847
2847
|
return !1;
|
2848
|
-
f = r || u, m = ge(t, e, f, i, o),
|
2848
|
+
f = r || u, m = ge(t, e, f, i, o), x = Nt(m, i), f === r ? (t = m, r = x) : (e = m, u = x);
|
2849
2849
|
}
|
2850
2850
|
}
|
2851
2851
|
function ge(t, e, i, n, o) {
|
2852
|
-
var r = e.x - t.x, u = e.y - t.y, f = n.min, m = n.max,
|
2853
|
-
return i & 8 ? (
|
2852
|
+
var r = e.x - t.x, u = e.y - t.y, f = n.min, m = n.max, x, T;
|
2853
|
+
return i & 8 ? (x = t.x + r * (m.y - t.y) / u, T = m.y) : i & 4 ? (x = t.x + r * (f.y - t.y) / u, T = f.y) : i & 2 ? (x = m.x, T = t.y + u * (m.x - t.x) / r) : i & 1 && (x = f.x, T = t.y + u * (f.x - t.x) / r), new O(x, T, o);
|
2854
2854
|
}
|
2855
2855
|
function Nt(t, e) {
|
2856
2856
|
var i = 0;
|
@@ -2861,8 +2861,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2861
2861
|
return i * i + n * n;
|
2862
2862
|
}
|
2863
2863
|
function oe(t, e, i, n) {
|
2864
|
-
var o = e.x, r = e.y, u = i.x - o, f = i.y - r, m = u * u + f * f,
|
2865
|
-
return m > 0 && (
|
2864
|
+
var o = e.x, r = e.y, u = i.x - o, f = i.y - r, m = u * u + f * f, x;
|
2865
|
+
return m > 0 && (x = ((t.x - o) * u + (t.y - r) * f) / m, x > 1 ? (o = i.x, r = i.y) : x > 0 && (o += u * x, r += f * x)), u = t.x - o, f = t.y - r, n ? u * u + f * f : new O(o, r);
|
2866
2866
|
}
|
2867
2867
|
function dt(t) {
|
2868
2868
|
return !W(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
@@ -2871,7 +2871,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2871
2871
|
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), dt(t);
|
2872
2872
|
}
|
2873
2873
|
function vn(t, e) {
|
2874
|
-
var i, n, o, r, u, f, m,
|
2874
|
+
var i, n, o, r, u, f, m, x;
|
2875
2875
|
if (!t || t.length === 0)
|
2876
2876
|
throw new Error("latlngs not passed");
|
2877
2877
|
dt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
@@ -2885,17 +2885,17 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2885
2885
|
for (i = 0, n = 0; i < it - 1; i++)
|
2886
2886
|
n += $[i].distanceTo($[i + 1]) / 2;
|
2887
2887
|
if (n === 0)
|
2888
|
-
|
2888
|
+
x = $[0];
|
2889
2889
|
else
|
2890
2890
|
for (i = 0, r = 0; i < it - 1; i++)
|
2891
2891
|
if (u = $[i], f = $[i + 1], o = u.distanceTo(f), r += o, r > n) {
|
2892
|
-
m = (r - n) / o,
|
2892
|
+
m = (r - n) / o, x = [
|
2893
2893
|
f.x - m * (f.x - u.x),
|
2894
2894
|
f.y - m * (f.y - u.y)
|
2895
2895
|
];
|
2896
2896
|
break;
|
2897
2897
|
}
|
2898
|
-
var rt = e.unproject(E(
|
2898
|
+
var rt = e.unproject(E(x));
|
2899
2899
|
return B([rt.lat + T.lat, rt.lng + T.lng]);
|
2900
2900
|
}
|
2901
2901
|
var Qo = {
|
@@ -2917,18 +2917,18 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2917
2917
|
unproject: function(t) {
|
2918
2918
|
return new D(t.y, t.x);
|
2919
2919
|
},
|
2920
|
-
bounds: new
|
2920
|
+
bounds: new q([-180, -90], [180, 90])
|
2921
2921
|
}, di = {
|
2922
2922
|
R: 6378137,
|
2923
2923
|
R_MINOR: 6356752314245179e-9,
|
2924
|
-
bounds: new
|
2924
|
+
bounds: new q([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
2925
2925
|
project: function(t) {
|
2926
2926
|
var e = Math.PI / 180, i = this.R, n = t.lat * e, o = this.R_MINOR / i, r = Math.sqrt(1 - o * o), u = r * Math.sin(n), f = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - u) / (1 + u), r / 2);
|
2927
2927
|
return n = -i * Math.log(Math.max(f, 1e-10)), new O(t.lng * e * i, n);
|
2928
2928
|
},
|
2929
2929
|
unproject: function(t) {
|
2930
|
-
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, o = Math.sqrt(1 - n * n), r = Math.exp(-t.y / i), u = Math.PI / 2 - 2 * Math.atan(r), f = 0, m = 0.1,
|
2931
|
-
|
2930
|
+
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, o = Math.sqrt(1 - n * n), r = Math.exp(-t.y / i), u = Math.PI / 2 - 2 * Math.atan(r), f = 0, m = 0.1, x; f < 15 && Math.abs(m) > 1e-7; f++)
|
2931
|
+
x = o * Math.sin(u), x = Math.pow((1 - x) / (1 + x), o / 2), m = Math.PI / 2 - 2 * Math.atan(r * x) - u, u += m;
|
2932
2932
|
return new D(u * e, t.x * e / i);
|
2933
2933
|
}
|
2934
2934
|
}, ts = {
|
@@ -2936,18 +2936,18 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
2936
2936
|
LonLat: ci,
|
2937
2937
|
Mercator: di,
|
2938
2938
|
SphericalMercator: Re
|
2939
|
-
}, es =
|
2939
|
+
}, es = P({}, kt, {
|
2940
2940
|
code: "EPSG:3395",
|
2941
2941
|
projection: di,
|
2942
2942
|
transformation: function() {
|
2943
2943
|
var t = 0.5 / (Math.PI * di.R);
|
2944
2944
|
return Kt(t, 0.5, -t, 0.5);
|
2945
2945
|
}()
|
2946
|
-
}), yn =
|
2946
|
+
}), yn = P({}, kt, {
|
2947
2947
|
code: "EPSG:4326",
|
2948
2948
|
projection: ci,
|
2949
2949
|
transformation: Kt(1 / 180, 1, -1 / 180, 0.5)
|
2950
|
-
}), is =
|
2950
|
+
}), is = P({}, Pt, {
|
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
|
-
|
2965
|
+
Pt.Earth = kt, Pt.EPSG3395 = es, Pt.EPSG3857 = He, Pt.EPSG900913 = ao, Pt.EPSG4326 = yn, Pt.Simple = is;
|
2966
2966
|
var pt = Jt.extend({
|
2967
2967
|
// Classes extending `L.Layer` will inherit the following options:
|
2968
2968
|
options: {
|
@@ -3202,7 +3202,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3202
3202
|
}
|
3203
3203
|
}), os = function(t, e) {
|
3204
3204
|
return new Ct(t, e);
|
3205
|
-
}, Gt =
|
3205
|
+
}, Gt = xt.extend({
|
3206
3206
|
/* @section
|
3207
3207
|
* @aka Icon options
|
3208
3208
|
*
|
@@ -3338,7 +3338,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3338
3338
|
predrag: this._onPreDrag,
|
3339
3339
|
drag: this._onDrag,
|
3340
3340
|
dragend: this._onDragEnd
|
3341
|
-
}, this).disable(), this._marker._icon &&
|
3341
|
+
}, this).disable(), this._marker._icon && V(this._marker._icon, "leaflet-marker-draggable");
|
3342
3342
|
},
|
3343
3343
|
moved: function() {
|
3344
3344
|
return this._draggable && this._draggable._moved;
|
@@ -3349,11 +3349,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3349
3349
|
u.max._subtract(f).subtract(o)
|
3350
3350
|
);
|
3351
3351
|
if (!m.contains(r)) {
|
3352
|
-
var
|
3352
|
+
var x = E(
|
3353
3353
|
(Math.max(m.max.x, r.x) - m.max.x) / (u.max.x - m.max.x) - (Math.min(m.min.x, r.x) - m.min.x) / (u.min.x - m.min.x),
|
3354
3354
|
(Math.max(m.max.y, r.y) - m.max.y) / (u.max.y - m.max.y) - (Math.min(m.min.y, r.y) - m.min.y) / (u.min.y - m.min.y)
|
3355
3355
|
).multiplyBy(n);
|
3356
|
-
i.panBy(
|
3356
|
+
i.panBy(x, { animate: !1 }), this._draggable._newPos._add(x), this._draggable._startPos._add(x), K(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = nt(this._adjustPan.bind(this, t));
|
3357
3357
|
}
|
3358
3358
|
},
|
3359
3359
|
_onDragStart: function() {
|
@@ -3501,10 +3501,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3501
3501
|
this.options.riseOnHover && this.off({
|
3502
3502
|
mouseover: this._bringToFront,
|
3503
3503
|
mouseout: this._resetZIndex
|
3504
|
-
}), this.options.autoPanOnFocus && F(this._icon, "focus", this._panOnFocus, this),
|
3504
|
+
}), this.options.autoPanOnFocus && F(this._icon, "focus", this._panOnFocus, this), j(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null;
|
3505
3505
|
},
|
3506
3506
|
_removeShadow: function() {
|
3507
|
-
this._shadow &&
|
3507
|
+
this._shadow && j(this._shadow), this._shadow = null;
|
3508
3508
|
},
|
3509
3509
|
_setPos: function(t) {
|
3510
3510
|
this._icon && K(this._icon, t), this._shadow && K(this._shadow, t), this._zIndex = t.y + this.options.zIndexOffset, this._resetZIndex();
|
@@ -3685,7 +3685,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3685
3685
|
},
|
3686
3686
|
_updateBounds: function() {
|
3687
3687
|
var t = this._radius, e = this._radiusY || t, i = this._clickTolerance(), n = [t + i, e + i];
|
3688
|
-
this._pxBounds = new
|
3688
|
+
this._pxBounds = new q(this._point.subtract(n), this._point.add(n));
|
3689
3689
|
},
|
3690
3690
|
_update: function() {
|
3691
3691
|
this._map && this._updatePath();
|
@@ -3706,7 +3706,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3706
3706
|
}
|
3707
3707
|
var fi = ye.extend({
|
3708
3708
|
initialize: function(t, e, i) {
|
3709
|
-
if (typeof e == "number" && (e =
|
3709
|
+
if (typeof e == "number" && (e = P({}, i, { radius: e })), C(this, e), this._latlng = B(t), isNaN(this.options.radius))
|
3710
3710
|
throw new Error("Circle radius cannot be NaN");
|
3711
3711
|
this._mRadius = this.options.radius;
|
3712
3712
|
},
|
@@ -3733,8 +3733,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3733
3733
|
_project: function() {
|
3734
3734
|
var t = this._latlng.lng, e = this._latlng.lat, i = this._map, n = i.options.crs;
|
3735
3735
|
if (n.distance === kt.distance) {
|
3736
|
-
var o = Math.PI / 180, r = this._mRadius / kt.R / o, u = i.project([e + r, t]), f = i.project([e - r, t]), m = u.add(f).divideBy(2),
|
3737
|
-
(isNaN(T) || T === 0) && (T = r / Math.cos(Math.PI / 180 * e)), this._point = m.subtract(i.getPixelOrigin()), this._radius = isNaN(T) ? 0 : m.x - i.project([
|
3736
|
+
var o = Math.PI / 180, r = this._mRadius / kt.R / o, u = i.project([e + r, t]), f = i.project([e - r, t]), m = u.add(f).divideBy(2), x = i.unproject(m).lat, T = Math.acos((Math.cos(r * o) - Math.sin(e * o) * Math.sin(x * o)) / (Math.cos(e * o) * Math.cos(x * o))) / o;
|
3737
|
+
(isNaN(T) || T === 0) && (T = r / Math.cos(Math.PI / 180 * e)), this._point = m.subtract(i.getPixelOrigin()), this._radius = isNaN(T) ? 0 : m.x - i.project([x, t - T]).x, this._radiusY = m.y - u.y;
|
3738
3738
|
} else {
|
3739
3739
|
var k = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
|
3740
3740
|
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(k).x;
|
@@ -3779,8 +3779,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3779
3779
|
// Returns the point closest to `p` on the Polyline.
|
3780
3780
|
closestLayerPoint: function(t) {
|
3781
3781
|
for (var e = 1 / 0, i = null, n = oe, o, r, u = 0, f = this._parts.length; u < f; u++)
|
3782
|
-
for (var m = this._parts[u],
|
3783
|
-
o = m[
|
3782
|
+
for (var m = this._parts[u], x = 1, T = m.length; x < T; x++) {
|
3783
|
+
o = m[x - 1], r = m[x];
|
3784
3784
|
var k = n(t, o, r, !0);
|
3785
3785
|
k < e && (e = k, i = n(t, o, r));
|
3786
3786
|
}
|
@@ -3818,12 +3818,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3818
3818
|
return e;
|
3819
3819
|
},
|
3820
3820
|
_project: function() {
|
3821
|
-
var t = new
|
3821
|
+
var t = new q();
|
3822
3822
|
this._rings = [], this._projectLatlngs(this._latlngs, this._rings, t), this._bounds.isValid() && t.isValid() && (this._rawPxBounds = t, this._updateBounds());
|
3823
3823
|
},
|
3824
3824
|
_updateBounds: function() {
|
3825
3825
|
var t = this._clickTolerance(), e = new O(t, t);
|
3826
|
-
this._rawPxBounds && (this._pxBounds = new
|
3826
|
+
this._rawPxBounds && (this._pxBounds = new q([
|
3827
3827
|
this._rawPxBounds.min.subtract(e),
|
3828
3828
|
this._rawPxBounds.max.add(e)
|
3829
3829
|
]));
|
@@ -3906,7 +3906,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3906
3906
|
},
|
3907
3907
|
_clipPoints: function() {
|
3908
3908
|
var t = this._renderer._bounds, e = this.options.weight, i = new O(e, e);
|
3909
|
-
if (t = new
|
3909
|
+
if (t = new q(t.min.subtract(i), t.max.add(i)), this._parts = [], !(!this._pxBounds || !this._pxBounds.intersects(t))) {
|
3910
3910
|
if (this.options.noClip) {
|
3911
3911
|
this._parts = this._rings;
|
3912
3912
|
return;
|
@@ -3920,11 +3920,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3920
3920
|
},
|
3921
3921
|
// Needed by the `Canvas` renderer for interactivity
|
3922
3922
|
_containsPoint: function(t) {
|
3923
|
-
var e = !1, i, n, o, r, u, f, m,
|
3923
|
+
var e = !1, i, n, o, r, u, f, m, x;
|
3924
3924
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
3925
3925
|
return !1;
|
3926
3926
|
for (r = 0, m = this._parts.length; r < m; r++)
|
3927
|
-
for (i = this._parts[r], u = 0,
|
3927
|
+
for (i = this._parts[r], u = 0, x = i.length, f = x - 1; u < x; f = u++)
|
3928
3928
|
n = i[u], o = i[f], n.y > t.y != o.y > t.y && t.x < (o.x - n.x) * (t.y - n.y) / (o.y - n.y) + n.x && (e = !e);
|
3929
3929
|
return e || Tt.prototype._containsPoint.call(this, t, !0);
|
3930
3930
|
}
|
@@ -3998,13 +3998,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
3998
3998
|
if (r.filter && !r.filter(t))
|
3999
3999
|
return this;
|
4000
4000
|
var u = Le(t, r);
|
4001
|
-
return u ? (u.feature =
|
4001
|
+
return u ? (u.feature = xe(t), u.defaultOptions = u.options, this.resetStyle(u), r.onEachFeature && r.onEachFeature(t, u), this.addLayer(u)) : this;
|
4002
4002
|
},
|
4003
4003
|
// @method resetStyle( <Path> layer? ): this
|
4004
4004
|
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
4005
4005
|
// If `layer` is omitted, the style of all features in the current layer is reset.
|
4006
4006
|
resetStyle: function(t) {
|
4007
|
-
return t === void 0 ? this.eachLayer(this.resetStyle, this) : (t.options =
|
4007
|
+
return t === void 0 ? this.eachLayer(this.resetStyle, this) : (t.options = P({}, t.defaultOptions), this._setLayerStyle(t, this.options.style), this);
|
4008
4008
|
},
|
4009
4009
|
// @method setStyle( <Function> style ): this
|
4010
4010
|
// Changes styles of GeoJSON vector layers with the given style function.
|
@@ -4018,26 +4018,26 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4018
4018
|
}
|
4019
4019
|
});
|
4020
4020
|
function Le(t, e) {
|
4021
|
-
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], r = e && e.pointToLayer, u = e && e.coordsToLatLng || _i, f, m,
|
4021
|
+
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], r = e && e.pointToLayer, u = e && e.coordsToLatLng || _i, f, m, x, T;
|
4022
4022
|
if (!n && !i)
|
4023
4023
|
return null;
|
4024
4024
|
switch (i.type) {
|
4025
4025
|
case "Point":
|
4026
|
-
return f = u(n),
|
4026
|
+
return f = u(n), bn(r, t, f, e);
|
4027
4027
|
case "MultiPoint":
|
4028
|
-
for (
|
4029
|
-
f = u(n[
|
4028
|
+
for (x = 0, T = n.length; x < T; x++)
|
4029
|
+
f = u(n[x]), o.push(bn(r, t, f, e));
|
4030
4030
|
return new Ct(o);
|
4031
4031
|
case "LineString":
|
4032
4032
|
case "MultiLineString":
|
4033
|
-
return m =
|
4033
|
+
return m = be(n, i.type === "LineString" ? 0 : 1, u), new Tt(m, e);
|
4034
4034
|
case "Polygon":
|
4035
4035
|
case "MultiPolygon":
|
4036
|
-
return m =
|
4036
|
+
return m = be(n, i.type === "Polygon" ? 1 : 2, u), new Ut(m, e);
|
4037
4037
|
case "GeometryCollection":
|
4038
|
-
for (
|
4038
|
+
for (x = 0, T = i.geometries.length; x < T; x++) {
|
4039
4039
|
var k = Le({
|
4040
|
-
geometry: i.geometries[
|
4040
|
+
geometry: i.geometries[x],
|
4041
4041
|
type: "Feature",
|
4042
4042
|
properties: t.properties
|
4043
4043
|
}, e);
|
@@ -4045,8 +4045,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4045
4045
|
}
|
4046
4046
|
return new Ct(o);
|
4047
4047
|
case "FeatureCollection":
|
4048
|
-
for (
|
4049
|
-
var I = Le(i.features[
|
4048
|
+
for (x = 0, T = i.features.length; x < T; x++) {
|
4049
|
+
var I = Le(i.features[x], e);
|
4050
4050
|
I && o.push(I);
|
4051
4051
|
}
|
4052
4052
|
return new Ct(o);
|
@@ -4054,29 +4054,29 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4054
4054
|
throw new Error("Invalid GeoJSON object.");
|
4055
4055
|
}
|
4056
4056
|
}
|
4057
|
-
function
|
4057
|
+
function bn(t, e, i, n) {
|
4058
4058
|
return t ? t(e, i) : new ve(i, n && n.markersInheritOptions && n);
|
4059
4059
|
}
|
4060
4060
|
function _i(t) {
|
4061
4061
|
return new D(t[1], t[0], t[2]);
|
4062
4062
|
}
|
4063
|
-
function
|
4063
|
+
function be(t, e, i) {
|
4064
4064
|
for (var n = [], o = 0, r = t.length, u; o < r; o++)
|
4065
|
-
u = e ?
|
4065
|
+
u = e ? be(t[o], e - 1, i) : (i || _i)(t[o]), n.push(u);
|
4066
4066
|
return n;
|
4067
4067
|
}
|
4068
4068
|
function pi(t, e) {
|
4069
|
-
return t = B(t), t.alt !== void 0 ? [
|
4069
|
+
return t = B(t), t.alt !== void 0 ? [w(t.lng, e), w(t.lat, e), w(t.alt, e)] : [w(t.lng, e), w(t.lat, e)];
|
4070
4070
|
}
|
4071
|
-
function
|
4071
|
+
function we(t, e, i, n) {
|
4072
4072
|
for (var o = [], r = 0, u = t.length; r < u; r++)
|
4073
|
-
o.push(e ?
|
4073
|
+
o.push(e ? we(t[r], dt(t[r]) ? 0 : e - 1, i, n) : pi(t[r], n));
|
4074
4074
|
return !e && i && o.length > 0 && o.push(o[0].slice()), o;
|
4075
4075
|
}
|
4076
4076
|
function Wt(t, e) {
|
4077
|
-
return t.feature ?
|
4077
|
+
return t.feature ? P({}, t.feature, { geometry: e }) : xe(e);
|
4078
4078
|
}
|
4079
|
-
function
|
4079
|
+
function xe(t) {
|
4080
4080
|
return t.type === "Feature" || t.type === "FeatureCollection" ? t : {
|
4081
4081
|
type: "Feature",
|
4082
4082
|
properties: {},
|
@@ -4093,7 +4093,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4093
4093
|
};
|
4094
4094
|
ve.include(mi), fi.include(mi), ye.include(mi), Tt.include({
|
4095
4095
|
toGeoJSON: function(t) {
|
4096
|
-
var e = !dt(this._latlngs), i =
|
4096
|
+
var e = !dt(this._latlngs), i = we(this._latlngs, e ? 1 : 0, !1, t);
|
4097
4097
|
return Wt(this, {
|
4098
4098
|
type: (e ? "Multi" : "") + "LineString",
|
4099
4099
|
coordinates: i
|
@@ -4101,7 +4101,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4101
4101
|
}
|
4102
4102
|
}), Ut.include({
|
4103
4103
|
toGeoJSON: function(t) {
|
4104
|
-
var e = !dt(this._latlngs), i = e && !dt(this._latlngs[0]), n =
|
4104
|
+
var e = !dt(this._latlngs), i = e && !dt(this._latlngs[0]), n = we(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
|
4105
4105
|
return e || (n = [n]), Wt(this, {
|
4106
4106
|
type: (i ? "Multi" : "") + "Polygon",
|
4107
4107
|
coordinates: n
|
@@ -4131,7 +4131,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4131
4131
|
if (i)
|
4132
4132
|
n.push(r.geometry);
|
4133
4133
|
else {
|
4134
|
-
var u =
|
4134
|
+
var u = xe(r);
|
4135
4135
|
u.type === "FeatureCollection" ? n.push.apply(n, u.features) : n.push(u);
|
4136
4136
|
}
|
4137
4137
|
}
|
@@ -4144,10 +4144,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4144
4144
|
};
|
4145
4145
|
}
|
4146
4146
|
});
|
4147
|
-
function
|
4147
|
+
function wn(t, e) {
|
4148
4148
|
return new Mt(t, e);
|
4149
4149
|
}
|
4150
|
-
var cs =
|
4150
|
+
var cs = wn, Pe = pt.extend({
|
4151
4151
|
// @section
|
4152
4152
|
// @aka ImageOverlay options
|
4153
4153
|
options: {
|
@@ -4182,7 +4182,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4182
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
|
+
j(this._image), this.options.interactive && this.removeInteractiveTarget(this._image);
|
4186
4186
|
},
|
4187
4187
|
// @method setOpacity(opacity: Number): this
|
4188
4188
|
// Sets the opacity of the overlay.
|
@@ -4248,7 +4248,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4248
4248
|
At(this._image, i, e);
|
4249
4249
|
},
|
4250
4250
|
_reset: function() {
|
4251
|
-
var t = this._image, e = new
|
4251
|
+
var t = this._image, e = new q(
|
4252
4252
|
this._map.latLngToLayerPoint(this._bounds.getNorthWest()),
|
4253
4253
|
this._map.latLngToLayerPoint(this._bounds.getSouthEast())
|
4254
4254
|
), i = e.getSize();
|
@@ -4271,8 +4271,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4271
4271
|
return this._bounds.getCenter();
|
4272
4272
|
}
|
4273
4273
|
}), ds = function(t, e, i) {
|
4274
|
-
return new
|
4275
|
-
},
|
4274
|
+
return new Pe(t, e, i);
|
4275
|
+
}, xn = Pe.extend({
|
4276
4276
|
// @section
|
4277
4277
|
// @aka VideoOverlay options
|
4278
4278
|
options: {
|
@@ -4313,9 +4313,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4313
4313
|
// used by this overlay.
|
4314
4314
|
});
|
4315
4315
|
function fs(t, e, i) {
|
4316
|
-
return new
|
4316
|
+
return new xn(t, e, i);
|
4317
4317
|
}
|
4318
|
-
var
|
4318
|
+
var Pn = Pe.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 = _;
|
@@ -4325,7 +4325,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4325
4325
|
// used by this overlay.
|
4326
4326
|
});
|
4327
4327
|
function _s(t, e, i) {
|
4328
|
-
return new
|
4328
|
+
return new Pn(t, e, i);
|
4329
4329
|
}
|
4330
4330
|
var yt = pt.extend({
|
4331
4331
|
// @section
|
@@ -4375,7 +4375,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4375
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
|
-
t._fadeAnimated ? (ct(this._container, 0), this._removeTimeout = setTimeout(a(
|
4378
|
+
t._fadeAnimated ? (ct(this._container, 0), this._removeTimeout = setTimeout(a(j, void 0, this._container), 200)) : j(this._container), this.options.interactive && (V(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
|
4379
4379
|
},
|
4380
4380
|
// @namespace DivOverlay
|
4381
4381
|
// @method getLatLng: LatLng
|
@@ -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", Z(t, r)) :
|
4592
|
+
o && n > o ? (e.height = o + "px", Z(t, r)) : V(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();
|
@@ -4603,8 +4603,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
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
4605
|
o._add(Zt(this._container));
|
4606
|
-
var r = t.layerPointToContainerPoint(o), u = E(this.options.autoPanPadding), f = E(this.options.autoPanPaddingTopLeft || u), m = E(this.options.autoPanPaddingBottomRight || u),
|
4607
|
-
r.x + n + m.x >
|
4606
|
+
var r = t.layerPointToContainerPoint(o), u = E(this.options.autoPanPadding), f = E(this.options.autoPanPaddingTopLeft || u), m = E(this.options.autoPanPaddingBottomRight || u), x = t.getSize(), T = 0, k = 0;
|
4607
|
+
r.x + n + m.x > x.x && (T = r.x + n - x.x + m.x), r.x - T - f.x < 0 && (T = r.x - f.x), r.y + i + m.y > x.y && (k = r.y + i - x.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
|
}
|
4609
4609
|
},
|
4610
4610
|
_getAnchor: function() {
|
@@ -4745,8 +4745,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4745
4745
|
_adjustPan: function() {
|
4746
4746
|
},
|
4747
4747
|
_setPosition: function(t) {
|
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,
|
4749
|
-
f === "top" ? (e = m / 2, i =
|
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, x = o.offsetHeight, T = E(this.options.offset), k = this._getAnchor();
|
4749
|
+
f === "top" ? (e = m / 2, i = x) : f === "bottom" ? (e = m / 2, i = 0) : f === "center" ? (e = m / 2, i = x / 2) : f === "right" ? (e = 0, i = x / 2) : f === "left" ? (e = m, i = x / 2) : u.x < r.x ? (f = "right", e = 0, i = x / 2) : (f = "left", e = m + (T.x + k.x) * 2, i = x / 2), t = t.subtract(E(e, i, !0)).add(T).add(k), V(o, "leaflet-tooltip-right"), V(o, "leaflet-tooltip-left"), V(o, "leaflet-tooltip-top"), V(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);
|
@@ -4967,7 +4967,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
4967
4967
|
t._addZoomLimit(this);
|
4968
4968
|
},
|
4969
4969
|
onRemove: function(t) {
|
4970
|
-
this._removeAllTiles(),
|
4970
|
+
this._removeAllTiles(), j(this._container), t._removeZoomLimit(this), this._container = null, this._tileZoom = void 0;
|
4971
4971
|
},
|
4972
4972
|
// @method bringToFront: this
|
4973
4973
|
// Brings the tile layer to the top of all tile layers.
|
@@ -5064,7 +5064,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5064
5064
|
var t = this._tileZoom, e = this.options.maxZoom;
|
5065
5065
|
if (t !== void 0) {
|
5066
5066
|
for (var i in this._levels)
|
5067
|
-
i = Number(i), this._levels[i].el.children.length || i === t ? (this._levels[i].el.style.zIndex = e - Math.abs(t - i), this._onUpdateLevel(i)) : (
|
5067
|
+
i = Number(i), this._levels[i].el.children.length || i === t ? (this._levels[i].el.style.zIndex = e - Math.abs(t - i), this._onUpdateLevel(i)) : (j(this._levels[i].el), this._removeTilesAtZoom(i), this._onRemoveLevel(i), delete this._levels[i]);
|
5068
5068
|
var n = this._levels[t], o = this._map;
|
5069
5069
|
return n || (n = this._levels[t] = {}, n.el = R("div", "leaflet-tile-container leaflet-zoom-animated", this._container), n.el.style.zIndex = e, n.origin = o.project(o.unproject(o.getPixelOrigin()), t).round(), n.zoom = t, this._setZoomTransform(n, o.getCenter(), o.getZoom()), _(n.el.offsetWidth), this._onCreateLevel(n)), this._level = n, n;
|
5070
5070
|
}
|
@@ -5100,14 +5100,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5100
5100
|
},
|
5101
5101
|
_invalidateAll: function() {
|
5102
5102
|
for (var t in this._levels)
|
5103
|
-
|
5103
|
+
j(this._levels[t].el), this._onRemoveLevel(Number(t)), delete this._levels[t];
|
5104
5104
|
this._removeAllTiles(), this._tileZoom = void 0;
|
5105
5105
|
},
|
5106
5106
|
_retainParent: function(t, e, i, n) {
|
5107
5107
|
var o = Math.floor(t / 2), r = Math.floor(e / 2), u = i - 1, f = new O(+o, +r);
|
5108
5108
|
f.z = +u;
|
5109
|
-
var m = this._tileCoordsToKey(f),
|
5110
|
-
return
|
5109
|
+
var m = this._tileCoordsToKey(f), x = this._tiles[m];
|
5110
|
+
return x && x.active ? (x.retain = !0, !0) : (x && x.loaded && (x.retain = !0), u > n ? this._retainParent(o, r, u, n) : !1);
|
5111
5111
|
},
|
5112
5112
|
_retainChildren: function(t, e, i, n) {
|
5113
5113
|
for (var o = 2 * t; o < 2 * t + 2; o++)
|
@@ -5162,7 +5162,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5162
5162
|
},
|
5163
5163
|
_getTiledPixelBounds: function(t) {
|
5164
5164
|
var e = this._map, i = e._animatingZoom ? Math.max(e._animateToZoom, e.getZoom()) : e.getZoom(), n = e.getZoomScale(i, this._tileZoom), o = e.project(t, this._tileZoom).floor(), r = e.getSize().divideBy(n * 2);
|
5165
|
-
return new
|
5165
|
+
return new q(o.subtract(r), o.add(r));
|
5166
5166
|
},
|
5167
5167
|
// Private method to load tiles in the grid's active zoom level according to map bounds
|
5168
5168
|
_update: function(t) {
|
@@ -5170,15 +5170,15 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5170
5170
|
if (e) {
|
5171
5171
|
var i = this._clampZoom(e.getZoom());
|
5172
5172
|
if (t === void 0 && (t = e.getCenter()), this._tileZoom !== void 0) {
|
5173
|
-
var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n), r = o.getCenter(), u = [], f = this.options.keepBuffer, m = new
|
5173
|
+
var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n), r = o.getCenter(), u = [], f = this.options.keepBuffer, m = new q(
|
5174
5174
|
o.getBottomLeft().subtract([f, -f]),
|
5175
5175
|
o.getTopRight().add([f, -f])
|
5176
5176
|
);
|
5177
5177
|
if (!(isFinite(o.min.x) && isFinite(o.min.y) && isFinite(o.max.x) && isFinite(o.max.y)))
|
5178
5178
|
throw new Error("Attempted to load an infinite number of tiles");
|
5179
|
-
for (var
|
5180
|
-
var T = this._tiles[
|
5181
|
-
(T.z !== this._tileZoom || !m.contains(new O(T.x, T.y))) && (this._tiles[
|
5179
|
+
for (var x in this._tiles) {
|
5180
|
+
var T = this._tiles[x].coords;
|
5181
|
+
(T.z !== this._tileZoom || !m.contains(new O(T.x, T.y))) && (this._tiles[x].current = !1);
|
5182
5182
|
}
|
5183
5183
|
if (Math.abs(i - this._tileZoom) > 1) {
|
5184
5184
|
this._setView(t, i);
|
@@ -5192,8 +5192,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5192
5192
|
$ ? $.current = !0 : u.push(it);
|
5193
5193
|
}
|
5194
5194
|
}
|
5195
|
-
if (u.sort(function(rt,
|
5196
|
-
return rt.distanceTo(r) -
|
5195
|
+
if (u.sort(function(rt, jt) {
|
5196
|
+
return rt.distanceTo(r) - jt.distanceTo(r);
|
5197
5197
|
}), u.length !== 0) {
|
5198
5198
|
this._loading || (this._loading = !0, this.fire("loading"));
|
5199
5199
|
var ft = document.createDocumentFragment();
|
@@ -5239,7 +5239,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5239
5239
|
},
|
5240
5240
|
_removeTile: function(t) {
|
5241
5241
|
var e = this._tiles[t];
|
5242
|
-
e && (
|
5242
|
+
e && (j(e.el), delete this._tiles[t], this.fire("tileunload", {
|
5243
5243
|
tile: e.el,
|
5244
5244
|
coords: this._keyToTileCoords(t)
|
5245
5245
|
}));
|
@@ -5284,7 +5284,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5284
5284
|
},
|
5285
5285
|
_pxBoundsToTileRange: function(t) {
|
5286
5286
|
var e = this.getTileSize();
|
5287
|
-
return new
|
5287
|
+
return new q(
|
5288
5288
|
t.min.unscaleBy(e).floor(),
|
5289
5289
|
t.max.unscaleBy(e).ceil().subtract([1, 1])
|
5290
5290
|
);
|
@@ -5299,7 +5299,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5299
5299
|
function vs(t) {
|
5300
5300
|
return new re(t);
|
5301
5301
|
}
|
5302
|
-
var
|
5302
|
+
var qt = re.extend({
|
5303
5303
|
// @section
|
5304
5304
|
// @aka TileLayer options
|
5305
5305
|
options: {
|
@@ -5376,7 +5376,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5376
5376
|
var i = this._globalTileRange.max.y - t.y;
|
5377
5377
|
this.options.tms && (e.y = i), e["-y"] = i;
|
5378
5378
|
}
|
5379
|
-
return U(this._url,
|
5379
|
+
return U(this._url, P(e, this.options));
|
5380
5380
|
},
|
5381
5381
|
_tileOnLoad: function(t, e) {
|
5382
5382
|
S.ielt9 ? setTimeout(a(t, this, null, e), 0) : t(null, e);
|
@@ -5403,7 +5403,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5403
5403
|
if (this._tiles[t].coords.z !== this._tileZoom && (e = this._tiles[t].el, e.onload = _, e.onerror = _, !e.complete)) {
|
5404
5404
|
e.src = at;
|
5405
5405
|
var i = this._tiles[t].coords;
|
5406
|
-
|
5406
|
+
j(e), delete this._tiles[t], this.fire("tileabort", {
|
5407
5407
|
tile: e,
|
5408
5408
|
coords: i
|
5409
5409
|
});
|
@@ -5420,9 +5420,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5420
5420
|
}
|
5421
5421
|
});
|
5422
5422
|
function Tn(t, e) {
|
5423
|
-
return new
|
5423
|
+
return new qt(t, e);
|
5424
5424
|
}
|
5425
|
-
var Mn =
|
5425
|
+
var Mn = qt.extend({
|
5426
5426
|
// @section
|
5427
5427
|
// @aka TileLayer.WMS options
|
5428
5428
|
// If any custom options not documented here are used, they will be sent to the
|
@@ -5458,7 +5458,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5458
5458
|
},
|
5459
5459
|
initialize: function(t, e) {
|
5460
5460
|
this._url = t;
|
5461
|
-
var i =
|
5461
|
+
var i = P({}, this.defaultWmsParams);
|
5462
5462
|
for (var n in e)
|
5463
5463
|
n in this.options || (i[n] = e[n]);
|
5464
5464
|
e = C(this, e);
|
@@ -5468,22 +5468,22 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5468
5468
|
onAdd: function(t) {
|
5469
5469
|
this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
|
5470
5470
|
var e = this._wmsVersion >= 1.3 ? "crs" : "srs";
|
5471
|
-
this.wmsParams[e] = this._crs.code,
|
5471
|
+
this.wmsParams[e] = this._crs.code, qt.prototype.onAdd.call(this, t);
|
5472
5472
|
},
|
5473
5473
|
getTileUrl: function(t) {
|
5474
|
-
var e = this._tileCoordsToNwSe(t), i = this._crs, n = ot(i.project(e[0]), i.project(e[1])), o = n.min, r = n.max, u = (this._wmsVersion >= 1.3 && this._crs === yn ? [o.y, o.x, r.y, r.x] : [o.x, o.y, r.x, r.y]).join(","), f =
|
5474
|
+
var e = this._tileCoordsToNwSe(t), i = this._crs, n = ot(i.project(e[0]), i.project(e[1])), o = n.min, r = n.max, u = (this._wmsVersion >= 1.3 && this._crs === yn ? [o.y, o.x, r.y, r.x] : [o.x, o.y, r.x, r.y]).join(","), f = qt.prototype.getTileUrl.call(this, t);
|
5475
5475
|
return f + H(this.wmsParams, f, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + u;
|
5476
5476
|
},
|
5477
5477
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
5478
5478
|
// Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).
|
5479
5479
|
setParams: function(t, e) {
|
5480
|
-
return
|
5480
|
+
return P(this.wmsParams, t), e || this.redraw(), this;
|
5481
5481
|
}
|
5482
5482
|
});
|
5483
5483
|
function ys(t, e) {
|
5484
5484
|
return new Mn(t, e);
|
5485
5485
|
}
|
5486
|
-
|
5486
|
+
qt.WMS = Mn, Tn.wms = ys;
|
5487
5487
|
var St = pt.extend({
|
5488
5488
|
// @section
|
5489
5489
|
// @aka Renderer options
|
@@ -5536,7 +5536,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5536
5536
|
},
|
5537
5537
|
_update: function() {
|
5538
5538
|
var t = this.options.padding, e = this._map.getSize(), i = this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();
|
5539
|
-
this._bounds = new
|
5539
|
+
this._bounds = new q(i, i.add(e.multiplyBy(1 + t * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
|
5540
5540
|
}
|
5541
5541
|
}), Sn = St.extend({
|
5542
5542
|
// @section
|
@@ -5561,7 +5561,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5561
5561
|
z(t, "mousemove", this._onMouseMove, this), z(t, "click dblclick mousedown mouseup contextmenu", this._onClick, this), z(t, "mouseout", this._handleMouseOut, this), t._leaflet_disable_events = !0, this._ctx = t.getContext("2d");
|
5562
5562
|
},
|
5563
5563
|
_destroyContainer: function() {
|
5564
|
-
lt(this._redrawRequest), delete this._ctx,
|
5564
|
+
lt(this._redrawRequest), delete this._ctx, j(this._container), F(this._container), delete this._container;
|
5565
5565
|
},
|
5566
5566
|
_updatePaths: function() {
|
5567
5567
|
if (!this._postponeUpdatePaths) {
|
@@ -5622,7 +5622,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5622
5622
|
_extendRedrawBounds: function(t) {
|
5623
5623
|
if (t._pxBounds) {
|
5624
5624
|
var e = (t.options.weight || 0) + 1;
|
5625
|
-
this._redrawBounds = this._redrawBounds || new
|
5625
|
+
this._redrawBounds = this._redrawBounds || new q(), this._redrawBounds.extend(t._pxBounds.min.subtract([e, e])), this._redrawBounds.extend(t._pxBounds.max.add([e, e]));
|
5626
5626
|
}
|
5627
5627
|
},
|
5628
5628
|
_redraw: function() {
|
@@ -5685,7 +5685,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5685
5685
|
},
|
5686
5686
|
_handleMouseOut: function(t) {
|
5687
5687
|
var e = this._hoveredLayer;
|
5688
|
-
e && (
|
5688
|
+
e && (V(this._container, "leaflet-interactive"), this._fireEvent([e], t, "mouseout"), this._hoveredLayer = null, this._mouseHoverThrottled = !1);
|
5689
5689
|
},
|
5690
5690
|
_handleMouseHover: function(t, e) {
|
5691
5691
|
if (!this._mouseHoverThrottled) {
|
@@ -5752,7 +5752,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5752
5752
|
},
|
5753
5753
|
_removePath: function(t) {
|
5754
5754
|
var e = t._container;
|
5755
|
-
|
5755
|
+
j(e), t.removeInteractiveTarget(e), delete this._layers[l(t)];
|
5756
5756
|
},
|
5757
5757
|
_updateStyle: function(t) {
|
5758
5758
|
var e = t._stroke, i = t._fill, n = t.options, o = t._container;
|
@@ -5776,7 +5776,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5776
5776
|
this._container = Me("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = Me("g"), this._container.appendChild(this._rootGroup);
|
5777
5777
|
},
|
5778
5778
|
_destroyContainer: function() {
|
5779
|
-
|
5779
|
+
j(this._container), F(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
|
5780
5780
|
},
|
5781
5781
|
_update: function() {
|
5782
5782
|
if (!(this._map._animatingZoom && this._bounds)) {
|
@@ -5794,7 +5794,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5794
5794
|
this._rootGroup || this._initContainer(), this._rootGroup.appendChild(t._path), t.addInteractiveTarget(t._path);
|
5795
5795
|
},
|
5796
5796
|
_removePath: function(t) {
|
5797
|
-
|
5797
|
+
j(t._path), t.removeInteractiveTarget(t._path), delete this._layers[l(t)];
|
5798
5798
|
},
|
5799
5799
|
_updatePath: function(t) {
|
5800
5800
|
t._project(), t._update();
|
@@ -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 bs(t, e) {
|
5866
5866
|
return new On(t, e);
|
5867
5867
|
}
|
5868
|
-
he.create = Me, he.pointsToPath = Ai, Mt.geometryToLayer = Le, Mt.coordsToLatLng = _i, Mt.coordsToLatLngs =
|
5868
|
+
he.create = Me, he.pointsToPath = Ai, Mt.geometryToLayer = Le, Mt.coordsToLatLng = _i, Mt.coordsToLatLngs = be, Mt.latLngToCoords = pi, Mt.latLngsToCoords = we, Mt.getFeature = Wt, Mt.asFeature = xe, 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.
|
@@ -5885,7 +5885,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5885
5885
|
return this._moved;
|
5886
5886
|
},
|
5887
5887
|
_destroy: function() {
|
5888
|
-
|
5888
|
+
j(this._pane), delete this._pane;
|
5889
5889
|
},
|
5890
5890
|
_resetState: function() {
|
5891
5891
|
this._resetStateTimeout = 0, this._moved = !1;
|
@@ -5905,11 +5905,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
5905
5905
|
},
|
5906
5906
|
_onMouseMove: function(t) {
|
5907
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
|
-
var e = new
|
5908
|
+
var e = new q(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
|
},
|
5911
5911
|
_finish: function() {
|
5912
|
-
this._moved && (
|
5912
|
+
this._moved && (j(this._box), V(this._container, "leaflet-crosshair")), te(), $e(), F(document, {
|
5913
5913
|
contextmenu: Bt,
|
5914
5914
|
mousemove: this._onMouseMove,
|
5915
5915
|
mouseup: this._onMouseUp,
|
@@ -5998,7 +5998,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
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
|
+
V(this._map._container, "leaflet-grab"), V(this._map._container, "leaflet-touch-drag"), this._draggable.disable();
|
6002
6002
|
},
|
6003
6003
|
moved: function() {
|
6004
6004
|
return this._draggable && this._draggable._moved;
|
@@ -6052,7 +6052,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
6052
6052
|
e.fire("moveend");
|
6053
6053
|
else {
|
6054
6054
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
6055
|
-
var o = this._lastPos.subtract(this._positions[0]), r = (this._lastTime - this._times[0]) / 1e3, u = i.easeLinearity, f = o.multiplyBy(u / r), m = f.distanceTo([0, 0]),
|
6055
|
+
var o = this._lastPos.subtract(this._positions[0]), r = (this._lastTime - this._times[0]) / 1e3, u = i.easeLinearity, f = o.multiplyBy(u / r), m = f.distanceTo([0, 0]), x = Math.min(i.inertiaMaxSpeed, m), T = f.multiplyBy(x / m), k = x / (i.inertiaDeceleration * u), I = T.multiplyBy(-k / 2).round();
|
6056
6056
|
!I.x && !I.y ? e.fire("moveend") : (I = e._limitOffset(I, e.options.maxBounds), nt(function() {
|
6057
6057
|
e.panBy(I, {
|
6058
6058
|
duration: k,
|
@@ -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 ws = 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), ws), z(document, "touchend touchcancel contextmenu", this._cancel, this), z(document, "touchmove", this._onMove, this);
|
6226
6226
|
}
|
6227
6227
|
},
|
6228
6228
|
_cancelClickPrevent: function t() {
|
@@ -6272,7 +6272,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
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
|
+
V(this._map._container, "leaflet-touch-zoom"), F(this._map._container, "touchstart", this._onTouchStart, this);
|
6276
6276
|
},
|
6277
6277
|
_onTouchStart: function(t) {
|
6278
6278
|
var e = this._map;
|
@@ -6306,21 +6306,21 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
6306
6306
|
this._zooming = !1, lt(this._animRequest), F(document, "touchmove", this._onTouchMove, this), F(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
6307
6307
|
}
|
6308
6308
|
});
|
6309
|
-
N.addInitHook("addHandler", "touchZoom", Rn), N.BoxZoom = zn, N.DoubleClickZoom = An, N.Drag = Zn, N.Keyboard = In, N.ScrollWheelZoom = Bn, N.TapHold = Nn, N.TouchZoom = Rn, c.Bounds =
|
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 = q, c.Browser = S, c.CRS = Pt, c.Canvas = Sn, c.Circle = fi, c.CircleMarker = ye, c.Class = xt, 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 = Pe, c.LatLng = D, c.LatLngBounds = st, c.Layer = pt, c.LayerGroup = Ft, c.LineUtil = Qo, c.Map = N, c.Marker = ve, c.Mixin = Vo, 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 = Pn, c.TileLayer = qt, c.Tooltip = Te, c.Transformation = De, c.Util = so, c.VideoOverlay = xn, c.bind = a, c.bounds = ot, c.canvas = kn, c.circle = hs, c.circleMarker = as, c.control = ne, c.divIcon = gs, c.extend = P, c.featureGroup = os, c.geoJSON = wn, 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 = bs, 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 xs = window.L;
|
6311
6311
|
c.noConflict = function() {
|
6312
|
-
return window.L =
|
6312
|
+
return window.L = xs, 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",
|
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", Pi = "l:tooltip:connected", Xn = "l:pane:connected", $n = (v, d, c = !0) => {
|
6318
6318
|
if (v.hasAttribute("on")) {
|
6319
6319
|
const g = v.getAttribute("on");
|
6320
|
-
g !== null && g.split(/\s+/).forEach((
|
6321
|
-
d !== null && d.on(
|
6320
|
+
g !== null && g.split(/\s+/).forEach((P) => {
|
6321
|
+
d !== null && d.on(P, (s) => {
|
6322
6322
|
v.dispatchEvent(
|
6323
|
-
new CustomEvent(
|
6323
|
+
new CustomEvent(P, { bubbles: c, detail: s })
|
6324
6324
|
);
|
6325
6325
|
});
|
6326
6326
|
});
|
@@ -6346,14 +6346,14 @@ class Is extends HTMLElement {
|
|
6346
6346
|
const { type: a, name: h, layer: l } = s.detail;
|
6347
6347
|
a === "overlay" ? g.addOverlay(l, h) : a === "base" && g.addBaseLayer(l, h), s.preventDefault();
|
6348
6348
|
});
|
6349
|
-
const
|
6349
|
+
const P = new CustomEvent(et, {
|
6350
6350
|
cancelable: !0,
|
6351
6351
|
bubbles: !0,
|
6352
6352
|
detail: {
|
6353
6353
|
layer: g
|
6354
6354
|
}
|
6355
6355
|
});
|
6356
|
-
this.dispatchEvent(
|
6356
|
+
this.dispatchEvent(P);
|
6357
6357
|
}
|
6358
6358
|
}
|
6359
6359
|
class zt extends HTMLElement {
|
@@ -6415,27 +6415,27 @@ const Rs = (v) => ({
|
|
6415
6415
|
status: "clean",
|
6416
6416
|
issues: [],
|
6417
6417
|
value: v
|
6418
|
-
}), Ds = ({ value: v }) => v,
|
6418
|
+
}), Ds = ({ value: v }) => v, bt = (v, d) => {
|
6419
6419
|
const c = v(Rs(d));
|
6420
6420
|
if (c.status !== "clean")
|
6421
6421
|
throw new Ns(c.issues);
|
6422
6422
|
return Ds(c);
|
6423
6423
|
}, Hs = (v) => (d) => {
|
6424
6424
|
let { status: c, issues: g } = d;
|
6425
|
-
const
|
6425
|
+
const P = {};
|
6426
6426
|
for (const s of Object.keys(v)) {
|
6427
6427
|
let a = v[s](d);
|
6428
|
-
a.status === "abort" && (c = "abort", g = [...g, ...a.issues]),
|
6428
|
+
a.status === "abort" && (c = "abort", g = [...g, ...a.issues]), P[s] = a.value;
|
6429
6429
|
}
|
6430
|
-
return { status: c, issues: g, value:
|
6430
|
+
return { status: c, issues: g, value: P };
|
6431
6431
|
}, Be = (v) => (d) => {
|
6432
6432
|
let { issues: c } = d, g = "clean";
|
6433
|
-
const
|
6433
|
+
const P = {};
|
6434
6434
|
for (const s of Object.keys(v)) {
|
6435
6435
|
let a = v[s](d);
|
6436
|
-
a.status !== "clean" && (g = a.status), !(a.value === null && a.status === "clean") && (c = [...c, ...a.issues],
|
6436
|
+
a.status !== "clean" && (g = a.status), !(a.value === null && a.status === "clean") && (c = [...c, ...a.issues], P[s] = a.value);
|
6437
6437
|
}
|
6438
|
-
return { status: g, issues: c, value:
|
6438
|
+
return { status: g, issues: c, value: P };
|
6439
6439
|
}, Fs = (...v) => (d) => {
|
6440
6440
|
for (let c = 0; c < v.length && (d = v[c](d), d.status !== "abort"); c++)
|
6441
6441
|
;
|
@@ -6444,7 +6444,7 @@ const Rs = (v) => ({
|
|
6444
6444
|
for (let c = 0; c < v.length; c++)
|
6445
6445
|
d = v[c](d);
|
6446
6446
|
return d;
|
6447
|
-
},
|
6447
|
+
}, bi = (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
6449
|
let g = c.getAttribute(v);
|
6450
6450
|
return g === null ? {
|
@@ -6456,14 +6456,14 @@ const Rs = (v) => ({
|
|
6456
6456
|
let d = parseInt(v.value);
|
6457
6457
|
return isNaN(d) ? {
|
6458
6458
|
status: "abort",
|
6459
|
-
issues: [...v.issues,
|
6459
|
+
issues: [...v.issues, qs(v.value)],
|
6460
6460
|
value: d
|
6461
6461
|
} : { ...v, value: d };
|
6462
6462
|
}, Us = () => (v) => {
|
6463
6463
|
let d = parseFloat(v.value);
|
6464
6464
|
return isNaN(d) ? {
|
6465
6465
|
status: "abort",
|
6466
|
-
issues: [...v.issues,
|
6466
|
+
issues: [...v.issues, js(v.value)],
|
6467
6467
|
value: d
|
6468
6468
|
} : { ...v, value: d };
|
6469
6469
|
}, ze = () => (v) => {
|
@@ -6473,18 +6473,18 @@ const Rs = (v) => ({
|
|
6473
6473
|
} catch (c) {
|
6474
6474
|
return {
|
6475
6475
|
status: "abort",
|
6476
|
-
issues: [...v.issues,
|
6476
|
+
issues: [...v.issues, Vs(c)],
|
6477
6477
|
value: null
|
6478
6478
|
};
|
6479
6479
|
}
|
6480
6480
|
return { ...v, value: d };
|
6481
|
-
}, Ws = () => (v) => ({ ...v, value: v.value.toLowerCase() === "true" }), Ee = (v, ...d) => Fs(Q(v), ...d),
|
6481
|
+
}, Ws = () => (v) => ({ ...v, value: v.value.toLowerCase() === "true" }), Ee = (v, ...d) => Fs(Q(v), ...d), qs = (v) => ({
|
6482
6482
|
code: "parse_int",
|
6483
6483
|
message: `could not parse int given: "${v}"`
|
6484
|
-
}),
|
6484
|
+
}), js = (v) => ({
|
6485
6485
|
code: "parse_float",
|
6486
6486
|
message: `could not parse float given: "${v}"`
|
6487
|
-
}),
|
6487
|
+
}), Vs = (v) => ({
|
6488
6488
|
code: "parse_json",
|
6489
6489
|
message: v.message
|
6490
6490
|
}), Js = (v, d) => ({
|
@@ -6494,17 +6494,17 @@ const Rs = (v) => ({
|
|
6494
6494
|
constructor() {
|
6495
6495
|
super(), this.map = null;
|
6496
6496
|
const d = (g) => {
|
6497
|
-
const { bounds:
|
6498
|
-
this.map !== null && this.map[s](
|
6497
|
+
const { bounds: P, method: s } = g.detail;
|
6498
|
+
this.map !== null && this.map[s](P);
|
6499
6499
|
};
|
6500
6500
|
this.addEventListener(Kn, d), this.addEventListener(Yn, d), this.addEventListener(Xn, (g) => {
|
6501
|
-
const { name:
|
6502
|
-
this.map.createPane(
|
6501
|
+
const { name: P } = g.detail;
|
6502
|
+
this.map.createPane(P);
|
6503
6503
|
}), new MutationObserver(function(g) {
|
6504
|
-
g.forEach((
|
6505
|
-
if (
|
6506
|
-
const s =
|
6507
|
-
|
6504
|
+
g.forEach((P) => {
|
6505
|
+
if (P.target instanceof Ze) {
|
6506
|
+
const s = P.target;
|
6507
|
+
P.removedNodes.forEach((a) => {
|
6508
6508
|
a instanceof zt && s.map !== null && a.layer !== null && (s.dispatchEvent(new CustomEvent(Gn, {
|
6509
6509
|
bubbles: !0,
|
6510
6510
|
detail: {
|
@@ -6518,7 +6518,7 @@ const Rs = (v) => ({
|
|
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
|
+
if (this.hasAttribute("max-zoom") && (d.maxZoom = parseFloat(this.getAttribute("max-zoom"))), this.hasAttribute("min-zoom") && (d.minZoom = parseFloat(this.getAttribute("min-zoom"))), this.hasAttribute("max-bounds") && (d.maxBounds = JSON.parse(this.getAttribute("max-bounds"))), this.hasAttribute("attribution-control") && (d.attributionControl = this.getAttribute("attribution-control").toLowerCase() === "true"), this.map = G.map(this, d), this.map.whenReady(() => {
|
6522
6522
|
this.dispatchEvent(
|
6523
6523
|
new CustomEvent("ready", {
|
6524
6524
|
bubbles: !0,
|
@@ -6532,20 +6532,20 @@ const Rs = (v) => ({
|
|
6532
6532
|
const g = Hs({
|
6533
6533
|
zoom: Ee("zoom", Gs()),
|
6534
6534
|
center: Ee("center", ze())
|
6535
|
-
}), { zoom:
|
6536
|
-
this.map.setView(s,
|
6535
|
+
}), { zoom: P, center: s } = bt(g, this);
|
6536
|
+
this.map.setView(s, P);
|
6537
6537
|
}
|
6538
6538
|
if (this.hasAttribute("locate")) {
|
6539
6539
|
const g = Ee("locate", ze());
|
6540
|
-
this.map.locate(
|
6540
|
+
this.map.locate(bt(g, this));
|
6541
6541
|
}
|
6542
6542
|
const c = {
|
6543
|
-
"l-control-layers": (g,
|
6544
|
-
default: (g,
|
6543
|
+
"l-control-layers": (g, P) => g.addTo(P),
|
6544
|
+
default: (g, P) => P.addLayer(g)
|
6545
6545
|
};
|
6546
6546
|
this.addEventListener(et, (g) => {
|
6547
|
-
const { layer:
|
6548
|
-
(c[s] || c.default)(
|
6547
|
+
const { layer: P } = g.detail, s = g.target.localName;
|
6548
|
+
(c[s] || c.default)(P, this.map);
|
6549
6549
|
}), this.addEventListener(Gn, (g) => {
|
6550
6550
|
this.map !== null && this.map.removeLayer(g.detail.layer);
|
6551
6551
|
});
|
@@ -6555,19 +6555,19 @@ const Rs = (v) => ({
|
|
6555
6555
|
}
|
6556
6556
|
};
|
6557
6557
|
Lt(Ze, "observedAttributes", ["zoom", "center", "zoom-control"]);
|
6558
|
-
let
|
6558
|
+
let wi = Ze;
|
6559
6559
|
class Qn extends zt {
|
6560
6560
|
constructor() {
|
6561
6561
|
super(), this.layer = null, this.addEventListener(Oe, (d) => {
|
6562
6562
|
d.stopPropagation(), this.layer.setIcon(d.detail.icon);
|
6563
|
-
}), this.addEventListener(
|
6563
|
+
}), this.addEventListener(Pi, (d) => {
|
6564
6564
|
d.stopPropagation(), this.layer.bindTooltip(d.detail.tooltip);
|
6565
6565
|
});
|
6566
6566
|
}
|
6567
6567
|
connectedCallback() {
|
6568
|
-
const d =
|
6568
|
+
const d = bt(Ee("lat-lng", ze()), this), c = bt(
|
6569
6569
|
Be({
|
6570
|
-
opacity: Li(ut(Q("opacity")),
|
6570
|
+
opacity: Li(ut(Q("opacity")), bi(Us()))
|
6571
6571
|
}),
|
6572
6572
|
this
|
6573
6573
|
), g = this.closest("l-pane");
|
@@ -6579,14 +6579,14 @@ class Qn extends zt {
|
|
6579
6579
|
const { content: a, openPopup: h } = s.detail, l = this.layer.bindPopup(a);
|
6580
6580
|
h && l.openPopup();
|
6581
6581
|
});
|
6582
|
-
const
|
6582
|
+
const P = new CustomEvent(et, {
|
6583
6583
|
cancelable: !0,
|
6584
6584
|
bubbles: !0,
|
6585
6585
|
detail: {
|
6586
6586
|
layer: this.layer
|
6587
6587
|
}
|
6588
6588
|
});
|
6589
|
-
this.dispatchEvent(
|
6589
|
+
this.dispatchEvent(P);
|
6590
6590
|
}
|
6591
6591
|
attributeChangedCallback(d, c, g) {
|
6592
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))));
|
@@ -6612,7 +6612,7 @@ class Ys extends HTMLElement {
|
|
6612
6612
|
let c = !1;
|
6613
6613
|
const g = this.getAttribute("open-popup");
|
6614
6614
|
g !== null && (c = g !== "false");
|
6615
|
-
const
|
6615
|
+
const P = new CustomEvent(Jn, {
|
6616
6616
|
cancelable: !0,
|
6617
6617
|
bubbles: !0,
|
6618
6618
|
detail: {
|
@@ -6620,7 +6620,7 @@ class Ys extends HTMLElement {
|
|
6620
6620
|
openPopup: c
|
6621
6621
|
}
|
6622
6622
|
});
|
6623
|
-
this.dispatchEvent(
|
6623
|
+
this.dispatchEvent(P);
|
6624
6624
|
}
|
6625
6625
|
}
|
6626
6626
|
const to = (v) => {
|
@@ -6636,17 +6636,17 @@ class Ci extends zt {
|
|
6636
6636
|
super(), this.layer = null;
|
6637
6637
|
}
|
6638
6638
|
connectedCallback() {
|
6639
|
-
const d =
|
6639
|
+
const d = bt(Q("url-template"), this), c = Ci.parseTemplateAttributes(d), g = {};
|
6640
6640
|
for (const _ of c) {
|
6641
|
-
const
|
6642
|
-
|
6641
|
+
const w = this.getAttribute(_);
|
6642
|
+
w !== null && (g[_] = w);
|
6643
6643
|
}
|
6644
|
-
const
|
6645
|
-
this.parentElement.tagName.toLowerCase() === "l-pane" && (
|
6644
|
+
const P = {};
|
6645
|
+
this.parentElement.tagName.toLowerCase() === "l-pane" && (P.pane = this.parentElement.getAttribute("name"));
|
6646
6646
|
const s = this.getAttribute("name"), a = Be({
|
6647
6647
|
attribution: ut(Q("attribution")),
|
6648
6648
|
errorTileUrl: ut(Q("error-tile-url"))
|
6649
|
-
}), h =
|
6649
|
+
}), h = bt(a, this), l = this.getAttribute("zoom-offset");
|
6650
6650
|
if (l) {
|
6651
6651
|
const _ = parseInt(l);
|
6652
6652
|
isNaN(_) || (h.zoomOffset = _);
|
@@ -6654,7 +6654,7 @@ class Ci extends zt {
|
|
6654
6654
|
const p = to(this);
|
6655
6655
|
this.layer = G.tileLayer(d, {
|
6656
6656
|
...g,
|
6657
|
-
...
|
6657
|
+
...P,
|
6658
6658
|
...h,
|
6659
6659
|
...p
|
6660
6660
|
});
|
@@ -6675,7 +6675,7 @@ class Ci extends zt {
|
|
6675
6675
|
}
|
6676
6676
|
class Xs extends zt {
|
6677
6677
|
static get observedAttributes() {
|
6678
|
-
return ["options"];
|
6678
|
+
return ["options", "layers", "styles", "format", "transparent", "version", "crs", "uppercase"];
|
6679
6679
|
}
|
6680
6680
|
constructor() {
|
6681
6681
|
super(), this.layer = null;
|
@@ -6684,10 +6684,18 @@ class Xs extends zt {
|
|
6684
6684
|
this.initLayer();
|
6685
6685
|
}
|
6686
6686
|
attributeChangedCallback(d, c, g) {
|
6687
|
-
|
6687
|
+
if (this.layer && c !== g)
|
6688
|
+
switch (d) {
|
6689
|
+
case "options":
|
6690
|
+
this.layer.setParams(this._parseNonStandardOptions(g));
|
6691
|
+
break;
|
6692
|
+
default:
|
6693
|
+
this.layer.setParams({ [d]: g });
|
6694
|
+
break;
|
6695
|
+
}
|
6688
6696
|
}
|
6689
6697
|
initLayer() {
|
6690
|
-
const d =
|
6698
|
+
const d = bt(Q("url-template"), this), c = this.getAttribute("name"), g = Be({
|
6691
6699
|
// Leaflet.tileLayer default options: https://leafletjs.com/reference.html#tilelayer-wms-layers
|
6692
6700
|
layers: Q("layers"),
|
6693
6701
|
styles: ut(Q("styles")),
|
@@ -6698,35 +6706,32 @@ class Xs extends zt {
|
|
6698
6706
|
uppercase: ut(Q("uppercase")),
|
6699
6707
|
// Inherited option from Layer: https://leafletjs.com/reference.html#tilelayer-wms-attribution
|
6700
6708
|
attribution: ut(Q("attribution"))
|
6701
|
-
}),
|
6702
|
-
|
6703
|
-
|
6704
|
-
return JSON.parse(s);
|
6705
|
-
} catch (y) {
|
6706
|
-
return console.error(
|
6707
|
-
"Error whilst parsing JSON for options attribute in l-tile-layer-wms",
|
6708
|
-
y
|
6709
|
-
), {};
|
6710
|
-
}
|
6711
|
-
else
|
6712
|
-
return {};
|
6713
|
-
}, h = {};
|
6714
|
-
this.parentElement.tagName.toLowerCase() === "l-pane" && (h.pane = this.parentElement.getAttribute("name"));
|
6715
|
-
const l = to(this);
|
6709
|
+
}), P = bt(g, this), s = this.getAttribute("options"), a = {};
|
6710
|
+
this.parentElement.tagName.toLowerCase() === "l-pane" && (a.pane = this.parentElement.getAttribute("name"));
|
6711
|
+
const h = to(this);
|
6716
6712
|
this.layer = G.tileLayer.wms(d, {
|
6717
|
-
...
|
6718
|
-
...
|
6719
|
-
...
|
6720
|
-
...
|
6713
|
+
...P,
|
6714
|
+
...this._parseNonStandardOptions(s),
|
6715
|
+
...a,
|
6716
|
+
...h
|
6721
6717
|
});
|
6722
|
-
const
|
6718
|
+
const l = new CustomEvent(et, {
|
6723
6719
|
detail: { name: c, layer: this.layer },
|
6724
6720
|
bubbles: !0
|
6725
6721
|
});
|
6726
|
-
this.dispatchEvent(
|
6722
|
+
this.dispatchEvent(l);
|
6727
6723
|
}
|
6728
|
-
|
6729
|
-
|
6724
|
+
_parseNonStandardOptions(d) {
|
6725
|
+
if (d)
|
6726
|
+
try {
|
6727
|
+
return JSON.parse(d);
|
6728
|
+
} catch (c) {
|
6729
|
+
console.error(
|
6730
|
+
"Error whilst parsing JSON for options attribute in l-tile-layer-wms",
|
6731
|
+
c
|
6732
|
+
);
|
6733
|
+
}
|
6734
|
+
return {};
|
6730
6735
|
}
|
6731
6736
|
}
|
6732
6737
|
class eo extends HTMLElement {
|
@@ -6772,8 +6777,8 @@ class io extends zt {
|
|
6772
6777
|
const g = {
|
6773
6778
|
opacity: parseFloat(this.getAttribute("opacity") || "1.0"),
|
6774
6779
|
alt: this.getAttribute("alt") || ""
|
6775
|
-
},
|
6776
|
-
|
6780
|
+
}, P = this.closest("l-pane");
|
6781
|
+
P !== null && (g.pane = P.getAttribute("name")), this.layer = G.imageOverlay(d, JSON.parse(c), g), this.dispatchEvent(
|
6777
6782
|
new CustomEvent(et, {
|
6778
6783
|
cancelable: !0,
|
6779
6784
|
bubbles: !0,
|
@@ -6799,13 +6804,13 @@ class $s extends zt {
|
|
6799
6804
|
autoplay: !0,
|
6800
6805
|
muted: !0,
|
6801
6806
|
playsInline: !0
|
6802
|
-
},
|
6807
|
+
}, P = G.videoOverlay(d, c, g);
|
6803
6808
|
this.dispatchEvent(
|
6804
6809
|
new CustomEvent(et, {
|
6805
6810
|
cancelable: !0,
|
6806
6811
|
bubbles: !0,
|
6807
6812
|
detail: {
|
6808
|
-
layer:
|
6813
|
+
layer: P
|
6809
6814
|
}
|
6810
6815
|
})
|
6811
6816
|
);
|
@@ -6863,10 +6868,10 @@ const ue = (v) => v.replace(/-./g, (d) => d[1].toUpperCase()), tr = (v) => v.spl
|
|
6863
6868
|
*/
|
6864
6869
|
attributeChangedCallback(d, c, g) {
|
6865
6870
|
if (Ie.observedAttributes.indexOf(d) !== -1 && this.icon !== null) {
|
6866
|
-
let
|
6867
|
-
vi.indexOf(d) !== -1 ?
|
6871
|
+
let P = {};
|
6872
|
+
vi.indexOf(d) !== -1 ? P[ue(d)] = g : Wn.indexOf(d) !== -1 ? P[ue(d)] = g.toLowerCase() === "true" : P[ue(d)] = JSON.parse(g), this.icon = G.icon({
|
6868
6873
|
...this.icon.options,
|
6869
|
-
...
|
6874
|
+
...P
|
6870
6875
|
});
|
6871
6876
|
const s = new CustomEvent(Oe, {
|
6872
6877
|
cancelable: !0,
|
@@ -6888,14 +6893,14 @@ const ue = (v) => v.replace(/-./g, (d) => d[1].toUpperCase()), tr = (v) => v.spl
|
|
6888
6893
|
}), Un.forEach((g) => {
|
6889
6894
|
d[ue(g)] = Li(
|
6890
6895
|
ut(Q(g)),
|
6891
|
-
|
6896
|
+
bi(ze())
|
6892
6897
|
);
|
6893
6898
|
}), d.crossOrigin = Li(
|
6894
6899
|
ut(Q("cross-origin")),
|
6895
|
-
|
6900
|
+
bi(Ws())
|
6896
6901
|
);
|
6897
6902
|
const c = Be(d);
|
6898
|
-
return
|
6903
|
+
return bt(c, this);
|
6899
6904
|
}
|
6900
6905
|
};
|
6901
6906
|
Lt(Ie, "observedAttributes", [
|
@@ -6903,7 +6908,7 @@ Lt(Ie, "observedAttributes", [
|
|
6903
6908
|
...Un,
|
6904
6909
|
...Wn
|
6905
6910
|
]);
|
6906
|
-
let
|
6911
|
+
let xi = Ie, er = class extends HTMLElement {
|
6907
6912
|
constructor() {
|
6908
6913
|
super(), this.icon = null;
|
6909
6914
|
}
|
@@ -6932,7 +6937,7 @@ class no extends HTMLElement {
|
|
6932
6937
|
interactive: this.hasAttribute("interactive"),
|
6933
6938
|
direction: this.getAttribute("direction") ?? "auto"
|
6934
6939
|
}), this.tooltip.setContent(this.getAttribute("content"));
|
6935
|
-
const d = new CustomEvent(
|
6940
|
+
const d = new CustomEvent(Pi, {
|
6936
6941
|
cancelable: !0,
|
6937
6942
|
bubbles: !0,
|
6938
6943
|
detail: {
|
@@ -7021,7 +7026,7 @@ const Ti = (v) => {
|
|
7021
7026
|
interactiveLayer: [X("interactive", "boolean", !0)]
|
7022
7027
|
};
|
7023
7028
|
return or(v).flatMap((c) => d[c]);
|
7024
|
-
},
|
7029
|
+
}, qn = {
|
7025
7030
|
circle: ["path"],
|
7026
7031
|
polyline: ["path"],
|
7027
7032
|
polygon: ["polyline"],
|
@@ -7030,8 +7035,8 @@ const Ti = (v) => {
|
|
7030
7035
|
interactiveLayer: []
|
7031
7036
|
}, or = (v) => {
|
7032
7037
|
let d = v, c = [v];
|
7033
|
-
for (;
|
7034
|
-
let g =
|
7038
|
+
for (; qn[d].length > 0; ) {
|
7039
|
+
let g = qn[d][0];
|
7035
7040
|
c.push(g), d = g;
|
7036
7041
|
}
|
7037
7042
|
return c;
|
@@ -7084,18 +7089,18 @@ const Ti = (v) => {
|
|
7084
7089
|
v.hasAttribute(g.kebab) && (c[g.camel] = g.parser(v.getAttribute(g.kebab)));
|
7085
7090
|
}), c;
|
7086
7091
|
}, hr = (v, d) => Ti(d).map((c) => {
|
7087
|
-
const g = Q(c.kebab),
|
7088
|
-
return c.parser(
|
7092
|
+
const g = Q(c.kebab), P = bt(g, v);
|
7093
|
+
return c.parser(P);
|
7089
7094
|
}), ke = (v, d) => {
|
7090
7095
|
class c extends HTMLElement {
|
7091
7096
|
constructor() {
|
7092
|
-
super(), this.layer = null, this.addEventListener(
|
7093
|
-
this.layer !== null && this.layer.bindTooltip(
|
7097
|
+
super(), this.layer = null, this.addEventListener(Pi, (P) => {
|
7098
|
+
this.layer !== null && this.layer.bindTooltip(P.detail.tooltip);
|
7094
7099
|
});
|
7095
7100
|
}
|
7096
7101
|
connectedCallback() {
|
7097
|
-
const
|
7098
|
-
this.layer = v(...
|
7102
|
+
const P = hr(this, d), s = ar(this, d);
|
7103
|
+
this.layer = v(...P, s);
|
7099
7104
|
const a = new CustomEvent(et, {
|
7100
7105
|
cancelable: !0,
|
7101
7106
|
bubbles: !0,
|
@@ -7109,17 +7114,17 @@ const Ti = (v) => {
|
|
7109
7114
|
* @param {string} attName
|
7110
7115
|
* @param {string} newValue
|
7111
7116
|
*/
|
7112
|
-
attributeChangedCallback(
|
7113
|
-
this.layer !== null && sr(this.layer, d,
|
7117
|
+
attributeChangedCallback(P, s, a) {
|
7118
|
+
this.layer !== null && sr(this.layer, d, P, a);
|
7114
7119
|
}
|
7115
7120
|
}
|
7116
7121
|
return Lt(c, "observedAttributes", rr(d)), c;
|
7117
7122
|
};
|
7118
|
-
var
|
7123
|
+
var jn = { exports: {} };
|
7119
7124
|
(function(v, d) {
|
7120
7125
|
(function(c, g) {
|
7121
7126
|
g(d);
|
7122
|
-
})(
|
7127
|
+
})(Vn, function(c) {
|
7123
7128
|
var g = L.MarkerClusterGroup = L.FeatureGroup.extend({
|
7124
7129
|
options: {
|
7125
7130
|
maxClusterRadius: 80,
|
@@ -7191,18 +7196,18 @@ var qn = { exports: {} };
|
|
7191
7196
|
addLayers: function(s, a) {
|
7192
7197
|
if (!L.Util.isArray(s))
|
7193
7198
|
return this.addLayer(s);
|
7194
|
-
var h = this._featureGroup, l = this._nonPointGroup, p = this.options.chunkedLoading, y = this.options.chunkInterval, _ = this.options.chunkProgress,
|
7199
|
+
var h = this._featureGroup, l = this._nonPointGroup, p = this.options.chunkedLoading, y = this.options.chunkInterval, _ = this.options.chunkProgress, w = s.length, b = 0, M = !0, C;
|
7195
7200
|
if (this._map) {
|
7196
7201
|
var H = (/* @__PURE__ */ new Date()).getTime(), A = L.bind(function() {
|
7197
7202
|
var W = (/* @__PURE__ */ new Date()).getTime();
|
7198
|
-
for (this._map && this._unspiderfy && this._unspiderfy();
|
7199
|
-
if (p &&
|
7200
|
-
var
|
7201
|
-
if (
|
7203
|
+
for (this._map && this._unspiderfy && this._unspiderfy(); b < w; b++) {
|
7204
|
+
if (p && b % 200 === 0) {
|
7205
|
+
var wt = (/* @__PURE__ */ new Date()).getTime() - W;
|
7206
|
+
if (wt > y)
|
7202
7207
|
break;
|
7203
7208
|
}
|
7204
|
-
if (C = s[
|
7205
|
-
M && (s = s.slice(), M = !1), this._extractNonGroupLayers(C, s),
|
7209
|
+
if (C = s[b], C instanceof L.LayerGroup) {
|
7210
|
+
M && (s = s.slice(), M = !1), this._extractNonGroupLayers(C, s), w = s.length;
|
7206
7211
|
continue;
|
7207
7212
|
}
|
7208
7213
|
if (!C.getLatLng) {
|
@@ -7210,17 +7215,17 @@ var qn = { exports: {} };
|
|
7210
7215
|
continue;
|
7211
7216
|
}
|
7212
7217
|
if (!this.hasLayer(C) && (this._addLayer(C, this._maxZoom), a || this.fire("layeradd", { layer: C }), C.__parent && C.__parent.getChildCount() === 2)) {
|
7213
|
-
var at = C.__parent.getAllChildMarkers(),
|
7214
|
-
h.removeLayer(
|
7218
|
+
var at = C.__parent.getAllChildMarkers(), Vt = at[0] === C ? at[1] : at[0];
|
7219
|
+
h.removeLayer(Vt);
|
7215
7220
|
}
|
7216
7221
|
}
|
7217
|
-
_ && _(
|
7222
|
+
_ && _(b, w, (/* @__PURE__ */ new Date()).getTime() - H), b === w ? (this._topClusterLevel._recalculateBounds(), this._refreshClustersIcons(), this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds)) : setTimeout(A, this.options.chunkDelay);
|
7218
7223
|
}, this);
|
7219
7224
|
A();
|
7220
7225
|
} else
|
7221
|
-
for (var U = this._needsClustering;
|
7222
|
-
if (C = s[
|
7223
|
-
M && (s = s.slice(), M = !1), this._extractNonGroupLayers(C, s),
|
7226
|
+
for (var U = this._needsClustering; b < w; b++) {
|
7227
|
+
if (C = s[b], C instanceof L.LayerGroup) {
|
7228
|
+
M && (s = s.slice(), M = !1), this._extractNonGroupLayers(C, s), w = s.length;
|
7224
7229
|
continue;
|
7225
7230
|
}
|
7226
7231
|
if (!C.getLatLng) {
|
@@ -7246,10 +7251,10 @@ var qn = { exports: {} };
|
|
7246
7251
|
}
|
7247
7252
|
if (this._unspiderfy) {
|
7248
7253
|
this._unspiderfy();
|
7249
|
-
var
|
7250
|
-
for (a = 0; a <
|
7251
|
-
if (h =
|
7252
|
-
this._extractNonGroupLayers(h,
|
7254
|
+
var w = s.slice(), b = l;
|
7255
|
+
for (a = 0; a < b; a++) {
|
7256
|
+
if (h = w[a], h instanceof L.LayerGroup) {
|
7257
|
+
this._extractNonGroupLayers(h, w), b = w.length;
|
7253
7258
|
continue;
|
7254
7259
|
}
|
7255
7260
|
this._unspiderfyLayer(h);
|
@@ -7388,11 +7393,11 @@ var qn = { exports: {} };
|
|
7388
7393
|
//Internal function for removing a marker from everything.
|
7389
7394
|
//dontUpdateMap: set to true if you will handle updating the map manually (for bulk functions)
|
7390
7395
|
_removeLayer: function(s, a, h) {
|
7391
|
-
var l = this._gridClusters, p = this._gridUnclustered, y = this._featureGroup, _ = this._map,
|
7396
|
+
var l = this._gridClusters, p = this._gridUnclustered, y = this._featureGroup, _ = this._map, w = Math.floor(this._map.getMinZoom());
|
7392
7397
|
a && this._removeFromGridUnclustered(s, this._maxZoom);
|
7393
|
-
var
|
7394
|
-
for (this._arraySplice(M, s);
|
7395
|
-
a &&
|
7398
|
+
var b = s.__parent, M = b._markers, C;
|
7399
|
+
for (this._arraySplice(M, s); b && (b._childCount--, b._boundsNeedUpdate = !0, !(b._zoom < w)); )
|
7400
|
+
a && b._childCount <= 1 ? (C = b._markers[0] === s ? b._markers[1] : b._markers[0], l[b._zoom].removeObject(b, _.project(b._cLatLng, b._zoom)), p[b._zoom].addObject(C, _.project(C.getLatLng(), b._zoom)), this._arraySplice(b.__parent._childClusters, b), b.__parent._markers.push(C), C.__parent = b.__parent, b._icon && (y.removeLayer(b), h || y.addLayer(C))) : b._iconNeedsUpdate = !0, b = b.__parent;
|
7396
7401
|
delete s.__parent;
|
7397
7402
|
},
|
7398
7403
|
_isOrIsParent: function(s, a) {
|
@@ -7467,20 +7472,20 @@ var qn = { exports: {} };
|
|
7467
7472
|
var h = this._gridClusters, l = this._gridUnclustered, p = Math.floor(this._map.getMinZoom()), y, _;
|
7468
7473
|
for (this.options.singleMarkerMode && this._overrideMarkerIcon(s), s.on(this._childMarkerEventHandlers, this); a >= p; a--) {
|
7469
7474
|
y = this._map.project(s.getLatLng(), a);
|
7470
|
-
var
|
7471
|
-
if (
|
7472
|
-
|
7475
|
+
var w = h[a].getNearObject(y);
|
7476
|
+
if (w) {
|
7477
|
+
w._addChild(s), s.__parent = w;
|
7473
7478
|
return;
|
7474
7479
|
}
|
7475
|
-
if (
|
7476
|
-
var
|
7477
|
-
|
7478
|
-
var M = new this._markerCluster(this, a,
|
7479
|
-
h[a].addObject(M, this._map.project(M._cLatLng, a)),
|
7480
|
+
if (w = l[a].getNearObject(y), w) {
|
7481
|
+
var b = w.__parent;
|
7482
|
+
b && this._removeLayer(w, !1);
|
7483
|
+
var M = new this._markerCluster(this, a, w, s);
|
7484
|
+
h[a].addObject(M, this._map.project(M._cLatLng, a)), w.__parent = M, s.__parent = M;
|
7480
7485
|
var C = M;
|
7481
|
-
for (_ = a - 1; _ >
|
7482
|
-
C = new this._markerCluster(this, _, C), h[_].addObject(C, this._map.project(
|
7483
|
-
|
7486
|
+
for (_ = a - 1; _ > b._zoom; _--)
|
7487
|
+
C = new this._markerCluster(this, _, C), h[_].addObject(C, this._map.project(w.getLatLng(), _));
|
7488
|
+
b._addChild(C), this._removeFromGridUnclustered(w, a);
|
7484
7489
|
return;
|
7485
7490
|
}
|
7486
7491
|
l[a].addObject(s, y);
|
@@ -7605,9 +7610,9 @@ var qn = { exports: {} };
|
|
7605
7610
|
_animationZoomIn: function(s, a) {
|
7606
7611
|
var h = this._getExpandedVisibleBounds(), l = this._featureGroup, p = Math.floor(this._map.getMinZoom()), y;
|
7607
7612
|
this._ignoreMove = !0, this._topClusterLevel._recursively(h, s, p, function(_) {
|
7608
|
-
var
|
7609
|
-
for (h.contains(
|
7610
|
-
M =
|
7613
|
+
var w = _._latlng, b = _._markers, M;
|
7614
|
+
for (h.contains(w) || (w = null), _._isSingleParent() && s + 1 === a ? (l.removeLayer(_), _._recursivelyAddChildrenToMap(null, a, h)) : (_.clusterHide(), _._recursivelyAddChildrenToMap(w, a, h)), y = b.length - 1; y >= 0; y--)
|
7615
|
+
M = b[y], h.contains(M._latlng) || l.removeLayer(M);
|
7611
7616
|
}), this._forceLayout(), this._topClusterLevel._recursivelyBecomeVisible(h, a), l.eachLayer(function(_) {
|
7612
7617
|
!(_ instanceof L.MarkerCluster) && _._icon && _.clusterShow();
|
7613
7618
|
}), this._topClusterLevel._recursively(h, s, a, function(_) {
|
@@ -7638,8 +7643,8 @@ var qn = { exports: {} };
|
|
7638
7643
|
var _ = s._markers[0];
|
7639
7644
|
this._ignoreMove = !0, _.setLatLng(_.getLatLng()), this._ignoreMove = !1, _.clusterShow && _.clusterShow();
|
7640
7645
|
} else
|
7641
|
-
s._recursively(l, h, p, function(
|
7642
|
-
|
7646
|
+
s._recursively(l, h, p, function(w) {
|
7647
|
+
w._recursivelyRemoveChildrenFromMap(l, p, a + 1);
|
7643
7648
|
});
|
7644
7649
|
y._animationEnd();
|
7645
7650
|
});
|
@@ -7655,7 +7660,7 @@ var qn = { exports: {} };
|
|
7655
7660
|
}), L.markerClusterGroup = function(s) {
|
7656
7661
|
return new L.MarkerClusterGroup(s);
|
7657
7662
|
};
|
7658
|
-
var
|
7663
|
+
var P = L.MarkerCluster = L.Marker.extend({
|
7659
7664
|
options: L.Icon.prototype.options,
|
7660
7665
|
initialize: function(s, a, h, l) {
|
7661
7666
|
L.Marker.prototype.initialize.call(
|
@@ -7681,10 +7686,10 @@ var qn = { exports: {} };
|
|
7681
7686
|
zoomToBounds: function(s) {
|
7682
7687
|
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; ) {
|
7683
7688
|
p++;
|
7684
|
-
var
|
7689
|
+
var w = [];
|
7685
7690
|
for (_ = 0; _ < a.length; _++)
|
7686
|
-
|
7687
|
-
a =
|
7691
|
+
w = w.concat(a[_]._childClusters);
|
7692
|
+
a = w;
|
7688
7693
|
}
|
7689
7694
|
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);
|
7690
7695
|
},
|
@@ -7724,12 +7729,12 @@ var qn = { exports: {} };
|
|
7724
7729
|
s._southWest && (s._southWest.lat = 1 / 0, s._southWest.lng = 1 / 0), s._northEast && (s._northEast.lat = -1 / 0, s._northEast.lng = -1 / 0);
|
7725
7730
|
},
|
7726
7731
|
_recalculateBounds: function() {
|
7727
|
-
var s = this._markers, a = this._childClusters, h = 0, l = 0, p = this._childCount, y, _,
|
7732
|
+
var s = this._markers, a = this._childClusters, h = 0, l = 0, p = this._childCount, y, _, w, b;
|
7728
7733
|
if (p !== 0) {
|
7729
7734
|
for (this._resetBounds(), y = 0; y < s.length; y++)
|
7730
|
-
|
7735
|
+
w = s[y]._latlng, this._bounds.extend(w), h += w.lat, l += w.lng;
|
7731
7736
|
for (y = 0; y < a.length; y++)
|
7732
|
-
_ = a[y], _._boundsNeedUpdate && _._recalculateBounds(), this._bounds.extend(_._bounds),
|
7737
|
+
_ = a[y], _._boundsNeedUpdate && _._recalculateBounds(), this._bounds.extend(_._bounds), w = _._wLatLng, b = _._childCount, h += w.lat * b, l += w.lng * b;
|
7733
7738
|
this._latlng = this._wLatLng = new L.LatLng(h / p, l / p), this._boundsNeedUpdate = !1;
|
7734
7739
|
}
|
7735
7740
|
},
|
@@ -7825,10 +7830,10 @@ var qn = { exports: {} };
|
|
7825
7830
|
// runAtEveryLevel: function that takes an L.MarkerCluster as an argument that should be applied on every level
|
7826
7831
|
// runAtBottomLevel: function that takes an L.MarkerCluster as an argument that should be applied at only the bottom level
|
7827
7832
|
_recursively: function(s, a, h, l, p) {
|
7828
|
-
var y = this._childClusters, _ = this._zoom,
|
7833
|
+
var y = this._childClusters, _ = this._zoom, w, b;
|
7829
7834
|
if (a <= _ && (l && l(this), p && _ === h && p(this)), _ < a || _ < h)
|
7830
|
-
for (
|
7831
|
-
|
7835
|
+
for (w = y.length - 1; w >= 0; w--)
|
7836
|
+
b = y[w], b._boundsNeedUpdate && b._recalculateBounds(), s.intersects(b._bounds) && b._recursively(s, a, h, l, p);
|
7832
7837
|
},
|
7833
7838
|
//Returns true if we are the parent of only one cluster and that cluster is the same as us
|
7834
7839
|
_isSingleParent: function() {
|
@@ -7847,36 +7852,36 @@ var qn = { exports: {} };
|
|
7847
7852
|
this._cellSize = s, this._sqCellSize = s * s, this._grid = {}, this._objectPoint = {};
|
7848
7853
|
}, L.DistanceGrid.prototype = {
|
7849
7854
|
addObject: function(s, a) {
|
7850
|
-
var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid, y = p[l] = p[l] || {}, _ = y[h] = y[h] || [],
|
7851
|
-
this._objectPoint[
|
7855
|
+
var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid, y = p[l] = p[l] || {}, _ = y[h] = y[h] || [], w = L.Util.stamp(s);
|
7856
|
+
this._objectPoint[w] = a, _.push(s);
|
7852
7857
|
},
|
7853
7858
|
updateObject: function(s, a) {
|
7854
7859
|
this.removeObject(s), this.addObject(s, a);
|
7855
7860
|
},
|
7856
7861
|
//Returns true if the object was found
|
7857
7862
|
removeObject: function(s, a) {
|
7858
|
-
var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid, y = p[l] = p[l] || {}, _ = y[h] = y[h] || [],
|
7859
|
-
for (delete this._objectPoint[L.Util.stamp(s)],
|
7860
|
-
if (_[
|
7861
|
-
return _.splice(
|
7863
|
+
var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid, y = p[l] = p[l] || {}, _ = y[h] = y[h] || [], w, b;
|
7864
|
+
for (delete this._objectPoint[L.Util.stamp(s)], w = 0, b = _.length; w < b; w++)
|
7865
|
+
if (_[w] === s)
|
7866
|
+
return _.splice(w, 1), b === 1 && delete y[h], !0;
|
7862
7867
|
},
|
7863
7868
|
eachObject: function(s, a) {
|
7864
|
-
var h, l, p, y, _,
|
7869
|
+
var h, l, p, y, _, w, b, M = this._grid;
|
7865
7870
|
for (h in M) {
|
7866
7871
|
_ = M[h];
|
7867
7872
|
for (l in _)
|
7868
|
-
for (
|
7869
|
-
|
7873
|
+
for (w = _[l], p = 0, y = w.length; p < y; p++)
|
7874
|
+
b = s.call(a, w[p]), b && (p--, y--);
|
7870
7875
|
}
|
7871
7876
|
},
|
7872
7877
|
getNearObject: function(s) {
|
7873
|
-
var a = this._getCoord(s.x), h = this._getCoord(s.y), l, p, y, _,
|
7878
|
+
var a = this._getCoord(s.x), h = this._getCoord(s.y), l, p, y, _, w, b, M, C, H = this._objectPoint, A = this._sqCellSize, U = null;
|
7874
7879
|
for (l = h - 1; l <= h + 1; l++)
|
7875
7880
|
if (_ = this._grid[l], _) {
|
7876
7881
|
for (p = a - 1; p <= a + 1; p++)
|
7877
|
-
if (
|
7878
|
-
for (y = 0,
|
7879
|
-
M =
|
7882
|
+
if (w = _[p], w)
|
7883
|
+
for (y = 0, b = w.length; y < b; y++)
|
7884
|
+
M = w[y], C = this._sqDist(H[L.Util.stamp(M)], s), (C < A || C <= A && U === null) && (A = C, U = M);
|
7880
7885
|
}
|
7881
7886
|
return U;
|
7882
7887
|
},
|
@@ -7908,13 +7913,13 @@ var qn = { exports: {} };
|
|
7908
7913
|
* in consideration for the hull.
|
7909
7914
|
*/
|
7910
7915
|
findMostDistantPointFromBaseLine: function(s, a) {
|
7911
|
-
var h = 0, l = null, p = [], y, _,
|
7916
|
+
var h = 0, l = null, p = [], y, _, w;
|
7912
7917
|
for (y = a.length - 1; y >= 0; y--) {
|
7913
|
-
if (_ = a[y],
|
7918
|
+
if (_ = a[y], w = this.getDistant(_, s), w > 0)
|
7914
7919
|
p.push(_);
|
7915
7920
|
else
|
7916
7921
|
continue;
|
7917
|
-
|
7922
|
+
w > h && (h = w, l = _);
|
7918
7923
|
}
|
7919
7924
|
return { maxPoint: l, newPoints: p };
|
7920
7925
|
},
|
@@ -7941,12 +7946,12 @@ var qn = { exports: {} };
|
|
7941
7946
|
* @returns {Array}
|
7942
7947
|
*/
|
7943
7948
|
getConvexHull: function(s) {
|
7944
|
-
var a = !1, h = !1, l = !1, p = !1, y = null, _ = null,
|
7949
|
+
var a = !1, h = !1, l = !1, p = !1, y = null, _ = null, w = null, b = null, M = null, C = null, H;
|
7945
7950
|
for (H = s.length - 1; H >= 0; H--) {
|
7946
7951
|
var A = s[H];
|
7947
|
-
(a === !1 || A.lat > a) && (y = A, a = A.lat), (h === !1 || A.lat < h) && (_ = A, h = A.lat), (l === !1 || A.lng > l) && (
|
7952
|
+
(a === !1 || A.lat > a) && (y = A, a = A.lat), (h === !1 || A.lat < h) && (_ = A, h = A.lat), (l === !1 || A.lng > l) && (w = A, l = A.lng), (p === !1 || A.lng < p) && (b = A, p = A.lng);
|
7948
7953
|
}
|
7949
|
-
h !== a ? (C = _, M = y) : (C =
|
7954
|
+
h !== a ? (C = _, M = y) : (C = b, M = w);
|
7950
7955
|
var U = [].concat(
|
7951
7956
|
this.buildConvexHull([C, M], s),
|
7952
7957
|
this.buildConvexHull([M, C], s)
|
@@ -7983,16 +7988,16 @@ var qn = { exports: {} };
|
|
7983
7988
|
this._group._inZoomAnimation || (this._animationUnspiderfy(s), this._group._spiderfied = null);
|
7984
7989
|
},
|
7985
7990
|
_generatePointsCircle: function(s, a) {
|
7986
|
-
var h = this._group.options.spiderfyDistanceMultiplier * this._circleFootSeparation * (2 + s), l = h / this._2PI, p = this._2PI / s, y = [], _,
|
7991
|
+
var h = this._group.options.spiderfyDistanceMultiplier * this._circleFootSeparation * (2 + s), l = h / this._2PI, p = this._2PI / s, y = [], _, w;
|
7987
7992
|
for (l = Math.max(l, 35), y.length = s, _ = 0; _ < s; _++)
|
7988
|
-
|
7993
|
+
w = this._circleStartAngle + _ * p, y[_] = new L.Point(a.x + l * Math.cos(w), a.y + l * Math.sin(w))._round();
|
7989
7994
|
return y;
|
7990
7995
|
},
|
7991
7996
|
_generatePointsSpiral: function(s, a) {
|
7992
|
-
var h = this._group.options.spiderfyDistanceMultiplier, l = h * this._spiralLengthStart, p = h * this._spiralFootSeparation, y = h * this._spiralLengthFactor * this._2PI, _ = 0,
|
7993
|
-
for (
|
7994
|
-
|
7995
|
-
return
|
7997
|
+
var h = this._group.options.spiderfyDistanceMultiplier, l = h * this._spiralLengthStart, p = h * this._spiralFootSeparation, y = h * this._spiralLengthFactor * this._2PI, _ = 0, w = [], b;
|
7998
|
+
for (w.length = s, b = s; b >= 0; b--)
|
7999
|
+
b < s && (w[b] = new L.Point(a.x + l * Math.cos(_), a.y + l * Math.sin(_))._round()), _ += p / l + b * 5e-4, l += y / _;
|
8000
|
+
return w;
|
7996
8001
|
},
|
7997
8002
|
_noanimationUnspiderfy: function() {
|
7998
8003
|
var s = this._group, a = s._map, h = s._featureGroup, l = this.getAllChildMarkers(null, !0), p, y;
|
@@ -8005,9 +8010,9 @@ var qn = { exports: {} };
|
|
8005
8010
|
}
|
8006
8011
|
}), L.MarkerClusterNonAnimated = L.MarkerCluster.extend({
|
8007
8012
|
_animationSpiderfy: function(s, a) {
|
8008
|
-
var h = this._group, l = h._map, p = h._featureGroup, y = this._group.options.spiderLegPolylineOptions, _,
|
8013
|
+
var h = this._group, l = h._map, p = h._featureGroup, y = this._group.options.spiderLegPolylineOptions, _, w, b, M;
|
8009
8014
|
for (h._ignoreMove = !0, _ = 0; _ < s.length; _++)
|
8010
|
-
M = l.layerPointToLatLng(a[_]),
|
8015
|
+
M = l.layerPointToLatLng(a[_]), w = s[_], b = new L.Polyline([this._latlng, M], y), l.addLayer(b), w._spiderLeg = b, w._preSpiderfyLatlng = w._latlng, w.setLatLng(M), w.setZIndexOffset && w.setZIndexOffset(1e6), p.addLayer(w);
|
8011
8016
|
this.setOpacity(0.3), h._ignoreMove = !1, h.fire("spiderfied", {
|
8012
8017
|
cluster: this,
|
8013
8018
|
markers: s
|
@@ -8018,11 +8023,11 @@ var qn = { exports: {} };
|
|
8018
8023
|
}
|
8019
8024
|
}), L.MarkerCluster.include({
|
8020
8025
|
_animationSpiderfy: function(s, a) {
|
8021
|
-
var h = this, l = this._group, p = l._map, y = l._featureGroup, _ = this._latlng,
|
8022
|
-
for (C === void 0 && (C = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),
|
8023
|
-
A = s[H], at = p.layerPointToLatLng(a[H]), U = new L.Polyline([_, at], M), p.addLayer(U), A._spiderLeg = U,
|
8026
|
+
var h = this, l = this._group, p = l._map, y = l._featureGroup, _ = this._latlng, w = p.latLngToLayerPoint(_), b = L.Path.SVG, M = L.extend({}, this._group.options.spiderLegPolylineOptions), C = M.opacity, H, A, U, W, wt, at;
|
8027
|
+
for (C === void 0 && (C = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity), b ? (M.opacity = 0, M.className = (M.className || "") + " leaflet-cluster-spider-leg") : M.opacity = C, l._ignoreMove = !0, H = 0; H < s.length; H++)
|
8028
|
+
A = s[H], at = p.layerPointToLatLng(a[H]), U = new L.Polyline([_, at], M), p.addLayer(U), A._spiderLeg = U, b && (W = U._path, wt = W.getTotalLength() + 0.1, W.style.strokeDasharray = wt, W.style.strokeDashoffset = wt), A.setZIndexOffset && A.setZIndexOffset(1e6), A.clusterHide && A.clusterHide(), y.addLayer(A), A._setPos && A._setPos(w);
|
8024
8029
|
for (l._forceLayout(), l._animationStart(), H = s.length - 1; H >= 0; H--)
|
8025
|
-
at = p.layerPointToLatLng(a[H]), A = s[H], A._preSpiderfyLatlng = A._latlng, A.setLatLng(at), A.clusterShow && A.clusterShow(),
|
8030
|
+
at = p.layerPointToLatLng(a[H]), A = s[H], A._preSpiderfyLatlng = A._latlng, A.setLatLng(at), A.clusterShow && A.clusterShow(), b && (U = A._spiderLeg, W = U._path, W.style.strokeDashoffset = 0, U.setStyle({ opacity: C }));
|
8026
8031
|
this.setOpacity(0.3), l._ignoreMove = !1, setTimeout(function() {
|
8027
8032
|
l._animationEnd(), l.fire("spiderfied", {
|
8028
8033
|
cluster: h,
|
@@ -8031,15 +8036,15 @@ var qn = { exports: {} };
|
|
8031
8036
|
}, 200);
|
8032
8037
|
},
|
8033
8038
|
_animationUnspiderfy: function(s) {
|
8034
|
-
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),
|
8039
|
+
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), w = L.Path.SVG, b, M, C, H, A, U;
|
8035
8040
|
for (h._ignoreMove = !0, h._animationStart(), this.setOpacity(1), M = _.length - 1; M >= 0; M--)
|
8036
|
-
|
8041
|
+
b = _[M], b._preSpiderfyLatlng && (b.closePopup(), b.setLatLng(b._preSpiderfyLatlng), delete b._preSpiderfyLatlng, U = !0, b._setPos && (b._setPos(y), U = !1), b.clusterHide && (b.clusterHide(), U = !1), U && p.removeLayer(b), w && (C = b._spiderLeg, H = C._path, A = H.getTotalLength() + 0.1, H.style.strokeDashoffset = A, C.setStyle({ opacity: 0 })));
|
8037
8042
|
h._ignoreMove = !1, setTimeout(function() {
|
8038
8043
|
var W = 0;
|
8039
8044
|
for (M = _.length - 1; M >= 0; M--)
|
8040
|
-
|
8045
|
+
b = _[M], b._spiderLeg && W++;
|
8041
8046
|
for (M = _.length - 1; M >= 0; M--)
|
8042
|
-
|
8047
|
+
b = _[M], b._spiderLeg && (b.clusterShow && b.clusterShow(), b.setZIndexOffset && b.setZIndexOffset(0), W > 1 && p.removeLayer(b), l.removeLayer(b._spiderLeg), delete b._spiderLeg);
|
8043
8048
|
h._animationEnd(), h.fire("unspiderfied", {
|
8044
8049
|
cluster: a,
|
8045
8050
|
markers: _
|
@@ -8125,9 +8130,9 @@ var qn = { exports: {} };
|
|
8125
8130
|
var h = this.options.icon;
|
8126
8131
|
return L.setOptions(h, s), this.setIcon(h), a && this.__parent && this.__parent._group.refreshClusters(this), this;
|
8127
8132
|
}
|
8128
|
-
}), c.MarkerClusterGroup = g, c.MarkerCluster =
|
8133
|
+
}), c.MarkerClusterGroup = g, c.MarkerCluster = P, Object.defineProperty(c, "__esModule", { value: !0 });
|
8129
8134
|
});
|
8130
|
-
})(
|
8135
|
+
})(jn, jn.exports);
|
8131
8136
|
class oo extends zt {
|
8132
8137
|
constructor() {
|
8133
8138
|
super(), this.layer = null;
|
@@ -8146,18 +8151,18 @@ class oo extends zt {
|
|
8146
8151
|
name: d
|
8147
8152
|
}
|
8148
8153
|
});
|
8149
|
-
this.dispatchEvent(g), this.addEventListener(et, (
|
8150
|
-
|
8154
|
+
this.dispatchEvent(g), this.addEventListener(et, (P) => {
|
8155
|
+
P.stopPropagation(), this.layer.addLayer(P.detail.layer);
|
8151
8156
|
});
|
8152
8157
|
}
|
8153
8158
|
_createIconCreateFunction(d) {
|
8154
8159
|
if (d) {
|
8155
|
-
let { size: c, content: g, className:
|
8160
|
+
let { size: c, content: g, className: P } = JSON.parse(d);
|
8156
8161
|
return (s) => {
|
8157
8162
|
const a = this._callClusterFunction(s, c), h = this._callClusterFunction(s, g);
|
8158
8163
|
return L.divIcon({
|
8159
8164
|
html: h,
|
8160
|
-
className:
|
8165
|
+
className: P,
|
8161
8166
|
iconSize: new L.Point(a, a)
|
8162
8167
|
});
|
8163
8168
|
};
|
@@ -8172,7 +8177,7 @@ Lt(oo, "observedAttributes", [
|
|
8172
8177
|
"icon-options"
|
8173
8178
|
]);
|
8174
8179
|
const cr = (() => {
|
8175
|
-
customElements.define("l-map",
|
8180
|
+
customElements.define("l-map", wi), 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", xi), 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);
|
8176
8181
|
})();
|
8177
8182
|
export {
|
8178
8183
|
cr as default
|