@maptrip/map-tiles 1.0.8 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -5
- package/dist/map-tiles.js +160 -135
- package/lib/core/VectorTileLoader.js +6 -1
- package/lib/core/rendering_config_default.js +1128 -1104
- package/package.json +1 -1
package/dist/map-tiles.js
CHANGED
|
@@ -62,10 +62,11 @@ const re = class re {
|
|
|
62
62
|
}
|
|
63
63
|
}).bind(this), u.ontimeout = (function() {
|
|
64
64
|
e.errorCallback(u.responseText), this._numLoading--, this.loadNext();
|
|
65
|
-
}).bind(this), u.open("GET", r, !0), u.setRequestHeader("Authorization", `Bearer ${e.tile.token}`), u.timeout = this._properties.timeout, u.send(null), this._numLoading++;
|
|
65
|
+
}).bind(this), this._properties.detourProfile && (r += "&SP_USE=" + encodeURIComponent(this._properties.detourProfile)), u.open("GET", r, !0), u.setRequestHeader("Authorization", `Bearer ${e.tile.token}`), u.timeout = this._properties.timeout, u.send(null), this._numLoading++;
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
Pt(re, "DEFAULT_PROPERTIES", {
|
|
69
|
+
detourProfile: null,
|
|
69
70
|
timeout: 5e3,
|
|
70
71
|
parallelDownloads: 12
|
|
71
72
|
});
|
|
@@ -127,9 +128,9 @@ ii.squarifiedRatio = function(a, e, s) {
|
|
|
127
128
|
return u * s / g;
|
|
128
129
|
};
|
|
129
130
|
var Rn = ii, yt = Rn;
|
|
130
|
-
function
|
|
131
|
-
if (!(this instanceof
|
|
132
|
-
return new
|
|
131
|
+
function Zi(a) {
|
|
132
|
+
if (!(this instanceof Zi))
|
|
133
|
+
return new Zi(a);
|
|
133
134
|
var e = 3, s = 6;
|
|
134
135
|
isNaN(a) || (e = Math.floor(a / 2), s = a);
|
|
135
136
|
var r = { x: 0, y: 0, w: 0, h: 0, id: "root", nodes: [] };
|
|
@@ -139,19 +140,19 @@ function Ui(a) {
|
|
|
139
140
|
x = m.pop(), x.nodes ? m = m.concat(x.nodes) : x.leaf && j.push(x);
|
|
140
141
|
return j;
|
|
141
142
|
}, g = function(A, m, j) {
|
|
142
|
-
var x = [], O = [], k = [], v, Q,
|
|
143
|
+
var x = [], O = [], k = [], v, Q, Z;
|
|
143
144
|
if (!A || !yt.overlapRectangle(A, j))
|
|
144
145
|
return k;
|
|
145
146
|
var R = { x: A.x, y: A.y, w: A.w, h: A.h, target: m };
|
|
146
147
|
for (O.push(j.nodes.length), x.push(j); x.length > 0; )
|
|
147
148
|
if (v = x.pop(), Q = O.pop() - 1, "target" in R)
|
|
148
149
|
for (; Q >= 0; ) {
|
|
149
|
-
if (
|
|
150
|
-
if (R.target && "leaf" in
|
|
151
|
-
"nodes" in
|
|
150
|
+
if (Z = v.nodes[Q], yt.overlapRectangle(R, Z))
|
|
151
|
+
if (R.target && "leaf" in Z && Z.leaf === R.target || !R.target && ("leaf" in Z || yt.containsRectangle(Z, R))) {
|
|
152
|
+
"nodes" in Z ? k = u(v.nodes.splice(Q, 1)) : k = v.nodes.splice(Q, 1), yt.makeMBR(v.nodes, v), delete R.target;
|
|
152
153
|
break;
|
|
153
154
|
} else
|
|
154
|
-
"nodes" in
|
|
155
|
+
"nodes" in Z && (O.push(Q), x.push(v), v = Z, Q = Z.nodes.length);
|
|
155
156
|
Q--;
|
|
156
157
|
}
|
|
157
158
|
else if ("nodes" in R) {
|
|
@@ -168,12 +169,12 @@ function Ui(a) {
|
|
|
168
169
|
for (var v = m.nodes; k || j !== -1; ) {
|
|
169
170
|
k ? k = !1 : (x.push(v[j]), v = v[j].nodes, j = -1);
|
|
170
171
|
for (var Q = v.length - 1; Q >= 0; Q--) {
|
|
171
|
-
var
|
|
172
|
-
if ("leaf" in
|
|
172
|
+
var Z = v[Q];
|
|
173
|
+
if ("leaf" in Z) {
|
|
173
174
|
j = -1;
|
|
174
175
|
break;
|
|
175
176
|
}
|
|
176
|
-
var R = yt.squarifiedRatio(
|
|
177
|
+
var R = yt.squarifiedRatio(Z.w, Z.h, Z.nodes.length + 1), et = Math.max(Z.x + Z.w, A.x + A.w) - Math.min(Z.x, A.x), Dt = Math.max(Z.y + Z.h, A.y + A.h) - Math.min(Z.y, A.y), tt = yt.squarifiedRatio(et, Dt, Z.nodes.length + 2);
|
|
177
178
|
(j < 0 || Math.abs(tt - R) < O) && (O = Math.abs(tt - R), j = Q);
|
|
178
179
|
}
|
|
179
180
|
}
|
|
@@ -183,20 +184,20 @@ function Ui(a) {
|
|
|
183
184
|
w(A, m[0], m[1]);
|
|
184
185
|
return m;
|
|
185
186
|
}, w = function(A, m, j) {
|
|
186
|
-
for (var x = yt.squarifiedRatio(m.w, m.h, m.nodes.length + 1), O = yt.squarifiedRatio(j.w, j.h, j.nodes.length + 1), k, v, Q,
|
|
187
|
-
var R = A[
|
|
187
|
+
for (var x = yt.squarifiedRatio(m.w, m.h, m.nodes.length + 1), O = yt.squarifiedRatio(j.w, j.h, j.nodes.length + 1), k, v, Q, Z = A.length - 1; Z >= 0; Z--) {
|
|
188
|
+
var R = A[Z], et = {};
|
|
188
189
|
et.x = Math.min(m.x, R.x), et.y = Math.min(m.y, R.y), et.w = Math.max(m.x + m.w, R.x + R.w) - et.x, et.h = Math.max(m.y + m.h, R.y + R.h) - et.y;
|
|
189
190
|
var Dt = Math.abs(yt.squarifiedRatio(et.w, et.h, m.nodes.length + 2) - x), tt = {};
|
|
190
191
|
tt.x = Math.min(j.x, R.x), tt.y = Math.min(j.y, R.y), tt.w = Math.max(j.x + j.w, R.x + R.w) - tt.x, tt.h = Math.max(j.y + j.h, R.y + R.h) - tt.y;
|
|
191
192
|
var ht = Math.abs(yt.squarifiedRatio(tt.w, tt.h, j.nodes.length + 2) - O);
|
|
192
|
-
(!v || !k || Math.abs(ht - Dt) < k) && (v =
|
|
193
|
+
(!v || !k || Math.abs(ht - Dt) < k) && (v = Z, k = Math.abs(ht - Dt), Q = ht < Dt ? j : m);
|
|
193
194
|
}
|
|
194
195
|
var wt = A.splice(v, 1)[0];
|
|
195
196
|
m.nodes.length + A.length + 1 <= e ? (m.nodes.push(wt), yt.expandRectangle(m, wt)) : j.nodes.length + A.length + 1 <= e ? (j.nodes.push(wt), yt.expandRectangle(j, wt)) : (Q.nodes.push(wt), yt.expandRectangle(Q, wt));
|
|
196
197
|
}, N = function(A) {
|
|
197
198
|
for (var m = A.length - 1, j = 0, x = A.length - 1, O = 0, k, v, Q = A.length - 2; Q >= 0; Q--) {
|
|
198
|
-
var
|
|
199
|
-
|
|
199
|
+
var Z = A[Q];
|
|
200
|
+
Z.x > A[j].x ? j = Q : Z.x + Z.w < A[m].x + A[m].w && (m = Q), Z.y > A[O].y ? O = Q : Z.y + Z.h < A[x].y + A[x].h && (x = Q);
|
|
200
201
|
}
|
|
201
202
|
var R = Math.abs(A[m].x + A[m].w - A[j].x), et = Math.abs(A[x].y + A[x].h - A[O].y);
|
|
202
203
|
return R > et ? m > j ? (k = A.splice(m, 1)[0], v = A.splice(j, 1)[0]) : (v = A.splice(j, 1)[0], k = A.splice(m, 1)[0]) : x > O ? (k = A.splice(x, 1)[0], v = A.splice(O, 1)[0]) : (v = A.splice(O, 1)[0], k = A.splice(x, 1)[0]), [
|
|
@@ -241,8 +242,8 @@ function Ui(a) {
|
|
|
241
242
|
if (j.nodes.length <= s)
|
|
242
243
|
O = { x: j.x, y: j.y, w: j.w, h: j.h };
|
|
243
244
|
else {
|
|
244
|
-
var
|
|
245
|
-
O =
|
|
245
|
+
var Z = I(j.nodes);
|
|
246
|
+
O = Z, x.length < 1 && (j.nodes.push(Z[0]), x.push(j), O = Z[1]);
|
|
246
247
|
}
|
|
247
248
|
} else
|
|
248
249
|
yt.expandRectangle(j, O), O = { x: j.x, y: j.y, w: j.w, h: j.h };
|
|
@@ -270,14 +271,14 @@ function Ui(a) {
|
|
|
270
271
|
return j;
|
|
271
272
|
};
|
|
272
273
|
}
|
|
273
|
-
|
|
274
|
+
Zi.prototype.toJSON = function(a) {
|
|
274
275
|
return JSON.stringify(this.root, !1, a);
|
|
275
276
|
};
|
|
276
|
-
|
|
277
|
-
var e = new
|
|
277
|
+
Zi.fromJSON = function(a) {
|
|
278
|
+
var e = new Zi();
|
|
278
279
|
return e.setTree(JSON.parse(a)), e;
|
|
279
280
|
};
|
|
280
|
-
var Jr =
|
|
281
|
+
var Jr = Zi;
|
|
281
282
|
typeof Array.isArray != "function" && (Array.isArray = function(a) {
|
|
282
283
|
return typeof a == "object" && {}.toString.call(a) === "[object Array]";
|
|
283
284
|
});
|
|
@@ -836,7 +837,7 @@ Pt(Bt, "DEFAULT_STYLE", {
|
|
|
836
837
|
opacity: 1
|
|
837
838
|
}
|
|
838
839
|
});
|
|
839
|
-
let
|
|
840
|
+
let Un = Bt;
|
|
840
841
|
const ta = "https://v${index}.maptrip.de/?tilex=${x}&tiley=${y}&acao=true&context=tomtom${z}&project=${project}&projection=wgs84", Ks = {
|
|
841
842
|
tomtom: "TomTom_latest",
|
|
842
843
|
here: "HERE_latest",
|
|
@@ -875,6 +876,7 @@ const ta = "https://v${index}.maptrip.de/?tilex=${x}&tiley=${y}&acao=true&contex
|
|
|
875
876
|
residential_road: "residential_road",
|
|
876
877
|
residential_road_oneway: "residential_road_oneway",
|
|
877
878
|
residential_road_oneway_rev: "residential_road_oneway_rev",
|
|
879
|
+
foot_path: "foot_path",
|
|
878
880
|
ferry: "ferry",
|
|
879
881
|
rail: "rail",
|
|
880
882
|
capital: "metropolis",
|
|
@@ -1743,13 +1745,15 @@ const ta = "https://v${index}.maptrip.de/?tilex=${x}&tiley=${y}&acao=true&contex
|
|
|
1743
1745
|
from: 17,
|
|
1744
1746
|
to: 19,
|
|
1745
1747
|
line: {
|
|
1746
|
-
width:
|
|
1747
|
-
color: "#
|
|
1748
|
+
width: 2,
|
|
1749
|
+
color: "#A5ADB8"
|
|
1748
1750
|
},
|
|
1749
1751
|
text: {
|
|
1750
1752
|
size: 12,
|
|
1751
1753
|
color: "#606060",
|
|
1752
|
-
font: "Open Sans"
|
|
1754
|
+
font: "Open Sans",
|
|
1755
|
+
outlineColor: "#ffffff",
|
|
1756
|
+
outlineWidth: 2
|
|
1753
1757
|
}
|
|
1754
1758
|
},
|
|
1755
1759
|
{
|
|
@@ -1757,12 +1761,14 @@ const ta = "https://v${index}.maptrip.de/?tilex=${x}&tiley=${y}&acao=true&contex
|
|
|
1757
1761
|
to: 16,
|
|
1758
1762
|
line: {
|
|
1759
1763
|
width: 1,
|
|
1760
|
-
color: "#
|
|
1764
|
+
color: "#A5ADB8"
|
|
1761
1765
|
},
|
|
1762
1766
|
text: {
|
|
1763
1767
|
size: 12,
|
|
1764
1768
|
color: "#606060",
|
|
1765
|
-
font: "Open Sans"
|
|
1769
|
+
font: "Open Sans",
|
|
1770
|
+
outlineColor: "#ffffff",
|
|
1771
|
+
outlineWidth: 2
|
|
1766
1772
|
}
|
|
1767
1773
|
},
|
|
1768
1774
|
{
|
|
@@ -1770,7 +1776,7 @@ const ta = "https://v${index}.maptrip.de/?tilex=${x}&tiley=${y}&acao=true&contex
|
|
|
1770
1776
|
to: 14,
|
|
1771
1777
|
line: {
|
|
1772
1778
|
width: 1,
|
|
1773
|
-
color: "#
|
|
1779
|
+
color: "#A5ADB8"
|
|
1774
1780
|
}
|
|
1775
1781
|
}
|
|
1776
1782
|
],
|
|
@@ -1880,6 +1886,25 @@ const ta = "https://v${index}.maptrip.de/?tilex=${x}&tiley=${y}&acao=true&contex
|
|
|
1880
1886
|
}
|
|
1881
1887
|
}
|
|
1882
1888
|
],
|
|
1889
|
+
foot_path: [
|
|
1890
|
+
{
|
|
1891
|
+
from: 16,
|
|
1892
|
+
to: 19,
|
|
1893
|
+
line: {
|
|
1894
|
+
width: 2,
|
|
1895
|
+
color: "rgba(1, 1, 1, 0)",
|
|
1896
|
+
dashColor: "#A5ADB8",
|
|
1897
|
+
dashLength: 6
|
|
1898
|
+
},
|
|
1899
|
+
text: {
|
|
1900
|
+
size: 12,
|
|
1901
|
+
color: "#606060",
|
|
1902
|
+
font: "Open Sans",
|
|
1903
|
+
outlineColor: "#ffffff",
|
|
1904
|
+
outlineWidth: 2
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
],
|
|
1883
1908
|
rail: [
|
|
1884
1909
|
{
|
|
1885
1910
|
from: 13,
|
|
@@ -2203,7 +2228,7 @@ var wo = { exports: {} };
|
|
|
2203
2228
|
}
|
|
2204
2229
|
return d.join(",");
|
|
2205
2230
|
}
|
|
2206
|
-
function
|
|
2231
|
+
function Z(h) {
|
|
2207
2232
|
return h.a + h.f;
|
|
2208
2233
|
}
|
|
2209
2234
|
function R(h) {
|
|
@@ -2228,7 +2253,7 @@ var wo = { exports: {} };
|
|
|
2228
2253
|
wt(h, "inactive");
|
|
2229
2254
|
}
|
|
2230
2255
|
function wt(h, d, _) {
|
|
2231
|
-
h.j && h.h[d] && (_ ? h.h[d](_.c,
|
|
2256
|
+
h.j && h.h[d] && (_ ? h.h[d](_.c, Z(_)) : h.h[d]());
|
|
2232
2257
|
}
|
|
2233
2258
|
function mt() {
|
|
2234
2259
|
this.c = {};
|
|
@@ -2274,7 +2299,7 @@ var wo = { exports: {} };
|
|
|
2274
2299
|
});
|
|
2275
2300
|
};
|
|
2276
2301
|
function H(h, d, _, z, b, G, B) {
|
|
2277
|
-
this.v = h, this.B = d, this.c = _, this.a = z, this.s = B || "BESbswy", this.f = {}, this.w = b || 3e3, this.u = G || null, this.m = this.j = this.h = this.g = null, this.g = new ut(this.c, this.s), this.h = new ut(this.c, this.s), this.j = new ut(this.c, this.s), this.m = new ut(this.c, this.s), h = new k(this.a.c + ",serif",
|
|
2302
|
+
this.v = h, this.B = d, this.c = _, this.a = z, this.s = B || "BESbswy", this.f = {}, this.w = b || 3e3, this.u = G || null, this.m = this.j = this.h = this.g = null, this.g = new ut(this.c, this.s), this.h = new ut(this.c, this.s), this.j = new ut(this.c, this.s), this.m = new ut(this.c, this.s), h = new k(this.a.c + ",serif", Z(this.a)), h = W(h), this.g.a.style.cssText = h, h = new k(this.a.c + ",sans-serif", Z(this.a)), h = W(h), this.h.a.style.cssText = h, h = new k("serif", Z(this.a)), h = W(h), this.j.a.style.cssText = h, h = new k("sans-serif", Z(this.a)), h = W(h), this.m.a.style.cssText = h, Ot(this.g), Ot(this.h), Ot(this.j), Ot(this.m);
|
|
2278
2303
|
}
|
|
2279
2304
|
var at = { D: "serif", C: "sans-serif" }, ct = null;
|
|
2280
2305
|
function Lt() {
|
|
@@ -2313,12 +2338,12 @@ var wo = { exports: {} };
|
|
|
2313
2338
|
var ui = null;
|
|
2314
2339
|
Et.prototype.g = function(h) {
|
|
2315
2340
|
var d = this.a;
|
|
2316
|
-
d.g && f(d.f, [d.a.c("wf", h.c,
|
|
2341
|
+
d.g && f(d.f, [d.a.c("wf", h.c, Z(h).toString(), "active")], [d.a.c("wf", h.c, Z(h).toString(), "loading"), d.a.c("wf", h.c, Z(h).toString(), "inactive")]), wt(d, "fontactive", h), this.m = !0, di(this);
|
|
2317
2342
|
}, Et.prototype.h = function(h) {
|
|
2318
2343
|
var d = this.a;
|
|
2319
2344
|
if (d.g) {
|
|
2320
|
-
var _ = T(d.f, d.a.c("wf", h.c,
|
|
2321
|
-
_ || z.push(d.a.c("wf", h.c,
|
|
2345
|
+
var _ = T(d.f, d.a.c("wf", h.c, Z(h).toString(), "active")), z = [], b = [d.a.c("wf", h.c, Z(h).toString(), "loading")];
|
|
2346
|
+
_ || z.push(d.a.c("wf", h.c, Z(h).toString(), "inactive")), f(d.f, z, b);
|
|
2322
2347
|
}
|
|
2323
2348
|
wt(d, "fontinactive", h), di(this);
|
|
2324
2349
|
};
|
|
@@ -2342,7 +2367,7 @@ var wo = { exports: {} };
|
|
|
2342
2367
|
var ot, gt = [];
|
|
2343
2368
|
for (ot = 0; ot < _.length; ot++) {
|
|
2344
2369
|
var lt = _[ot], Tt = st[lt.c], St = d.a, ei = lt;
|
|
2345
|
-
if (St.g && f(St.f, [St.a.c("wf", ei.c,
|
|
2370
|
+
if (St.g && f(St.f, [St.a.c("wf", ei.c, Z(ei).toString(), "loading")]), wt(St, "fontloading", ei), St = null, ui === null)
|
|
2346
2371
|
if (window.FontFace) {
|
|
2347
2372
|
var ei = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), sn = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
|
|
2348
2373
|
ui = ei ? 42 < parseInt(ei[1], 10) : !sn;
|
|
@@ -2513,26 +2538,26 @@ var wo = { exports: {} };
|
|
|
2513
2538
|
b && h([]);
|
|
2514
2539
|
})) : h([]);
|
|
2515
2540
|
};
|
|
2516
|
-
var
|
|
2517
|
-
|
|
2541
|
+
var Zt = new Ni(window);
|
|
2542
|
+
Zt.a.c.custom = function(h, d) {
|
|
2518
2543
|
return new Pi(d, h);
|
|
2519
|
-
},
|
|
2544
|
+
}, Zt.a.c.fontdeck = function(h, d) {
|
|
2520
2545
|
return new de(d, h);
|
|
2521
|
-
},
|
|
2546
|
+
}, Zt.a.c.monotype = function(h, d) {
|
|
2522
2547
|
return new ce(d, h);
|
|
2523
|
-
},
|
|
2548
|
+
}, Zt.a.c.typekit = function(h, d) {
|
|
2524
2549
|
return new Ri(d, h);
|
|
2525
|
-
},
|
|
2550
|
+
}, Zt.a.c.google = function(h, d) {
|
|
2526
2551
|
return new fi(d, h);
|
|
2527
2552
|
};
|
|
2528
|
-
var Wi = { load: r(
|
|
2529
|
-
a.exports ? a.exports = Wi : (window.WebFont = Wi, window.WebFontConfig &&
|
|
2553
|
+
var Wi = { load: r(Zt.load, Zt) };
|
|
2554
|
+
a.exports ? a.exports = Wi : (window.WebFont = Wi, window.WebFontConfig && Zt.load(window.WebFontConfig));
|
|
2530
2555
|
})();
|
|
2531
2556
|
})(wo);
|
|
2532
2557
|
var na = wo.exports;
|
|
2533
2558
|
const sa = /* @__PURE__ */ Bn(na), xt = class xt {
|
|
2534
2559
|
constructor(e, s, r, u) {
|
|
2535
|
-
this._urls = e, this._additionalUrls = s, this._layers = ["all"], this._tileLoader = new kn(u), this._renderer = new
|
|
2560
|
+
this._urls = e, this._additionalUrls = s, this._layers = ["all"], this._tileLoader = new kn(u), this._renderer = new Un(r), xt._fonts || sa.load({
|
|
2536
2561
|
custom: {
|
|
2537
2562
|
families: ["Open Sans:n4,n7,i4,i7"],
|
|
2538
2563
|
urls: ["https://maps.infoware.de/MapAPI-1.4/css/opensans.css"]
|
|
@@ -3776,7 +3801,7 @@ class HM {
|
|
|
3776
3801
|
releaseTile() {
|
|
3777
3802
|
}
|
|
3778
3803
|
}
|
|
3779
|
-
var
|
|
3804
|
+
var Zn = { exports: {} };
|
|
3780
3805
|
/* @preserve
|
|
3781
3806
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
3782
3807
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
@@ -3876,10 +3901,10 @@ var Un = { exports: {} };
|
|
|
3876
3901
|
function Q(t) {
|
|
3877
3902
|
return window["webkit" + t] || window["moz" + t] || window["ms" + t];
|
|
3878
3903
|
}
|
|
3879
|
-
var
|
|
3904
|
+
var Z = 0;
|
|
3880
3905
|
function R(t) {
|
|
3881
|
-
var i = +/* @__PURE__ */ new Date(), n = Math.max(0, 16 - (i -
|
|
3882
|
-
return
|
|
3906
|
+
var i = +/* @__PURE__ */ new Date(), n = Math.max(0, 16 - (i - Z));
|
|
3907
|
+
return Z = i + n, window.setTimeout(t, n);
|
|
3883
3908
|
}
|
|
3884
3909
|
var et = window.requestAnimationFrame || Q("RequestAnimationFrame") || R, Dt = window.cancelAnimationFrame || Q("CancelAnimationFrame") || Q("CancelRequestAnimationFrame") || function(t) {
|
|
3885
3910
|
window.clearTimeout(t);
|
|
@@ -4680,7 +4705,7 @@ var Un = { exports: {} };
|
|
|
4680
4705
|
}
|
|
4681
4706
|
return n || "M0 0";
|
|
4682
4707
|
}
|
|
4683
|
-
var Bi = document.documentElement.style, Ai = "ActiveXObject" in window, tn = Ai && !document.addEventListener, Le = "msLaunchUri" in navigator && !("documentMode" in document), yi = Wt("webkit"), Ie = Wt("android"), we = Wt("android 2") || Wt("android 3"), en = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), nn = Ie && Wt("Google") && en < 537 && !("AudioNode" in window), fi = !!window.opera, Ce = !Le && Wt("chrome"), Ri = Wt("gecko") && !yi && !fi && !Ai, de = !Ce && Wt("safari"),
|
|
4708
|
+
var Bi = document.documentElement.style, Ai = "ActiveXObject" in window, tn = Ai && !document.addEventListener, Le = "msLaunchUri" in navigator && !("documentMode" in document), yi = Wt("webkit"), Ie = Wt("android"), we = Wt("android 2") || Wt("android 3"), en = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), nn = Ie && Wt("Google") && en < 537 && !("AudioNode" in window), fi = !!window.opera, Ce = !Le && Wt("chrome"), Ri = Wt("gecko") && !yi && !fi && !Ai, de = !Ce && Wt("safari"), Zt = Wt("phantom"), Wi = "OTransition" in Bi, h = navigator.platform.indexOf("Win") === 0, d = Ai && "transition" in Bi, _ = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !we, z = "MozPerspective" in Bi, b = !window.L_DISABLE_3D && (d || _ || z) && !Wi && !Zt, G = typeof orientation < "u" || Wt("mobile"), B = G && yi, st = G && _, ot = !window.PointerEvent && window.MSPointerEvent, gt = !!(window.PointerEvent || ot), lt = "ontouchstart" in window || !!window.TouchEvent, Tt = !window.L_NO_TOUCH && (lt || gt), St = G && fi, ei = G && Ri, sn = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, bo = function() {
|
|
4684
4709
|
var t = !1;
|
|
4685
4710
|
try {
|
|
4686
4711
|
var i = Object.defineProperty({}, "passive", {
|
|
@@ -4697,7 +4722,7 @@ var Un = { exports: {} };
|
|
|
4697
4722
|
}(), on = !!(document.createElementNS && Pi("svg").createSVGRect), ko = !!on && function() {
|
|
4698
4723
|
var t = document.createElement("div");
|
|
4699
4724
|
return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
|
|
4700
|
-
}(),
|
|
4725
|
+
}(), Uo = !on && function() {
|
|
4701
4726
|
try {
|
|
4702
4727
|
var t = document.createElement("div");
|
|
4703
4728
|
t.innerHTML = '<v:shape adj="1"/>';
|
|
@@ -4706,7 +4731,7 @@ var Un = { exports: {} };
|
|
|
4706
4731
|
} catch {
|
|
4707
4732
|
return !1;
|
|
4708
4733
|
}
|
|
4709
|
-
}(),
|
|
4734
|
+
}(), Zo = navigator.platform.indexOf("Mac") === 0, Go = navigator.platform.indexOf("Linux") === 0;
|
|
4710
4735
|
function Wt(t) {
|
|
4711
4736
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
|
4712
4737
|
}
|
|
@@ -4722,7 +4747,7 @@ var Un = { exports: {} };
|
|
|
4722
4747
|
chrome: Ce,
|
|
4723
4748
|
gecko: Ri,
|
|
4724
4749
|
safari: de,
|
|
4725
|
-
phantom:
|
|
4750
|
+
phantom: Zt,
|
|
4726
4751
|
opera12: Wi,
|
|
4727
4752
|
win: h,
|
|
4728
4753
|
ie3d: d,
|
|
@@ -4742,9 +4767,9 @@ var Un = { exports: {} };
|
|
|
4742
4767
|
passiveEvents: bo,
|
|
4743
4768
|
canvas: Yo,
|
|
4744
4769
|
svg: on,
|
|
4745
|
-
vml:
|
|
4770
|
+
vml: Uo,
|
|
4746
4771
|
inlineSvg: ko,
|
|
4747
|
-
mac:
|
|
4772
|
+
mac: Zo,
|
|
4748
4773
|
linux: Go
|
|
4749
4774
|
}, es = P.msPointer ? "MSPointerDown" : "pointerdown", ns = P.msPointer ? "MSPointerMove" : "pointermove", ss = P.msPointer ? "MSPointerUp" : "pointerup", os = P.msPointer ? "MSPointerCancel" : "pointercancel", rn = {
|
|
4750
4775
|
touchstart: es,
|
|
@@ -5352,7 +5377,7 @@ var Un = { exports: {} };
|
|
|
5352
5377
|
this._stop();
|
|
5353
5378
|
var o = this.project(this.getCenter()), M = this.project(t), l = this.getSize(), C = this._zoom;
|
|
5354
5379
|
t = V(t), i = i === void 0 ? C : i;
|
|
5355
|
-
var y = Math.max(l.x, l.y), D = y * this.getZoomScale(C, i), p = M.distanceTo(o) || 1,
|
|
5380
|
+
var y = Math.max(l.x, l.y), D = y * this.getZoomScale(C, i), p = M.distanceTo(o) || 1, U = 1.42, F = U * U;
|
|
5356
5381
|
function q(At) {
|
|
5357
5382
|
var Ye = At ? -1 : 1, Pr = At ? D : y, Br = D * D - y * y + Ye * F * F * p * p, Rr = 2 * Pr * F * p, On = Br / Rr, Vs = Math.sqrt(On * On + 1) - On, Wr = Vs < 1e-9 ? -18 : Math.log(Vs);
|
|
5358
5383
|
return Wr;
|
|
@@ -5368,19 +5393,19 @@ var Un = { exports: {} };
|
|
|
5368
5393
|
}
|
|
5369
5394
|
var vt = q(0);
|
|
5370
5395
|
function Oi(At) {
|
|
5371
|
-
return y * (jt(vt) / jt(vt +
|
|
5372
|
-
}
|
|
5373
|
-
function Zr(At) {
|
|
5374
|
-
return y * (jt(vt) * kt(vt + Z * At) - pt(vt)) / F;
|
|
5396
|
+
return y * (jt(vt) / jt(vt + U * At));
|
|
5375
5397
|
}
|
|
5376
5398
|
function Ur(At) {
|
|
5399
|
+
return y * (jt(vt) * kt(vt + U * At) - pt(vt)) / F;
|
|
5400
|
+
}
|
|
5401
|
+
function Zr(At) {
|
|
5377
5402
|
return 1 - Math.pow(1 - At, 1.5);
|
|
5378
5403
|
}
|
|
5379
|
-
var Gr = Date.now(), Xs = (q(1) - vt) /
|
|
5404
|
+
var Gr = Date.now(), Xs = (q(1) - vt) / U, Qr = n.duration ? 1e3 * n.duration : 1e3 * Xs * 0.8;
|
|
5380
5405
|
function Js() {
|
|
5381
|
-
var At = (Date.now() - Gr) / Qr, Ye =
|
|
5406
|
+
var At = (Date.now() - Gr) / Qr, Ye = Zr(At) * Xs;
|
|
5382
5407
|
At <= 1 ? (this._flyToFrame = tt(Js, this), this._move(
|
|
5383
|
-
this.unproject(o.add(M.subtract(o).multiplyBy(
|
|
5408
|
+
this.unproject(o.add(M.subtract(o).multiplyBy(Ur(Ye) / p)), C),
|
|
5384
5409
|
this.getScaleZoom(y / Oi(Ye), C),
|
|
5385
5410
|
{ flyTo: !0 }
|
|
5386
5411
|
)) : this._move(t, i)._moveEnd(!0);
|
|
@@ -5428,8 +5453,8 @@ var Un = { exports: {} };
|
|
|
5428
5453
|
var n = H(i.paddingTopLeft || i.padding || [0, 0]), o = H(i.paddingBottomRight || i.padding || [0, 0]), M = this.project(this.getCenter()), l = this.project(t), C = this.getPixelBounds(), y = ct([C.min.add(n), C.max.subtract(o)]), D = y.getSize();
|
|
5429
5454
|
if (!y.contains(l)) {
|
|
5430
5455
|
this._enforcingBounds = !0;
|
|
5431
|
-
var p = l.subtract(y.getCenter()),
|
|
5432
|
-
M.x += p.x < 0 ? -
|
|
5456
|
+
var p = l.subtract(y.getCenter()), U = y.extend(l).getSize().subtract(D);
|
|
5457
|
+
M.x += p.x < 0 ? -U.x : U.x, M.y += p.y < 0 ? -U.y : U.y, this.panTo(this.unproject(M), i), this._enforcingBounds = !1;
|
|
5433
5458
|
}
|
|
5434
5459
|
return this;
|
|
5435
5460
|
},
|
|
@@ -5595,8 +5620,8 @@ var Un = { exports: {} };
|
|
|
5595
5620
|
// the given bounds in its entirety.
|
|
5596
5621
|
getBoundsZoom: function(t, i, n) {
|
|
5597
5622
|
t = nt(t), n = H(n || [0, 0]);
|
|
5598
|
-
var o = this.getZoom() || 0, M = this.getMinZoom(), l = this.getMaxZoom(), C = t.getNorthWest(), y = t.getSouthEast(), D = this.getSize().subtract(n), p = ct(this.project(y, o), this.project(C, o)).getSize(),
|
|
5599
|
-
return o = this.getScaleZoom(pt, o),
|
|
5623
|
+
var o = this.getZoom() || 0, M = this.getMinZoom(), l = this.getMaxZoom(), C = t.getNorthWest(), y = t.getSouthEast(), D = this.getSize().subtract(n), p = ct(this.project(y, o), this.project(C, o)).getSize(), U = P.any3d ? this.options.zoomSnap : 1, F = D.x / p.x, q = D.y / p.y, pt = i ? Math.max(F, q) : Math.min(F, q);
|
|
5624
|
+
return o = this.getScaleZoom(pt, o), U && (o = Math.round(o / (U / 100)) * (U / 100), o = i ? Math.ceil(o / U) * U : Math.floor(o / U) * U), Math.max(M, Math.min(l, o));
|
|
5600
5625
|
},
|
|
5601
5626
|
// @method getSize(): Point
|
|
5602
5627
|
// Returns the current size of the map container (in pixels).
|
|
@@ -6541,18 +6566,18 @@ var Un = { exports: {} };
|
|
|
6541
6566
|
}
|
|
6542
6567
|
});
|
|
6543
6568
|
function As(t, i, n) {
|
|
6544
|
-
var o, M = [1, 4, 2, 8], l, C, y, D, p,
|
|
6545
|
-
for (l = 0,
|
|
6569
|
+
var o, M = [1, 4, 2, 8], l, C, y, D, p, U, F, q;
|
|
6570
|
+
for (l = 0, U = t.length; l < U; l++)
|
|
6546
6571
|
t[l]._code = Ii(t[l], i);
|
|
6547
6572
|
for (y = 0; y < 4; y++) {
|
|
6548
|
-
for (F = M[y], o = [], l = 0,
|
|
6573
|
+
for (F = M[y], o = [], l = 0, U = t.length, C = U - 1; l < U; C = l++)
|
|
6549
6574
|
D = t[l], p = t[C], D._code & F ? p._code & F || (q = me(p, D, F, i, n), q._code = Ii(q, i), o.push(q)) : (p._code & F && (q = me(p, D, F, i, n), q._code = Ii(q, i), o.push(q)), o.push(D));
|
|
6550
6575
|
t = o;
|
|
6551
6576
|
}
|
|
6552
6577
|
return t;
|
|
6553
6578
|
}
|
|
6554
6579
|
function ys(t, i) {
|
|
6555
|
-
var n, o, M, l, C, y, D, p,
|
|
6580
|
+
var n, o, M, l, C, y, D, p, U;
|
|
6556
6581
|
if (!t || t.length === 0)
|
|
6557
6582
|
throw new Error("latlngs not passed");
|
|
6558
6583
|
Yt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
@@ -6565,8 +6590,8 @@ var Un = { exports: {} };
|
|
|
6565
6590
|
}
|
|
6566
6591
|
for (y = D = p = 0, n = 0, o = jt - 1; n < jt; o = n++)
|
|
6567
6592
|
M = kt[n], l = kt[o], C = M.y * l.x - l.y * M.x, D += (M.x + l.x) * C, p += (M.y + l.y) * C, y += C * 3;
|
|
6568
|
-
y === 0 ?
|
|
6569
|
-
var Oi = i.unproject(H(
|
|
6593
|
+
y === 0 ? U = kt[0] : U = [D / y, p / y];
|
|
6594
|
+
var Oi = i.unproject(H(U));
|
|
6570
6595
|
return V([Oi.lat + F.lat, Oi.lng + F.lng]);
|
|
6571
6596
|
}
|
|
6572
6597
|
function Dn(t) {
|
|
@@ -6625,8 +6650,8 @@ var Un = { exports: {} };
|
|
|
6625
6650
|
}
|
|
6626
6651
|
}
|
|
6627
6652
|
function me(t, i, n, o, M) {
|
|
6628
|
-
var l = i.x - t.x, C = i.y - t.y, y = o.min, D = o.max, p,
|
|
6629
|
-
return n & 8 ? (p = t.x + l * (D.y - t.y) / C,
|
|
6653
|
+
var l = i.x - t.x, C = i.y - t.y, y = o.min, D = o.max, p, U;
|
|
6654
|
+
return n & 8 ? (p = t.x + l * (D.y - t.y) / C, U = D.y) : n & 4 ? (p = t.x + l * (y.y - t.y) / C, U = y.y) : n & 2 ? (p = D.x, U = t.y + C * (D.x - t.x) / l) : n & 1 && (p = y.x, U = t.y + C * (y.x - t.x) / l), new W(p, U, M);
|
|
6630
6655
|
}
|
|
6631
6656
|
function Ii(t, i) {
|
|
6632
6657
|
var n = 0;
|
|
@@ -6651,12 +6676,12 @@ var Un = { exports: {} };
|
|
|
6651
6676
|
if (!t || t.length === 0)
|
|
6652
6677
|
throw new Error("latlngs not passed");
|
|
6653
6678
|
Yt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
6654
|
-
var
|
|
6655
|
-
q < 1700 && (
|
|
6679
|
+
var U = V([0, 0]), F = nt(t), q = F.getNorthWest().distanceTo(F.getSouthWest()) * F.getNorthEast().distanceTo(F.getNorthWest());
|
|
6680
|
+
q < 1700 && (U = Dn(t));
|
|
6656
6681
|
var pt = t.length, jt = [];
|
|
6657
6682
|
for (n = 0; n < pt; n++) {
|
|
6658
6683
|
var kt = V(t[n]);
|
|
6659
|
-
jt.push(i.project(V([kt.lat -
|
|
6684
|
+
jt.push(i.project(V([kt.lat - U.lat, kt.lng - U.lng])));
|
|
6660
6685
|
}
|
|
6661
6686
|
for (n = 0, o = 0; n < pt - 1; n++)
|
|
6662
6687
|
o += jt[n].distanceTo(jt[n + 1]) / 2;
|
|
@@ -6672,7 +6697,7 @@ var Un = { exports: {} };
|
|
|
6672
6697
|
break;
|
|
6673
6698
|
}
|
|
6674
6699
|
var vt = i.unproject(H(p));
|
|
6675
|
-
return V([vt.lat +
|
|
6700
|
+
return V([vt.lat + U.lat, vt.lng + U.lng]);
|
|
6676
6701
|
}
|
|
6677
6702
|
var hr = {
|
|
6678
6703
|
__proto__: null,
|
|
@@ -7509,8 +7534,8 @@ var Un = { exports: {} };
|
|
|
7509
7534
|
_project: function() {
|
|
7510
7535
|
var t = this._latlng.lng, i = this._latlng.lat, n = this._map, o = n.options.crs;
|
|
7511
7536
|
if (o.distance === Et.distance) {
|
|
7512
|
-
var M = Math.PI / 180, l = this._mRadius / Et.R / M, C = n.project([i + l, t]), y = n.project([i - l, t]), D = C.add(y).divideBy(2), p = n.unproject(D).lat,
|
|
7513
|
-
(isNaN(
|
|
7537
|
+
var M = Math.PI / 180, l = this._mRadius / Et.R / M, C = n.project([i + l, t]), y = n.project([i - l, t]), D = C.add(y).divideBy(2), p = n.unproject(D).lat, U = Math.acos((Math.cos(l * M) - Math.sin(i * M) * Math.sin(p * M)) / (Math.cos(i * M) * Math.cos(p * M))) / M;
|
|
7538
|
+
(isNaN(U) || U === 0) && (U = l / Math.cos(Math.PI / 180 * i)), this._point = D.subtract(n.getPixelOrigin()), this._radius = isNaN(U) ? 0 : D.x - n.project([p, t - U]).x, this._radiusY = D.y - C.y;
|
|
7514
7539
|
} else {
|
|
7515
7540
|
var F = o.unproject(o.project(this._latlng).subtract([this._mRadius, 0]));
|
|
7516
7541
|
this._point = n.latLngToLayerPoint(this._latlng), this._radius = this._point.x - n.latLngToLayerPoint(F).x;
|
|
@@ -7555,7 +7580,7 @@ var Un = { exports: {} };
|
|
|
7555
7580
|
// Returns the point closest to `p` on the Polyline.
|
|
7556
7581
|
closestLayerPoint: function(t) {
|
|
7557
7582
|
for (var i = 1 / 0, n = null, o = $i, M, l, C = 0, y = this._parts.length; C < y; C++)
|
|
7558
|
-
for (var D = this._parts[C], p = 1,
|
|
7583
|
+
for (var D = this._parts[C], p = 1, U = D.length; p < U; p++) {
|
|
7559
7584
|
M = D[p - 1], l = D[p];
|
|
7560
7585
|
var F = o(t, M, l, !0);
|
|
7561
7586
|
F < i && (i = F, n = o(t, M, l));
|
|
@@ -7794,14 +7819,14 @@ var Un = { exports: {} };
|
|
|
7794
7819
|
}
|
|
7795
7820
|
});
|
|
7796
7821
|
function _e(t, i) {
|
|
7797
|
-
var n = t.type === "Feature" ? t.geometry : t, o = n ? n.coordinates : null, M = [], l = i && i.pointToLayer, C = i && i.coordsToLatLng || _n, y, D, p,
|
|
7822
|
+
var n = t.type === "Feature" ? t.geometry : t, o = n ? n.coordinates : null, M = [], l = i && i.pointToLayer, C = i && i.coordsToLatLng || _n, y, D, p, U;
|
|
7798
7823
|
if (!o && !n)
|
|
7799
7824
|
return null;
|
|
7800
7825
|
switch (n.type) {
|
|
7801
7826
|
case "Point":
|
|
7802
7827
|
return y = C(o), xs(l, t, y, i);
|
|
7803
7828
|
case "MultiPoint":
|
|
7804
|
-
for (p = 0,
|
|
7829
|
+
for (p = 0, U = o.length; p < U; p++)
|
|
7805
7830
|
y = C(o[p]), M.push(xs(l, t, y, i));
|
|
7806
7831
|
return new Vt(M);
|
|
7807
7832
|
case "LineString":
|
|
@@ -7811,7 +7836,7 @@ var Un = { exports: {} };
|
|
|
7811
7836
|
case "MultiPolygon":
|
|
7812
7837
|
return D = pe(o, n.type === "Polygon" ? 1 : 2, C), new _i(D, i);
|
|
7813
7838
|
case "GeometryCollection":
|
|
7814
|
-
for (p = 0,
|
|
7839
|
+
for (p = 0, U = n.geometries.length; p < U; p++) {
|
|
7815
7840
|
var F = _e({
|
|
7816
7841
|
geometry: n.geometries[p],
|
|
7817
7842
|
type: "Feature",
|
|
@@ -7821,7 +7846,7 @@ var Un = { exports: {} };
|
|
|
7821
7846
|
}
|
|
7822
7847
|
return new Vt(M);
|
|
7823
7848
|
case "FeatureCollection":
|
|
7824
|
-
for (p = 0,
|
|
7849
|
+
for (p = 0, U = n.features.length; p < U; p++) {
|
|
7825
7850
|
var q = _e(n.features[p], i);
|
|
7826
7851
|
q && M.push(q);
|
|
7827
7852
|
}
|
|
@@ -8379,8 +8404,8 @@ var Un = { exports: {} };
|
|
|
8379
8404
|
}
|
|
8380
8405
|
var t = this._map, i = parseInt(Fi(this._container, "marginBottom"), 10) || 0, n = this._container.offsetHeight + i, o = this._containerWidth, M = new W(this._containerLeft, -n - this._containerBottom);
|
|
8381
8406
|
M._add(ci(this._container));
|
|
8382
|
-
var l = t.layerPointToContainerPoint(M), C = H(this.options.autoPanPadding), y = H(this.options.autoPanPaddingTopLeft || C), D = H(this.options.autoPanPaddingBottomRight || C), p = t.getSize(),
|
|
8383
|
-
l.x + o + D.x > p.x && (
|
|
8407
|
+
var l = t.layerPointToContainerPoint(M), C = H(this.options.autoPanPadding), y = H(this.options.autoPanPaddingTopLeft || C), D = H(this.options.autoPanPaddingBottomRight || C), p = t.getSize(), U = 0, F = 0;
|
|
8408
|
+
l.x + o + D.x > p.x && (U = l.x + o - p.x + D.x), l.x - U - y.x < 0 && (U = l.x - y.x), l.y + n + D.y > p.y && (F = l.y + n - p.y + D.y), l.y - F - y.y < 0 && (F = l.y - y.y), (U || F) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([U, F]));
|
|
8384
8409
|
}
|
|
8385
8410
|
},
|
|
8386
8411
|
_getAnchor: function() {
|
|
@@ -8521,8 +8546,8 @@ var Un = { exports: {} };
|
|
|
8521
8546
|
_adjustPan: function() {
|
|
8522
8547
|
},
|
|
8523
8548
|
_setPosition: function(t) {
|
|
8524
|
-
var i, n, o = this._map, M = this._container, l = o.latLngToContainerPoint(o.getCenter()), C = o.layerPointToContainerPoint(t), y = this.options.direction, D = M.offsetWidth, p = M.offsetHeight,
|
|
8525
|
-
y === "top" ? (i = D / 2, n = p) : y === "bottom" ? (i = D / 2, n = 0) : y === "center" ? (i = D / 2, n = p / 2) : y === "right" ? (i = 0, n = p / 2) : y === "left" ? (i = D, n = p / 2) : C.x < l.x ? (y = "right", i = 0, n = p / 2) : (y = "left", i = D + (
|
|
8549
|
+
var i, n, o = this._map, M = this._container, l = o.latLngToContainerPoint(o.getCenter()), C = o.layerPointToContainerPoint(t), y = this.options.direction, D = M.offsetWidth, p = M.offsetHeight, U = H(this.options.offset), F = this._getAnchor();
|
|
8550
|
+
y === "top" ? (i = D / 2, n = p) : y === "bottom" ? (i = D / 2, n = 0) : y === "center" ? (i = D / 2, n = p / 2) : y === "right" ? (i = 0, n = p / 2) : y === "left" ? (i = D, n = p / 2) : C.x < l.x ? (y = "right", i = 0, n = p / 2) : (y = "left", i = D + (U.x + F.x) * 2, n = p / 2), t = t.subtract(H(i, n, !0)).add(U).add(F), dt(M, "leaflet-tooltip-right"), dt(M, "leaflet-tooltip-left"), dt(M, "leaflet-tooltip-top"), dt(M, "leaflet-tooltip-bottom"), J(M, "leaflet-tooltip-" + y), Nt(M, t);
|
|
8526
8551
|
},
|
|
8527
8552
|
_updatePosition: function() {
|
|
8528
8553
|
var t = this._map.latLngToLayerPoint(this._latlng);
|
|
@@ -8954,8 +8979,8 @@ var Un = { exports: {} };
|
|
|
8954
8979
|
if (!(isFinite(M.min.x) && isFinite(M.min.y) && isFinite(M.max.x) && isFinite(M.max.y)))
|
|
8955
8980
|
throw new Error("Attempted to load an infinite number of tiles");
|
|
8956
8981
|
for (var p in this._tiles) {
|
|
8957
|
-
var
|
|
8958
|
-
(
|
|
8982
|
+
var U = this._tiles[p].coords;
|
|
8983
|
+
(U.z !== this._tileZoom || !D.contains(new W(U.x, U.y))) && (this._tiles[p].current = !1);
|
|
8959
8984
|
}
|
|
8960
8985
|
if (Math.abs(n - this._tileZoom) > 1) {
|
|
8961
8986
|
this._setView(t, n);
|
|
@@ -9499,7 +9524,7 @@ var Un = { exports: {} };
|
|
|
9499
9524
|
}
|
|
9500
9525
|
}
|
|
9501
9526
|
});
|
|
9502
|
-
function
|
|
9527
|
+
function Us(t) {
|
|
9503
9528
|
return P.canvas ? new ks(t) : null;
|
|
9504
9529
|
}
|
|
9505
9530
|
var ee = function() {
|
|
@@ -9599,7 +9624,7 @@ var Un = { exports: {} };
|
|
|
9599
9624
|
}
|
|
9600
9625
|
});
|
|
9601
9626
|
P.vml && ne.include(Er);
|
|
9602
|
-
function
|
|
9627
|
+
function Zs(t) {
|
|
9603
9628
|
return P.svg || P.vml ? new ne(t) : null;
|
|
9604
9629
|
}
|
|
9605
9630
|
it.include({
|
|
@@ -9618,7 +9643,7 @@ var Un = { exports: {} };
|
|
|
9618
9643
|
return i === void 0 && (i = this._createRenderer({ pane: t }), this._paneRenderers[t] = i), i;
|
|
9619
9644
|
},
|
|
9620
9645
|
_createRenderer: function(t) {
|
|
9621
|
-
return this.options.preferCanvas &&
|
|
9646
|
+
return this.options.preferCanvas && Us(t) || Zs(t);
|
|
9622
9647
|
}
|
|
9623
9648
|
});
|
|
9624
9649
|
var Gs = _i.extend({
|
|
@@ -9829,7 +9854,7 @@ var Un = { exports: {} };
|
|
|
9829
9854
|
i.fire("moveend");
|
|
9830
9855
|
else {
|
|
9831
9856
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
9832
|
-
var M = this._lastPos.subtract(this._positions[0]), l = (this._lastTime - this._times[0]) / 1e3, C = n.easeLinearity, y = M.multiplyBy(C / l), D = y.distanceTo([0, 0]), p = Math.min(n.inertiaMaxSpeed, D),
|
|
9857
|
+
var M = this._lastPos.subtract(this._positions[0]), l = (this._lastTime - this._times[0]) / 1e3, C = n.easeLinearity, y = M.multiplyBy(C / l), D = y.distanceTo([0, 0]), p = Math.min(n.inertiaMaxSpeed, D), U = y.multiplyBy(p / D), F = p / (n.inertiaDeceleration * C), q = U.multiplyBy(-F / 2).round();
|
|
9833
9858
|
!q.x && !q.y ? i.fire("moveend") : (q = i._limitOffset(q, i.options.maxBounds), tt(function() {
|
|
9834
9859
|
i.panBy(q, {
|
|
9835
9860
|
duration: F,
|
|
@@ -10083,14 +10108,14 @@ var Un = { exports: {} };
|
|
|
10083
10108
|
this._zooming = !1, ht(this._animRequest), Mt(document, "touchmove", this._onTouchMove, this), Mt(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));
|
|
10084
10109
|
}
|
|
10085
10110
|
});
|
|
10086
|
-
it.addInitHook("addHandler", "touchZoom", Fs), it.BoxZoom = Qs, it.DoubleClickZoom = Ps, it.Drag = Bs, it.Keyboard = Rs, it.ScrollWheelZoom = Ws, it.TapHold = Hs, it.TouchZoom = Fs, s.Bounds = at, s.Browser = P, s.CRS = Ct, s.Canvas = ks, s.Circle = zn, s.CircleMarker = ze, s.Class = mt, s.Control = Gt, s.DivIcon = Es, s.DivOverlay = Xt, s.DomEvent = tr, s.DomUtil = qo, s.Draggable = ni, s.Evented = Ot, s.FeatureGroup = Vt, s.GeoJSON = qt, s.GridLayer = ie, s.Handler = Ft, s.Icon = zi, s.ImageOverlay = ve, s.LatLng = $, s.LatLngBounds = Lt, s.Layer = Qt, s.LayerGroup = Ti, s.LineUtil = hr, s.Map = it, s.Marker = Te, s.Mixin = ar, s.Path = si, s.Point = W, s.PolyUtil = Mr, s.Polygon = _i, s.Polyline = Kt, s.Popup = Se, s.PosAnimation = ws, s.Projection = Lr, s.Rectangle = Gs, s.Renderer = $t, s.SVG = ne, s.SVGOverlay = Ss, s.TileLayer = xi, s.Tooltip = Ee, s.Transformation = Ni, s.Util = wt, s.VideoOverlay = vs, s.bind = c, s.bounds = ct, s.canvas =
|
|
10111
|
+
it.addInitHook("addHandler", "touchZoom", Fs), it.BoxZoom = Qs, it.DoubleClickZoom = Ps, it.Drag = Bs, it.Keyboard = Rs, it.ScrollWheelZoom = Ws, it.TapHold = Hs, it.TouchZoom = Fs, s.Bounds = at, s.Browser = P, s.CRS = Ct, s.Canvas = ks, s.Circle = zn, s.CircleMarker = ze, s.Class = mt, s.Control = Gt, s.DivIcon = Es, s.DivOverlay = Xt, s.DomEvent = tr, s.DomUtil = qo, s.Draggable = ni, s.Evented = Ot, s.FeatureGroup = Vt, s.GeoJSON = qt, s.GridLayer = ie, s.Handler = Ft, s.Icon = zi, s.ImageOverlay = ve, s.LatLng = $, s.LatLngBounds = Lt, s.Layer = Qt, s.LayerGroup = Ti, s.LineUtil = hr, s.Map = it, s.Marker = Te, s.Mixin = ar, s.Path = si, s.Point = W, s.PolyUtil = Mr, s.Polygon = _i, s.Polyline = Kt, s.Popup = Se, s.PosAnimation = ws, s.Projection = Lr, s.Rectangle = Gs, s.Renderer = $t, s.SVG = ne, s.SVGOverlay = Ss, s.TileLayer = xi, s.Tooltip = Ee, s.Transformation = Ni, s.Util = wt, s.VideoOverlay = vs, s.bind = c, s.bounds = ct, s.canvas = Us, s.circle = fr, s.circleMarker = yr, s.control = qi, s.divIcon = Or, s.extend = u, s.featureGroup = dr, s.geoJSON = Os, s.geoJson = mr, s.gridLayer = vr, s.icon = Nr, s.imageOverlay = Tr, s.latLng = V, s.latLngBounds = nt, s.layerGroup = Cr, s.map = ir, s.marker = Ar, s.point = H, s.polygon = jr, s.polyline = Dr, s.popup = pr, s.rectangle = br, s.setOptions = A, s.stamp = w, s.svg = Zs, s.svgOverlay = _r, s.tileLayer = bs, s.tooltip = xr, s.transformation = gi, s.version = r, s.videoOverlay = zr;
|
|
10087
10112
|
var kr = window.L;
|
|
10088
10113
|
s.noConflict = function() {
|
|
10089
10114
|
return window.L = kr, this;
|
|
10090
10115
|
}, window.L = s;
|
|
10091
10116
|
});
|
|
10092
|
-
})(
|
|
10093
|
-
var oa =
|
|
10117
|
+
})(Zn, Zn.exports);
|
|
10118
|
+
var oa = Zn.exports;
|
|
10094
10119
|
const ra = /* @__PURE__ */ Bn(oa), FM = ra.GridLayer.extend({
|
|
10095
10120
|
MIN_ZOOM: Be,
|
|
10096
10121
|
MAX_ZOOM: Re,
|
|
@@ -10707,7 +10732,7 @@ function va(a, e) {
|
|
|
10707
10732
|
}
|
|
10708
10733
|
function Gn(a) {
|
|
10709
10734
|
let e = 0;
|
|
10710
|
-
return ba(a) || (e =
|
|
10735
|
+
return ba(a) || (e = Ut(a) * oe(a)), e;
|
|
10711
10736
|
}
|
|
10712
10737
|
function Jn(a) {
|
|
10713
10738
|
return [a[0], a[1]];
|
|
@@ -10745,7 +10770,7 @@ function ge(a) {
|
|
|
10745
10770
|
function Kn(a) {
|
|
10746
10771
|
return [a[2], a[3]];
|
|
10747
10772
|
}
|
|
10748
|
-
function
|
|
10773
|
+
function Ut(a) {
|
|
10749
10774
|
return a[2] - a[0];
|
|
10750
10775
|
}
|
|
10751
10776
|
function qn(a, e) {
|
|
@@ -10907,7 +10932,7 @@ class ka {
|
|
|
10907
10932
|
return this.getPointResolutionFunc_;
|
|
10908
10933
|
}
|
|
10909
10934
|
}
|
|
10910
|
-
const Do = ka, le = 6378137, Yi = Math.PI * le,
|
|
10935
|
+
const Do = ka, le = 6378137, Yi = Math.PI * le, Ua = [-Yi, -Yi, Yi, Yi], Za = [-180, -85, 180, 85], ke = le * Math.log(Math.tan(Math.PI / 2));
|
|
10911
10936
|
class vi extends Do {
|
|
10912
10937
|
/**
|
|
10913
10938
|
* @param {string} code Code.
|
|
@@ -10916,9 +10941,9 @@ class vi extends Do {
|
|
|
10916
10941
|
super({
|
|
10917
10942
|
code: e,
|
|
10918
10943
|
units: "m",
|
|
10919
|
-
extent:
|
|
10944
|
+
extent: Ua,
|
|
10920
10945
|
global: !0,
|
|
10921
|
-
worldExtent:
|
|
10946
|
+
worldExtent: Za,
|
|
10922
10947
|
getPointResolution: function(s, r) {
|
|
10923
10948
|
return s / Math.cosh(r[1] / le);
|
|
10924
10949
|
}
|
|
@@ -11033,10 +11058,10 @@ function jo(a, e) {
|
|
|
11033
11058
|
const s = Math.pow(10, e);
|
|
11034
11059
|
return Math.round(a * s) / s;
|
|
11035
11060
|
}
|
|
11036
|
-
function
|
|
11061
|
+
function Ue(a, e) {
|
|
11037
11062
|
return Math.floor(jo(a, e));
|
|
11038
11063
|
}
|
|
11039
|
-
function
|
|
11064
|
+
function Ze(a, e) {
|
|
11040
11065
|
return Math.ceil(jo(a, e));
|
|
11041
11066
|
}
|
|
11042
11067
|
const Xa = 63710088e-1;
|
|
@@ -11176,7 +11201,7 @@ class iM {
|
|
|
11176
11201
|
this.transformInv_ = function(x) {
|
|
11177
11202
|
const O = x[0] + "/" + x[1];
|
|
11178
11203
|
return I[O] || (I[O] = w(x)), I[O];
|
|
11179
|
-
}, this.maxSourceExtent_ = u, this.errorThresholdSquared_ = g * g, this.triangles_ = [], this.wrapsXInSource_ = !1, this.canWrapXInSource_ = this.sourceProj_.canWrapX() && !!u && !!this.sourceProj_.getExtent() &&
|
|
11204
|
+
}, this.maxSourceExtent_ = u, this.errorThresholdSquared_ = g * g, this.triangles_ = [], this.wrapsXInSource_ = !1, this.canWrapXInSource_ = this.sourceProj_.canWrapX() && !!u && !!this.sourceProj_.getExtent() && Ut(u) >= Ut(this.sourceProj_.getExtent()), this.sourceWorldWidth_ = this.sourceProj_.getExtent() ? Ut(this.sourceProj_.getExtent()) : null, this.targetWorldWidth_ = this.targetProj_.getExtent() ? Ut(this.targetProj_.getExtent()) : null;
|
|
11180
11205
|
const N = ge(r), f = Kn(r), T = Vn(r), S = Jn(r), E = this.transformInv_(N), Y = this.transformInv_(f), A = this.transformInv_(T), m = this.transformInv_(S), j = tM + (c ? Math.max(
|
|
11181
11206
|
0,
|
|
11182
11207
|
Math.ceil(
|
|
@@ -11264,7 +11289,7 @@ class iM {
|
|
|
11264
11289
|
* @private
|
|
11265
11290
|
*/
|
|
11266
11291
|
addQuad_(e, s, r, u, g, c, I, w, N) {
|
|
11267
|
-
const f = to([g, c, I, w]), T = this.sourceWorldWidth_ ?
|
|
11292
|
+
const f = to([g, c, I, w]), T = this.sourceWorldWidth_ ? Ut(f) / this.sourceWorldWidth_ : null, S = (
|
|
11268
11293
|
/** @type {number} */
|
|
11269
11294
|
this.sourceWorldWidth_
|
|
11270
11295
|
), E = this.sourceProj_.canWrapX() && T > 0.5 && T < 1;
|
|
@@ -11272,7 +11297,7 @@ class iM {
|
|
|
11272
11297
|
if (N > 0) {
|
|
11273
11298
|
if (this.targetProj_.isGlobal() && this.targetWorldWidth_) {
|
|
11274
11299
|
const m = to([e, s, r, u]);
|
|
11275
|
-
Y =
|
|
11300
|
+
Y = Ut(m) / this.targetWorldWidth_ > Mo || Y;
|
|
11276
11301
|
}
|
|
11277
11302
|
!E && this.sourceProj_.isGlobal() && T && (Y = T > Mo || Y);
|
|
11278
11303
|
}
|
|
@@ -11372,7 +11397,7 @@ class iM {
|
|
|
11372
11397
|
}
|
|
11373
11398
|
const eM = iM;
|
|
11374
11399
|
let En;
|
|
11375
|
-
const
|
|
11400
|
+
const Ui = [];
|
|
11376
11401
|
function uo(a, e, s, r, u) {
|
|
11377
11402
|
a.beginPath(), a.moveTo(0, 0), a.lineTo(e, s), a.lineTo(r, u), a.closePath(), a.save(), a.clip(), a.fillRect(0, 0, Math.max(e, r) + 1, Math.max(s, u)), a.restore();
|
|
11378
11403
|
}
|
|
@@ -11381,10 +11406,10 @@ function bn(a, e) {
|
|
|
11381
11406
|
}
|
|
11382
11407
|
function nM() {
|
|
11383
11408
|
if (En === void 0) {
|
|
11384
|
-
const a = We(6, 6,
|
|
11409
|
+
const a = We(6, 6, Ui);
|
|
11385
11410
|
a.globalCompositeOperation = "lighter", a.fillStyle = "rgba(210, 0, 0, 0.75)", uo(a, 4, 5, 4, 0), uo(a, 4, 5, 0, 5);
|
|
11386
11411
|
const e = a.getImageData(0, 0, 3, 3).data;
|
|
11387
|
-
En = bn(e, 0) || bn(e, 4) || bn(e, 8), Fn(a),
|
|
11412
|
+
En = bn(e, 0) || bn(e, 4) || bn(e, 8), Fn(a), Ui.push(a.canvas);
|
|
11388
11413
|
}
|
|
11389
11414
|
return En;
|
|
11390
11415
|
}
|
|
@@ -11427,7 +11452,7 @@ function oM(a, e, s, r, u, g, c, I, w, N, f, T, S) {
|
|
|
11427
11452
|
const E = We(
|
|
11428
11453
|
Math.round(s * a),
|
|
11429
11454
|
Math.round(s * e),
|
|
11430
|
-
|
|
11455
|
+
Ui
|
|
11431
11456
|
);
|
|
11432
11457
|
if (T || (E.imageSmoothingEnabled = !1), w.length === 0)
|
|
11433
11458
|
return E.canvas;
|
|
@@ -11442,15 +11467,15 @@ function oM(a, e, s, r, u, g, c, I, w, N, f, T, S) {
|
|
|
11442
11467
|
});
|
|
11443
11468
|
let m;
|
|
11444
11469
|
if (!S || w.length !== 1 || N !== 0) {
|
|
11445
|
-
const x =
|
|
11470
|
+
const x = Ut(A), O = oe(A);
|
|
11446
11471
|
m = We(
|
|
11447
11472
|
Math.round(s * x / r),
|
|
11448
11473
|
Math.round(s * O / r),
|
|
11449
|
-
|
|
11474
|
+
Ui
|
|
11450
11475
|
), T || (m.imageSmoothingEnabled = !1);
|
|
11451
11476
|
const k = s / r;
|
|
11452
|
-
w.forEach(function(v, Q,
|
|
11453
|
-
const R = v.extent[0] - A[0], et = -(v.extent[3] - A[3]), Dt =
|
|
11477
|
+
w.forEach(function(v, Q, Z) {
|
|
11478
|
+
const R = v.extent[0] - A[0], et = -(v.extent[3] - A[3]), Dt = Ut(v.extent), tt = oe(v.extent);
|
|
11454
11479
|
v.image.width > 0 && v.image.height > 0 && m.drawImage(
|
|
11455
11480
|
v.image,
|
|
11456
11481
|
N,
|
|
@@ -11467,15 +11492,15 @@ function oM(a, e, s, r, u, g, c, I, w, N, f, T, S) {
|
|
|
11467
11492
|
const j = ge(c);
|
|
11468
11493
|
return I.getTriangles().forEach(function(x, O, k) {
|
|
11469
11494
|
const v = x.source, Q = x.target;
|
|
11470
|
-
let
|
|
11495
|
+
let Z = v[0][0], R = v[0][1], et = v[1][0], Dt = v[1][1], tt = v[2][0], ht = v[2][1];
|
|
11471
11496
|
const wt = Y((Q[0][0] - j[0]) / g), mt = Y(
|
|
11472
11497
|
-(Q[0][1] - j[1]) / g
|
|
11473
11498
|
), Rt = Y((Q[1][0] - j[0]) / g), ut = Y(
|
|
11474
11499
|
-(Q[1][1] - j[1]) / g
|
|
11475
11500
|
), Ot = Y((Q[2][0] - j[0]) / g), W = Y(
|
|
11476
11501
|
-(Q[2][1] - j[1]) / g
|
|
11477
|
-
), Jt =
|
|
11478
|
-
|
|
11502
|
+
), Jt = Z, H = R;
|
|
11503
|
+
Z = 0, R = 0, et -= Jt, Dt -= H, tt -= Jt, ht -= H;
|
|
11479
11504
|
const at = [
|
|
11480
11505
|
[et, Dt, 0, 0, Rt - wt],
|
|
11481
11506
|
[tt, ht, 0, 0, Ot - wt],
|
|
@@ -11518,14 +11543,14 @@ function oM(a, e, s, r, u, g, c, I, w, N, f, T, S) {
|
|
|
11518
11543
|
else {
|
|
11519
11544
|
const nt = w[0], $ = nt.extent;
|
|
11520
11545
|
Lt = nt.image, E.scale(
|
|
11521
|
-
|
|
11546
|
+
Ut($) / Lt.width,
|
|
11522
11547
|
-oe($) / Lt.height
|
|
11523
11548
|
);
|
|
11524
11549
|
}
|
|
11525
11550
|
E.drawImage(Lt, 0, 0), E.restore();
|
|
11526
|
-
}), m && (Fn(m),
|
|
11527
|
-
const v = x.target, Q = (v[0][0] - j[0]) / g,
|
|
11528
|
-
E.beginPath(), E.moveTo(R, et), E.lineTo(Q,
|
|
11551
|
+
}), m && (Fn(m), Ui.push(m.canvas)), f && (E.save(), E.globalCompositeOperation = "source-over", E.strokeStyle = "black", E.lineWidth = 1, I.getTriangles().forEach(function(x, O, k) {
|
|
11552
|
+
const v = x.target, Q = (v[0][0] - j[0]) / g, Z = -(v[0][1] - j[1]) / g, R = (v[1][0] - j[0]) / g, et = -(v[1][1] - j[1]) / g, Dt = (v[2][0] - j[0]) / g, tt = -(v[2][1] - j[1]) / g;
|
|
11553
|
+
E.beginPath(), E.moveTo(R, et), E.lineTo(Q, Z), E.lineTo(Dt, tt), E.closePath(), E.stroke();
|
|
11529
11554
|
}), E.restore()), E.canvas;
|
|
11530
11555
|
}
|
|
11531
11556
|
class rM extends yo {
|
|
@@ -11598,9 +11623,9 @@ class rM extends yo {
|
|
|
11598
11623
|
v,
|
|
11599
11624
|
this.sourceZ_
|
|
11600
11625
|
);
|
|
11601
|
-
for (let
|
|
11626
|
+
for (let Z = Q.minX; Z <= Q.maxX; Z++)
|
|
11602
11627
|
for (let R = Q.minY; R <= Q.maxY; R++) {
|
|
11603
|
-
const et = N(this.sourceZ_,
|
|
11628
|
+
const et = N(this.sourceZ_, Z, R, I);
|
|
11604
11629
|
et && this.sourceTiles_.push(et);
|
|
11605
11630
|
}
|
|
11606
11631
|
this.sourceTiles_.length === 0 && (this.state = K.EMPTY);
|
|
@@ -11685,7 +11710,7 @@ class rM extends yo {
|
|
|
11685
11710
|
* Remove from the cache due to expiry
|
|
11686
11711
|
*/
|
|
11687
11712
|
release() {
|
|
11688
|
-
this.canvas_ && (Fn(this.canvas_.getContext("2d")),
|
|
11713
|
+
this.canvas_ && (Fn(this.canvas_.getContext("2d")), Ui.push(this.canvas_), this.canvas_ = null), super.release();
|
|
11689
11714
|
}
|
|
11690
11715
|
}
|
|
11691
11716
|
const aM = rM;
|
|
@@ -12690,7 +12715,7 @@ class zM {
|
|
|
12690
12715
|
getTileCoordForXYAndResolution_(e, s, r, u, g) {
|
|
12691
12716
|
const c = this.getZForResolution(r), I = r / this.getResolution(c), w = this.getOrigin(c), N = Ci(this.getTileSize(c), this.tmpSize_);
|
|
12692
12717
|
let f = I * (e - w[0]) / r / N[0], T = I * (w[1] - s) / r / N[1];
|
|
12693
|
-
return u ? (f =
|
|
12718
|
+
return u ? (f = Ze(f, oi) - 1, T = Ze(T, oi) - 1) : (f = Ue(f, oi), T = Ue(T, oi)), lo(c, f, T, g);
|
|
12694
12719
|
}
|
|
12695
12720
|
/**
|
|
12696
12721
|
* Although there is repetition between this method and `getTileCoordForXYAndResolution_`,
|
|
@@ -12710,7 +12735,7 @@ class zM {
|
|
|
12710
12735
|
getTileCoordForXYAndZ_(e, s, r, u, g) {
|
|
12711
12736
|
const c = this.getOrigin(r), I = this.getResolution(r), w = Ci(this.getTileSize(r), this.tmpSize_);
|
|
12712
12737
|
let N = (e - c[0]) / I / w[0], f = (c[1] - s) / I / w[1];
|
|
12713
|
-
return u ? (N =
|
|
12738
|
+
return u ? (N = Ze(N, oi) - 1, f = Ze(f, oi) - 1) : (N = Ue(N, oi), f = Ue(f, oi)), lo(r, N, f, g);
|
|
12714
12739
|
}
|
|
12715
12740
|
/**
|
|
12716
12741
|
* Get a tile coordinate given a map coordinate and zoom level.
|
|
@@ -12813,7 +12838,7 @@ function vo(a) {
|
|
|
12813
12838
|
function _M(a, e, s) {
|
|
12814
12839
|
const r = e[0], u = a.getTileCoordCenter(e), g = $e(s);
|
|
12815
12840
|
if (!fo(g, u)) {
|
|
12816
|
-
const c =
|
|
12841
|
+
const c = Ut(g), I = Math.ceil(
|
|
12817
12842
|
(g[0] - u[0]) / c
|
|
12818
12843
|
);
|
|
12819
12844
|
return u[0] += c * I, a.getTileCoordForCoordAndZ(u, r);
|
|
@@ -12846,7 +12871,7 @@ function So(a) {
|
|
|
12846
12871
|
}
|
|
12847
12872
|
function Eo(a, e, s, r) {
|
|
12848
12873
|
e = e !== void 0 ? e : fM, s = Ci(s !== void 0 ? s : xo);
|
|
12849
|
-
const u = oe(a), g =
|
|
12874
|
+
const u = oe(a), g = Ut(a);
|
|
12850
12875
|
r = r > 0 ? r : Math.max(g / s[0], u / s[1]);
|
|
12851
12876
|
const c = e + 1, I = new Array(c);
|
|
12852
12877
|
for (let w = 0; w < c; ++w)
|
|
@@ -13247,8 +13272,8 @@ class is extends SM {
|
|
|
13247
13272
|
this.tileCache.containsKey(u) && this.tileCache.get(u);
|
|
13248
13273
|
}
|
|
13249
13274
|
}
|
|
13250
|
-
const
|
|
13251
|
-
class
|
|
13275
|
+
const UM = is;
|
|
13276
|
+
class ZM extends UM {
|
|
13252
13277
|
/**
|
|
13253
13278
|
* @param {!Options} options Image tile options.
|
|
13254
13279
|
*/
|
|
@@ -13479,7 +13504,7 @@ class UM extends ZM {
|
|
|
13479
13504
|
function GM(a, e) {
|
|
13480
13505
|
a.getImage().src = e;
|
|
13481
13506
|
}
|
|
13482
|
-
const QM =
|
|
13507
|
+
const QM = ZM;
|
|
13483
13508
|
class PM extends QM {
|
|
13484
13509
|
/**
|
|
13485
13510
|
* @param {Options} [options] XYZ options.
|