@europeana/map 0.1.1-map.0 → 0.1.1-map.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.
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { shallowRef as Te, shallowReadonly as rr, toRef as Ql, readonly as th, customRef as eh, ref as Tr, toValue as Le, getCurrentScope as ih, onScopeDispose as nh, watch as Kn, nextTick as uo, isRef as Ca, computed as wa, onMounted as sh, unref as rh, watchEffect as oh, openBlock as ah, createElementBlock as lh, normalizeClass as hh } from "vue";
|
|
2
|
-
const ch = {
|
|
3
|
-
url: {
|
|
4
|
-
type: String,
|
|
5
|
-
default: null
|
|
6
|
-
},
|
|
7
|
-
json: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: null
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
2
|
function Ra(n, t) {
|
|
13
3
|
return ih() ? (nh(n, t), !0) : !1;
|
|
14
4
|
}
|
|
@@ -32,14 +22,14 @@ function Ms() {
|
|
|
32
22
|
}
|
|
33
23
|
const Ta = typeof window < "u" && typeof document < "u";
|
|
34
24
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
35
|
-
const
|
|
25
|
+
const ch = () => {
|
|
36
26
|
};
|
|
37
27
|
function bs(...n) {
|
|
38
28
|
if (n.length !== 1) return Ql(...n);
|
|
39
29
|
const t = n[0];
|
|
40
30
|
return typeof t == "function" ? th(eh(() => ({
|
|
41
31
|
get: t,
|
|
42
|
-
set:
|
|
32
|
+
set: ch
|
|
43
33
|
}))) : Tr(t);
|
|
44
34
|
}
|
|
45
35
|
function fo(n, t = !1, e = "Timeout") {
|
|
@@ -47,7 +37,7 @@ function fo(n, t = !1, e = "Timeout") {
|
|
|
47
37
|
t ? setTimeout(s, n, e) : setTimeout(i, n);
|
|
48
38
|
});
|
|
49
39
|
}
|
|
50
|
-
function
|
|
40
|
+
function uh(n, ...t) {
|
|
51
41
|
return t.some((e) => e in n);
|
|
52
42
|
}
|
|
53
43
|
function or(n, t = !1) {
|
|
@@ -126,10 +116,10 @@ function or(n, t = !1) {
|
|
|
126
116
|
}
|
|
127
117
|
};
|
|
128
118
|
}
|
|
129
|
-
function
|
|
119
|
+
function dh(n) {
|
|
130
120
|
return or(n);
|
|
131
121
|
}
|
|
132
|
-
function
|
|
122
|
+
function fh(n, t, e = {}) {
|
|
133
123
|
const { immediate: i = !0, immediateCallback: s = !1 } = e, r = Te(!1);
|
|
134
124
|
let o;
|
|
135
125
|
function a() {
|
|
@@ -149,17 +139,17 @@ function gh(n, t, e = {}) {
|
|
|
149
139
|
stop: l
|
|
150
140
|
};
|
|
151
141
|
}
|
|
152
|
-
const Os = Ta ? window : void 0,
|
|
142
|
+
const Os = Ta ? window : void 0, gh = {
|
|
153
143
|
json: "application/json",
|
|
154
144
|
text: "text/plain"
|
|
155
145
|
};
|
|
156
146
|
function go(n) {
|
|
157
|
-
return n &&
|
|
147
|
+
return n && uh(n, "immediate", "refetch", "initialData", "timeout", "beforeFetch", "afterFetch", "onFetchError", "fetch", "updateDataOnError");
|
|
158
148
|
}
|
|
159
149
|
function Ps(n) {
|
|
160
150
|
return typeof Headers < "u" && n instanceof Headers ? Object.fromEntries(n.entries()) : n;
|
|
161
151
|
}
|
|
162
|
-
function
|
|
152
|
+
function _h(n, ...t) {
|
|
163
153
|
var e, i;
|
|
164
154
|
const s = typeof AbortController == "function";
|
|
165
155
|
let r = {}, o = {
|
|
@@ -190,7 +180,7 @@ function mh(n, ...t) {
|
|
|
190
180
|
}, R = (A) => {
|
|
191
181
|
m.value = A, g.value = !A;
|
|
192
182
|
};
|
|
193
|
-
h && (L =
|
|
183
|
+
h && (L = fh(I, h, { immediate: !1 }));
|
|
194
184
|
let v = 0;
|
|
195
185
|
const k = async (A = !1) => {
|
|
196
186
|
var O;
|
|
@@ -202,7 +192,7 @@ function mh(n, ...t) {
|
|
|
202
192
|
if (W) {
|
|
203
193
|
var Q;
|
|
204
194
|
const U = Ps(F.headers), lt = Object.getPrototypeOf(W);
|
|
205
|
-
!a.payloadType && W && (lt === Object.prototype || Array.isArray(lt)) && !(W instanceof FormData) && (a.payloadType = "json"), a.payloadType && (U["Content-Type"] = (Q =
|
|
195
|
+
!a.payloadType && W && (lt === Object.prototype || Array.isArray(lt)) && !(W instanceof FormData) && (a.payloadType = "json"), a.payloadType && (U["Content-Type"] = (Q = gh[a.payloadType]) !== null && Q !== void 0 ? Q : a.payloadType), F.body = a.payloadType === "json" ? JSON.stringify(W) : W;
|
|
206
196
|
}
|
|
207
197
|
let rt = !1;
|
|
208
198
|
const S = {
|
|
@@ -289,7 +279,7 @@ function mh(n, ...t) {
|
|
|
289
279
|
}
|
|
290
280
|
function J() {
|
|
291
281
|
return new Promise((A, O) => {
|
|
292
|
-
|
|
282
|
+
dh(g).toBe(!0).then(() => A(P)).catch(O);
|
|
293
283
|
});
|
|
294
284
|
}
|
|
295
285
|
function M(A) {
|
|
@@ -310,17 +300,15 @@ function mh(n, ...t) {
|
|
|
310
300
|
}
|
|
311
301
|
};
|
|
312
302
|
}
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
throw new Error("No data JSON or URL supplied.");
|
|
323
|
-
return { data: e };
|
|
303
|
+
const mh = {
|
|
304
|
+
url: {
|
|
305
|
+
type: String,
|
|
306
|
+
default: null
|
|
307
|
+
},
|
|
308
|
+
json: {
|
|
309
|
+
type: String,
|
|
310
|
+
default: null
|
|
311
|
+
}
|
|
324
312
|
}, Rt = {
|
|
325
313
|
/**
|
|
326
314
|
* Triggered when an item is added to the collection.
|
|
@@ -411,7 +399,7 @@ class ns {
|
|
|
411
399
|
disposeInternal() {
|
|
412
400
|
}
|
|
413
401
|
}
|
|
414
|
-
function
|
|
402
|
+
function ph(n, t, e) {
|
|
415
403
|
let i, s;
|
|
416
404
|
e = e || he;
|
|
417
405
|
let r = 0, o = n.length, a = !1;
|
|
@@ -422,7 +410,7 @@ function yh(n, t, e) {
|
|
|
422
410
|
function he(n, t) {
|
|
423
411
|
return n > t ? 1 : n < t ? -1 : 0;
|
|
424
412
|
}
|
|
425
|
-
function
|
|
413
|
+
function yh(n, t) {
|
|
426
414
|
return n < t ? 1 : n > t ? -1 : 0;
|
|
427
415
|
}
|
|
428
416
|
function Ir(n, t, e) {
|
|
@@ -461,7 +449,7 @@ function Ir(n, t, e) {
|
|
|
461
449
|
}
|
|
462
450
|
return i - 1;
|
|
463
451
|
}
|
|
464
|
-
function
|
|
452
|
+
function Eh(n, t, e) {
|
|
465
453
|
for (; t < e; ) {
|
|
466
454
|
const i = n[t];
|
|
467
455
|
n[t] = n[e], n[e] = i, ++t, --e;
|
|
@@ -481,7 +469,7 @@ function Fe(n, t) {
|
|
|
481
469
|
return !1;
|
|
482
470
|
return !0;
|
|
483
471
|
}
|
|
484
|
-
function
|
|
472
|
+
function xh(n, t, e) {
|
|
485
473
|
const i = t || he;
|
|
486
474
|
return n.every(function(s, r) {
|
|
487
475
|
if (r === 0)
|
|
@@ -505,7 +493,7 @@ function Ia(n) {
|
|
|
505
493
|
return (!e || this !== i || !Fe(s, e)) && (i = this, e = s, t = n.apply(this, arguments)), t;
|
|
506
494
|
};
|
|
507
495
|
}
|
|
508
|
-
function
|
|
496
|
+
function Ch(n) {
|
|
509
497
|
function t() {
|
|
510
498
|
let e;
|
|
511
499
|
try {
|
|
@@ -710,7 +698,7 @@ class cn extends rs {
|
|
|
710
698
|
e.ol_key
|
|
711
699
|
);
|
|
712
700
|
if (i)
|
|
713
|
-
|
|
701
|
+
wh(i);
|
|
714
702
|
else if (Array.isArray(t))
|
|
715
703
|
for (let s = 0, r = t.length; s < r; ++s)
|
|
716
704
|
this.removeEventListener(t[s], e);
|
|
@@ -721,7 +709,7 @@ class cn extends rs {
|
|
|
721
709
|
cn.prototype.on;
|
|
722
710
|
cn.prototype.once;
|
|
723
711
|
cn.prototype.un;
|
|
724
|
-
function
|
|
712
|
+
function wh(n) {
|
|
725
713
|
if (Array.isArray(n))
|
|
726
714
|
for (let t = 0, e = n.length; t < e; ++t)
|
|
727
715
|
it(n[t]);
|
|
@@ -734,9 +722,9 @@ function Rh(n) {
|
|
|
734
722
|
function H() {
|
|
735
723
|
throw new Error("Unimplemented abstract method.");
|
|
736
724
|
}
|
|
737
|
-
let
|
|
725
|
+
let Rh = 0;
|
|
738
726
|
function j(n) {
|
|
739
|
-
return n.ol_uid || (n.ol_uid = String(++
|
|
727
|
+
return n.ol_uid || (n.ol_uid = String(++Rh));
|
|
740
728
|
}
|
|
741
729
|
class _o extends _e {
|
|
742
730
|
/**
|
|
@@ -1158,9 +1146,9 @@ const at = {
|
|
|
1158
1146
|
POINTERENTER: "pointerenter",
|
|
1159
1147
|
POINTERLEAVE: "pointerleave",
|
|
1160
1148
|
POINTERCANCEL: "pointercancel"
|
|
1161
|
-
}, He = typeof navigator < "u" && typeof navigator.userAgent < "u" ? navigator.userAgent.toLowerCase() : "",
|
|
1162
|
-
|
|
1163
|
-
const
|
|
1149
|
+
}, He = typeof navigator < "u" && typeof navigator.userAgent < "u" ? navigator.userAgent.toLowerCase() : "", Th = He.includes("safari") && !He.includes("chrom");
|
|
1150
|
+
Th && (He.includes("version/15.4") || /cpu (os|iphone os) 15_4 like mac os x/.test(He));
|
|
1151
|
+
const Ih = He.includes("webkit") && !He.includes("edge"), Sa = He.includes("macintosh"), Sh = typeof devicePixelRatio < "u" ? devicePixelRatio : 1, kt = typeof WorkerGlobalScope < "u" && typeof OffscreenCanvas < "u" && self instanceof WorkerGlobalScope, va = typeof Image < "u" && Image.prototype.decode, La = (function() {
|
|
1164
1152
|
let n = !1;
|
|
1165
1153
|
try {
|
|
1166
1154
|
const t = Object.defineProperty({}, "passive", {
|
|
@@ -1176,7 +1164,7 @@ const Sh = He.includes("webkit") && !He.includes("edge"), Sa = He.includes("maci
|
|
|
1176
1164
|
POINTERMOVE: "pointermove",
|
|
1177
1165
|
POINTERDOWN: "pointerdown"
|
|
1178
1166
|
};
|
|
1179
|
-
class
|
|
1167
|
+
class vh extends rs {
|
|
1180
1168
|
/**
|
|
1181
1169
|
* @param {import("./Map.js").default} map The map with the viewport to listen to events on.
|
|
1182
1170
|
* @param {number} [moveTolerance] The minimal distance the pointer must travel to trigger a move.
|
|
@@ -1448,7 +1436,7 @@ function $(n, t) {
|
|
|
1448
1436
|
throw new Error(t);
|
|
1449
1437
|
}
|
|
1450
1438
|
const Zn = 1 / 0;
|
|
1451
|
-
class
|
|
1439
|
+
class Lh {
|
|
1452
1440
|
/**
|
|
1453
1441
|
* @param {function(T): number} priorityFunction Priority function.
|
|
1454
1442
|
* @param {function(T): string} keyFunction Key function.
|
|
@@ -1590,7 +1578,7 @@ class Ah {
|
|
|
1590
1578
|
e.length = s, i.length = s, this.heapify_();
|
|
1591
1579
|
}
|
|
1592
1580
|
}
|
|
1593
|
-
class
|
|
1581
|
+
class Ah extends Lh {
|
|
1594
1582
|
/**
|
|
1595
1583
|
* @param {PriorityFunction} tilePriorityFunction Tile priority function.
|
|
1596
1584
|
* @param {function(): ?} tileChangeCallback Function called on each tile change event.
|
|
@@ -1643,7 +1631,7 @@ class Mh extends Ah {
|
|
|
1643
1631
|
}
|
|
1644
1632
|
}
|
|
1645
1633
|
}
|
|
1646
|
-
function
|
|
1634
|
+
function Mh(n, t, e, i, s) {
|
|
1647
1635
|
if (!n || !(e in n.wantedTiles) || !n.wantedTiles[e][t.getKey()])
|
|
1648
1636
|
return Zn;
|
|
1649
1637
|
const r = n.viewState.center, o = i[0] - r[0], a = i[1] - r[1];
|
|
@@ -1660,7 +1648,7 @@ const yt = {
|
|
|
1660
1648
|
function st(n, t, e) {
|
|
1661
1649
|
return Math.min(Math.max(n, t), e);
|
|
1662
1650
|
}
|
|
1663
|
-
function
|
|
1651
|
+
function bh(n, t, e, i, s, r) {
|
|
1664
1652
|
const o = s - e, a = r - i;
|
|
1665
1653
|
if (o !== 0 || a !== 0) {
|
|
1666
1654
|
const l = ((n - e) * o + (t - i) * a) / (o * o + a * a);
|
|
@@ -1672,7 +1660,7 @@ function gi(n, t, e, i) {
|
|
|
1672
1660
|
const s = e - n, r = i - t;
|
|
1673
1661
|
return s * s + r * r;
|
|
1674
1662
|
}
|
|
1675
|
-
function
|
|
1663
|
+
function Oh(n) {
|
|
1676
1664
|
const t = n.length;
|
|
1677
1665
|
for (let i = 0; i < t; i++) {
|
|
1678
1666
|
let s = i, r = Math.abs(n[i][i]);
|
|
@@ -1754,7 +1742,7 @@ function yo(n, t, e) {
|
|
|
1754
1742
|
})
|
|
1755
1743
|
);
|
|
1756
1744
|
}
|
|
1757
|
-
function
|
|
1745
|
+
function Ph(n) {
|
|
1758
1746
|
return n;
|
|
1759
1747
|
}
|
|
1760
1748
|
const dt = {
|
|
@@ -1771,7 +1759,7 @@ function Eo(n) {
|
|
|
1771
1759
|
Vi(t, n[e]);
|
|
1772
1760
|
return t;
|
|
1773
1761
|
}
|
|
1774
|
-
function
|
|
1762
|
+
function Dh(n, t, e) {
|
|
1775
1763
|
const i = Math.min.apply(null, n), s = Math.min.apply(null, t), r = Math.max.apply(null, n), o = Math.max.apply(null, t);
|
|
1776
1764
|
return fe(i, s, r, o, e);
|
|
1777
1765
|
}
|
|
@@ -1824,7 +1812,7 @@ function Lr(n, t, e, i, s) {
|
|
|
1824
1812
|
function Ji(n, t) {
|
|
1825
1813
|
return n[0] == t[0] && n[2] == t[2] && n[1] == t[1] && n[3] == t[3];
|
|
1826
1814
|
}
|
|
1827
|
-
function
|
|
1815
|
+
function Fh(n, t) {
|
|
1828
1816
|
return t[0] < n[0] && (n[0] = t[0]), t[2] > n[2] && (n[2] = t[2]), t[1] < n[1] && (n[1] = t[1]), t[3] > n[3] && (n[3] = t[3]), n;
|
|
1829
1817
|
}
|
|
1830
1818
|
function Vi(n, t) {
|
|
@@ -1832,10 +1820,10 @@ function Vi(n, t) {
|
|
|
1832
1820
|
}
|
|
1833
1821
|
function Oa(n, t, e, i, s) {
|
|
1834
1822
|
for (; e < i; e += s)
|
|
1835
|
-
|
|
1823
|
+
kh(n, t[e], t[e + 1]);
|
|
1836
1824
|
return n;
|
|
1837
1825
|
}
|
|
1838
|
-
function
|
|
1826
|
+
function kh(n, t, e) {
|
|
1839
1827
|
n[0] = Math.min(n[0], t), n[1] = Math.min(n[1], e), n[2] = Math.max(n[2], t), n[3] = Math.max(n[3], e);
|
|
1840
1828
|
}
|
|
1841
1829
|
function Pa(n, t) {
|
|
@@ -1855,7 +1843,7 @@ function hs(n) {
|
|
|
1855
1843
|
function Pe(n) {
|
|
1856
1844
|
return [(n[0] + n[2]) / 2, (n[1] + n[3]) / 2];
|
|
1857
1845
|
}
|
|
1858
|
-
function
|
|
1846
|
+
function Nh(n, t) {
|
|
1859
1847
|
let e;
|
|
1860
1848
|
if (t === "bottom-left")
|
|
1861
1849
|
e = ls(n);
|
|
@@ -1921,10 +1909,10 @@ function St(n, t) {
|
|
|
1921
1909
|
function Ii(n) {
|
|
1922
1910
|
return n[2] < n[0] || n[3] < n[1];
|
|
1923
1911
|
}
|
|
1924
|
-
function
|
|
1912
|
+
function Gh(n, t) {
|
|
1925
1913
|
return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n;
|
|
1926
1914
|
}
|
|
1927
|
-
function
|
|
1915
|
+
function zh(n, t, e) {
|
|
1928
1916
|
let i = !1;
|
|
1929
1917
|
const s = hr(n, t), r = hr(n, e);
|
|
1930
1918
|
if (s === dt.INTERSECTING || r === dt.INTERSECTING)
|
|
@@ -1936,7 +1924,7 @@ function Xh(n, t, e) {
|
|
|
1936
1924
|
}
|
|
1937
1925
|
return i;
|
|
1938
1926
|
}
|
|
1939
|
-
function
|
|
1927
|
+
function Xh(n, t, e, i) {
|
|
1940
1928
|
if (Ii(n))
|
|
1941
1929
|
return un(e);
|
|
1942
1930
|
let s = [];
|
|
@@ -1953,7 +1941,7 @@ function Wh(n, t, e, i) {
|
|
|
1953
1941
|
const r = [], o = [];
|
|
1954
1942
|
for (let a = 0, l = s.length; a < l; a += 2)
|
|
1955
1943
|
r.push(s[a]), o.push(s[a + 1]);
|
|
1956
|
-
return
|
|
1944
|
+
return Dh(r, o, e);
|
|
1957
1945
|
}
|
|
1958
1946
|
function Fa(n, t) {
|
|
1959
1947
|
const e = t.getExtent(), i = Pe(n);
|
|
@@ -2008,19 +1996,19 @@ function Ga(n, t) {
|
|
|
2008
1996
|
}
|
|
2009
1997
|
function za(n, t) {
|
|
2010
1998
|
if (t.canWrapX()) {
|
|
2011
|
-
const e = et(t.getExtent()), i =
|
|
1999
|
+
const e = et(t.getExtent()), i = Wh(n, t, e);
|
|
2012
2000
|
i && (n[0] -= i * e);
|
|
2013
2001
|
}
|
|
2014
2002
|
return n;
|
|
2015
2003
|
}
|
|
2016
|
-
function
|
|
2004
|
+
function Wh(n, t, e) {
|
|
2017
2005
|
const i = t.getExtent();
|
|
2018
2006
|
let s = 0;
|
|
2019
2007
|
return t.canWrapX() && (n[0] < i[0] || n[0] > i[2]) && (e = e || et(i), s = Math.floor(
|
|
2020
2008
|
(n[0] - i[0]) / e
|
|
2021
2009
|
)), s;
|
|
2022
2010
|
}
|
|
2023
|
-
function
|
|
2011
|
+
function Yh(n, t, e) {
|
|
2024
2012
|
const i = Math.sqrt(
|
|
2025
2013
|
(t[0] - n[0]) * (t[0] - n[0]) + (t[1] - n[1]) * (t[1] - n[1])
|
|
2026
2014
|
), s = [(t[0] - n[0]) / i, (t[1] - n[1]) / i], r = [-s[1], s[0]], o = Math.sqrt(
|
|
@@ -2037,15 +2025,15 @@ function Xa(n) {
|
|
|
2037
2025
|
function Si(n) {
|
|
2038
2026
|
return 1 - Xa(1 - n);
|
|
2039
2027
|
}
|
|
2040
|
-
function
|
|
2028
|
+
function Kh(n) {
|
|
2041
2029
|
return 3 * n * n - 2 * n * n * n;
|
|
2042
2030
|
}
|
|
2043
|
-
function
|
|
2031
|
+
function Bh(n) {
|
|
2044
2032
|
return n;
|
|
2045
2033
|
}
|
|
2046
|
-
const
|
|
2034
|
+
const Zh = 63710088e-1;
|
|
2047
2035
|
function xo(n, t, e) {
|
|
2048
|
-
e = e ||
|
|
2036
|
+
e = e || Zh;
|
|
2049
2037
|
const i = be(n[1]), s = be(t[1]), r = (s - i) / 2, o = be(t[0] - n[0]) / 2, a = Math.sin(r) * Math.sin(r) + Math.sin(o) * Math.sin(o) * Math.cos(i) * Math.cos(s);
|
|
2050
2038
|
return 2 * e * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
|
|
2051
2039
|
}
|
|
@@ -2193,7 +2181,7 @@ class br {
|
|
|
2193
2181
|
return this.getPointResolutionFunc_;
|
|
2194
2182
|
}
|
|
2195
2183
|
}
|
|
2196
|
-
const dn = 6378137, di = Math.PI * dn,
|
|
2184
|
+
const dn = 6378137, di = Math.PI * dn, Uh = [-di, -di, di, di], Vh = [-180, -85, 180, 85], On = dn * Math.log(Math.tan(Math.PI / 2));
|
|
2197
2185
|
class ei extends br {
|
|
2198
2186
|
/**
|
|
2199
2187
|
* @param {string} code Code.
|
|
@@ -2202,9 +2190,9 @@ class ei extends br {
|
|
|
2202
2190
|
super({
|
|
2203
2191
|
code: t,
|
|
2204
2192
|
units: "m",
|
|
2205
|
-
extent:
|
|
2193
|
+
extent: Uh,
|
|
2206
2194
|
global: !0,
|
|
2207
|
-
worldExtent:
|
|
2195
|
+
worldExtent: Vh,
|
|
2208
2196
|
getPointResolution: function(e, i) {
|
|
2209
2197
|
return e / Math.cosh(i[1] / dn);
|
|
2210
2198
|
}
|
|
@@ -2219,7 +2207,7 @@ const Co = [
|
|
|
2219
2207
|
new ei("http://www.opengis.net/def/crs/EPSG/0/3857"),
|
|
2220
2208
|
new ei("http://www.opengis.net/gml/srs/epsg.xml#3857")
|
|
2221
2209
|
];
|
|
2222
|
-
function
|
|
2210
|
+
function jh(n, t, e, i) {
|
|
2223
2211
|
const s = n.length;
|
|
2224
2212
|
e = e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(s));
|
|
2225
2213
|
for (let r = 0; r < s; r += i) {
|
|
@@ -2229,14 +2217,14 @@ function Hh(n, t, e, i) {
|
|
|
2229
2217
|
}
|
|
2230
2218
|
return t;
|
|
2231
2219
|
}
|
|
2232
|
-
function
|
|
2220
|
+
function Hh(n, t, e, i) {
|
|
2233
2221
|
const s = n.length;
|
|
2234
2222
|
e = e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(s));
|
|
2235
2223
|
for (let r = 0; r < s; r += i)
|
|
2236
2224
|
t[r] = 180 * n[r] / di, t[r + 1] = 360 * Math.atan(Math.exp(n[r + 1] / dn)) / Math.PI - 90;
|
|
2237
2225
|
return t;
|
|
2238
2226
|
}
|
|
2239
|
-
const
|
|
2227
|
+
const qh = 6378137, wo = [-180, -90, 180, 90], $h = Math.PI * qh / 180;
|
|
2240
2228
|
class ze extends br {
|
|
2241
2229
|
/**
|
|
2242
2230
|
* @param {string} code Code.
|
|
@@ -2249,7 +2237,7 @@ class ze extends br {
|
|
|
2249
2237
|
extent: wo,
|
|
2250
2238
|
axisOrientation: e,
|
|
2251
2239
|
global: !0,
|
|
2252
|
-
metersPerUnit:
|
|
2240
|
+
metersPerUnit: $h,
|
|
2253
2241
|
worldExtent: wo
|
|
2254
2242
|
});
|
|
2255
2243
|
}
|
|
@@ -2264,10 +2252,10 @@ const Ro = [
|
|
|
2264
2252
|
new ze("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
|
|
2265
2253
|
];
|
|
2266
2254
|
let dr = {};
|
|
2267
|
-
function
|
|
2255
|
+
function Jh(n) {
|
|
2268
2256
|
return dr[n] || dr[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
|
|
2269
2257
|
}
|
|
2270
|
-
function
|
|
2258
|
+
function Qh(n, t) {
|
|
2271
2259
|
dr[n] = t;
|
|
2272
2260
|
}
|
|
2273
2261
|
let mi = {};
|
|
@@ -2278,9 +2266,9 @@ function Qi(n, t, e) {
|
|
|
2278
2266
|
function Ds(n, t) {
|
|
2279
2267
|
return n in mi && t in mi[n] ? mi[n][t] : null;
|
|
2280
2268
|
}
|
|
2281
|
-
const Vn = 0.9996, zt = 669438e-8, us = zt * zt, ds = us * zt, Ke = zt / (1 - zt), To = Math.sqrt(1 - zt), wi = (1 - To) / (1 + To), Ya = wi * wi, Or = Ya * wi, Pr = Or * wi, Ka = Pr * wi, Ba = 1 - zt / 4 - 3 * us / 64 - 5 * ds / 256,
|
|
2282
|
-
function
|
|
2283
|
-
const i = n - 5e5, o = (e.north ? t : t - 1e7) / Vn / (jn * Ba), a = o +
|
|
2269
|
+
const Vn = 0.9996, zt = 669438e-8, us = zt * zt, ds = us * zt, Ke = zt / (1 - zt), To = Math.sqrt(1 - zt), wi = (1 - To) / (1 + To), Ya = wi * wi, Or = Ya * wi, Pr = Or * wi, Ka = Pr * wi, Ba = 1 - zt / 4 - 3 * us / 64 - 5 * ds / 256, tc = 3 * zt / 8 + 3 * us / 32 + 45 * ds / 1024, ec = 15 * us / 256 + 45 * ds / 1024, ic = 35 * ds / 3072, nc = 3 / 2 * wi - 27 / 32 * Or + 269 / 512 * Ka, sc = 21 / 16 * Ya - 55 / 32 * Pr, rc = 151 / 96 * Or - 417 / 128 * Ka, oc = 1097 / 512 * Pr, jn = 6378137;
|
|
2270
|
+
function ac(n, t, e) {
|
|
2271
|
+
const i = n - 5e5, o = (e.north ? t : t - 1e7) / Vn / (jn * Ba), a = o + nc * Math.sin(2 * o) + sc * Math.sin(4 * o) + rc * Math.sin(6 * o) + oc * Math.sin(8 * o), l = Math.sin(a), c = l * l, h = Math.cos(a), u = l / h, d = u * u, f = d * d, g = 1 - zt * c, m = Math.sqrt(1 - zt * c), _ = jn / m, p = (1 - zt) / g, E = Ke * h ** 2, C = E * E, y = i / (_ * Vn), x = y * y, T = x * y, L = T * y, I = L * y, R = I * y, v = a - u / p * (x / 2 - L / 24 * (5 + 3 * d + 10 * E - 4 * C - 9 * Ke)) + R / 720 * (61 + 90 * d + 298 * E + 45 * f - 252 * Ke - 3 * C);
|
|
2284
2272
|
let k = (y - T / 6 * (1 + 2 * d + E) + I / 120 * (5 - 2 * E + 28 * d - 3 * C + 8 * Ke + 24 * f)) / h;
|
|
2285
2273
|
return k = lr(
|
|
2286
2274
|
k + be(Za(e.number)),
|
|
@@ -2288,24 +2276,24 @@ function lc(n, t, e) {
|
|
|
2288
2276
|
Math.PI
|
|
2289
2277
|
), [po(k), po(v)];
|
|
2290
2278
|
}
|
|
2291
|
-
const Io = -80, So = 84,
|
|
2292
|
-
function
|
|
2293
|
-
n = lr(n,
|
|
2294
|
-
const i = be(t), s = Math.sin(i), r = Math.cos(i), o = s / r, a = o * o, l = a * a, c = be(n), h = Za(e.number), u = be(h), d = jn / Math.sqrt(1 - zt * s ** 2), f = Ke * r ** 2, g = r * lr(c - u, -Math.PI, Math.PI), m = g * g, _ = m * g, p = _ * g, E = p * g, C = E * g, y = jn * (Ba * i -
|
|
2279
|
+
const Io = -80, So = 84, lc = -180, hc = 180;
|
|
2280
|
+
function cc(n, t, e) {
|
|
2281
|
+
n = lr(n, lc, hc), t < Io ? t = Io : t > So && (t = So);
|
|
2282
|
+
const i = be(t), s = Math.sin(i), r = Math.cos(i), o = s / r, a = o * o, l = a * a, c = be(n), h = Za(e.number), u = be(h), d = jn / Math.sqrt(1 - zt * s ** 2), f = Ke * r ** 2, g = r * lr(c - u, -Math.PI, Math.PI), m = g * g, _ = m * g, p = _ * g, E = p * g, C = E * g, y = jn * (Ba * i - tc * Math.sin(2 * i) + ec * Math.sin(4 * i) - ic * Math.sin(6 * i)), x = Vn * d * (g + _ / 6 * (1 - a + f) + E / 120 * (5 - 18 * a + l + 72 * f - 58 * Ke)) + 5e5;
|
|
2295
2283
|
let T = Vn * (y + d * o * (m / 2 + p / 24 * (5 - a + 9 * f + 4 * f ** 2) + C / 720 * (61 - 58 * a + l + 600 * f - 330 * Ke)));
|
|
2296
2284
|
return e.north || (T += 1e7), [x, T];
|
|
2297
2285
|
}
|
|
2298
2286
|
function Za(n) {
|
|
2299
2287
|
return (n - 1) * 6 - 180 + 3;
|
|
2300
2288
|
}
|
|
2301
|
-
const
|
|
2289
|
+
const uc = [
|
|
2302
2290
|
/^EPSG:(\d+)$/,
|
|
2303
2291
|
/^urn:ogc:def:crs:EPSG::(\d+)$/,
|
|
2304
2292
|
/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
|
|
2305
2293
|
];
|
|
2306
2294
|
function Ua(n) {
|
|
2307
2295
|
let t = 0;
|
|
2308
|
-
for (const s of
|
|
2296
|
+
for (const s of uc) {
|
|
2309
2297
|
const r = n.match(s);
|
|
2310
2298
|
if (r) {
|
|
2311
2299
|
t = parseInt(r[1]);
|
|
@@ -2328,19 +2316,19 @@ function vo(n, t) {
|
|
|
2328
2316
|
return i;
|
|
2329
2317
|
};
|
|
2330
2318
|
}
|
|
2331
|
-
function
|
|
2319
|
+
function dc(n) {
|
|
2332
2320
|
return Ua(n) ? new br({ code: n, units: "m" }) : null;
|
|
2333
2321
|
}
|
|
2334
|
-
function
|
|
2322
|
+
function fc(n) {
|
|
2335
2323
|
const t = Ua(n.getCode());
|
|
2336
2324
|
return t ? {
|
|
2337
|
-
forward: vo(
|
|
2338
|
-
inverse: vo(
|
|
2325
|
+
forward: vo(cc, t),
|
|
2326
|
+
inverse: vo(ac, t)
|
|
2339
2327
|
} : null;
|
|
2340
2328
|
}
|
|
2341
|
-
const
|
|
2329
|
+
const gc = [fc], _c = [dc];
|
|
2342
2330
|
let fr = !0;
|
|
2343
|
-
function
|
|
2331
|
+
function mc(n) {
|
|
2344
2332
|
fr = !1;
|
|
2345
2333
|
}
|
|
2346
2334
|
function Dr(n, t) {
|
|
@@ -2353,18 +2341,18 @@ function Dr(n, t) {
|
|
|
2353
2341
|
return t;
|
|
2354
2342
|
}
|
|
2355
2343
|
function gr(n) {
|
|
2356
|
-
|
|
2344
|
+
Qh(n.getCode(), n), Qi(n, n, Dr);
|
|
2357
2345
|
}
|
|
2358
|
-
function
|
|
2346
|
+
function pc(n) {
|
|
2359
2347
|
n.forEach(gr);
|
|
2360
2348
|
}
|
|
2361
2349
|
function Et(n) {
|
|
2362
2350
|
if (typeof n != "string")
|
|
2363
2351
|
return n;
|
|
2364
|
-
const t =
|
|
2352
|
+
const t = Jh(n);
|
|
2365
2353
|
if (t)
|
|
2366
2354
|
return t;
|
|
2367
|
-
for (const e of
|
|
2355
|
+
for (const e of _c) {
|
|
2368
2356
|
const i = e(n);
|
|
2369
2357
|
if (i)
|
|
2370
2358
|
return i;
|
|
@@ -2410,13 +2398,13 @@ function Lo(n, t, e, i) {
|
|
|
2410
2398
|
return s;
|
|
2411
2399
|
}
|
|
2412
2400
|
function Ao(n) {
|
|
2413
|
-
|
|
2401
|
+
pc(n), n.forEach(function(t) {
|
|
2414
2402
|
n.forEach(function(e) {
|
|
2415
2403
|
t !== e && Qi(t, e, Dr);
|
|
2416
2404
|
});
|
|
2417
2405
|
});
|
|
2418
2406
|
}
|
|
2419
|
-
function
|
|
2407
|
+
function yc(n, t, e, i) {
|
|
2420
2408
|
n.forEach(function(s) {
|
|
2421
2409
|
t.forEach(function(r) {
|
|
2422
2410
|
Qi(s, r, e), Qi(r, s, i);
|
|
@@ -2429,7 +2417,7 @@ function Fr(n, t) {
|
|
|
2429
2417
|
n
|
|
2430
2418
|
) : Et(t);
|
|
2431
2419
|
}
|
|
2432
|
-
function
|
|
2420
|
+
function Ec(n) {
|
|
2433
2421
|
return (
|
|
2434
2422
|
/**
|
|
2435
2423
|
* @param {Array<number>} input Input.
|
|
@@ -2462,7 +2450,7 @@ function fn(n, t) {
|
|
|
2462
2450
|
if (s)
|
|
2463
2451
|
return s;
|
|
2464
2452
|
let r = null, o = null;
|
|
2465
|
-
for (const l of
|
|
2453
|
+
for (const l of gc)
|
|
2466
2454
|
r || (r = l(n)), o || (o = l(t));
|
|
2467
2455
|
if (!r && !o)
|
|
2468
2456
|
return null;
|
|
@@ -2510,17 +2498,17 @@ function fs(n, t, e) {
|
|
|
2510
2498
|
}
|
|
2511
2499
|
function Va(n, t, e, i) {
|
|
2512
2500
|
const s = tn(t, e);
|
|
2513
|
-
return
|
|
2501
|
+
return Xh(n, s, void 0);
|
|
2514
2502
|
}
|
|
2515
2503
|
let Xt = null;
|
|
2516
|
-
function
|
|
2504
|
+
function xc(n) {
|
|
2517
2505
|
Xt = Et(n);
|
|
2518
2506
|
}
|
|
2519
2507
|
function Hn() {
|
|
2520
2508
|
return Xt;
|
|
2521
2509
|
}
|
|
2522
|
-
function
|
|
2523
|
-
|
|
2510
|
+
function Cc() {
|
|
2511
|
+
xc("EPSG:4326");
|
|
2524
2512
|
}
|
|
2525
2513
|
function _r(n, t) {
|
|
2526
2514
|
return Xt ? fs(n, t, Xt) : n;
|
|
@@ -2536,26 +2524,26 @@ function qn(n, t) {
|
|
|
2536
2524
|
function Be(n, t) {
|
|
2537
2525
|
return Xt ? Va(n, Xt, t) : n;
|
|
2538
2526
|
}
|
|
2539
|
-
function
|
|
2527
|
+
function wc(n, t) {
|
|
2540
2528
|
if (!Xt)
|
|
2541
2529
|
return n;
|
|
2542
2530
|
const e = Et(t).getMetersPerUnit(), i = Xt.getMetersPerUnit();
|
|
2543
2531
|
return e && i ? n * e / i : n;
|
|
2544
2532
|
}
|
|
2545
|
-
function
|
|
2546
|
-
Ao(Co), Ao(Ro),
|
|
2533
|
+
function Rc() {
|
|
2534
|
+
Ao(Co), Ao(Ro), yc(
|
|
2547
2535
|
Ro,
|
|
2548
2536
|
Co,
|
|
2549
|
-
|
|
2550
|
-
|
|
2537
|
+
jh,
|
|
2538
|
+
Hh
|
|
2551
2539
|
);
|
|
2552
2540
|
}
|
|
2553
|
-
|
|
2541
|
+
Rc();
|
|
2554
2542
|
new Array(6);
|
|
2555
2543
|
function Zt() {
|
|
2556
2544
|
return [1, 0, 0, 1, 0, 0];
|
|
2557
2545
|
}
|
|
2558
|
-
function
|
|
2546
|
+
function Tc(n, t) {
|
|
2559
2547
|
return n[0] = t[0], n[1] = t[1], n[2] = t[2], n[3] = t[3], n[4] = t[4], n[5] = t[5], n;
|
|
2560
2548
|
}
|
|
2561
2549
|
function ft(n, t) {
|
|
@@ -2567,25 +2555,25 @@ function ge(n, t, e, i, s, r, o, a) {
|
|
|
2567
2555
|
return n[0] = i * c, n[1] = s * l, n[2] = -i * l, n[3] = s * c, n[4] = o * i * c - a * i * l + t, n[5] = o * s * l + a * s * c + e, n;
|
|
2568
2556
|
}
|
|
2569
2557
|
function ja(n, t) {
|
|
2570
|
-
const e =
|
|
2558
|
+
const e = Ic(t);
|
|
2571
2559
|
$(e !== 0, "Transformation matrix cannot be inverted");
|
|
2572
2560
|
const i = t[0], s = t[1], r = t[2], o = t[3], a = t[4], l = t[5];
|
|
2573
2561
|
return n[0] = o / e, n[1] = -s / e, n[2] = -r / e, n[3] = i / e, n[4] = (r * l - o * a) / e, n[5] = -(i * l - s * a) / e, n;
|
|
2574
2562
|
}
|
|
2575
|
-
function
|
|
2563
|
+
function Ic(n) {
|
|
2576
2564
|
return n[0] * n[3] - n[1] * n[2];
|
|
2577
2565
|
}
|
|
2578
|
-
const
|
|
2579
|
-
function
|
|
2566
|
+
const Sc = [1e5, 1e5, 1e5, 1e5, 2, 2];
|
|
2567
|
+
function vc(n) {
|
|
2580
2568
|
return "matrix(" + n.join(", ") + ")";
|
|
2581
2569
|
}
|
|
2582
2570
|
function mr(n) {
|
|
2583
2571
|
return n.substring(7, n.length - 1).split(",").map(parseFloat);
|
|
2584
2572
|
}
|
|
2585
|
-
function
|
|
2573
|
+
function Lc(n, t) {
|
|
2586
2574
|
const e = mr(n), i = mr(t);
|
|
2587
2575
|
for (let s = 0; s < 6; ++s)
|
|
2588
|
-
if (Math.round((e[s] - i[s]) *
|
|
2576
|
+
if (Math.round((e[s] - i[s]) * Sc[s]) !== 0)
|
|
2589
2577
|
return !1;
|
|
2590
2578
|
return !0;
|
|
2591
2579
|
}
|
|
@@ -2612,7 +2600,7 @@ function Ha(n, t, e, i, s, r, o) {
|
|
|
2612
2600
|
}
|
|
2613
2601
|
return o && o.length != u && (o.length = u), o;
|
|
2614
2602
|
}
|
|
2615
|
-
function
|
|
2603
|
+
function Ac(n, t, e, i, s, r, o, a) {
|
|
2616
2604
|
a = a || [];
|
|
2617
2605
|
const l = o[0], c = o[1];
|
|
2618
2606
|
let h = 0;
|
|
@@ -2624,7 +2612,7 @@ function Mc(n, t, e, i, s, r, o, a) {
|
|
|
2624
2612
|
}
|
|
2625
2613
|
return a && a.length != h && (a.length = h), a;
|
|
2626
2614
|
}
|
|
2627
|
-
function
|
|
2615
|
+
function Mc(n, t, e, i, s, r, o) {
|
|
2628
2616
|
o = o || [];
|
|
2629
2617
|
let a = 0;
|
|
2630
2618
|
for (let l = t; l < e; l += i) {
|
|
@@ -2634,8 +2622,8 @@ function bc(n, t, e, i, s, r, o) {
|
|
|
2634
2622
|
}
|
|
2635
2623
|
return o && o.length != a && (o.length = a), o;
|
|
2636
2624
|
}
|
|
2637
|
-
const Mo = Zt(),
|
|
2638
|
-
class
|
|
2625
|
+
const Mo = Zt(), bc = [NaN, NaN];
|
|
2626
|
+
class Oc extends ee {
|
|
2639
2627
|
constructor() {
|
|
2640
2628
|
super(), this.extent_ = Mt(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Ia(
|
|
2641
2629
|
(t, e, i) => {
|
|
@@ -2685,7 +2673,7 @@ class Pc extends ee {
|
|
|
2685
2673
|
* @return {boolean} Contains (x, y).
|
|
2686
2674
|
*/
|
|
2687
2675
|
containsXY(t, e) {
|
|
2688
|
-
return this.closestPointXY(t, e,
|
|
2676
|
+
return this.closestPointXY(t, e, bc, Number.MIN_VALUE) === 0;
|
|
2689
2677
|
}
|
|
2690
2678
|
/**
|
|
2691
2679
|
* Return the closest point of the geometry to the passed point as
|
|
@@ -2728,7 +2716,7 @@ class Pc extends ee {
|
|
|
2728
2716
|
const e = this.computeExtent(this.extent_);
|
|
2729
2717
|
(isNaN(e[0]) || isNaN(e[1])) && un(e), this.extentRevision_ = this.getRevision();
|
|
2730
2718
|
}
|
|
2731
|
-
return
|
|
2719
|
+
return Gh(this.extent_, t);
|
|
2732
2720
|
}
|
|
2733
2721
|
/**
|
|
2734
2722
|
* Rotate the geometry around a given coordinate. This modifies the geometry
|
|
@@ -2858,7 +2846,7 @@ class Pc extends ee {
|
|
|
2858
2846
|
return this.applyTransform(s), this;
|
|
2859
2847
|
}
|
|
2860
2848
|
}
|
|
2861
|
-
class kr extends
|
|
2849
|
+
class kr extends Oc {
|
|
2862
2850
|
constructor() {
|
|
2863
2851
|
super(), this.layout = "XY", this.stride = 2, this.flatCoordinates;
|
|
2864
2852
|
}
|
|
@@ -2976,7 +2964,7 @@ class kr extends Pc {
|
|
|
2976
2964
|
e = /** @type {Array<unknown>} */
|
|
2977
2965
|
e[0];
|
|
2978
2966
|
}
|
|
2979
|
-
s = e.length, t =
|
|
2967
|
+
s = e.length, t = Pc(s);
|
|
2980
2968
|
}
|
|
2981
2969
|
this.layout = t, this.stride = s;
|
|
2982
2970
|
}
|
|
@@ -3036,7 +3024,7 @@ class kr extends Pc {
|
|
|
3036
3024
|
const s = this.getFlatCoordinates();
|
|
3037
3025
|
if (s) {
|
|
3038
3026
|
const r = this.getStride();
|
|
3039
|
-
|
|
3027
|
+
Ac(
|
|
3040
3028
|
s,
|
|
3041
3029
|
0,
|
|
3042
3030
|
s.length,
|
|
@@ -3060,7 +3048,7 @@ class kr extends Pc {
|
|
|
3060
3048
|
const i = this.getFlatCoordinates();
|
|
3061
3049
|
if (i) {
|
|
3062
3050
|
const s = this.getStride();
|
|
3063
|
-
|
|
3051
|
+
Mc(
|
|
3064
3052
|
i,
|
|
3065
3053
|
0,
|
|
3066
3054
|
i.length,
|
|
@@ -3072,7 +3060,7 @@ class kr extends Pc {
|
|
|
3072
3060
|
}
|
|
3073
3061
|
}
|
|
3074
3062
|
}
|
|
3075
|
-
function
|
|
3063
|
+
function Pc(n) {
|
|
3076
3064
|
let t;
|
|
3077
3065
|
return n == 2 ? t = "XY" : n == 3 ? t = "XYZ" : n == 4 && (t = "XYZM"), /** @type {import("./Geometry.js").GeometryLayout} */
|
|
3078
3066
|
t;
|
|
@@ -3082,7 +3070,7 @@ function bo(n) {
|
|
|
3082
3070
|
return n == "XY" ? t = 2 : n == "XYZ" || n == "XYM" ? t = 3 : n == "XYZM" && (t = 4), /** @type {number} */
|
|
3083
3071
|
t;
|
|
3084
3072
|
}
|
|
3085
|
-
function
|
|
3073
|
+
function Dc(n, t, e) {
|
|
3086
3074
|
const i = n.getFlatCoordinates();
|
|
3087
3075
|
if (!i)
|
|
3088
3076
|
return null;
|
|
@@ -3106,7 +3094,7 @@ function qa(n, t, e, i) {
|
|
|
3106
3094
|
}
|
|
3107
3095
|
return s / 2;
|
|
3108
3096
|
}
|
|
3109
|
-
function
|
|
3097
|
+
function Fc(n, t, e, i) {
|
|
3110
3098
|
let s = 0;
|
|
3111
3099
|
for (let r = 0, o = e.length; r < o; ++r) {
|
|
3112
3100
|
const a = e[r];
|
|
@@ -3147,7 +3135,7 @@ function $a(n, t, e, i, s) {
|
|
|
3147
3135
|
}
|
|
3148
3136
|
return s;
|
|
3149
3137
|
}
|
|
3150
|
-
function
|
|
3138
|
+
function kc(n, t, e, i, s) {
|
|
3151
3139
|
for (let r = 0, o = e.length; r < o; ++r) {
|
|
3152
3140
|
const a = e[r];
|
|
3153
3141
|
s = $a(n, t, a, i, s), t = a;
|
|
@@ -3206,7 +3194,7 @@ function Ja(n, t, e, i, s, r, o, a, l, c, h) {
|
|
|
3206
3194
|
}
|
|
3207
3195
|
return c;
|
|
3208
3196
|
}
|
|
3209
|
-
function
|
|
3197
|
+
function Nc(n, t, e, i, s, r, o, a, l, c, h) {
|
|
3210
3198
|
h = h || [NaN, NaN];
|
|
3211
3199
|
for (let u = 0, d = e.length; u < d; ++u) {
|
|
3212
3200
|
const f = e[u];
|
|
@@ -3226,7 +3214,7 @@ function Gc(n, t, e, i, s, r, o, a, l, c, h) {
|
|
|
3226
3214
|
}
|
|
3227
3215
|
return c;
|
|
3228
3216
|
}
|
|
3229
|
-
function
|
|
3217
|
+
function Gc(n, t, e, i) {
|
|
3230
3218
|
for (let s = 0, r = e.length; s < r; ++s)
|
|
3231
3219
|
n[t++] = e[s];
|
|
3232
3220
|
return t;
|
|
@@ -3239,7 +3227,7 @@ function Qa(n, t, e, i) {
|
|
|
3239
3227
|
}
|
|
3240
3228
|
return t;
|
|
3241
3229
|
}
|
|
3242
|
-
function
|
|
3230
|
+
function zc(n, t, e, i, s) {
|
|
3243
3231
|
s = s || [];
|
|
3244
3232
|
let r = 0;
|
|
3245
3233
|
for (let o = 0, a = e.length; o < a; ++o) {
|
|
@@ -3306,7 +3294,7 @@ function Nr(n, t, e, i, s, r, o) {
|
|
|
3306
3294
|
let f = 0;
|
|
3307
3295
|
const g = n[d], m = n[d + 1], _ = n[u], p = n[u + 1];
|
|
3308
3296
|
for (let E = d + i; E < u; E += i) {
|
|
3309
|
-
const C = n[E], y = n[E + 1], x =
|
|
3297
|
+
const C = n[E], y = n[E + 1], x = bh(C, y, g, m, _, p);
|
|
3310
3298
|
x > f && (h = E, f = x);
|
|
3311
3299
|
}
|
|
3312
3300
|
f > s && (l[(h - t) / i] = 1, d + i < h && c.push(d, h), h + i < u && c.push(h, u));
|
|
@@ -3315,7 +3303,7 @@ function Nr(n, t, e, i, s, r, o) {
|
|
|
3315
3303
|
l[u] && (r[o++] = n[t + u * i], r[o++] = n[t + u * i + 1]);
|
|
3316
3304
|
return o;
|
|
3317
3305
|
}
|
|
3318
|
-
function
|
|
3306
|
+
function Xc(n, t, e, i, s, r, o, a) {
|
|
3319
3307
|
for (let l = 0, c = e.length; l < c; ++l) {
|
|
3320
3308
|
const h = e[l];
|
|
3321
3309
|
o = Nr(
|
|
@@ -3333,7 +3321,7 @@ function Wc(n, t, e, i, s, r, o, a) {
|
|
|
3333
3321
|
function We(n, t) {
|
|
3334
3322
|
return t * Math.round(n / t);
|
|
3335
3323
|
}
|
|
3336
|
-
function
|
|
3324
|
+
function Wc(n, t, e, i, s, r, o) {
|
|
3337
3325
|
if (t == e)
|
|
3338
3326
|
return o;
|
|
3339
3327
|
let a = We(n[t], s), l = We(n[t + 1], s);
|
|
@@ -3359,7 +3347,7 @@ function Yc(n, t, e, i, s, r, o) {
|
|
|
3359
3347
|
function tl(n, t, e, i, s, r, o, a) {
|
|
3360
3348
|
for (let l = 0, c = e.length; l < c; ++l) {
|
|
3361
3349
|
const h = e[l];
|
|
3362
|
-
o =
|
|
3350
|
+
o = Wc(
|
|
3363
3351
|
n,
|
|
3364
3352
|
t,
|
|
3365
3353
|
h,
|
|
@@ -3592,7 +3580,7 @@ class gn extends kr {
|
|
|
3592
3580
|
* @override
|
|
3593
3581
|
*/
|
|
3594
3582
|
setCoordinates(t, e) {
|
|
3595
|
-
this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length =
|
|
3583
|
+
this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Gc(
|
|
3596
3584
|
this.flatCoordinates,
|
|
3597
3585
|
0,
|
|
3598
3586
|
t,
|
|
@@ -3600,7 +3588,7 @@ class gn extends kr {
|
|
|
3600
3588
|
), this.changed();
|
|
3601
3589
|
}
|
|
3602
3590
|
}
|
|
3603
|
-
function
|
|
3591
|
+
function Yc(n, t, e, i, s) {
|
|
3604
3592
|
return !Pa(
|
|
3605
3593
|
s,
|
|
3606
3594
|
/**
|
|
@@ -3651,7 +3639,7 @@ function Gr(n, t, e, i, s, r, o) {
|
|
|
3651
3639
|
}
|
|
3652
3640
|
return isNaN(_) && (_ = s[r]), o ? (o.push(_, g, p), o) : [_, g, p];
|
|
3653
3641
|
}
|
|
3654
|
-
function
|
|
3642
|
+
function Kc(n, t, e, i, s) {
|
|
3655
3643
|
let r = [];
|
|
3656
3644
|
for (let o = 0, a = e.length; o < a; ++o) {
|
|
3657
3645
|
const l = e[o];
|
|
@@ -3667,7 +3655,7 @@ function Bc(n, t, e, i, s) {
|
|
|
3667
3655
|
}
|
|
3668
3656
|
return r;
|
|
3669
3657
|
}
|
|
3670
|
-
function
|
|
3658
|
+
function Bc(n, t, e, i, s) {
|
|
3671
3659
|
let r;
|
|
3672
3660
|
for (t += i; t < e; t += i)
|
|
3673
3661
|
if (r = s(
|
|
@@ -3678,7 +3666,7 @@ function Zc(n, t, e, i, s) {
|
|
|
3678
3666
|
return !1;
|
|
3679
3667
|
}
|
|
3680
3668
|
function il(n, t, e, i, s, r) {
|
|
3681
|
-
return r = r ?? Oa(Mt(), n, t, e, i), St(s, r) ? r[0] >= s[0] && r[2] <= s[2] || r[1] >= s[1] && r[3] <= s[3] ? !0 :
|
|
3669
|
+
return r = r ?? Oa(Mt(), n, t, e, i), St(s, r) ? r[0] >= s[0] && r[2] <= s[2] || r[1] >= s[1] && r[3] <= s[3] ? !0 : Bc(
|
|
3682
3670
|
n,
|
|
3683
3671
|
t,
|
|
3684
3672
|
e,
|
|
@@ -3690,7 +3678,7 @@ function il(n, t, e, i, s, r) {
|
|
|
3690
3678
|
* `false` otherwise.
|
|
3691
3679
|
*/
|
|
3692
3680
|
function(o, a) {
|
|
3693
|
-
return
|
|
3681
|
+
return zh(s, o, a);
|
|
3694
3682
|
}
|
|
3695
3683
|
) : !1;
|
|
3696
3684
|
}
|
|
@@ -3725,13 +3713,13 @@ function nl(n, t, e, i, s) {
|
|
|
3725
3713
|
s[3]
|
|
3726
3714
|
));
|
|
3727
3715
|
}
|
|
3728
|
-
function
|
|
3716
|
+
function Zc(n, t, e, i, s) {
|
|
3729
3717
|
if (!nl(n, t, e[0], i, s))
|
|
3730
3718
|
return !1;
|
|
3731
3719
|
if (e.length === 1)
|
|
3732
3720
|
return !0;
|
|
3733
3721
|
for (let r = 1, o = e.length; r < o; ++r)
|
|
3734
|
-
if (
|
|
3722
|
+
if (Yc(
|
|
3735
3723
|
n,
|
|
3736
3724
|
e[r - 1],
|
|
3737
3725
|
e[r],
|
|
@@ -3747,7 +3735,7 @@ function Uc(n, t, e, i, s) {
|
|
|
3747
3735
|
return !1;
|
|
3748
3736
|
return !0;
|
|
3749
3737
|
}
|
|
3750
|
-
function
|
|
3738
|
+
function Uc(n, t, e, i) {
|
|
3751
3739
|
for (; t < e - i; ) {
|
|
3752
3740
|
for (let s = 0; s < i; ++s) {
|
|
3753
3741
|
const r = n[t + s];
|
|
@@ -3764,7 +3752,7 @@ function zr(n, t, e, i) {
|
|
|
3764
3752
|
}
|
|
3765
3753
|
return s === 0 ? void 0 : s > 0;
|
|
3766
3754
|
}
|
|
3767
|
-
function
|
|
3755
|
+
function Vc(n, t, e, i, s) {
|
|
3768
3756
|
s = s !== void 0 ? s : !1;
|
|
3769
3757
|
for (let r = 0, o = e.length; r < o; ++r) {
|
|
3770
3758
|
const a = e[r], l = zr(
|
|
@@ -3791,11 +3779,11 @@ function Do(n, t, e, i, s) {
|
|
|
3791
3779
|
a,
|
|
3792
3780
|
i
|
|
3793
3781
|
);
|
|
3794
|
-
(r === 0 ? s && l || !s && !l : s && !l || !s && l) &&
|
|
3782
|
+
(r === 0 ? s && l || !s && !l : s && !l || !s && l) && Uc(n, t, a, i), t = a;
|
|
3795
3783
|
}
|
|
3796
3784
|
return t;
|
|
3797
3785
|
}
|
|
3798
|
-
function
|
|
3786
|
+
function jc(n, t) {
|
|
3799
3787
|
const e = [];
|
|
3800
3788
|
let i = 0, s = 0, r;
|
|
3801
3789
|
for (let o = 0, a = t.length; o < a; ++o) {
|
|
@@ -3866,14 +3854,14 @@ class nn extends kr {
|
|
|
3866
3854
|
*/
|
|
3867
3855
|
closestPointXY(t, e, i, s) {
|
|
3868
3856
|
return s < Ma(this.getExtent(), t, e) ? s : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
|
|
3869
|
-
|
|
3857
|
+
kc(
|
|
3870
3858
|
this.flatCoordinates,
|
|
3871
3859
|
0,
|
|
3872
3860
|
this.ends_,
|
|
3873
3861
|
this.stride,
|
|
3874
3862
|
0
|
|
3875
3863
|
)
|
|
3876
|
-
), this.maxDeltaRevision_ = this.getRevision()),
|
|
3864
|
+
), this.maxDeltaRevision_ = this.getRevision()), Nc(
|
|
3877
3865
|
this.flatCoordinates,
|
|
3878
3866
|
0,
|
|
3879
3867
|
this.ends_,
|
|
@@ -3908,7 +3896,7 @@ class nn extends kr {
|
|
|
3908
3896
|
* @api
|
|
3909
3897
|
*/
|
|
3910
3898
|
getArea() {
|
|
3911
|
-
return
|
|
3899
|
+
return Fc(
|
|
3912
3900
|
this.getOrientedFlatCoordinates(),
|
|
3913
3901
|
0,
|
|
3914
3902
|
this.ends_,
|
|
@@ -4020,7 +4008,7 @@ class nn extends kr {
|
|
|
4020
4008
|
getOrientedFlatCoordinates() {
|
|
4021
4009
|
if (this.orientedRevision_ != this.getRevision()) {
|
|
4022
4010
|
const t = this.flatCoordinates;
|
|
4023
|
-
|
|
4011
|
+
Vc(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = Do(
|
|
4024
4012
|
this.orientedFlatCoordinates_,
|
|
4025
4013
|
0,
|
|
4026
4014
|
this.ends_,
|
|
@@ -4068,7 +4056,7 @@ class nn extends kr {
|
|
|
4068
4056
|
* @override
|
|
4069
4057
|
*/
|
|
4070
4058
|
intersectsExtent(t) {
|
|
4071
|
-
return
|
|
4059
|
+
return Zc(
|
|
4072
4060
|
this.getOrientedFlatCoordinates(),
|
|
4073
4061
|
0,
|
|
4074
4062
|
this.ends_,
|
|
@@ -4085,7 +4073,7 @@ class nn extends kr {
|
|
|
4085
4073
|
*/
|
|
4086
4074
|
setCoordinates(t, e) {
|
|
4087
4075
|
this.setLayout(e, t, 2), this.flatCoordinates || (this.flatCoordinates = []);
|
|
4088
|
-
const i =
|
|
4076
|
+
const i = zc(
|
|
4089
4077
|
this.flatCoordinates,
|
|
4090
4078
|
0,
|
|
4091
4079
|
t,
|
|
@@ -4121,7 +4109,7 @@ function Wr(n, t, e) {
|
|
|
4121
4109
|
const s = 50;
|
|
4122
4110
|
return i *= Math.log(1 + s * Math.max(0, n / t - 1)) / s + 1, e && (i = Math.max(i, e), i /= Math.log(1 + s * Math.max(0, e / n - 1)) / s + 1), st(i, e / 2, t * 2);
|
|
4123
4111
|
}
|
|
4124
|
-
function
|
|
4112
|
+
function Hc(n, t, e, i) {
|
|
4125
4113
|
return t = t !== void 0 ? t : !0, /**
|
|
4126
4114
|
* @param {number|undefined} resolution Resolution.
|
|
4127
4115
|
* @param {number} direction Direction.
|
|
@@ -4148,7 +4136,7 @@ function qc(n, t, e, i) {
|
|
|
4148
4136
|
}
|
|
4149
4137
|
});
|
|
4150
4138
|
}
|
|
4151
|
-
function
|
|
4139
|
+
function qc(n, t, e, i, s, r) {
|
|
4152
4140
|
return i = i !== void 0 ? i : !0, e = e !== void 0 ? e : 0, /**
|
|
4153
4141
|
* @param {number|undefined} resolution Resolution.
|
|
4154
4142
|
* @param {number} direction Direction.
|
|
@@ -4211,7 +4199,7 @@ function No(n) {
|
|
|
4211
4199
|
if (n !== void 0)
|
|
4212
4200
|
return n;
|
|
4213
4201
|
}
|
|
4214
|
-
function
|
|
4202
|
+
function $c(n) {
|
|
4215
4203
|
const t = 2 * Math.PI / n;
|
|
4216
4204
|
return (
|
|
4217
4205
|
/**
|
|
@@ -4227,7 +4215,7 @@ function Jc(n) {
|
|
|
4227
4215
|
})
|
|
4228
4216
|
);
|
|
4229
4217
|
}
|
|
4230
|
-
function
|
|
4218
|
+
function Jc(n) {
|
|
4231
4219
|
const t = be(5);
|
|
4232
4220
|
return (
|
|
4233
4221
|
/**
|
|
@@ -4240,13 +4228,13 @@ function Qc(n) {
|
|
|
4240
4228
|
})
|
|
4241
4229
|
);
|
|
4242
4230
|
}
|
|
4243
|
-
const
|
|
4231
|
+
const Qc = 42, Kr = 256, ks = 0;
|
|
4244
4232
|
class qt extends ee {
|
|
4245
4233
|
/**
|
|
4246
4234
|
* @param {ViewOptions} [options] View options.
|
|
4247
4235
|
*/
|
|
4248
4236
|
constructor(t) {
|
|
4249
|
-
super(), this.on, this.once, this.un, t = Object.assign({}, t), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = Fr(t.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, t.projection &&
|
|
4237
|
+
super(), this.on, this.once, this.un, t = Object.assign({}, t), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = Fr(t.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, t.projection && mc(), t.center && (t.center = ae(t.center, this.projection_)), t.extent && (t.extent = Be(t.extent, this.projection_)), this.applyOptions_(t);
|
|
4250
4238
|
}
|
|
4251
4239
|
/**
|
|
4252
4240
|
* Set up the view with the given options.
|
|
@@ -4257,9 +4245,9 @@ class qt extends ee {
|
|
|
4257
4245
|
for (const a in Yt)
|
|
4258
4246
|
delete e[a];
|
|
4259
4247
|
this.setProperties(e, !0);
|
|
4260
|
-
const i =
|
|
4248
|
+
const i = eu(t);
|
|
4261
4249
|
this.maxResolution_ = i.maxResolution, this.minResolution_ = i.minResolution, this.zoomFactor_ = i.zoomFactor, this.resolutions_ = t.resolutions, this.padding_ = t.padding, this.minZoom_ = i.minZoom;
|
|
4262
|
-
const s =
|
|
4250
|
+
const s = tu(t), r = i.constraint, o = iu(t);
|
|
4263
4251
|
this.constraints_ = {
|
|
4264
4252
|
center: s,
|
|
4265
4253
|
resolution: r,
|
|
@@ -4377,7 +4365,7 @@ class qt extends ee {
|
|
|
4377
4365
|
complete: !1,
|
|
4378
4366
|
anchor: h.anchor,
|
|
4379
4367
|
duration: h.duration !== void 0 ? h.duration : 1e3,
|
|
4380
|
-
easing: h.easing ||
|
|
4368
|
+
easing: h.easing || Kh,
|
|
4381
4369
|
callback: i
|
|
4382
4370
|
};
|
|
4383
4371
|
if (h.center && (u.sourceCenter = o, u.targetCenter = h.center.slice(), o = u.targetCenter), h.zoom !== void 0 ? (u.sourceResolution = a, u.targetResolution = this.getResolutionForZoom(h.zoom), a = u.targetResolution) : h.resolution && (u.sourceResolution = a, u.targetResolution = h.resolution, a = u.targetResolution), h.rotation !== void 0) {
|
|
@@ -4385,7 +4373,7 @@ class qt extends ee {
|
|
|
4385
4373
|
const d = _i(h.rotation - l + Math.PI, 2 * Math.PI) - Math.PI;
|
|
4386
4374
|
u.targetRotation = l + d, l = u.targetRotation;
|
|
4387
4375
|
}
|
|
4388
|
-
|
|
4376
|
+
nu(u) ? u.complete = !0 : r += u.duration, c.push(u);
|
|
4389
4377
|
}
|
|
4390
4378
|
this.animations_.push(c), this.setHint(yt.ANIMATING, 1), this.updateAnimations_();
|
|
4391
4379
|
}
|
|
@@ -5310,7 +5298,7 @@ function Pn(n, t) {
|
|
|
5310
5298
|
n(t);
|
|
5311
5299
|
}, 0);
|
|
5312
5300
|
}
|
|
5313
|
-
function
|
|
5301
|
+
function tu(n) {
|
|
5314
5302
|
if (n.extent !== void 0) {
|
|
5315
5303
|
const e = n.smoothExtentConstraint !== void 0 ? n.smoothExtentConstraint : !0;
|
|
5316
5304
|
return yo(n.extent, n.constrainOnlyCenter, e);
|
|
@@ -5320,15 +5308,15 @@ function eu(n) {
|
|
|
5320
5308
|
const e = t.getExtent().slice();
|
|
5321
5309
|
return e[0] = -1 / 0, e[2] = 1 / 0, yo(e, !1, !1);
|
|
5322
5310
|
}
|
|
5323
|
-
return
|
|
5311
|
+
return Ph;
|
|
5324
5312
|
}
|
|
5325
|
-
function
|
|
5313
|
+
function eu(n) {
|
|
5326
5314
|
let t, e, i, o = n.minZoom !== void 0 ? n.minZoom : ks, a = n.maxZoom !== void 0 ? n.maxZoom : 28;
|
|
5327
5315
|
const l = n.zoomFactor !== void 0 ? n.zoomFactor : 2, c = n.multiWorld !== void 0 ? n.multiWorld : !1, h = n.smoothResolutionConstraint !== void 0 ? n.smoothResolutionConstraint : !0, u = n.showFullExtent !== void 0 ? n.showFullExtent : !1, d = Fr(n.projection, "EPSG:3857"), f = d.getExtent();
|
|
5328
5316
|
let g = n.constrainOnlyCenter, m = n.extent;
|
|
5329
5317
|
if (!c && !m && d.isGlobal() && (g = !1, m = f), n.resolutions !== void 0) {
|
|
5330
5318
|
const _ = n.resolutions;
|
|
5331
|
-
e = _[o], i = _[a] !== void 0 ? _[a] : _[_.length - 1], n.constrainResolution ? t =
|
|
5319
|
+
e = _[o], i = _[a] !== void 0 ? _[a] : _[_.length - 1], n.constrainResolution ? t = Hc(
|
|
5332
5320
|
_,
|
|
5333
5321
|
h,
|
|
5334
5322
|
!g && m,
|
|
@@ -5347,7 +5335,7 @@ function iu(n) {
|
|
|
5347
5335
|
)) / Kr / Math.pow(2, ks), E = p / Math.pow(2, 28 - ks);
|
|
5348
5336
|
e = n.maxResolution, e !== void 0 ? o = 0 : e = p / Math.pow(l, o), i = n.minResolution, i === void 0 && (n.maxZoom !== void 0 ? n.maxResolution !== void 0 ? i = e / Math.pow(l, a) : i = p / Math.pow(l, a) : i = E), a = o + Math.floor(
|
|
5349
5337
|
Math.log(e / i) / Math.log(l)
|
|
5350
|
-
), i = e / Math.pow(l, a - o), n.constrainResolution ? t =
|
|
5338
|
+
), i = e / Math.pow(l, a - o), n.constrainResolution ? t = qc(
|
|
5351
5339
|
l,
|
|
5352
5340
|
e,
|
|
5353
5341
|
i,
|
|
@@ -5370,14 +5358,14 @@ function iu(n) {
|
|
|
5370
5358
|
zoomFactor: l
|
|
5371
5359
|
};
|
|
5372
5360
|
}
|
|
5373
|
-
function
|
|
5361
|
+
function iu(n) {
|
|
5374
5362
|
if (n.enableRotation !== void 0 ? n.enableRotation : !0) {
|
|
5375
5363
|
const e = n.constrainRotation;
|
|
5376
|
-
return e === void 0 || e === !0 ?
|
|
5364
|
+
return e === void 0 || e === !0 ? Jc() : e === !1 ? No : typeof e == "number" ? $c(e) : No;
|
|
5377
5365
|
}
|
|
5378
5366
|
return Yr;
|
|
5379
5367
|
}
|
|
5380
|
-
function
|
|
5368
|
+
function nu(n) {
|
|
5381
5369
|
return !(n.sourceCenter && n.targetCenter && !Un(n.sourceCenter, n.targetCenter) || n.sourceResolution !== n.targetResolution || n.sourceRotation !== n.targetRotation);
|
|
5382
5370
|
}
|
|
5383
5371
|
function Ns(n, t, e, i, s) {
|
|
@@ -5387,7 +5375,7 @@ function Ns(n, t, e, i, s) {
|
|
|
5387
5375
|
const c = a * r - l * o, h = l * r + a * o;
|
|
5388
5376
|
return [c, h];
|
|
5389
5377
|
}
|
|
5390
|
-
const Dn = "ol-hidden", gs = "ol-unselectable", Br = "ol-control", Go = "ol-collapsed",
|
|
5378
|
+
const Dn = "ol-hidden", gs = "ol-unselectable", Br = "ol-control", Go = "ol-collapsed", su = new RegExp(
|
|
5391
5379
|
[
|
|
5392
5380
|
"^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)",
|
|
5393
5381
|
"(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)",
|
|
@@ -5409,7 +5397,7 @@ const Dn = "ol-hidden", gs = "ol-unselectable", Br = "ol-control", Go = "ol-coll
|
|
|
5409
5397
|
normal: 400,
|
|
5410
5398
|
bold: 700
|
|
5411
5399
|
}, yr = function(n) {
|
|
5412
|
-
const t = n.match(
|
|
5400
|
+
const t = n.match(su);
|
|
5413
5401
|
if (!t)
|
|
5414
5402
|
return null;
|
|
5415
5403
|
const e = (
|
|
@@ -5448,11 +5436,11 @@ function Xo(n, t) {
|
|
|
5448
5436
|
const e = t.parentNode;
|
|
5449
5437
|
e && e.replaceChild(n, t);
|
|
5450
5438
|
}
|
|
5451
|
-
function
|
|
5439
|
+
function ru(n) {
|
|
5452
5440
|
for (; n.lastChild; )
|
|
5453
5441
|
n.lastChild.remove();
|
|
5454
5442
|
}
|
|
5455
|
-
function
|
|
5443
|
+
function ou(n, t) {
|
|
5456
5444
|
const e = n.childNodes;
|
|
5457
5445
|
for (let i = 0; ; ++i) {
|
|
5458
5446
|
const s = e[i], r = t[i];
|
|
@@ -5586,7 +5574,7 @@ class Zr extends ee {
|
|
|
5586
5574
|
this.target_ = typeof t == "string" ? document.getElementById(t) : t;
|
|
5587
5575
|
}
|
|
5588
5576
|
}
|
|
5589
|
-
class
|
|
5577
|
+
class au extends Zr {
|
|
5590
5578
|
/**
|
|
5591
5579
|
* @param {Options} [options] Attribution options.
|
|
5592
5580
|
*/
|
|
@@ -5638,11 +5626,11 @@ class lu extends Zr {
|
|
|
5638
5626
|
}
|
|
5639
5627
|
const e = await Promise.all(
|
|
5640
5628
|
this.collectSourceAttributions_(t).map(
|
|
5641
|
-
(s) =>
|
|
5629
|
+
(s) => Ch(() => s)
|
|
5642
5630
|
)
|
|
5643
5631
|
), i = e.length > 0;
|
|
5644
5632
|
if (this.renderedVisible_ != i && (this.element.style.display = i ? "" : "none", this.renderedVisible_ = i), !Fe(e, this.renderedAttributions_)) {
|
|
5645
|
-
|
|
5633
|
+
ru(this.ulElement_);
|
|
5646
5634
|
for (let s = 0, r = e.length; s < r; ++s) {
|
|
5647
5635
|
const o = document.createElement("li");
|
|
5648
5636
|
o.innerHTML = e[s], this.ulElement_.appendChild(o);
|
|
@@ -5707,7 +5695,7 @@ class lu extends Zr {
|
|
|
5707
5695
|
this.updateElement_(t.frameState);
|
|
5708
5696
|
}
|
|
5709
5697
|
}
|
|
5710
|
-
class
|
|
5698
|
+
class lu extends Zr {
|
|
5711
5699
|
/**
|
|
5712
5700
|
* @param {Options} [options] Rotate options.
|
|
5713
5701
|
*/
|
|
@@ -5770,7 +5758,7 @@ class hu extends Zr {
|
|
|
5770
5758
|
this.rotation_ = i;
|
|
5771
5759
|
}
|
|
5772
5760
|
}
|
|
5773
|
-
class
|
|
5761
|
+
class hu extends Zr {
|
|
5774
5762
|
/**
|
|
5775
5763
|
* @param {Options} [options] Zoom options.
|
|
5776
5764
|
*/
|
|
@@ -5825,12 +5813,12 @@ class cu extends Zr {
|
|
|
5825
5813
|
}
|
|
5826
5814
|
}
|
|
5827
5815
|
}
|
|
5828
|
-
function
|
|
5816
|
+
function cu(n) {
|
|
5829
5817
|
n = n || {};
|
|
5830
5818
|
const t = new Ft();
|
|
5831
|
-
return (n.zoom === void 0 || n.zoom) && t.push(new
|
|
5819
|
+
return (n.zoom === void 0 || n.zoom) && t.push(new hu(n.zoomOptions)), (n.rotate === void 0 || n.rotate) && t.push(new lu(n.rotateOptions)), (n.attribution === void 0 || n.attribution) && t.push(new au(n.attributionOptions)), t;
|
|
5832
5820
|
}
|
|
5833
|
-
class
|
|
5821
|
+
class uu {
|
|
5834
5822
|
/**
|
|
5835
5823
|
* @param {number} decay Rate of decay (must be negative).
|
|
5836
5824
|
* @param {number} minVelocity Minimum velocity (pixels/millisecond).
|
|
@@ -5942,13 +5930,13 @@ class _n extends ee {
|
|
|
5942
5930
|
this.map_ = t;
|
|
5943
5931
|
}
|
|
5944
5932
|
}
|
|
5945
|
-
function
|
|
5933
|
+
function du(n, t, e) {
|
|
5946
5934
|
const i = n.getCenterInternal();
|
|
5947
5935
|
if (i) {
|
|
5948
5936
|
const s = [i[0] + t[0], i[1] + t[1]];
|
|
5949
5937
|
n.animateInternal({
|
|
5950
5938
|
duration: e !== void 0 ? e : 250,
|
|
5951
|
-
easing:
|
|
5939
|
+
easing: Bh,
|
|
5952
5940
|
center: n.getConstrainedCenter(s)
|
|
5953
5941
|
});
|
|
5954
5942
|
}
|
|
@@ -5965,7 +5953,7 @@ function Ur(n, t, e, i) {
|
|
|
5965
5953
|
easing: Si
|
|
5966
5954
|
});
|
|
5967
5955
|
}
|
|
5968
|
-
class
|
|
5956
|
+
class fu extends _n {
|
|
5969
5957
|
/**
|
|
5970
5958
|
* @param {Options} [options] Options.
|
|
5971
5959
|
*/
|
|
@@ -6000,28 +5988,28 @@ function Er(n) {
|
|
|
6000
5988
|
return i;
|
|
6001
5989
|
};
|
|
6002
5990
|
}
|
|
6003
|
-
const
|
|
5991
|
+
const gu = function(n) {
|
|
6004
5992
|
const t = n.originalEvent;
|
|
6005
5993
|
return t.altKey && !(t.metaKey || t.ctrlKey) && t.shiftKey;
|
|
6006
|
-
},
|
|
5994
|
+
}, _u = function(n) {
|
|
6007
5995
|
const t = n.map.getTargetElement(), e = t.getRootNode(), i = n.map.getOwnerDocument().activeElement;
|
|
6008
5996
|
return e instanceof ShadowRoot ? e.host.contains(i) : t.contains(i);
|
|
6009
5997
|
}, rl = function(n) {
|
|
6010
5998
|
const t = n.map.getTargetElement(), e = t.getRootNode();
|
|
6011
|
-
return (e instanceof ShadowRoot ? e.host : t).hasAttribute("tabindex") ?
|
|
6012
|
-
},
|
|
5999
|
+
return (e instanceof ShadowRoot ? e.host : t).hasAttribute("tabindex") ? _u(n) : !0;
|
|
6000
|
+
}, mu = qi, ol = function(n) {
|
|
6013
6001
|
const t = n.originalEvent;
|
|
6014
|
-
return "pointerId" in t && t.button == 0 && !(
|
|
6002
|
+
return "pointerId" in t && t.button == 0 && !(Ih && Sa && t.ctrlKey);
|
|
6015
6003
|
}, al = function(n) {
|
|
6016
6004
|
const t = (
|
|
6017
6005
|
/** @type {KeyboardEvent|MouseEvent|TouchEvent} */
|
|
6018
6006
|
n.originalEvent
|
|
6019
6007
|
);
|
|
6020
6008
|
return !t.altKey && !(t.metaKey || t.ctrlKey) && !t.shiftKey;
|
|
6021
|
-
},
|
|
6009
|
+
}, pu = function(n) {
|
|
6022
6010
|
const t = n.originalEvent;
|
|
6023
6011
|
return Sa ? t.metaKey : t.ctrlKey;
|
|
6024
|
-
},
|
|
6012
|
+
}, yu = function(n) {
|
|
6025
6013
|
const t = n.originalEvent;
|
|
6026
6014
|
return !t.altKey && !(t.metaKey || t.ctrlKey) && t.shiftKey;
|
|
6027
6015
|
}, ll = function(n) {
|
|
@@ -6036,7 +6024,7 @@ const _u = function(n) {
|
|
|
6036
6024
|
}, zs = function(n) {
|
|
6037
6025
|
const t = n.originalEvent;
|
|
6038
6026
|
return "pointerId" in t && t.pointerType == "mouse";
|
|
6039
|
-
},
|
|
6027
|
+
}, Eu = function(n) {
|
|
6040
6028
|
const t = n.originalEvent;
|
|
6041
6029
|
return "pointerId" in t && t.isPrimary && t.button === 0;
|
|
6042
6030
|
};
|
|
@@ -6141,7 +6129,7 @@ function Vr(n) {
|
|
|
6141
6129
|
e += n[s].clientX, i += n[s].clientY;
|
|
6142
6130
|
return { clientX: e / t, clientY: i / t };
|
|
6143
6131
|
}
|
|
6144
|
-
class
|
|
6132
|
+
class xu extends mn {
|
|
6145
6133
|
/**
|
|
6146
6134
|
* @param {Options} [options] Options.
|
|
6147
6135
|
*/
|
|
@@ -6149,7 +6137,7 @@ class Cu extends mn {
|
|
|
6149
6137
|
super({
|
|
6150
6138
|
stopDown: ss
|
|
6151
6139
|
}), t = t || {}, this.kinetic_ = t.kinetic, this.lastCentroid = null, this.lastPointersCount_, this.panning_ = !1;
|
|
6152
|
-
const e = t.condition ? t.condition : Er(al,
|
|
6140
|
+
const e = t.condition ? t.condition : Er(al, Eu);
|
|
6153
6141
|
this.condition_ = t.onFocusOnly ? Er(rl, e) : e, this.noKinetic_ = !1;
|
|
6154
6142
|
}
|
|
6155
6143
|
/**
|
|
@@ -6210,14 +6198,14 @@ class Cu extends mn {
|
|
|
6210
6198
|
return !1;
|
|
6211
6199
|
}
|
|
6212
6200
|
}
|
|
6213
|
-
class
|
|
6201
|
+
class Cu extends mn {
|
|
6214
6202
|
/**
|
|
6215
6203
|
* @param {Options} [options] Options.
|
|
6216
6204
|
*/
|
|
6217
6205
|
constructor(t) {
|
|
6218
6206
|
t = t || {}, super({
|
|
6219
6207
|
stopDown: ss
|
|
6220
|
-
}), this.condition_ = t.condition ? t.condition :
|
|
6208
|
+
}), this.condition_ = t.condition ? t.condition : gu, this.lastAngle_ = void 0, this.duration_ = t.duration !== void 0 ? t.duration : 250;
|
|
6221
6209
|
}
|
|
6222
6210
|
/**
|
|
6223
6211
|
* Handle pointer drag events.
|
|
@@ -6256,7 +6244,7 @@ class wu extends mn {
|
|
|
6256
6244
|
return zs(t) && ol(t) && this.condition_(t) ? (t.map.getView().beginInteraction(), this.lastAngle_ = void 0, !0) : !1;
|
|
6257
6245
|
}
|
|
6258
6246
|
}
|
|
6259
|
-
class
|
|
6247
|
+
class wu extends ns {
|
|
6260
6248
|
/**
|
|
6261
6249
|
* @param {string} className CSS class name.
|
|
6262
6250
|
*/
|
|
@@ -6355,12 +6343,12 @@ class Fi extends _e {
|
|
|
6355
6343
|
super(t), this.coordinate = e, this.mapBrowserEvent = i;
|
|
6356
6344
|
}
|
|
6357
6345
|
}
|
|
6358
|
-
class
|
|
6346
|
+
class Ru extends mn {
|
|
6359
6347
|
/**
|
|
6360
6348
|
* @param {Options} [options] Options.
|
|
6361
6349
|
*/
|
|
6362
6350
|
constructor(t) {
|
|
6363
|
-
super(), this.on, this.once, this.un, t = t ?? {}, this.box_ = new
|
|
6351
|
+
super(), this.on, this.once, this.un, t = t ?? {}, this.box_ = new wu(t.className || "ol-dragbox"), this.minArea_ = t.minArea ?? 64, t.onBoxEnd && (this.onBoxEnd = t.onBoxEnd), this.startPixel_ = null, this.condition_ = t.condition ?? ol, this.boxEndCondition_ = t.boxEndCondition ?? this.defaultBoxEndCondition;
|
|
6364
6352
|
}
|
|
6365
6353
|
/**
|
|
6366
6354
|
* The default condition for determining whether the boxend event
|
|
@@ -6462,13 +6450,13 @@ class Tu extends mn {
|
|
|
6462
6450
|
), this.startPixel_ = null)), super.setMap(t);
|
|
6463
6451
|
}
|
|
6464
6452
|
}
|
|
6465
|
-
class
|
|
6453
|
+
class Tu extends Ru {
|
|
6466
6454
|
/**
|
|
6467
6455
|
* @param {Options} [options] Options.
|
|
6468
6456
|
*/
|
|
6469
6457
|
constructor(t) {
|
|
6470
6458
|
t = t || {};
|
|
6471
|
-
const e = t.condition ? t.condition :
|
|
6459
|
+
const e = t.condition ? t.condition : yu;
|
|
6472
6460
|
super({
|
|
6473
6461
|
condition: e,
|
|
6474
6462
|
className: t.className || "ol-dragzoom",
|
|
@@ -6502,7 +6490,7 @@ const Xe = {
|
|
|
6502
6490
|
RIGHT: "ArrowRight",
|
|
6503
6491
|
DOWN: "ArrowDown"
|
|
6504
6492
|
};
|
|
6505
|
-
class
|
|
6493
|
+
class Iu extends _n {
|
|
6506
6494
|
/**
|
|
6507
6495
|
* @param {Options} [options] Options.
|
|
6508
6496
|
*/
|
|
@@ -6531,19 +6519,19 @@ class Su extends _n {
|
|
|
6531
6519
|
let l = 0, c = 0;
|
|
6532
6520
|
s == Xe.DOWN ? c = -a : s == Xe.LEFT ? l = -a : s == Xe.RIGHT ? l = a : c = a;
|
|
6533
6521
|
const h = [l, c];
|
|
6534
|
-
Ar(h, o.getRotation()),
|
|
6522
|
+
Ar(h, o.getRotation()), du(o, h, this.duration_), i.preventDefault(), e = !0;
|
|
6535
6523
|
}
|
|
6536
6524
|
}
|
|
6537
6525
|
return !e;
|
|
6538
6526
|
}
|
|
6539
6527
|
}
|
|
6540
|
-
class
|
|
6528
|
+
class Su extends _n {
|
|
6541
6529
|
/**
|
|
6542
6530
|
* @param {Options} [options] Options.
|
|
6543
6531
|
*/
|
|
6544
6532
|
constructor(t) {
|
|
6545
6533
|
super(), t = t || {}, this.condition_ = t.condition ? t.condition : function(e) {
|
|
6546
|
-
return !
|
|
6534
|
+
return !pu(e) && ll(e);
|
|
6547
6535
|
}, this.delta_ = t.delta ? t.delta : 1, this.duration_ = t.duration !== void 0 ? t.duration : 100;
|
|
6548
6536
|
}
|
|
6549
6537
|
/**
|
|
@@ -6569,8 +6557,8 @@ class vu extends _n {
|
|
|
6569
6557
|
return !e;
|
|
6570
6558
|
}
|
|
6571
6559
|
}
|
|
6572
|
-
const
|
|
6573
|
-
class
|
|
6560
|
+
const vu = 40, Lu = 300, Au = 3;
|
|
6561
|
+
class Mu extends _n {
|
|
6574
6562
|
/**
|
|
6575
6563
|
* @param {Options} [options] Options.
|
|
6576
6564
|
*/
|
|
@@ -6579,7 +6567,7 @@ class bu extends _n {
|
|
|
6579
6567
|
/** @type {import("./Interaction.js").InteractionOptions} */
|
|
6580
6568
|
t
|
|
6581
6569
|
), this.totalDelta_ = 0, this.lastDelta_ = 0, this.maxDelta_ = t.maxDelta !== void 0 ? t.maxDelta : 1, this.duration_ = t.duration !== void 0 ? t.duration : 250, this.timeout_ = t.timeout !== void 0 ? t.timeout : 80, this.useAnchor_ = t.useAnchor !== void 0 ? t.useAnchor : !0, this.constrainResolution_ = t.constrainResolution !== void 0 ? t.constrainResolution : !1;
|
|
6582
|
-
const e = t.condition ? t.condition :
|
|
6570
|
+
const e = t.condition ? t.condition : mu;
|
|
6583
6571
|
this.condition_ = t.onFocusOnly ? Er(rl, e) : e, this.lastAnchor_ = null, this.startTime_ = void 0, this.timeoutId_, this.mode_ = void 0, this.trackpadEventGap_ = 400, this.trackpadTimeoutId_, this.deltaPerZoom_ = 300, this.ctrlKeyPressed_ = !1, this.ctrlKeyListenerKeys_ = [];
|
|
6584
6572
|
}
|
|
6585
6573
|
/**
|
|
@@ -6634,10 +6622,10 @@ class bu extends _n {
|
|
|
6634
6622
|
let o = s.deltaY;
|
|
6635
6623
|
switch (s.deltaMode) {
|
|
6636
6624
|
case WheelEvent.DOM_DELTA_LINE:
|
|
6637
|
-
o *=
|
|
6625
|
+
o *= vu;
|
|
6638
6626
|
break;
|
|
6639
6627
|
case WheelEvent.DOM_DELTA_PAGE:
|
|
6640
|
-
o *=
|
|
6628
|
+
o *= Lu;
|
|
6641
6629
|
break;
|
|
6642
6630
|
}
|
|
6643
6631
|
if (o === 0)
|
|
@@ -6650,7 +6638,7 @@ class bu extends _n {
|
|
|
6650
6638
|
return this.trackpadTimeoutId_ ? clearTimeout(this.trackpadTimeoutId_) : (l.getAnimating() && l.cancelAnimations(), l.beginInteraction()), this.trackpadTimeoutId_ = setTimeout(
|
|
6651
6639
|
this.endInteraction_.bind(this),
|
|
6652
6640
|
this.timeout_
|
|
6653
|
-
), r && (o = o *
|
|
6641
|
+
), r && (o = o * Au), l.adjustZoom(
|
|
6654
6642
|
-o / this.deltaPerZoom_,
|
|
6655
6643
|
this.lastAnchor_ ? i.getCoordinateFromPixel(this.lastAnchor_) : null
|
|
6656
6644
|
), this.startTime_ = a, !1;
|
|
@@ -6690,7 +6678,7 @@ class bu extends _n {
|
|
|
6690
6678
|
this.useAnchor_ = t, t || (this.lastAnchor_ = null);
|
|
6691
6679
|
}
|
|
6692
6680
|
}
|
|
6693
|
-
class
|
|
6681
|
+
class bu extends mn {
|
|
6694
6682
|
/**
|
|
6695
6683
|
* @param {Options} [options] Options.
|
|
6696
6684
|
*/
|
|
@@ -6746,7 +6734,7 @@ class Ou extends mn {
|
|
|
6746
6734
|
return !1;
|
|
6747
6735
|
}
|
|
6748
6736
|
}
|
|
6749
|
-
class
|
|
6737
|
+
class Ou extends mn {
|
|
6750
6738
|
/**
|
|
6751
6739
|
* @param {Options} [options] Options.
|
|
6752
6740
|
*/
|
|
@@ -6799,35 +6787,35 @@ class Pu extends mn {
|
|
|
6799
6787
|
return !1;
|
|
6800
6788
|
}
|
|
6801
6789
|
}
|
|
6802
|
-
function
|
|
6790
|
+
function Pu(n) {
|
|
6803
6791
|
n = n || {};
|
|
6804
|
-
const t = new Ft(), e = new
|
|
6805
|
-
return (n.altShiftDragRotate === void 0 || n.altShiftDragRotate) && t.push(new
|
|
6806
|
-
new
|
|
6792
|
+
const t = new Ft(), e = new uu(-5e-3, 0.05, 100);
|
|
6793
|
+
return (n.altShiftDragRotate === void 0 || n.altShiftDragRotate) && t.push(new Cu()), (n.doubleClickZoom === void 0 || n.doubleClickZoom) && t.push(
|
|
6794
|
+
new fu({
|
|
6807
6795
|
delta: n.zoomDelta,
|
|
6808
6796
|
duration: n.zoomDuration
|
|
6809
6797
|
})
|
|
6810
6798
|
), (n.dragPan === void 0 || n.dragPan) && t.push(
|
|
6811
|
-
new
|
|
6799
|
+
new xu({
|
|
6812
6800
|
onFocusOnly: n.onFocusOnly,
|
|
6813
6801
|
kinetic: e
|
|
6814
6802
|
})
|
|
6815
|
-
), (n.pinchRotate === void 0 || n.pinchRotate) && t.push(new
|
|
6816
|
-
new
|
|
6803
|
+
), (n.pinchRotate === void 0 || n.pinchRotate) && t.push(new bu()), (n.pinchZoom === void 0 || n.pinchZoom) && t.push(
|
|
6804
|
+
new Ou({
|
|
6817
6805
|
duration: n.zoomDuration
|
|
6818
6806
|
})
|
|
6819
|
-
), (n.keyboard === void 0 || n.keyboard) && (t.push(new
|
|
6820
|
-
new
|
|
6807
|
+
), (n.keyboard === void 0 || n.keyboard) && (t.push(new Iu()), t.push(
|
|
6808
|
+
new Su({
|
|
6821
6809
|
delta: n.zoomDelta,
|
|
6822
6810
|
duration: n.zoomDuration
|
|
6823
6811
|
})
|
|
6824
6812
|
)), (n.mouseWheelZoom === void 0 || n.mouseWheelZoom) && t.push(
|
|
6825
|
-
new
|
|
6813
|
+
new Mu({
|
|
6826
6814
|
onFocusOnly: n.onFocusOnly,
|
|
6827
6815
|
duration: n.zoomDuration
|
|
6828
6816
|
})
|
|
6829
6817
|
), (n.shiftDragZoom === void 0 || n.shiftDragZoom) && t.push(
|
|
6830
|
-
new
|
|
6818
|
+
new Tu({
|
|
6831
6819
|
duration: n.zoomDuration
|
|
6832
6820
|
})
|
|
6833
6821
|
), t;
|
|
@@ -7628,7 +7616,7 @@ function jr(n, t) {
|
|
|
7628
7616
|
const i = t.zoom;
|
|
7629
7617
|
return i > n.minZoom && i <= n.maxZoom;
|
|
7630
7618
|
}
|
|
7631
|
-
function cl(n, t, e = 0, i = n.length - 1, s =
|
|
7619
|
+
function cl(n, t, e = 0, i = n.length - 1, s = Du) {
|
|
7632
7620
|
for (; i > e; ) {
|
|
7633
7621
|
if (i - e > 600) {
|
|
7634
7622
|
const l = i - e + 1, c = t - e + 1, h = Math.log(l), u = 0.5 * Math.exp(2 * h / 3), d = 0.5 * Math.sqrt(h * u * (l - u) / l) * (c - l / 2 < 0 ? -1 : 1), f = Math.max(e, Math.floor(t - c * u / l + d)), g = Math.min(i, Math.floor(t + (l - c) * u / l + d));
|
|
@@ -7647,7 +7635,7 @@ function ki(n, t, e) {
|
|
|
7647
7635
|
const i = n[t];
|
|
7648
7636
|
n[t] = n[e], n[e] = i;
|
|
7649
7637
|
}
|
|
7650
|
-
function
|
|
7638
|
+
function Du(n, t) {
|
|
7651
7639
|
return n < t ? -1 : n > t ? 1 : 0;
|
|
7652
7640
|
}
|
|
7653
7641
|
let ul = class {
|
|
@@ -7721,7 +7709,7 @@ let ul = class {
|
|
|
7721
7709
|
let a, l, c;
|
|
7722
7710
|
for (; i || r.length; ) {
|
|
7723
7711
|
if (i || (i = r.pop(), l = r[r.length - 1], a = o.pop(), c = !0), i.leaf) {
|
|
7724
|
-
const h =
|
|
7712
|
+
const h = Fu(t, i.children, e);
|
|
7725
7713
|
if (h !== -1)
|
|
7726
7714
|
return i.children.splice(h, 1), r.push(i), this._condense(r), this;
|
|
7727
7715
|
}
|
|
@@ -7772,7 +7760,7 @@ let ul = class {
|
|
|
7772
7760
|
for (; s.push(e), !(e.leaf || s.length - 1 === i); ) {
|
|
7773
7761
|
let r = 1 / 0, o = 1 / 0, a;
|
|
7774
7762
|
for (let l = 0; l < e.children.length; l++) {
|
|
7775
|
-
const c = e.children[l], h = Ws(c), u =
|
|
7763
|
+
const c = e.children[l], h = Ws(c), u = Gu(t, c) - h;
|
|
7776
7764
|
u < o ? (o = u, r = h < r ? h : r, a = c) : u === o && h < r && (r = h, a = c);
|
|
7777
7765
|
}
|
|
7778
7766
|
e = a || e.children[0];
|
|
@@ -7798,14 +7786,14 @@ let ul = class {
|
|
|
7798
7786
|
_chooseSplitIndex(t, e, i) {
|
|
7799
7787
|
let s, r = 1 / 0, o = 1 / 0;
|
|
7800
7788
|
for (let a = e; a <= i - e; a++) {
|
|
7801
|
-
const l = Wi(t, 0, a, this.toBBox), c = Wi(t, a, i, this.toBBox), h =
|
|
7789
|
+
const l = Wi(t, 0, a, this.toBBox), c = Wi(t, a, i, this.toBBox), h = zu(l, c), u = Ws(l) + Ws(c);
|
|
7802
7790
|
h < r ? (r = h, s = a, o = u < o ? u : o) : h === r && u < o && (o = u, s = a);
|
|
7803
7791
|
}
|
|
7804
7792
|
return s || i - e;
|
|
7805
7793
|
}
|
|
7806
7794
|
// sorts node children by the best axis for split
|
|
7807
7795
|
_chooseSplitAxis(t, e, i) {
|
|
7808
|
-
const s = t.leaf ? this.compareMinX :
|
|
7796
|
+
const s = t.leaf ? this.compareMinX : ku, r = t.leaf ? this.compareMinY : Nu, o = this._allDistMargin(t, e, i, s), a = this._allDistMargin(t, e, i, r);
|
|
7809
7797
|
o < a && t.children.sort(s);
|
|
7810
7798
|
}
|
|
7811
7799
|
// total margin of all possible split distributions where each node is at least m full
|
|
@@ -7832,7 +7820,7 @@ let ul = class {
|
|
|
7832
7820
|
t[e].children.length === 0 ? e > 0 ? (i = t[e - 1].children, i.splice(i.indexOf(t[e]), 1)) : this.clear() : ni(t[e], this.toBBox);
|
|
7833
7821
|
}
|
|
7834
7822
|
};
|
|
7835
|
-
function
|
|
7823
|
+
function Fu(n, t, e) {
|
|
7836
7824
|
if (!e) return t.indexOf(n);
|
|
7837
7825
|
for (let i = 0; i < t.length; i++)
|
|
7838
7826
|
if (e(n, t[i])) return i;
|
|
@@ -7852,10 +7840,10 @@ function Wi(n, t, e, i, s) {
|
|
|
7852
7840
|
function Yi(n, t) {
|
|
7853
7841
|
return n.minX = Math.min(n.minX, t.minX), n.minY = Math.min(n.minY, t.minY), n.maxX = Math.max(n.maxX, t.maxX), n.maxY = Math.max(n.maxY, t.maxY), n;
|
|
7854
7842
|
}
|
|
7855
|
-
function
|
|
7843
|
+
function ku(n, t) {
|
|
7856
7844
|
return n.minX - t.minX;
|
|
7857
7845
|
}
|
|
7858
|
-
function
|
|
7846
|
+
function Nu(n, t) {
|
|
7859
7847
|
return n.minY - t.minY;
|
|
7860
7848
|
}
|
|
7861
7849
|
function Ws(n) {
|
|
@@ -7864,10 +7852,10 @@ function Ws(n) {
|
|
|
7864
7852
|
function Fn(n) {
|
|
7865
7853
|
return n.maxX - n.minX + (n.maxY - n.minY);
|
|
7866
7854
|
}
|
|
7867
|
-
function
|
|
7855
|
+
function Gu(n, t) {
|
|
7868
7856
|
return (Math.max(t.maxX, n.maxX) - Math.min(t.minX, n.minX)) * (Math.max(t.maxY, n.maxY) - Math.min(t.minY, n.minY));
|
|
7869
7857
|
}
|
|
7870
|
-
function
|
|
7858
|
+
function zu(n, t) {
|
|
7871
7859
|
const e = Math.max(n.minX, t.minX), i = Math.max(n.minY, t.minY), s = Math.min(n.maxX, t.maxX), r = Math.min(n.maxY, t.maxY);
|
|
7872
7860
|
return Math.max(0, s - e) * Math.max(0, r - i);
|
|
7873
7861
|
}
|
|
@@ -7898,13 +7886,13 @@ function Yo(n, t, e, i, s) {
|
|
|
7898
7886
|
}
|
|
7899
7887
|
const Hr = [NaN, NaN, NaN, 0];
|
|
7900
7888
|
let Ks;
|
|
7901
|
-
function
|
|
7889
|
+
function Xu() {
|
|
7902
7890
|
return Ks || (Ks = ct(1, 1, void 0, {
|
|
7903
7891
|
willReadFrequently: !0,
|
|
7904
7892
|
desynchronized: !0
|
|
7905
7893
|
})), Ks;
|
|
7906
7894
|
}
|
|
7907
|
-
const
|
|
7895
|
+
const Wu = /^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, Yu = /^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, Ku = /^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, Bu = /^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;
|
|
7908
7896
|
function Nn(n, t) {
|
|
7909
7897
|
return n.endsWith("%") ? Number(n.substring(0, n.length - 1)) / t : Number(n);
|
|
7910
7898
|
}
|
|
@@ -7913,7 +7901,7 @@ function ji(n) {
|
|
|
7913
7901
|
}
|
|
7914
7902
|
function dl(n) {
|
|
7915
7903
|
if (n.toLowerCase().startsWith("rgb")) {
|
|
7916
|
-
const r = n.match(
|
|
7904
|
+
const r = n.match(Yu) || n.match(Wu) || n.match(Ku);
|
|
7917
7905
|
if (r) {
|
|
7918
7906
|
const o = r[4], a = 100 / 255;
|
|
7919
7907
|
return [
|
|
@@ -7926,7 +7914,7 @@ function dl(n) {
|
|
|
7926
7914
|
ji(n);
|
|
7927
7915
|
}
|
|
7928
7916
|
if (n.startsWith("#")) {
|
|
7929
|
-
if (
|
|
7917
|
+
if (Bu.test(n)) {
|
|
7930
7918
|
const r = n.substring(1), o = r.length <= 4 ? 1 : 2, a = [0, 0, 0, 255];
|
|
7931
7919
|
for (let l = 0, c = r.length; l < c; l += o) {
|
|
7932
7920
|
let h = parseInt(r.substring(l, l + o), 16);
|
|
@@ -7936,7 +7924,7 @@ function dl(n) {
|
|
|
7936
7924
|
}
|
|
7937
7925
|
ji(n);
|
|
7938
7926
|
}
|
|
7939
|
-
const t =
|
|
7927
|
+
const t = Xu();
|
|
7940
7928
|
t.fillStyle = "#abcdef";
|
|
7941
7929
|
let e = t.fillStyle;
|
|
7942
7930
|
t.fillStyle = n, t.fillStyle === e && (t.fillStyle = "#fedcba", e = t.fillStyle, t.fillStyle = n, t.fillStyle === e && ji(n));
|
|
@@ -7947,12 +7935,12 @@ function dl(n) {
|
|
|
7947
7935
|
const s = Array.from(t.getImageData(0, 0, 1, 1).data);
|
|
7948
7936
|
return s[3] = os(s[3] / 255, 3), s;
|
|
7949
7937
|
}
|
|
7950
|
-
function
|
|
7938
|
+
function Zu(n) {
|
|
7951
7939
|
return typeof n == "string" ? n : $r(n);
|
|
7952
7940
|
}
|
|
7953
|
-
const
|
|
7941
|
+
const Uu = 1024, Ni = {};
|
|
7954
7942
|
let Bs = 0;
|
|
7955
|
-
function
|
|
7943
|
+
function Vu(n) {
|
|
7956
7944
|
if (n.length === 4)
|
|
7957
7945
|
return n;
|
|
7958
7946
|
const t = n.slice();
|
|
@@ -7979,7 +7967,7 @@ function Ko(n) {
|
|
|
7979
7967
|
n[3]
|
|
7980
7968
|
];
|
|
7981
7969
|
}
|
|
7982
|
-
function
|
|
7970
|
+
function ju(n) {
|
|
7983
7971
|
const t = (n[0] + 16) / 116, e = n[1], i = n[2] * Math.PI / 180, s = Us(t), r = Us(t + e / 500 * Math.cos(i)), o = Us(t - e / 200 * Math.sin(i)), a = Zs(r * 3.021973625 - s * 1.617392459 - o * 0.404875592), l = Zs(r * -0.943766287 + s * 1.916279586 + o * 0.027607165), c = Zs(r * 0.069407491 - s * 0.22898585 + o * 1.159737864);
|
|
7984
7972
|
return [
|
|
7985
7973
|
st(a + 0.5 | 0, 0, 255),
|
|
@@ -7993,7 +7981,7 @@ function qr(n) {
|
|
|
7993
7981
|
return Hr;
|
|
7994
7982
|
if (Ni.hasOwnProperty(n))
|
|
7995
7983
|
return Ni[n];
|
|
7996
|
-
if (Bs >=
|
|
7984
|
+
if (Bs >= Uu) {
|
|
7997
7985
|
let e = 0;
|
|
7998
7986
|
for (const i in Ni)
|
|
7999
7987
|
(e++ & 3) === 0 && (delete Ni[i], --Bs);
|
|
@@ -8020,7 +8008,7 @@ function $r(n) {
|
|
|
8020
8008
|
function Bo(n) {
|
|
8021
8009
|
return n[0] > 0 && n[1] > 0;
|
|
8022
8010
|
}
|
|
8023
|
-
function
|
|
8011
|
+
function Hu(n, t, e) {
|
|
8024
8012
|
return e === void 0 && (e = [0, 0]), e[0] = n[0] * t + 0.5 | 0, e[1] = n[1] * t + 0.5 | 0, e;
|
|
8025
8013
|
}
|
|
8026
8014
|
function vt(n, t) {
|
|
@@ -8034,13 +8022,13 @@ const Ct = 1 << Qe++, Z = 1 << Qe++, Tt = 1 << Qe++, Bt = 1 << Qe++, $e = 1 << Q
|
|
|
8034
8022
|
[Bt]: "color",
|
|
8035
8023
|
[$e]: "number[]",
|
|
8036
8024
|
[Ki]: "size"
|
|
8037
|
-
},
|
|
8038
|
-
function
|
|
8025
|
+
}, qu = Object.keys(Jr).map(Number).sort(he);
|
|
8026
|
+
function $u(n) {
|
|
8039
8027
|
return n in Jr;
|
|
8040
8028
|
}
|
|
8041
8029
|
function Bi(n) {
|
|
8042
8030
|
const t = [];
|
|
8043
|
-
for (const e of
|
|
8031
|
+
for (const e of qu)
|
|
8044
8032
|
Zi(n, e) && t.push(Jr[e]);
|
|
8045
8033
|
return t.length === 0 ? "untyped" : t.length < 3 ? t.join(" or ") : t.slice(0, -1).join(", ") + ", or " + t[t.length - 1];
|
|
8046
8034
|
}
|
|
@@ -8056,14 +8044,14 @@ class ut {
|
|
|
8056
8044
|
* @param {LiteralValue} value The literal value.
|
|
8057
8045
|
*/
|
|
8058
8046
|
constructor(t, e) {
|
|
8059
|
-
if (
|
|
8047
|
+
if (!$u(t))
|
|
8060
8048
|
throw new Error(
|
|
8061
8049
|
`literal expressions must have a specific type, got ${Bi(t)}`
|
|
8062
8050
|
);
|
|
8063
8051
|
this.type = t, this.value = e;
|
|
8064
8052
|
}
|
|
8065
8053
|
}
|
|
8066
|
-
class
|
|
8054
|
+
class Ju {
|
|
8067
8055
|
/**
|
|
8068
8056
|
* @param {number} type The return type.
|
|
8069
8057
|
* @param {string} operator The operator.
|
|
@@ -8120,7 +8108,7 @@ function _t(n, t, e) {
|
|
|
8120
8108
|
if (n.length === 0)
|
|
8121
8109
|
throw new Error("empty expression");
|
|
8122
8110
|
if (typeof n[0] == "string")
|
|
8123
|
-
return
|
|
8111
|
+
return cd(n, t, e);
|
|
8124
8112
|
for (const i of n)
|
|
8125
8113
|
if (typeof i != "number")
|
|
8126
8114
|
throw new Error("expected an array of numbers");
|
|
@@ -8194,17 +8182,17 @@ const w = {
|
|
|
8194
8182
|
Palette: "palette",
|
|
8195
8183
|
ToString: "to-string",
|
|
8196
8184
|
Has: "has"
|
|
8197
|
-
},
|
|
8185
|
+
}, Qu = {
|
|
8198
8186
|
[w.Get]: z(B(1, 1 / 0), Zo),
|
|
8199
|
-
[w.Var]: z(B(1, 1),
|
|
8187
|
+
[w.Var]: z(B(1, 1), td),
|
|
8200
8188
|
[w.Has]: z(B(1, 1 / 0), Zo),
|
|
8201
|
-
[w.Id]: z(
|
|
8189
|
+
[w.Id]: z(ed, si),
|
|
8202
8190
|
[w.Concat]: z(
|
|
8203
8191
|
B(2, 1 / 0),
|
|
8204
8192
|
q(Tt)
|
|
8205
8193
|
),
|
|
8206
|
-
[w.GeometryType]: z(
|
|
8207
|
-
[w.LineMetric]: z(
|
|
8194
|
+
[w.GeometryType]: z(id, si),
|
|
8195
|
+
[w.LineMetric]: z(nd, si),
|
|
8208
8196
|
[w.Resolution]: z(Hs, si),
|
|
8209
8197
|
[w.Zoom]: z(Hs, si),
|
|
8210
8198
|
[w.Time]: z(Hs, si),
|
|
@@ -8311,7 +8299,7 @@ const w = {
|
|
|
8311
8299
|
[w.Match]: z(
|
|
8312
8300
|
B(4, 1 / 0),
|
|
8313
8301
|
Vo,
|
|
8314
|
-
|
|
8302
|
+
rd
|
|
8315
8303
|
),
|
|
8316
8304
|
[w.Between]: z(
|
|
8317
8305
|
B(3, 3),
|
|
@@ -8320,14 +8308,14 @@ const w = {
|
|
|
8320
8308
|
[w.Interpolate]: z(
|
|
8321
8309
|
B(6, 1 / 0),
|
|
8322
8310
|
Vo,
|
|
8323
|
-
|
|
8311
|
+
od
|
|
8324
8312
|
),
|
|
8325
8313
|
[w.Case]: z(
|
|
8326
8314
|
B(3, 1 / 0),
|
|
8327
|
-
|
|
8328
|
-
|
|
8315
|
+
sd,
|
|
8316
|
+
ad
|
|
8329
8317
|
),
|
|
8330
|
-
[w.In]: z(B(2, 2),
|
|
8318
|
+
[w.In]: z(B(2, 2), ld),
|
|
8331
8319
|
[w.Number]: z(
|
|
8332
8320
|
B(1, 1 / 0),
|
|
8333
8321
|
q(Gn)
|
|
@@ -8350,7 +8338,7 @@ const w = {
|
|
|
8350
8338
|
),
|
|
8351
8339
|
[w.Palette]: z(
|
|
8352
8340
|
B(2, 2),
|
|
8353
|
-
|
|
8341
|
+
hd
|
|
8354
8342
|
),
|
|
8355
8343
|
[w.ToString]: z(
|
|
8356
8344
|
B(1, 1),
|
|
@@ -8379,19 +8367,19 @@ function Zo(n, t, e) {
|
|
|
8379
8367
|
}
|
|
8380
8368
|
return s;
|
|
8381
8369
|
}
|
|
8382
|
-
function
|
|
8370
|
+
function td(n, t, e) {
|
|
8383
8371
|
const i = n[1];
|
|
8384
8372
|
if (typeof i != "string")
|
|
8385
8373
|
throw new Error("expected a string argument for var operation");
|
|
8386
8374
|
return e.variables.add(i), [new ut(Tt, i)];
|
|
8387
8375
|
}
|
|
8388
|
-
function
|
|
8376
|
+
function ed(n, t, e) {
|
|
8389
8377
|
e.featureId = !0;
|
|
8390
8378
|
}
|
|
8391
|
-
function
|
|
8379
|
+
function id(n, t, e) {
|
|
8392
8380
|
e.geometryType = !0;
|
|
8393
8381
|
}
|
|
8394
|
-
function
|
|
8382
|
+
function nd(n, t, e) {
|
|
8395
8383
|
e.mCoordinate = !0;
|
|
8396
8384
|
}
|
|
8397
8385
|
function Hs(n, t, e) {
|
|
@@ -8439,7 +8427,7 @@ function q(n) {
|
|
|
8439
8427
|
return r;
|
|
8440
8428
|
};
|
|
8441
8429
|
}
|
|
8442
|
-
function
|
|
8430
|
+
function sd(n, t, e) {
|
|
8443
8431
|
const i = n[0], s = n.length - 1;
|
|
8444
8432
|
if (s % 2 === 0)
|
|
8445
8433
|
throw new Error(
|
|
@@ -8453,7 +8441,7 @@ function Vo(n, t, e) {
|
|
|
8453
8441
|
`expected an even number of arguments for operation ${i}, got ${s} instead`
|
|
8454
8442
|
);
|
|
8455
8443
|
}
|
|
8456
|
-
function
|
|
8444
|
+
function rd(n, t, e) {
|
|
8457
8445
|
const i = n.length - 1, s = Tt | Z | Ct, r = _t(n[1], s, e), o = _t(n[n.length - 1], t, e), a = new Array(i - 2);
|
|
8458
8446
|
for (let l = 0; l < i - 2; l += 2) {
|
|
8459
8447
|
try {
|
|
@@ -8475,7 +8463,7 @@ function od(n, t, e) {
|
|
|
8475
8463
|
}
|
|
8476
8464
|
return [r, ...a, o];
|
|
8477
8465
|
}
|
|
8478
|
-
function
|
|
8466
|
+
function od(n, t, e) {
|
|
8479
8467
|
const i = n[1];
|
|
8480
8468
|
let s;
|
|
8481
8469
|
switch (i[0]) {
|
|
@@ -8525,7 +8513,7 @@ function ad(n, t, e) {
|
|
|
8525
8513
|
}
|
|
8526
8514
|
return [r, o, ...a];
|
|
8527
8515
|
}
|
|
8528
|
-
function
|
|
8516
|
+
function ad(n, t, e) {
|
|
8529
8517
|
const i = _t(n[n.length - 1], t, e), s = new Array(n.length - 1);
|
|
8530
8518
|
for (let r = 0; r < s.length - 1; r += 2) {
|
|
8531
8519
|
try {
|
|
@@ -8547,7 +8535,7 @@ function ld(n, t, e) {
|
|
|
8547
8535
|
}
|
|
8548
8536
|
return s[s.length - 1] = i, s;
|
|
8549
8537
|
}
|
|
8550
|
-
function
|
|
8538
|
+
function ld(n, t, e) {
|
|
8551
8539
|
let i = n[2];
|
|
8552
8540
|
if (!Array.isArray(i))
|
|
8553
8541
|
throw new Error(
|
|
@@ -8576,7 +8564,7 @@ function hd(n, t, e) {
|
|
|
8576
8564
|
}
|
|
8577
8565
|
return [_t(n[1], s, e), ...r];
|
|
8578
8566
|
}
|
|
8579
|
-
function
|
|
8567
|
+
function hd(n, t, e) {
|
|
8580
8568
|
let i;
|
|
8581
8569
|
try {
|
|
8582
8570
|
i = _t(n[1], Z, e);
|
|
@@ -8620,11 +8608,11 @@ function z(...n) {
|
|
|
8620
8608
|
r = a;
|
|
8621
8609
|
}
|
|
8622
8610
|
}
|
|
8623
|
-
return new
|
|
8611
|
+
return new Ju(e, s, ...r);
|
|
8624
8612
|
};
|
|
8625
8613
|
}
|
|
8626
|
-
function
|
|
8627
|
-
const i = n[0], s =
|
|
8614
|
+
function cd(n, t, e) {
|
|
8615
|
+
const i = n[0], s = Qu[i];
|
|
8628
8616
|
if (!s)
|
|
8629
8617
|
throw new Error(`unknown operator: ${i}`);
|
|
8630
8618
|
return s(n, t, e);
|
|
@@ -8686,11 +8674,11 @@ function Ut(n, t) {
|
|
|
8686
8674
|
case w.Number:
|
|
8687
8675
|
case w.String:
|
|
8688
8676
|
case w.Coalesce:
|
|
8689
|
-
return
|
|
8677
|
+
return ud(n);
|
|
8690
8678
|
case w.Get:
|
|
8691
8679
|
case w.Var:
|
|
8692
8680
|
case w.Has:
|
|
8693
|
-
return
|
|
8681
|
+
return dd(n);
|
|
8694
8682
|
case w.Id:
|
|
8695
8683
|
return (i) => i.featureId;
|
|
8696
8684
|
case w.GeometryType:
|
|
@@ -8706,14 +8694,14 @@ function Ut(n, t) {
|
|
|
8706
8694
|
case w.Between:
|
|
8707
8695
|
case w.In:
|
|
8708
8696
|
case w.Not:
|
|
8709
|
-
return
|
|
8697
|
+
return gd(n);
|
|
8710
8698
|
case w.Equal:
|
|
8711
8699
|
case w.NotEqual:
|
|
8712
8700
|
case w.LessThan:
|
|
8713
8701
|
case w.LessThanOrEqualTo:
|
|
8714
8702
|
case w.GreaterThan:
|
|
8715
8703
|
case w.GreaterThanOrEqualTo:
|
|
8716
|
-
return
|
|
8704
|
+
return fd(n);
|
|
8717
8705
|
case w.Multiply:
|
|
8718
8706
|
case w.Divide:
|
|
8719
8707
|
case w.Add:
|
|
@@ -8729,20 +8717,20 @@ function Ut(n, t) {
|
|
|
8729
8717
|
case w.Cos:
|
|
8730
8718
|
case w.Atan:
|
|
8731
8719
|
case w.Sqrt:
|
|
8732
|
-
return
|
|
8720
|
+
return _d(n);
|
|
8733
8721
|
case w.Case:
|
|
8734
|
-
return
|
|
8722
|
+
return md(n);
|
|
8735
8723
|
case w.Match:
|
|
8736
|
-
return
|
|
8724
|
+
return pd(n);
|
|
8737
8725
|
case w.Interpolate:
|
|
8738
|
-
return
|
|
8726
|
+
return yd(n);
|
|
8739
8727
|
case w.ToString:
|
|
8740
|
-
return
|
|
8728
|
+
return Ed(n);
|
|
8741
8729
|
default:
|
|
8742
8730
|
throw new Error(`Unsupported operator ${e}`);
|
|
8743
8731
|
}
|
|
8744
8732
|
}
|
|
8745
|
-
function
|
|
8733
|
+
function ud(n, t) {
|
|
8746
8734
|
const e = n.operator, i = n.args.length, s = new Array(i);
|
|
8747
8735
|
for (let r = 0; r < i; ++r)
|
|
8748
8736
|
s[r] = Ut(n.args[r]);
|
|
@@ -8770,7 +8758,7 @@ function dd(n, t) {
|
|
|
8770
8758
|
throw new Error(`Unsupported assertion operator ${e}`);
|
|
8771
8759
|
}
|
|
8772
8760
|
}
|
|
8773
|
-
function
|
|
8761
|
+
function dd(n, t) {
|
|
8774
8762
|
const i = (
|
|
8775
8763
|
/** @type {string} */
|
|
8776
8764
|
/** @type {LiteralExpression} */
|
|
@@ -8815,7 +8803,7 @@ function fd(n, t) {
|
|
|
8815
8803
|
throw new Error(`Unsupported accessor operator ${n.operator}`);
|
|
8816
8804
|
}
|
|
8817
8805
|
}
|
|
8818
|
-
function
|
|
8806
|
+
function fd(n, t) {
|
|
8819
8807
|
const e = n.operator, i = Ut(n.args[0]), s = Ut(n.args[1]);
|
|
8820
8808
|
switch (e) {
|
|
8821
8809
|
case w.Equal:
|
|
@@ -8834,7 +8822,7 @@ function gd(n, t) {
|
|
|
8834
8822
|
throw new Error(`Unsupported comparison operator ${e}`);
|
|
8835
8823
|
}
|
|
8836
8824
|
}
|
|
8837
|
-
function
|
|
8825
|
+
function gd(n, t) {
|
|
8838
8826
|
const e = n.operator, i = n.args.length, s = new Array(i);
|
|
8839
8827
|
for (let r = 0; r < i; ++r)
|
|
8840
8828
|
s[r] = Ut(n.args[r]);
|
|
@@ -8872,7 +8860,7 @@ function _d(n, t) {
|
|
|
8872
8860
|
throw new Error(`Unsupported logical operator ${e}`);
|
|
8873
8861
|
}
|
|
8874
8862
|
}
|
|
8875
|
-
function
|
|
8863
|
+
function _d(n, t) {
|
|
8876
8864
|
const e = n.operator, i = n.args.length, s = new Array(i);
|
|
8877
8865
|
for (let r = 0; r < i; ++r)
|
|
8878
8866
|
s[r] = Ut(n.args[r]);
|
|
@@ -8927,7 +8915,7 @@ function md(n, t) {
|
|
|
8927
8915
|
throw new Error(`Unsupported numeric operator ${e}`);
|
|
8928
8916
|
}
|
|
8929
8917
|
}
|
|
8930
|
-
function
|
|
8918
|
+
function md(n, t) {
|
|
8931
8919
|
const e = n.args.length, i = new Array(e);
|
|
8932
8920
|
for (let s = 0; s < e; ++s)
|
|
8933
8921
|
i[s] = Ut(n.args[s]);
|
|
@@ -8938,7 +8926,7 @@ function pd(n, t) {
|
|
|
8938
8926
|
return i[e - 1](s);
|
|
8939
8927
|
};
|
|
8940
8928
|
}
|
|
8941
|
-
function
|
|
8929
|
+
function pd(n, t) {
|
|
8942
8930
|
const e = n.args.length, i = new Array(e);
|
|
8943
8931
|
for (let s = 0; s < e; ++s)
|
|
8944
8932
|
i[s] = Ut(n.args[s]);
|
|
@@ -8950,7 +8938,7 @@ function yd(n, t) {
|
|
|
8950
8938
|
return i[e - 1](s);
|
|
8951
8939
|
};
|
|
8952
8940
|
}
|
|
8953
|
-
function
|
|
8941
|
+
function yd(n, t) {
|
|
8954
8942
|
const e = n.args.length, i = new Array(e);
|
|
8955
8943
|
for (let s = 0; s < e; ++s)
|
|
8956
8944
|
i[s] = Ut(n.args[s]);
|
|
@@ -8961,8 +8949,8 @@ function Ed(n, t) {
|
|
|
8961
8949
|
const h = i[c](s);
|
|
8962
8950
|
let u = i[c + 1](s);
|
|
8963
8951
|
const d = Array.isArray(u);
|
|
8964
|
-
if (d && (u =
|
|
8965
|
-
return c === 2 ? u : d ?
|
|
8952
|
+
if (d && (u = Vu(u)), h >= o)
|
|
8953
|
+
return c === 2 ? u : d ? xd(
|
|
8966
8954
|
r,
|
|
8967
8955
|
o,
|
|
8968
8956
|
a,
|
|
@@ -8982,7 +8970,7 @@ function Ed(n, t) {
|
|
|
8982
8970
|
return l;
|
|
8983
8971
|
};
|
|
8984
8972
|
}
|
|
8985
|
-
function
|
|
8973
|
+
function Ed(n, t) {
|
|
8986
8974
|
const e = n.operator, i = n.args.length, s = new Array(i);
|
|
8987
8975
|
for (let r = 0; r < i; ++r)
|
|
8988
8976
|
s[r] = Ut(n.args[r]);
|
|
@@ -9000,7 +8988,7 @@ function Ui(n, t, e, i, s, r) {
|
|
|
9000
8988
|
const a = t - e, l = n === 1 ? a / o : (Math.pow(n, a) - 1) / (Math.pow(n, o) - 1);
|
|
9001
8989
|
return i + l * (r - i);
|
|
9002
8990
|
}
|
|
9003
|
-
function
|
|
8991
|
+
function xd(n, t, e, i, s, r) {
|
|
9004
8992
|
if (s - e === 0)
|
|
9005
8993
|
return i;
|
|
9006
8994
|
const a = Ko(i), l = Ko(r);
|
|
@@ -9012,7 +9000,7 @@ function Cd(n, t, e, i, s, r) {
|
|
|
9012
9000
|
a[2] + Ui(n, t, e, 0, s, c),
|
|
9013
9001
|
Ui(n, t, e, i[3], s, r[3])
|
|
9014
9002
|
];
|
|
9015
|
-
return
|
|
9003
|
+
return ju(h);
|
|
9016
9004
|
}
|
|
9017
9005
|
const K = {
|
|
9018
9006
|
IDLE: 0,
|
|
@@ -9020,7 +9008,7 @@ const K = {
|
|
|
9020
9008
|
LOADED: 2,
|
|
9021
9009
|
ERROR: 3
|
|
9022
9010
|
};
|
|
9023
|
-
function
|
|
9011
|
+
function Cd(n, t, e) {
|
|
9024
9012
|
const i = (
|
|
9025
9013
|
/** @type {HTMLImageElement} */
|
|
9026
9014
|
n
|
|
@@ -9039,7 +9027,7 @@ function wd(n, t, e) {
|
|
|
9039
9027
|
s = !1, a.forEach(it);
|
|
9040
9028
|
};
|
|
9041
9029
|
}
|
|
9042
|
-
function
|
|
9030
|
+
function wd(n, t) {
|
|
9043
9031
|
return new Promise((e, i) => {
|
|
9044
9032
|
function s() {
|
|
9045
9033
|
o(), e(n);
|
|
@@ -9053,14 +9041,14 @@ function Rd(n, t) {
|
|
|
9053
9041
|
n.addEventListener("load", s), n.addEventListener("error", r);
|
|
9054
9042
|
});
|
|
9055
9043
|
}
|
|
9056
|
-
function
|
|
9044
|
+
function Rd(n, t) {
|
|
9057
9045
|
return t && (n.src = t), n.src && va ? new Promise(
|
|
9058
9046
|
(e, i) => n.decode().then(() => e(n)).catch(
|
|
9059
9047
|
(s) => n.complete && n.width ? e(n) : i(s)
|
|
9060
9048
|
)
|
|
9061
|
-
) :
|
|
9049
|
+
) : wd(n);
|
|
9062
9050
|
}
|
|
9063
|
-
class
|
|
9051
|
+
class Td {
|
|
9064
9052
|
constructor() {
|
|
9065
9053
|
this.cache_ = {}, this.patternCache_ = {}, this.cacheSize_ = 0, this.maxCacheSize_ = 1024;
|
|
9066
9054
|
}
|
|
@@ -9139,7 +9127,7 @@ function qs(n, t) {
|
|
|
9139
9127
|
const e = t ? qe(t) : "null";
|
|
9140
9128
|
return n + ":" + e;
|
|
9141
9129
|
}
|
|
9142
|
-
const Gt = new
|
|
9130
|
+
const Gt = new Td();
|
|
9143
9131
|
let Gi = null;
|
|
9144
9132
|
class ml extends rs {
|
|
9145
9133
|
/**
|
|
@@ -9255,7 +9243,7 @@ class ml extends rs {
|
|
|
9255
9243
|
} catch {
|
|
9256
9244
|
this.handleImageError_();
|
|
9257
9245
|
}
|
|
9258
|
-
this.image_ instanceof HTMLImageElement &&
|
|
9246
|
+
this.image_ instanceof HTMLImageElement && Rd(this.image_, this.src_).then((t) => {
|
|
9259
9247
|
this.image_ = t, this.handleImageLoad_();
|
|
9260
9248
|
}).catch(this.handleImageError_.bind(this));
|
|
9261
9249
|
}
|
|
@@ -9271,7 +9259,7 @@ class ml extends rs {
|
|
|
9271
9259
|
Math.ceil(e.width * t),
|
|
9272
9260
|
Math.ceil(e.height * t)
|
|
9273
9261
|
), s = i.canvas;
|
|
9274
|
-
i.scale(t, t), i.drawImage(e, 0, 0), i.globalCompositeOperation = "multiply", i.fillStyle =
|
|
9262
|
+
i.scale(t, t), i.drawImage(e, 0, 0), i.globalCompositeOperation = "multiply", i.fillStyle = Zu(this.color_), i.fillRect(0, 0, s.width / t, s.height / t), i.globalCompositeOperation = "destination-in", i.drawImage(e, 0, 0), this.canvas_[t] = s;
|
|
9275
9263
|
}
|
|
9276
9264
|
/**
|
|
9277
9265
|
* @return {Promise<void>} Promise that resolves when the image is loaded.
|
|
@@ -9300,9 +9288,9 @@ function Hi(n, t, e, i, s, r) {
|
|
|
9300
9288
|
), Gt.set(t, s, o, r)), r && o && !Gt.getPattern(t, s) && Gt.set(t, s, o, r), o;
|
|
9301
9289
|
}
|
|
9302
9290
|
function Jt(n) {
|
|
9303
|
-
return n ? Array.isArray(n) ? $r(n) : typeof n == "object" && "src" in n ?
|
|
9291
|
+
return n ? Array.isArray(n) ? $r(n) : typeof n == "object" && "src" in n ? Id(n) : n : null;
|
|
9304
9292
|
}
|
|
9305
|
-
function
|
|
9293
|
+
function Id(n) {
|
|
9306
9294
|
if (!n.offset || !n.size)
|
|
9307
9295
|
return Gt.getPattern(n.src, n.color);
|
|
9308
9296
|
const t = n.src + ":" + n.offset, e = Gt.getPattern(t, n.color);
|
|
@@ -9334,9 +9322,9 @@ function Sd(n) {
|
|
|
9334
9322
|
!0
|
|
9335
9323
|
), Gt.getPattern(t, n.color);
|
|
9336
9324
|
}
|
|
9337
|
-
const pl = "10px sans-serif", It = "#000", Ri = "round", ce = [], ue = 0, Ti = "round", sn = 10,
|
|
9325
|
+
const pl = "10px sans-serif", It = "#000", Ri = "round", ce = [], ue = 0, Ti = "round", sn = 10, Sd = 0, Qt = "#000", rn = "center", Qn = "middle", Ue = [0, 0, 0, 0], on = 1, ci = new ee();
|
|
9338
9326
|
let zi = null, jo;
|
|
9339
|
-
const xr = {},
|
|
9327
|
+
const xr = {}, vd = /* @__PURE__ */ new Set([
|
|
9340
9328
|
"serif",
|
|
9341
9329
|
"sans-serif",
|
|
9342
9330
|
"monospace",
|
|
@@ -9351,10 +9339,10 @@ const xr = {}, Ld = /* @__PURE__ */ new Set([
|
|
|
9351
9339
|
"math",
|
|
9352
9340
|
"fangsong"
|
|
9353
9341
|
]);
|
|
9354
|
-
function
|
|
9342
|
+
function Ld(n, t, e) {
|
|
9355
9343
|
return `${n} ${t} 16px "${e}"`;
|
|
9356
9344
|
}
|
|
9357
|
-
const
|
|
9345
|
+
const Ad = /* @__PURE__ */ (function() {
|
|
9358
9346
|
let t, e;
|
|
9359
9347
|
async function i(r) {
|
|
9360
9348
|
await e.ready;
|
|
@@ -9394,14 +9382,14 @@ const Md = /* @__PURE__ */ (function() {
|
|
|
9394
9382
|
const a = o.families;
|
|
9395
9383
|
let l = !1;
|
|
9396
9384
|
for (const c of a) {
|
|
9397
|
-
if (
|
|
9385
|
+
if (vd.has(c))
|
|
9398
9386
|
continue;
|
|
9399
|
-
const h =
|
|
9387
|
+
const h = Ld(o.style, o.weight, c);
|
|
9400
9388
|
ci.get(h) === void 0 && (ci.set(h, 0, !0), l = !0);
|
|
9401
9389
|
}
|
|
9402
9390
|
l && (clearTimeout(t), t = setTimeout(s, 100));
|
|
9403
9391
|
};
|
|
9404
|
-
})(),
|
|
9392
|
+
})(), Md = /* @__PURE__ */ (function() {
|
|
9405
9393
|
let n;
|
|
9406
9394
|
return function(t) {
|
|
9407
9395
|
let e = xr[t];
|
|
@@ -9429,7 +9417,7 @@ function Ho(n, t, e) {
|
|
|
9429
9417
|
`).reduce((s, r) => Math.max(s, El(n, r)), 0);
|
|
9430
9418
|
return e[t] = i, i;
|
|
9431
9419
|
}
|
|
9432
|
-
function
|
|
9420
|
+
function bd(n, t) {
|
|
9433
9421
|
const e = [], i = [], s = [];
|
|
9434
9422
|
let r = 0, o = 0, a = 0, l = 0;
|
|
9435
9423
|
for (let c = 0, h = t.length; c <= h; c += 2) {
|
|
@@ -9441,14 +9429,14 @@ function Od(n, t) {
|
|
|
9441
9429
|
}
|
|
9442
9430
|
const d = t[c + 1] || n.font, f = El(d, u);
|
|
9443
9431
|
e.push(f), o += f;
|
|
9444
|
-
const g =
|
|
9432
|
+
const g = Md(d);
|
|
9445
9433
|
i.push(g), l = Math.max(l, g);
|
|
9446
9434
|
}
|
|
9447
9435
|
return { width: r, height: a, widths: e, heights: i, lineWidths: s };
|
|
9448
9436
|
}
|
|
9449
|
-
function
|
|
9437
|
+
function Od(n, t, e, i, s, r, o, a, l, c, h) {
|
|
9450
9438
|
n.save(), e !== 1 && (n.globalAlpha === void 0 ? n.globalAlpha = (u) => u.globalAlpha *= e : n.globalAlpha *= e), t && n.transform.apply(n, t), /** @type {*} */
|
|
9451
|
-
i.contextInstructions ? (n.translate(l, c), n.scale(h[0], h[1]),
|
|
9439
|
+
i.contextInstructions ? (n.translate(l, c), n.scale(h[0], h[1]), Pd(
|
|
9452
9440
|
/** @type {Label} */
|
|
9453
9441
|
i,
|
|
9454
9442
|
n
|
|
@@ -9476,7 +9464,7 @@ function Pd(n, t, e, i, s, r, o, a, l, c, h) {
|
|
|
9476
9464
|
a * h[1]
|
|
9477
9465
|
), n.restore();
|
|
9478
9466
|
}
|
|
9479
|
-
function
|
|
9467
|
+
function Pd(n, t) {
|
|
9480
9468
|
const e = n.contextInstructions;
|
|
9481
9469
|
for (let i = 0, s = e.length; i < s; i += 2)
|
|
9482
9470
|
Array.isArray(e[i + 1]) ? t[e[i]].apply(
|
|
@@ -10830,7 +10818,7 @@ class de {
|
|
|
10830
10818
|
this.zIndex_ = t;
|
|
10831
10819
|
}
|
|
10832
10820
|
}
|
|
10833
|
-
function
|
|
10821
|
+
function Dd(n) {
|
|
10834
10822
|
let t;
|
|
10835
10823
|
if (typeof n == "function")
|
|
10836
10824
|
t = n;
|
|
@@ -10875,13 +10863,13 @@ function xl(n, t) {
|
|
|
10875
10863
|
function $o(n) {
|
|
10876
10864
|
return n.getGeometry();
|
|
10877
10865
|
}
|
|
10878
|
-
const
|
|
10866
|
+
const Fd = "#333";
|
|
10879
10867
|
class Es {
|
|
10880
10868
|
/**
|
|
10881
10869
|
* @param {Options} [options] Options.
|
|
10882
10870
|
*/
|
|
10883
10871
|
constructor(t) {
|
|
10884
|
-
t = t || {}, this.font_ = t.font, this.rotation_ = t.rotation, this.rotateWithView_ = t.rotateWithView, this.keepUpright_ = t.keepUpright, this.scale_ = t.scale, this.scaleArray_ = vt(t.scale !== void 0 ? t.scale : 1), this.text_ = t.text, this.textAlign_ = t.textAlign, this.justify_ = t.justify, this.repeat_ = t.repeat, this.textBaseline_ = t.textBaseline, this.fill_ = t.fill !== void 0 ? t.fill : new De({ color:
|
|
10872
|
+
t = t || {}, this.font_ = t.font, this.rotation_ = t.rotation, this.rotateWithView_ = t.rotateWithView, this.keepUpright_ = t.keepUpright, this.scale_ = t.scale, this.scaleArray_ = vt(t.scale !== void 0 ? t.scale : 1), this.text_ = t.text, this.textAlign_ = t.textAlign, this.justify_ = t.justify, this.repeat_ = t.repeat, this.textBaseline_ = t.textBaseline, this.fill_ = t.fill !== void 0 ? t.fill : new De({ color: Fd }), this.maxAngle_ = t.maxAngle !== void 0 ? t.maxAngle : Math.PI / 4, this.placement_ = t.placement !== void 0 ? t.placement : "point", this.overflow_ = !!t.overflow, this.stroke_ = t.stroke !== void 0 ? t.stroke : null, this.offsetX_ = t.offsetX !== void 0 ? t.offsetX : 0, this.offsetY_ = t.offsetY !== void 0 ? t.offsetY : 0, this.backgroundFill_ = t.backgroundFill ? t.backgroundFill : null, this.backgroundStroke_ = t.backgroundStroke ? t.backgroundStroke : null, this.padding_ = t.padding === void 0 ? null : t.padding, this.declutterMode_ = t.declutterMode;
|
|
10885
10873
|
}
|
|
10886
10874
|
/**
|
|
10887
10875
|
* Clones the style.
|
|
@@ -11269,11 +11257,11 @@ class Es {
|
|
|
11269
11257
|
this.padding_ = t;
|
|
11270
11258
|
}
|
|
11271
11259
|
}
|
|
11272
|
-
function
|
|
11260
|
+
function kd(n) {
|
|
11273
11261
|
return !0;
|
|
11274
11262
|
}
|
|
11275
|
-
function
|
|
11276
|
-
const t = fl(), e =
|
|
11263
|
+
function Nd(n) {
|
|
11264
|
+
const t = fl(), e = Gd(n, t), i = _l();
|
|
11277
11265
|
return function(s, r) {
|
|
11278
11266
|
if (i.properties = s.getPropertiesInternal(), i.resolution = r, t.featureId) {
|
|
11279
11267
|
const o = s.getId();
|
|
@@ -11302,10 +11290,10 @@ function Jo(n) {
|
|
|
11302
11290
|
return r.length = l, r;
|
|
11303
11291
|
};
|
|
11304
11292
|
}
|
|
11305
|
-
function
|
|
11293
|
+
function Gd(n, t) {
|
|
11306
11294
|
const e = n.length, i = new Array(e);
|
|
11307
11295
|
for (let s = 0; s < e; ++s) {
|
|
11308
|
-
const r = n[s], o = "filter" in r ? te(r.filter, Ct, t) :
|
|
11296
|
+
const r = n[s], o = "filter" in r ? te(r.filter, Ct, t) : kd;
|
|
11309
11297
|
let a;
|
|
11310
11298
|
if (Array.isArray(r.style)) {
|
|
11311
11299
|
const l = r.style.length;
|
|
@@ -11333,7 +11321,7 @@ function zd(n, t) {
|
|
|
11333
11321
|
};
|
|
11334
11322
|
}
|
|
11335
11323
|
function Cr(n, t) {
|
|
11336
|
-
const e = an(n, "", t), i = ln(n, "", t), s =
|
|
11324
|
+
const e = an(n, "", t), i = ln(n, "", t), s = zd(n, t), r = Xd(n, t), o = gt(n, "z-index", t);
|
|
11337
11325
|
if (!e && !i && !s && !r && !xi(n))
|
|
11338
11326
|
throw new Error(
|
|
11339
11327
|
"No fill, stroke, point, or text symbolizer properties in style: " + JSON.stringify(n)
|
|
@@ -11363,7 +11351,7 @@ function Cr(n, t) {
|
|
|
11363
11351
|
function an(n, t, e) {
|
|
11364
11352
|
let i;
|
|
11365
11353
|
if (t + "fill-pattern-src" in n)
|
|
11366
|
-
i =
|
|
11354
|
+
i = Bd(n, t + "fill-", e);
|
|
11367
11355
|
else {
|
|
11368
11356
|
if (n[t + "fill-color"] === "none")
|
|
11369
11357
|
return (r) => null;
|
|
@@ -11440,7 +11428,7 @@ function ln(n, t, e) {
|
|
|
11440
11428
|
return a && u.setLineDash(a(d)), l && u.setLineDashOffset(l(d)), c && u.setMiterLimit(c(d)), h && u.setOffset(h(d)), u;
|
|
11441
11429
|
};
|
|
11442
11430
|
}
|
|
11443
|
-
function
|
|
11431
|
+
function zd(n, t) {
|
|
11444
11432
|
const e = "text-", i = le(n, e + "value", t);
|
|
11445
11433
|
if (!i)
|
|
11446
11434
|
return null;
|
|
@@ -11532,10 +11520,10 @@ function Xd(n, t) {
|
|
|
11532
11520
|
return T && I.setPadding(T(R)), x && I.setKeepUpright(x(R)), I;
|
|
11533
11521
|
};
|
|
11534
11522
|
}
|
|
11535
|
-
function
|
|
11536
|
-
return "icon-src" in n ?
|
|
11523
|
+
function Xd(n, t) {
|
|
11524
|
+
return "icon-src" in n ? Wd(n, t) : "shape-points" in n ? Yd(n, t) : "circle-radius" in n ? Kd(n, t) : null;
|
|
11537
11525
|
}
|
|
11538
|
-
function
|
|
11526
|
+
function Wd(n, t) {
|
|
11539
11527
|
const e = "icon-", i = e + "src", s = wl(n[i], i), r = ts(
|
|
11540
11528
|
n,
|
|
11541
11529
|
e + "anchor",
|
|
@@ -11565,7 +11553,7 @@ function Yd(n, t) {
|
|
|
11565
11553
|
), g = me(n, e + "color");
|
|
11566
11554
|
let m, _ = null;
|
|
11567
11555
|
g !== void 0 && (Array.isArray(g) && g.length > 0 && typeof g[0] == "string" ? _ = xs(n, e + "color", t) : m = Rl(g, e + "color"));
|
|
11568
|
-
const p =
|
|
11556
|
+
const p = Ud(n, e + "cross-origin"), E = Vd(n, e + "offset"), C = ta(n, e + "offset-origin"), y = wr(n, e + "width"), x = wr(n, e + "height"), T = Zd(n, e + "size"), L = ws(
|
|
11569
11557
|
n,
|
|
11570
11558
|
e + "declutter-mode"
|
|
11571
11559
|
), I = {
|
|
@@ -11594,7 +11582,7 @@ function Yd(n, t) {
|
|
|
11594
11582
|
return a && R.setOpacity(a(v)), l && R.setDisplacement(l(v)), c && R.setRotation(c(v)), h && R.setRotateWithView(h(v)), o && R.setScale(o(v)), r && R.setAnchor(r(v)), R;
|
|
11595
11583
|
};
|
|
11596
11584
|
}
|
|
11597
|
-
function
|
|
11585
|
+
function Yd(n, t) {
|
|
11598
11586
|
const e = "shape-", i = e + "points", s = e + "radius", r = Qr(n[i], i);
|
|
11599
11587
|
if (!(s in n))
|
|
11600
11588
|
throw new Error(`Expected a number for ${s}`);
|
|
@@ -11624,7 +11612,7 @@ function Kd(n, t) {
|
|
|
11624
11612
|
return o && C.setRadius(o(y)), c && C.setRadius2(c(y)), u && C.setFill(u(y)), d && C.setStroke(d(y)), g && C.setDisplacement(g(y)), m && C.setRotation(m(y)), _ && C.setRotateWithView(_(y)), f && C.setScale(f(y)), C;
|
|
11625
11613
|
};
|
|
11626
11614
|
}
|
|
11627
|
-
function
|
|
11615
|
+
function Kd(n, t) {
|
|
11628
11616
|
const e = "circle-", i = an(n, e, t), s = ln(n, e, t), r = gt(n, e + "radius", t), o = Cs(n, e + "scale", t), a = ts(
|
|
11629
11617
|
n,
|
|
11630
11618
|
e + "displacement",
|
|
@@ -11673,7 +11661,7 @@ function le(n, t, e) {
|
|
|
11673
11661
|
return wl(s(r), t);
|
|
11674
11662
|
};
|
|
11675
11663
|
}
|
|
11676
|
-
function
|
|
11664
|
+
function Bd(n, t, e) {
|
|
11677
11665
|
const i = le(
|
|
11678
11666
|
n,
|
|
11679
11667
|
t + "pattern-src",
|
|
@@ -11777,7 +11765,7 @@ function Cs(n, t, e) {
|
|
|
11777
11765
|
e
|
|
11778
11766
|
);
|
|
11779
11767
|
return function(r) {
|
|
11780
|
-
return
|
|
11768
|
+
return jd(s(r), t);
|
|
11781
11769
|
};
|
|
11782
11770
|
}
|
|
11783
11771
|
function wr(n, t) {
|
|
@@ -11788,7 +11776,7 @@ function wr(n, t) {
|
|
|
11788
11776
|
return e;
|
|
11789
11777
|
}
|
|
11790
11778
|
}
|
|
11791
|
-
function
|
|
11779
|
+
function Zd(n, t) {
|
|
11792
11780
|
const e = n[t];
|
|
11793
11781
|
if (e !== void 0) {
|
|
11794
11782
|
if (typeof e == "number")
|
|
@@ -11800,7 +11788,7 @@ function Ud(n, t) {
|
|
|
11800
11788
|
return e;
|
|
11801
11789
|
}
|
|
11802
11790
|
}
|
|
11803
|
-
function
|
|
11791
|
+
function Ud(n, t) {
|
|
11804
11792
|
const e = n[t];
|
|
11805
11793
|
if (e !== void 0) {
|
|
11806
11794
|
if (typeof e != "string")
|
|
@@ -11826,7 +11814,7 @@ function ea(n, t) {
|
|
|
11826
11814
|
return e;
|
|
11827
11815
|
}
|
|
11828
11816
|
}
|
|
11829
|
-
function
|
|
11817
|
+
function Vd(n, t) {
|
|
11830
11818
|
const e = n[t];
|
|
11831
11819
|
if (e !== void 0)
|
|
11832
11820
|
return xn(e, t);
|
|
@@ -11874,7 +11862,7 @@ function Tl(n, t) {
|
|
|
11874
11862
|
throw new Error(`Expected an array of two numbers for ${t}`);
|
|
11875
11863
|
return e;
|
|
11876
11864
|
}
|
|
11877
|
-
function
|
|
11865
|
+
function jd(n, t) {
|
|
11878
11866
|
return typeof n == "number" ? n : Tl(n, t);
|
|
11879
11867
|
}
|
|
11880
11868
|
const ia = {
|
|
@@ -12000,8 +11988,8 @@ class Il extends ms {
|
|
|
12000
11988
|
*/
|
|
12001
11989
|
setStyle(t) {
|
|
12002
11990
|
this.style_ = t === void 0 ? xl : t;
|
|
12003
|
-
const e =
|
|
12004
|
-
this.styleFunction_ = t === null ? void 0 :
|
|
11991
|
+
const e = Hd(t);
|
|
11992
|
+
this.styleFunction_ = t === null ? void 0 : Dd(e), this.changed();
|
|
12005
11993
|
}
|
|
12006
11994
|
/**
|
|
12007
11995
|
* @param {boolean|string|number} declutter Declutter images and text.
|
|
@@ -12011,7 +11999,7 @@ class Il extends ms {
|
|
|
12011
11999
|
this.declutter_ = t ? String(t) : void 0, this.changed();
|
|
12012
12000
|
}
|
|
12013
12001
|
}
|
|
12014
|
-
function
|
|
12002
|
+
function Hd(n) {
|
|
12015
12003
|
if (n === void 0)
|
|
12016
12004
|
return xl;
|
|
12017
12005
|
if (!n)
|
|
@@ -12041,7 +12029,7 @@ function qd(n) {
|
|
|
12041
12029
|
throw new Error("Expected a list of rules with a style property");
|
|
12042
12030
|
s[r] = o;
|
|
12043
12031
|
}
|
|
12044
|
-
return
|
|
12032
|
+
return Nd(s);
|
|
12045
12033
|
}
|
|
12046
12034
|
return Jo(
|
|
12047
12035
|
/** @type {Array<import("../style/flat.js").FlatStyle>} */
|
|
@@ -12060,7 +12048,7 @@ class Sl extends _e {
|
|
|
12060
12048
|
super(t), this.inversePixelTransform = e, this.frameState = i, this.context = s;
|
|
12061
12049
|
}
|
|
12062
12050
|
}
|
|
12063
|
-
class
|
|
12051
|
+
class qd extends ns {
|
|
12064
12052
|
/**
|
|
12065
12053
|
* @param {import("../Map.js").default} map Map.
|
|
12066
12054
|
*/
|
|
@@ -12193,13 +12181,13 @@ class $d extends ns {
|
|
|
12193
12181
|
* @protected
|
|
12194
12182
|
*/
|
|
12195
12183
|
scheduleExpireIconCache(t) {
|
|
12196
|
-
Gt.canExpireCache() && t.postRenderFunctions.push(
|
|
12184
|
+
Gt.canExpireCache() && t.postRenderFunctions.push($d);
|
|
12197
12185
|
}
|
|
12198
12186
|
}
|
|
12199
|
-
function
|
|
12187
|
+
function $d(n, t) {
|
|
12200
12188
|
Gt.expire();
|
|
12201
12189
|
}
|
|
12202
|
-
class
|
|
12190
|
+
class Jd extends qd {
|
|
12203
12191
|
/**
|
|
12204
12192
|
* @param {import("../Map.js").default} map Map.
|
|
12205
12193
|
*/
|
|
@@ -12265,7 +12253,7 @@ class Qd extends $d {
|
|
|
12265
12253
|
const g = d.render(t, o);
|
|
12266
12254
|
g && (g !== o && (this.children_.push(g), o = g), r.push(u));
|
|
12267
12255
|
}
|
|
12268
|
-
this.declutter(t, r),
|
|
12256
|
+
this.declutter(t, r), ou(this.element_, this.children_);
|
|
12269
12257
|
const l = this.getMap().getTargetElement();
|
|
12270
12258
|
if (Ae(l)) {
|
|
12271
12259
|
const c = l.getContext("2d");
|
|
@@ -12325,16 +12313,16 @@ function Ll(n, t) {
|
|
|
12325
12313
|
Ll(e[i], t);
|
|
12326
12314
|
}
|
|
12327
12315
|
}
|
|
12328
|
-
class
|
|
12316
|
+
class Qd extends ee {
|
|
12329
12317
|
/**
|
|
12330
12318
|
* @param {MapOptions} [options] Map options.
|
|
12331
12319
|
*/
|
|
12332
12320
|
constructor(t) {
|
|
12333
12321
|
super(), t = t || {}, this.on, this.once, this.un;
|
|
12334
|
-
const e =
|
|
12335
|
-
this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = t.maxTilesLoading !== void 0 ? t.maxTilesLoading : 16, this.pixelRatio_ = t.pixelRatio !== void 0 ? t.pixelRatio :
|
|
12322
|
+
const e = tf(t);
|
|
12323
|
+
this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = t.maxTilesLoading !== void 0 ? t.maxTilesLoading : 16, this.pixelRatio_ = t.pixelRatio !== void 0 ? t.pixelRatio : Sh, this.postRenderTimeoutHandle_, this.animationDelayKey_, this.animationDelay_ = this.animationDelay_.bind(this), this.coordinateToPixelTransform_ = Zt(), this.pixelToCoordinateTransform_ = Zt(), this.frameIndex_ = 0, this.frameState_ = null, this.previousExtent_ = null, this.viewPropertyListenerKey_ = null, this.viewChangeListenerKey_ = null, this.layerGroupPropertyListenerKeys_ = null, kt || (this.viewport_ = document.createElement("div"), this.viewport_.className = "ol-viewport" + ("ontouchstart" in window ? " ol-touch" : ""), this.viewport_.style.position = "relative", this.viewport_.style.overflow = "hidden", this.viewport_.style.width = "100%", this.viewport_.style.height = "100%", this.overlayContainer_ = document.createElement("div"), this.overlayContainer_.style.position = "absolute", this.overlayContainer_.style.zIndex = "0", this.overlayContainer_.style.width = "100%", this.overlayContainer_.style.height = "100%", this.overlayContainer_.style.pointerEvents = "none", this.overlayContainer_.className = "ol-overlaycontainer", this.viewport_.appendChild(this.overlayContainer_), this.overlayContainerStopEvent_ = document.createElement("div"), this.overlayContainerStopEvent_.style.position = "absolute", this.overlayContainerStopEvent_.style.zIndex = "0", this.overlayContainerStopEvent_.style.width = "100%", this.overlayContainerStopEvent_.style.height = "100%", this.overlayContainerStopEvent_.style.pointerEvents = "none", this.overlayContainerStopEvent_.className = "ol-overlaycontainer-stopevent", this.viewport_.appendChild(this.overlayContainerStopEvent_)), this.mapBrowserEventHandler_ = null, this.moveTolerance_ = t.moveTolerance, this.keyboardEventTarget_ = e.keyboardEventTarget, this.targetChangeHandlerKeys_ = null, this.targetElement_ = null, kt || (this.resizeObserver_ = new ResizeObserver(() => this.updateSize())), this.controls = e.controls || (kt ? new Ft() : cu()), this.interactions = e.interactions || (kt ? new Ft() : Pu({
|
|
12336
12324
|
onFocusOnly: !0
|
|
12337
|
-
})), this.overlays_ = e.overlays, this.overlayIdIndex_ = {}, this.renderer_ = null, this.postRenderFunctions_ = [], this.tileQueue_ = new
|
|
12325
|
+
})), this.overlays_ = e.overlays, this.overlayIdIndex_ = {}, this.renderer_ = null, this.postRenderFunctions_ = [], this.tileQueue_ = new Ah(
|
|
12338
12326
|
this.getTilePriority.bind(this),
|
|
12339
12327
|
this.handleTileChange_.bind(this)
|
|
12340
12328
|
), this.addChangeListener(
|
|
@@ -12868,7 +12856,7 @@ class tf extends ee {
|
|
|
12868
12856
|
* @return {number} Tile priority.
|
|
12869
12857
|
*/
|
|
12870
12858
|
getTilePriority(t, e, i, s) {
|
|
12871
|
-
return
|
|
12859
|
+
return Mh(
|
|
12872
12860
|
this.frameState_,
|
|
12873
12861
|
t,
|
|
12874
12862
|
e,
|
|
@@ -12977,8 +12965,8 @@ class tf extends ee {
|
|
|
12977
12965
|
if (this.targetElement_ = e, !e)
|
|
12978
12966
|
this.renderer_ && (clearTimeout(this.postRenderTimeoutHandle_), this.postRenderTimeoutHandle_ = void 0, this.postRenderFunctions_.length = 0, this.renderer_.dispose(), this.renderer_ = null), this.animationDelayKey_ && (cancelAnimationFrame(this.animationDelayKey_), this.animationDelayKey_ = void 0);
|
|
12979
12967
|
else {
|
|
12980
|
-
if (Ae(e) || e.appendChild(this.viewport_), this.renderer_ || (this.renderer_ = new
|
|
12981
|
-
this.mapBrowserEventHandler_ = new
|
|
12968
|
+
if (Ae(e) || e.appendChild(this.viewport_), this.renderer_ || (this.renderer_ = new Jd(this)), !Ae(e)) {
|
|
12969
|
+
this.mapBrowserEventHandler_ = new vh(
|
|
12982
12970
|
this,
|
|
12983
12971
|
this.moveTolerance_
|
|
12984
12972
|
);
|
|
@@ -13295,7 +13283,7 @@ class tf extends ee {
|
|
|
13295
13283
|
e && e.setViewportSize(t);
|
|
13296
13284
|
}
|
|
13297
13285
|
}
|
|
13298
|
-
function
|
|
13286
|
+
function tf(n) {
|
|
13299
13287
|
let t = null;
|
|
13300
13288
|
n.keyboardEventTarget !== void 0 && (t = typeof n.keyboardEventTarget == "string" ? document.getElementById(n.keyboardEventTarget) : n.keyboardEventTarget);
|
|
13301
13289
|
const e = {}, i = n.layers && typeof /** @type {?} */
|
|
@@ -13444,7 +13432,7 @@ class to extends rs {
|
|
|
13444
13432
|
function Rr(n) {
|
|
13445
13433
|
return n instanceof Image || n instanceof HTMLCanvasElement || n instanceof HTMLVideoElement || n instanceof ImageBitmap ? n : null;
|
|
13446
13434
|
}
|
|
13447
|
-
const
|
|
13435
|
+
const ef = new Error("disposed"), nf = [256, 256];
|
|
13448
13436
|
class na extends to {
|
|
13449
13437
|
/**
|
|
13450
13438
|
* @param {Options} options Tile options.
|
|
@@ -13464,7 +13452,7 @@ class na extends to {
|
|
|
13464
13452
|
if (this.size_)
|
|
13465
13453
|
return this.size_;
|
|
13466
13454
|
const t = Rr(this.data_);
|
|
13467
|
-
return t ? [t.width, t.height] :
|
|
13455
|
+
return t ? [t.width, t.height] : nf;
|
|
13468
13456
|
}
|
|
13469
13457
|
/**
|
|
13470
13458
|
* Get the data for the tile.
|
|
@@ -13503,7 +13491,7 @@ class na extends to {
|
|
|
13503
13491
|
* @override
|
|
13504
13492
|
*/
|
|
13505
13493
|
disposeInternal() {
|
|
13506
|
-
this.controller_ && (this.controller_.abort(
|
|
13494
|
+
this.controller_ && (this.controller_.abort(ef), this.controller_ = null), super.disposeInternal();
|
|
13507
13495
|
}
|
|
13508
13496
|
}
|
|
13509
13497
|
class Al extends to {
|
|
@@ -13553,7 +13541,7 @@ class Al extends to {
|
|
|
13553
13541
|
* @private
|
|
13554
13542
|
*/
|
|
13555
13543
|
handleImageError_() {
|
|
13556
|
-
this.state = G.ERROR, this.unlistenImage_(), this.image_ =
|
|
13544
|
+
this.state = G.ERROR, this.unlistenImage_(), this.image_ = sf(), this.changed();
|
|
13557
13545
|
}
|
|
13558
13546
|
/**
|
|
13559
13547
|
* Tracks successful image load.
|
|
@@ -13610,7 +13598,7 @@ class Al extends to {
|
|
|
13610
13598
|
* @override
|
|
13611
13599
|
*/
|
|
13612
13600
|
load() {
|
|
13613
|
-
this.state == G.ERROR && (this.state = G.IDLE, this.image_ = new Image(), this.crossOrigin_ !== null && (this.image_.crossOrigin = this.crossOrigin_), this.referrerPolicy_ !== void 0 && (this.image_.referrerPolicy = this.referrerPolicy_)), this.state == G.IDLE && (this.state = G.LOADING, this.changed(), this.tileLoadFunction_(this, this.src_), this.unlisten_ =
|
|
13601
|
+
this.state == G.ERROR && (this.state = G.IDLE, this.image_ = new Image(), this.crossOrigin_ !== null && (this.image_.crossOrigin = this.crossOrigin_), this.referrerPolicy_ !== void 0 && (this.image_.referrerPolicy = this.referrerPolicy_)), this.state == G.IDLE && (this.state = G.LOADING, this.changed(), this.tileLoadFunction_(this, this.src_), this.unlisten_ = Cd(
|
|
13614
13602
|
this.image_,
|
|
13615
13603
|
this.handleImageLoad_.bind(this),
|
|
13616
13604
|
this.handleImageError_.bind(this)
|
|
@@ -13631,7 +13619,7 @@ class Al extends to {
|
|
|
13631
13619
|
this.unlistenImage_(), this.image_ = null, super.disposeInternal();
|
|
13632
13620
|
}
|
|
13633
13621
|
}
|
|
13634
|
-
function
|
|
13622
|
+
function sf() {
|
|
13635
13623
|
const n = ct(1, 1);
|
|
13636
13624
|
return n.fillStyle = "rgba(0,0,0,0)", n.fillRect(0, 0, 1, 1), n.canvas;
|
|
13637
13625
|
}
|
|
@@ -13717,7 +13705,7 @@ function sa(n, t, e, i, s) {
|
|
|
13717
13705
|
function Qs(n, t) {
|
|
13718
13706
|
return Math.abs(n[t * 4] - 210) > 2 || Math.abs(n[t * 4 + 3] - 0.75 * 255) > 2;
|
|
13719
13707
|
}
|
|
13720
|
-
function
|
|
13708
|
+
function rf() {
|
|
13721
13709
|
if (Js === void 0) {
|
|
13722
13710
|
const n = ct(6, 6, yi);
|
|
13723
13711
|
n.globalCompositeOperation = "lighter", n.fillStyle = "rgba(210, 0, 0, 0.75)", sa(n, 4, 5, 4, 0), sa(n, 4, 5, 0, 5);
|
|
@@ -13744,7 +13732,7 @@ function ra(n, t, e, i) {
|
|
|
13744
13732
|
}
|
|
13745
13733
|
return r;
|
|
13746
13734
|
}
|
|
13747
|
-
function
|
|
13735
|
+
function of(n, t, e, i) {
|
|
13748
13736
|
const s = Pe(e);
|
|
13749
13737
|
let r = ra(
|
|
13750
13738
|
n,
|
|
@@ -13761,7 +13749,7 @@ function af(n, t, e, i) {
|
|
|
13761
13749
|
), isFinite(r) && r > 0;
|
|
13762
13750
|
}), r;
|
|
13763
13751
|
}
|
|
13764
|
-
function
|
|
13752
|
+
function af(n, t, e, i, s, r, o, a, l, c, h, u, d, f) {
|
|
13765
13753
|
const g = ct(
|
|
13766
13754
|
Math.round(e * n),
|
|
13767
13755
|
Math.round(e * t),
|
|
@@ -13776,7 +13764,7 @@ function lf(n, t, e, i, s, r, o, a, l, c, h, u, d, f) {
|
|
|
13776
13764
|
g.globalCompositeOperation = "lighter";
|
|
13777
13765
|
const _ = Mt();
|
|
13778
13766
|
l.forEach(function(x, T, L) {
|
|
13779
|
-
|
|
13767
|
+
Fh(_, x.extent);
|
|
13780
13768
|
});
|
|
13781
13769
|
let p;
|
|
13782
13770
|
const E = e / i, C = (u ? 1 : 1 + Math.pow(2, -24)) / E;
|
|
@@ -13827,10 +13815,10 @@ function lf(n, t, e, i, s, r, o, a, l, c, h, u, d, f) {
|
|
|
13827
13815
|
[D, J, 0, 0, F - M],
|
|
13828
13816
|
[0, 0, b, P, X - A],
|
|
13829
13817
|
[0, 0, D, J, W - A]
|
|
13830
|
-
], nt =
|
|
13818
|
+
], nt = Oh(S);
|
|
13831
13819
|
if (!nt)
|
|
13832
13820
|
return;
|
|
13833
|
-
if (g.save(), g.beginPath(),
|
|
13821
|
+
if (g.save(), g.beginPath(), rf() || !u) {
|
|
13834
13822
|
g.moveTo(O, X);
|
|
13835
13823
|
const lt = 4, Lt = M - O, ke = A - X;
|
|
13836
13824
|
for (let At = 0; At < lt; At++)
|
|
@@ -13871,8 +13859,8 @@ function lf(n, t, e, i, s, r, o, a, l, c, h, u, d, f) {
|
|
|
13871
13859
|
g.beginPath(), g.moveTo(k, b), g.lineTo(R, v), g.lineTo(P, D), g.closePath(), g.stroke();
|
|
13872
13860
|
}), g.restore()), g.canvas;
|
|
13873
13861
|
}
|
|
13874
|
-
const
|
|
13875
|
-
class
|
|
13862
|
+
const lf = 10, oa = 0.25;
|
|
13863
|
+
class hf {
|
|
13876
13864
|
/**
|
|
13877
13865
|
* @param {import("../proj/Projection.js").default} sourceProj Source projection.
|
|
13878
13866
|
* @param {import("../proj/Projection.js").default} targetProj Target projection.
|
|
@@ -13885,7 +13873,7 @@ class cf {
|
|
|
13885
13873
|
constructor(t, e, i, s, r, o, a) {
|
|
13886
13874
|
this.sourceProj_ = t, this.targetProj_ = e;
|
|
13887
13875
|
let l = {};
|
|
13888
|
-
const c = a ?
|
|
13876
|
+
const c = a ? Ec(
|
|
13889
13877
|
(C) => ft(
|
|
13890
13878
|
a,
|
|
13891
13879
|
fs(C, this.targetProj_, this.sourceProj_)
|
|
@@ -13895,7 +13883,7 @@ class cf {
|
|
|
13895
13883
|
const y = C[0] + "/" + C[1];
|
|
13896
13884
|
return l[y] || (l[y] = c(C)), l[y];
|
|
13897
13885
|
}, this.maxSourceExtent_ = s, this.errorThresholdSquared_ = r * r, this.triangles_ = [], this.wrapsXInSource_ = !1, this.canWrapXInSource_ = this.sourceProj_.canWrapX() && !!s && !!this.sourceProj_.getExtent() && et(s) >= et(this.sourceProj_.getExtent()), this.sourceWorldWidth_ = this.sourceProj_.getExtent() ? et(this.sourceProj_.getExtent()) : null, this.targetWorldWidth_ = this.targetProj_.getExtent() ? et(this.targetProj_.getExtent()) : null;
|
|
13898
|
-
const h = Je(i), u = cs(i), d = hs(i), f = ls(i), g = this.transformInv_(h), m = this.transformInv_(u), _ = this.transformInv_(d), p = this.transformInv_(f), E =
|
|
13886
|
+
const h = Je(i), u = cs(i), d = hs(i), f = ls(i), g = this.transformInv_(h), m = this.transformInv_(u), _ = this.transformInv_(d), p = this.transformInv_(f), E = lf + (o ? Math.max(
|
|
13899
13887
|
0,
|
|
13900
13888
|
Math.ceil(
|
|
13901
13889
|
Math.log2(
|
|
@@ -14088,7 +14076,7 @@ class cf {
|
|
|
14088
14076
|
return this.triangles_;
|
|
14089
14077
|
}
|
|
14090
14078
|
}
|
|
14091
|
-
const
|
|
14079
|
+
const cf = 0.5;
|
|
14092
14080
|
class Ml extends to {
|
|
14093
14081
|
/**
|
|
14094
14082
|
* @param {import("../proj/Projection.js").default} sourceProj Source projection.
|
|
@@ -14120,7 +14108,7 @@ class Ml extends to {
|
|
|
14120
14108
|
p && (m ? m = je(m, p) : m = p);
|
|
14121
14109
|
const E = s.getResolution(
|
|
14122
14110
|
this.wrappedTileCoord_[0]
|
|
14123
|
-
), C =
|
|
14111
|
+
), C = of(
|
|
14124
14112
|
t,
|
|
14125
14113
|
i,
|
|
14126
14114
|
_,
|
|
@@ -14130,8 +14118,8 @@ class Ml extends to {
|
|
|
14130
14118
|
this.state = G.EMPTY;
|
|
14131
14119
|
return;
|
|
14132
14120
|
}
|
|
14133
|
-
const y = h !== void 0 ? h :
|
|
14134
|
-
if (this.triangulation_ = new
|
|
14121
|
+
const y = h !== void 0 ? h : cf;
|
|
14122
|
+
if (this.triangulation_ = new hf(
|
|
14135
14123
|
t,
|
|
14136
14124
|
i,
|
|
14137
14125
|
_,
|
|
@@ -14211,7 +14199,7 @@ class Ml extends to {
|
|
|
14211
14199
|
), l = this.targetTileGrid_.getTileCoordExtent(
|
|
14212
14200
|
this.wrappedTileCoord_
|
|
14213
14201
|
);
|
|
14214
|
-
this.canvas_ =
|
|
14202
|
+
this.canvas_ = af(
|
|
14215
14203
|
s,
|
|
14216
14204
|
r,
|
|
14217
14205
|
this.pixelRatio_,
|
|
@@ -14445,19 +14433,19 @@ class aa {
|
|
|
14445
14433
|
function es(n, t, e, i) {
|
|
14446
14434
|
return i !== void 0 ? (i[0] = n, i[1] = t, i[2] = e, i) : [n, t, e];
|
|
14447
14435
|
}
|
|
14448
|
-
function
|
|
14436
|
+
function uf(n, t, e) {
|
|
14449
14437
|
return n + "/" + t + "/" + e;
|
|
14450
14438
|
}
|
|
14451
14439
|
function Yn(n, t, e, i, s) {
|
|
14452
|
-
return `${j(n)},${t},${
|
|
14440
|
+
return `${j(n)},${t},${uf(e, i, s)}`;
|
|
14453
14441
|
}
|
|
14454
|
-
function
|
|
14455
|
-
return
|
|
14442
|
+
function df(n) {
|
|
14443
|
+
return ff(n[0], n[1], n[2]);
|
|
14456
14444
|
}
|
|
14457
|
-
function
|
|
14445
|
+
function ff(n, t, e) {
|
|
14458
14446
|
return (t << n) + e;
|
|
14459
14447
|
}
|
|
14460
|
-
function
|
|
14448
|
+
function gf(n, t) {
|
|
14461
14449
|
const e = n[0], i = n[1], s = n[2];
|
|
14462
14450
|
if (t.getMinZoom() > e || e > t.getMaxZoom())
|
|
14463
14451
|
return !1;
|
|
@@ -14543,13 +14531,13 @@ class bl {
|
|
|
14543
14531
|
this.offset_ = this.instructions_.length, this.zIndex = 0;
|
|
14544
14532
|
}
|
|
14545
14533
|
}
|
|
14546
|
-
const
|
|
14547
|
-
class
|
|
14534
|
+
const _f = 5;
|
|
14535
|
+
class mf extends cn {
|
|
14548
14536
|
/**
|
|
14549
14537
|
* @param {LayerType} layer Layer.
|
|
14550
14538
|
*/
|
|
14551
14539
|
constructor(t) {
|
|
14552
|
-
super(), this.ready = !0, this.boundHandleImageChange_ = this.handleImageChange_.bind(this), this.layer_ = t, this.staleKeys_ = new Array(), this.maxStaleKeys =
|
|
14540
|
+
super(), this.ready = !0, this.boundHandleImageChange_ = this.handleImageChange_.bind(this), this.layer_ = t, this.staleKeys_ = new Array(), this.maxStaleKeys = _f;
|
|
14553
14541
|
}
|
|
14554
14542
|
/**
|
|
14555
14543
|
* @return {Array<string>} Get the list of stale keys.
|
|
@@ -14667,12 +14655,12 @@ class pf extends cn {
|
|
|
14667
14655
|
}
|
|
14668
14656
|
const la = [];
|
|
14669
14657
|
let ui = null;
|
|
14670
|
-
function
|
|
14658
|
+
function pf() {
|
|
14671
14659
|
ui = ct(1, 1, void 0, {
|
|
14672
14660
|
willReadFrequently: !0
|
|
14673
14661
|
});
|
|
14674
14662
|
}
|
|
14675
|
-
class Ol extends
|
|
14663
|
+
class Ol extends mf {
|
|
14676
14664
|
/**
|
|
14677
14665
|
* @param {LayerType} layer Layer.
|
|
14678
14666
|
*/
|
|
@@ -14686,7 +14674,7 @@ class Ol extends pf {
|
|
|
14686
14674
|
* @return {Uint8ClampedArray|null} The image data.
|
|
14687
14675
|
*/
|
|
14688
14676
|
getImageData(t, e, i) {
|
|
14689
|
-
ui ||
|
|
14677
|
+
ui || pf(), ui.clearRect(0, 0, 1, 1);
|
|
14690
14678
|
let s;
|
|
14691
14679
|
try {
|
|
14692
14680
|
ui.drawImage(t, e, i, 1, 1, 0, 0, 1, 1), s = ui.getImageData(0, 0, 1, 1).data;
|
|
@@ -14719,7 +14707,7 @@ class Ol extends pf {
|
|
|
14719
14707
|
const a = t.firstElementChild;
|
|
14720
14708
|
Ae(a) && (o = a.getContext("2d"));
|
|
14721
14709
|
}
|
|
14722
|
-
if (o &&
|
|
14710
|
+
if (o && Lc(o.canvas.style.transform, e) ? (this.container = t, this.context = o, this.containerReused = !0) : this.containerReused ? (this.container = null, this.context = null, this.containerReused = !1) : this.container && (this.container.style.backgroundColor = null), !this.container) {
|
|
14723
14711
|
r = kt ? sl() : document.createElement("div"), r.className = s;
|
|
14724
14712
|
let a = r.style;
|
|
14725
14713
|
a.position = "absolute", a.width = "100%", a.height = "100%", o = ct();
|
|
@@ -14760,7 +14748,7 @@ class Ol extends pf {
|
|
|
14760
14748
|
-a / 2,
|
|
14761
14749
|
-l / 2
|
|
14762
14750
|
), ja(this.inversePixelTransform, this.pixelTransform);
|
|
14763
|
-
const c =
|
|
14751
|
+
const c = vc(this.pixelTransform);
|
|
14764
14752
|
if (this.useContainer(e, c, this.getBackground(t)), !this.containerReused) {
|
|
14765
14753
|
const h = this.context.canvas;
|
|
14766
14754
|
h.width != a || h.height != l ? (h.width = a, h.height = l) : this.context.clearRect(0, 0, a, l), c !== /** @type {HTMLCanvasElement} */
|
|
@@ -14867,7 +14855,7 @@ function tr(n, t, e) {
|
|
|
14867
14855
|
const i = n[e], s = i.has(t);
|
|
14868
14856
|
return s || i.add(t), !s;
|
|
14869
14857
|
}
|
|
14870
|
-
function
|
|
14858
|
+
function yf(n, t, e) {
|
|
14871
14859
|
const i = n[e];
|
|
14872
14860
|
return i ? i.delete(t) : !1;
|
|
14873
14861
|
}
|
|
@@ -14887,7 +14875,7 @@ function ha(n, t) {
|
|
|
14887
14875
|
}
|
|
14888
14876
|
return t;
|
|
14889
14877
|
}
|
|
14890
|
-
class
|
|
14878
|
+
class Ef extends Ol {
|
|
14891
14879
|
/**
|
|
14892
14880
|
* @param {LayerType} tileLayer Tile layer.
|
|
14893
14881
|
* @param {Options} [options] Options.
|
|
@@ -15183,7 +15171,7 @@ class xf extends Ol {
|
|
|
15183
15171
|
continue;
|
|
15184
15172
|
}
|
|
15185
15173
|
if (O !== G.ERROR && (this.renderComplete = !1), this.findStaleTile_(X, T)) {
|
|
15186
|
-
|
|
15174
|
+
yf(T, A, d), t.animate = !0;
|
|
15187
15175
|
continue;
|
|
15188
15176
|
}
|
|
15189
15177
|
if (this.findAltTiles_(
|
|
@@ -15332,7 +15320,7 @@ const zn = {
|
|
|
15332
15320
|
PRELOAD: "preload",
|
|
15333
15321
|
USE_INTERIM_TILES_ON_ERROR: "useInterimTilesOnError"
|
|
15334
15322
|
};
|
|
15335
|
-
class
|
|
15323
|
+
class xf extends ms {
|
|
15336
15324
|
/**
|
|
15337
15325
|
* @param {Options<TileSourceType>} [options] Tile layer options.
|
|
15338
15326
|
*/
|
|
@@ -15413,7 +15401,7 @@ class Cf extends ms {
|
|
|
15413
15401
|
return super.getData(t);
|
|
15414
15402
|
}
|
|
15415
15403
|
}
|
|
15416
|
-
class
|
|
15404
|
+
class Cf extends xf {
|
|
15417
15405
|
/**
|
|
15418
15406
|
* @param {import("./BaseTile.js").Options<TileSourceType>} [options] Tile layer options.
|
|
15419
15407
|
*/
|
|
@@ -15424,7 +15412,7 @@ class wf extends Cf {
|
|
|
15424
15412
|
* @override
|
|
15425
15413
|
*/
|
|
15426
15414
|
createRenderer() {
|
|
15427
|
-
return new
|
|
15415
|
+
return new Ef(this, {
|
|
15428
15416
|
cacheSize: this.getCacheSize()
|
|
15429
15417
|
});
|
|
15430
15418
|
}
|
|
@@ -15436,7 +15424,7 @@ class Pl {
|
|
|
15436
15424
|
*/
|
|
15437
15425
|
constructor(t) {
|
|
15438
15426
|
this.minZoom = t.minZoom !== void 0 ? t.minZoom : 0, this.resolutions_ = t.resolutions, $(
|
|
15439
|
-
|
|
15427
|
+
xh(
|
|
15440
15428
|
this.resolutions_,
|
|
15441
15429
|
/**
|
|
15442
15430
|
* @param {number} a First resolution
|
|
@@ -15824,9 +15812,9 @@ class Pl {
|
|
|
15824
15812
|
}
|
|
15825
15813
|
function Dl(n) {
|
|
15826
15814
|
let t = n.getDefaultTileGrid();
|
|
15827
|
-
return t || (t =
|
|
15815
|
+
return t || (t = If(n), n.setDefaultTileGrid(t)), t;
|
|
15828
15816
|
}
|
|
15829
|
-
function
|
|
15817
|
+
function wf(n, t, e) {
|
|
15830
15818
|
const i = t[0], s = n.getTileCoordCenter(t), r = io(e);
|
|
15831
15819
|
if (!Ci(r, s)) {
|
|
15832
15820
|
const o = et(r), a = Math.ceil(
|
|
@@ -15836,17 +15824,17 @@ function Rf(n, t, e) {
|
|
|
15836
15824
|
}
|
|
15837
15825
|
return t;
|
|
15838
15826
|
}
|
|
15839
|
-
function
|
|
15827
|
+
function Rf(n, t, e, i) {
|
|
15840
15828
|
i = i !== void 0 ? i : "top-left";
|
|
15841
15829
|
const s = Fl(n, t, e);
|
|
15842
15830
|
return new Pl({
|
|
15843
15831
|
extent: n,
|
|
15844
|
-
origin:
|
|
15832
|
+
origin: Nh(n, i),
|
|
15845
15833
|
resolutions: s,
|
|
15846
15834
|
tileSize: e
|
|
15847
15835
|
});
|
|
15848
15836
|
}
|
|
15849
|
-
function
|
|
15837
|
+
function Tf(n) {
|
|
15850
15838
|
const t = n || {}, e = t.extent || Et("EPSG:3857").getExtent(), i = {
|
|
15851
15839
|
extent: e,
|
|
15852
15840
|
minZoom: t.minZoom,
|
|
@@ -15861,7 +15849,7 @@ function If(n) {
|
|
|
15861
15849
|
return new Pl(i);
|
|
15862
15850
|
}
|
|
15863
15851
|
function Fl(n, t, e, i) {
|
|
15864
|
-
t = t !== void 0 ? t :
|
|
15852
|
+
t = t !== void 0 ? t : Qc, e = vt(e !== void 0 ? e : Kr);
|
|
15865
15853
|
const s = wt(n), r = et(n);
|
|
15866
15854
|
i = i > 0 ? i : Math.max(r / e[0], s / e[1]);
|
|
15867
15855
|
const o = t + 1, a = new Array(o);
|
|
@@ -15869,9 +15857,9 @@ function Fl(n, t, e, i) {
|
|
|
15869
15857
|
a[l] = i / Math.pow(2, l);
|
|
15870
15858
|
return a;
|
|
15871
15859
|
}
|
|
15872
|
-
function
|
|
15860
|
+
function If(n, t, e, i) {
|
|
15873
15861
|
const s = io(n);
|
|
15874
|
-
return
|
|
15862
|
+
return Rf(s, t, e, i);
|
|
15875
15863
|
}
|
|
15876
15864
|
function io(n) {
|
|
15877
15865
|
n = Et(n);
|
|
@@ -15882,9 +15870,9 @@ function io(n) {
|
|
|
15882
15870
|
}
|
|
15883
15871
|
return t;
|
|
15884
15872
|
}
|
|
15885
|
-
const
|
|
15886
|
-
function
|
|
15887
|
-
return n.replace(
|
|
15873
|
+
const Sf = /\{z\}/g, vf = /\{x\}/g, Lf = /\{y\}/g, Af = /\{-y\}/g;
|
|
15874
|
+
function Mf(n, t, e, i, s) {
|
|
15875
|
+
return n.replace(Sf, t.toString()).replace(vf, e.toString()).replace(Lf, i.toString()).replace(Af, function() {
|
|
15888
15876
|
if (s === void 0)
|
|
15889
15877
|
throw new Error(
|
|
15890
15878
|
"If the URL template has a {-y} placeholder, the grid extent must be known"
|
|
@@ -15892,7 +15880,7 @@ function bf(n, t, e, i, s) {
|
|
|
15892
15880
|
return (s - i).toString();
|
|
15893
15881
|
});
|
|
15894
15882
|
}
|
|
15895
|
-
function
|
|
15883
|
+
function bf(n) {
|
|
15896
15884
|
const t = [];
|
|
15897
15885
|
let e = /\{([a-z])-([a-z])\}/.exec(n);
|
|
15898
15886
|
if (e) {
|
|
@@ -15910,7 +15898,7 @@ function Of(n) {
|
|
|
15910
15898
|
}
|
|
15911
15899
|
return t.push(n), t;
|
|
15912
15900
|
}
|
|
15913
|
-
function
|
|
15901
|
+
function Of(n, t) {
|
|
15914
15902
|
return (
|
|
15915
15903
|
/**
|
|
15916
15904
|
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile Coordinate.
|
|
@@ -15927,17 +15915,17 @@ function Pf(n, t) {
|
|
|
15927
15915
|
const a = t.getFullTileRange(o);
|
|
15928
15916
|
a && (r = a.getHeight() - 1);
|
|
15929
15917
|
}
|
|
15930
|
-
return
|
|
15918
|
+
return Mf(n, o, e[1], e[2], r);
|
|
15931
15919
|
})
|
|
15932
15920
|
);
|
|
15933
15921
|
}
|
|
15934
|
-
function
|
|
15922
|
+
function Pf(n, t) {
|
|
15935
15923
|
const e = n.length, i = new Array(e);
|
|
15936
15924
|
for (let s = 0; s < e; ++s)
|
|
15937
|
-
i[s] =
|
|
15938
|
-
return
|
|
15925
|
+
i[s] = Of(n[s], t);
|
|
15926
|
+
return Df(i);
|
|
15939
15927
|
}
|
|
15940
|
-
function
|
|
15928
|
+
function Df(n) {
|
|
15941
15929
|
return n.length === 1 ? n[0] : (
|
|
15942
15930
|
/**
|
|
15943
15931
|
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile Coordinate.
|
|
@@ -15948,7 +15936,7 @@ function Ff(n) {
|
|
|
15948
15936
|
(function(t, e, i) {
|
|
15949
15937
|
if (!t)
|
|
15950
15938
|
return;
|
|
15951
|
-
const s =
|
|
15939
|
+
const s = df(t), r = _i(s, n.length);
|
|
15952
15940
|
return n[r](t, e, i);
|
|
15953
15941
|
})
|
|
15954
15942
|
);
|
|
@@ -16048,7 +16036,7 @@ class kl extends ee {
|
|
|
16048
16036
|
function ca(n) {
|
|
16049
16037
|
return n ? typeof n == "function" ? n : (Array.isArray(n) || (n = [n]), (t) => n) : null;
|
|
16050
16038
|
}
|
|
16051
|
-
class
|
|
16039
|
+
class Ff extends kl {
|
|
16052
16040
|
/**
|
|
16053
16041
|
* @param {Options} options SourceTile source options.
|
|
16054
16042
|
*/
|
|
@@ -16144,7 +16132,7 @@ class kf extends kl {
|
|
|
16144
16132
|
*/
|
|
16145
16133
|
getTilePixelSize(t, e, i) {
|
|
16146
16134
|
const s = this.getTileGridForProjection(i), r = this.getTilePixelRatio(e), o = vt(s.getTileSize(t), this.tmpSize);
|
|
16147
|
-
return r == 1 ? o :
|
|
16135
|
+
return r == 1 ? o : Hu(o, r, this.tmpSize);
|
|
16148
16136
|
}
|
|
16149
16137
|
/**
|
|
16150
16138
|
* Returns a tile coordinate wrapped around the x-axis. When the tile coordinate
|
|
@@ -16157,7 +16145,7 @@ class kf extends kl {
|
|
|
16157
16145
|
*/
|
|
16158
16146
|
getTileCoordForTileUrlFunction(t, e) {
|
|
16159
16147
|
const i = e !== void 0 ? e : this.getProjection(), s = e !== void 0 ? this.getTileGridForProjection(i) : this.tileGrid || this.getTileGridForProjection(i);
|
|
16160
|
-
return this.getWrapX() && i.isGlobal() && (t =
|
|
16148
|
+
return this.getWrapX() && i.isGlobal() && (t = wf(s, t, i)), gf(t, s) ? t : null;
|
|
16161
16149
|
}
|
|
16162
16150
|
/**
|
|
16163
16151
|
* Remove all cached reprojected tiles from the source. The next render cycle will create new tiles.
|
|
@@ -16172,7 +16160,7 @@ class kf extends kl {
|
|
|
16172
16160
|
this.clear(), super.refresh();
|
|
16173
16161
|
}
|
|
16174
16162
|
}
|
|
16175
|
-
class
|
|
16163
|
+
class kf extends _e {
|
|
16176
16164
|
/**
|
|
16177
16165
|
* @param {string} type Type.
|
|
16178
16166
|
* @param {import("../Tile.js").default} tile The tile.
|
|
@@ -16204,7 +16192,7 @@ const er = {
|
|
|
16204
16192
|
*/
|
|
16205
16193
|
TILELOADERROR: "tileloaderror"
|
|
16206
16194
|
};
|
|
16207
|
-
class no extends
|
|
16195
|
+
class no extends Ff {
|
|
16208
16196
|
/**
|
|
16209
16197
|
* @param {Options} options Image tile options.
|
|
16210
16198
|
*/
|
|
@@ -16264,7 +16252,7 @@ class no extends kf {
|
|
|
16264
16252
|
t.target
|
|
16265
16253
|
), i = j(e), s = e.getState();
|
|
16266
16254
|
let r;
|
|
16267
|
-
s == G.LOADING ? (this.tileLoadingKeys_[i] = !0, r = er.TILELOADSTART) : i in this.tileLoadingKeys_ && (delete this.tileLoadingKeys_[i], r = s == G.ERROR ? er.TILELOADERROR : s == G.LOADED ? er.TILELOADEND : void 0), r != null && this.dispatchEvent(new
|
|
16255
|
+
s == G.LOADING ? (this.tileLoadingKeys_[i] = !0, r = er.TILELOADSTART) : i in this.tileLoadingKeys_ && (delete this.tileLoadingKeys_[i], r = s == G.ERROR ? er.TILELOADERROR : s == G.LOADED ? er.TILELOADEND : void 0), r != null && this.dispatchEvent(new kf(r, e));
|
|
16268
16256
|
}
|
|
16269
16257
|
/**
|
|
16270
16258
|
* Deprecated. Use an ImageTile source instead.
|
|
@@ -16291,7 +16279,7 @@ class no extends kf {
|
|
|
16291
16279
|
* @api
|
|
16292
16280
|
*/
|
|
16293
16281
|
setUrl(t) {
|
|
16294
|
-
const e =
|
|
16282
|
+
const e = bf(t);
|
|
16295
16283
|
this.urls = e, this.setUrls(e);
|
|
16296
16284
|
}
|
|
16297
16285
|
/**
|
|
@@ -16304,7 +16292,7 @@ class no extends kf {
|
|
|
16304
16292
|
this.urls = t;
|
|
16305
16293
|
const e = t.join(`
|
|
16306
16294
|
`);
|
|
16307
|
-
this.generateTileUrlFunction_ ? this.setTileUrlFunction(
|
|
16295
|
+
this.generateTileUrlFunction_ ? this.setTileUrlFunction(Pf(t, this.tileGrid), e) : this.setKey(e);
|
|
16308
16296
|
}
|
|
16309
16297
|
/**
|
|
16310
16298
|
* @param {import("../tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
@@ -16315,7 +16303,7 @@ class no extends kf {
|
|
|
16315
16303
|
tileUrlFunction(t, e, i) {
|
|
16316
16304
|
}
|
|
16317
16305
|
}
|
|
16318
|
-
class
|
|
16306
|
+
class Nf extends no {
|
|
16319
16307
|
/**
|
|
16320
16308
|
* @param {!Options} options Image tile options.
|
|
16321
16309
|
*/
|
|
@@ -16326,7 +16314,7 @@ class Gf extends no {
|
|
|
16326
16314
|
projection: t.projection,
|
|
16327
16315
|
state: t.state,
|
|
16328
16316
|
tileGrid: t.tileGrid,
|
|
16329
|
-
tileLoadFunction: t.tileLoadFunction ? t.tileLoadFunction :
|
|
16317
|
+
tileLoadFunction: t.tileLoadFunction ? t.tileLoadFunction : Gf,
|
|
16330
16318
|
tilePixelRatio: t.tilePixelRatio,
|
|
16331
16319
|
tileUrlFunction: t.tileUrlFunction,
|
|
16332
16320
|
url: t.url,
|
|
@@ -16488,7 +16476,7 @@ class Gf extends no {
|
|
|
16488
16476
|
}
|
|
16489
16477
|
}
|
|
16490
16478
|
}
|
|
16491
|
-
function
|
|
16479
|
+
function Gf(n, t) {
|
|
16492
16480
|
if (kt) {
|
|
16493
16481
|
const e = n.getCrossOrigin();
|
|
16494
16482
|
let i = "same-origin", s = "same-origin";
|
|
@@ -16513,13 +16501,13 @@ function zf(n, t) {
|
|
|
16513
16501
|
}
|
|
16514
16502
|
n.getImage().src = t;
|
|
16515
16503
|
}
|
|
16516
|
-
class
|
|
16504
|
+
class zf extends Nf {
|
|
16517
16505
|
/**
|
|
16518
16506
|
* @param {Options} [options] XYZ options.
|
|
16519
16507
|
*/
|
|
16520
16508
|
constructor(t) {
|
|
16521
16509
|
t = t || {};
|
|
16522
|
-
const e = t.projection !== void 0 ? t.projection : "EPSG:3857", i = t.tileGrid !== void 0 ? t.tileGrid :
|
|
16510
|
+
const e = t.projection !== void 0 ? t.projection : "EPSG:3857", i = t.tileGrid !== void 0 ? t.tileGrid : Tf({
|
|
16523
16511
|
extent: io(e),
|
|
16524
16512
|
maxResolution: t.maxResolution,
|
|
16525
16513
|
maxZoom: t.maxZoom,
|
|
@@ -16554,15 +16542,15 @@ class Xf extends Gf {
|
|
|
16554
16542
|
return this.gutter_;
|
|
16555
16543
|
}
|
|
16556
16544
|
}
|
|
16557
|
-
const
|
|
16558
|
-
class
|
|
16545
|
+
const Xf = '© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';
|
|
16546
|
+
class Wf extends zf {
|
|
16559
16547
|
/**
|
|
16560
16548
|
* @param {Options} [options] Open Street Map options.
|
|
16561
16549
|
*/
|
|
16562
16550
|
constructor(t) {
|
|
16563
16551
|
t = t || {};
|
|
16564
16552
|
let e;
|
|
16565
|
-
t.attributions !== void 0 ? e = t.attributions : e = [
|
|
16553
|
+
t.attributions !== void 0 ? e = t.attributions : e = [Xf];
|
|
16566
16554
|
const i = t.url !== void 0 ? t.url : "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
|
|
16567
16555
|
super({
|
|
16568
16556
|
attributions: e,
|
|
@@ -16581,16 +16569,16 @@ class Yf extends Xf {
|
|
|
16581
16569
|
});
|
|
16582
16570
|
}
|
|
16583
16571
|
}
|
|
16584
|
-
const
|
|
16572
|
+
const Yf = "EPSG:3857", Kf = [9.254419, 50.102223], Bf = ({ centre: n, target: t } = {}) => {
|
|
16585
16573
|
const e = Tr(null);
|
|
16586
|
-
|
|
16587
|
-
const i = () => new
|
|
16574
|
+
Cc();
|
|
16575
|
+
const i = () => new Qd({
|
|
16588
16576
|
target: t,
|
|
16589
|
-
layers: [new
|
|
16577
|
+
layers: [new Cf({ source: new Wf() })],
|
|
16590
16578
|
view: new qt({
|
|
16591
|
-
center: rh(n) ||
|
|
16579
|
+
center: rh(n) || Kf,
|
|
16592
16580
|
minZoom: 1,
|
|
16593
|
-
projection:
|
|
16581
|
+
projection: Yf,
|
|
16594
16582
|
zoom: 4
|
|
16595
16583
|
})
|
|
16596
16584
|
});
|
|
@@ -16733,7 +16721,7 @@ class Rs extends ee {
|
|
|
16733
16721
|
* @fires module:ol/events/Event~BaseEvent#event:change
|
|
16734
16722
|
*/
|
|
16735
16723
|
setStyle(t) {
|
|
16736
|
-
this.style_ = t, this.styleFunction_ = t ?
|
|
16724
|
+
this.style_ = t, this.styleFunction_ = t ? Zf(t) : void 0, this.changed();
|
|
16737
16725
|
}
|
|
16738
16726
|
/**
|
|
16739
16727
|
* Set the feature id. The feature id is considered stable and may be used when
|
|
@@ -16758,7 +16746,7 @@ class Rs extends ee {
|
|
|
16758
16746
|
t !== this.geometryName_ && (this.removeChangeListener(this.geometryName_, this.handleGeometryChanged_), this.geometryName_ = t, this.addChangeListener(this.geometryName_, this.handleGeometryChanged_), this.handleGeometryChanged_());
|
|
16759
16747
|
}
|
|
16760
16748
|
}
|
|
16761
|
-
function
|
|
16749
|
+
function Zf(n) {
|
|
16762
16750
|
if (typeof n == "function")
|
|
16763
16751
|
return n;
|
|
16764
16752
|
let t;
|
|
@@ -16773,14 +16761,14 @@ function Uf(n) {
|
|
|
16773
16761
|
return t;
|
|
16774
16762
|
};
|
|
16775
16763
|
}
|
|
16776
|
-
let
|
|
16777
|
-
function
|
|
16764
|
+
let Uf = !1;
|
|
16765
|
+
function Vf(n, t, e, i, s, r, o) {
|
|
16778
16766
|
const a = new XMLHttpRequest();
|
|
16779
16767
|
a.open(
|
|
16780
16768
|
"GET",
|
|
16781
16769
|
typeof n == "function" ? n(e, i, s) : n,
|
|
16782
16770
|
!0
|
|
16783
|
-
), t.getType() == "arraybuffer" && (a.responseType = "arraybuffer"), a.withCredentials =
|
|
16771
|
+
), t.getType() == "arraybuffer" && (a.responseType = "arraybuffer"), a.withCredentials = Uf, a.onload = function(l) {
|
|
16784
16772
|
if (!a.status || a.status >= 200 && a.status < 300) {
|
|
16785
16773
|
const c = t.getType();
|
|
16786
16774
|
try {
|
|
@@ -16803,7 +16791,7 @@ function jf(n, t, e, i, s, r, o) {
|
|
|
16803
16791
|
}
|
|
16804
16792
|
function ua(n, t) {
|
|
16805
16793
|
return function(e, i, s, r, o) {
|
|
16806
|
-
|
|
16794
|
+
Vf(
|
|
16807
16795
|
n,
|
|
16808
16796
|
t,
|
|
16809
16797
|
e,
|
|
@@ -16823,7 +16811,7 @@ function ua(n, t) {
|
|
|
16823
16811
|
);
|
|
16824
16812
|
};
|
|
16825
16813
|
}
|
|
16826
|
-
function
|
|
16814
|
+
function jf(n, t) {
|
|
16827
16815
|
return [[-1 / 0, -1 / 0, 1 / 0, 1 / 0]];
|
|
16828
16816
|
}
|
|
16829
16817
|
function da(n, t, e, i, s, r, o) {
|
|
@@ -16840,7 +16828,7 @@ function da(n, t, e, i, s, r, o) {
|
|
|
16840
16828
|
const p = n[_], E = n[_ + 1];
|
|
16841
16829
|
d += Math.sqrt((p - h) * (p - h) + (E - u) * (E - u)), f.push(d), h = p, u = E;
|
|
16842
16830
|
}
|
|
16843
|
-
const g = s * d, m =
|
|
16831
|
+
const g = s * d, m = ph(f, g);
|
|
16844
16832
|
m < 0 ? (l = (g - f[-m - 2]) / (f[-m - 1] - f[-m - 2]), a = t + (-m - 2) * i) : a = t + m * i;
|
|
16845
16833
|
}
|
|
16846
16834
|
o = o > 1 ? o : 2, r = r || new Array(o);
|
|
@@ -16848,7 +16836,7 @@ function da(n, t, e, i, s, r, o) {
|
|
|
16848
16836
|
r[h] = a === void 0 ? NaN : l === void 0 ? n[a + h] : Dt(n[a + h], n[a + i + h], l);
|
|
16849
16837
|
return r;
|
|
16850
16838
|
}
|
|
16851
|
-
function
|
|
16839
|
+
function Hf(n, t, e, i) {
|
|
16852
16840
|
let s = n[t], r = n[t + 1], o = 0;
|
|
16853
16841
|
for (let a = t + i; a < e; a += i) {
|
|
16854
16842
|
const l = n[a], c = n[a + 1];
|
|
@@ -16856,7 +16844,7 @@ function qf(n, t, e, i) {
|
|
|
16856
16844
|
}
|
|
16857
16845
|
return o;
|
|
16858
16846
|
}
|
|
16859
|
-
function
|
|
16847
|
+
function qf(n, t, e, i) {
|
|
16860
16848
|
const s = [];
|
|
16861
16849
|
let r = Mt();
|
|
16862
16850
|
for (let o = 0, a = e.length; o < a; ++o) {
|
|
@@ -16928,13 +16916,13 @@ class Kt {
|
|
|
16928
16916
|
*/
|
|
16929
16917
|
getFlatInteriorPoints() {
|
|
16930
16918
|
if (!this.flatInteriorPoints_) {
|
|
16931
|
-
const t =
|
|
16919
|
+
const t = jc(this.flatCoordinates_, this.ends_), e = qf(
|
|
16932
16920
|
this.flatCoordinates_,
|
|
16933
16921
|
0,
|
|
16934
16922
|
t,
|
|
16935
16923
|
this.stride_
|
|
16936
16924
|
);
|
|
16937
|
-
this.flatInteriorPoints_ =
|
|
16925
|
+
this.flatInteriorPoints_ = Kc(
|
|
16938
16926
|
this.flatCoordinates_,
|
|
16939
16927
|
0,
|
|
16940
16928
|
t,
|
|
@@ -17139,7 +17127,7 @@ class Kt {
|
|
|
17139
17127
|
), s = [i.length];
|
|
17140
17128
|
break;
|
|
17141
17129
|
case "MultiLineString":
|
|
17142
|
-
s = [], i.length =
|
|
17130
|
+
s = [], i.length = Xc(
|
|
17143
17131
|
i,
|
|
17144
17132
|
0,
|
|
17145
17133
|
this.simplifiedGeometry_.ends_,
|
|
@@ -17389,7 +17377,7 @@ class Nl extends kl {
|
|
|
17389
17377
|
projection: void 0,
|
|
17390
17378
|
state: "ready",
|
|
17391
17379
|
wrapX: t.wrapX !== void 0 ? t.wrapX : !0
|
|
17392
|
-
}), this.on, this.once, this.un, this.loader_ = $i, this.format_ = t.format || null, this.overlaps_ = t.overlaps === void 0 ? !0 : t.overlaps, this.url_ = t.url, t.loader !== void 0 ? this.loader_ = t.loader : this.url_ !== void 0 && ($(this.format_, "`format` must be set when `url` is set"), this.loader_ = ua(this.url_, this.format_)), this.strategy_ = t.strategy !== void 0 ? t.strategy :
|
|
17380
|
+
}), this.on, this.once, this.un, this.loader_ = $i, this.format_ = t.format || null, this.overlaps_ = t.overlaps === void 0 ? !0 : t.overlaps, this.url_ = t.url, t.loader !== void 0 ? this.loader_ = t.loader : this.url_ !== void 0 && ($(this.format_, "`format` must be set when `url` is set"), this.loader_ = ua(this.url_, this.format_)), this.strategy_ = t.strategy !== void 0 ? t.strategy : jf;
|
|
17393
17381
|
const e = t.useSpatialIndex !== void 0 ? t.useSpatialIndex : !0;
|
|
17394
17382
|
this.featuresRtree_ = e ? new ga() : null, this.loadedExtentsRtree_ = new ga(), this.nullGeometryFeatures_ = {}, this.idIndex_ = {}, this.uidIndex_ = {}, this.featureChangeKeys_ = {}, this.featuresCollection_ = null;
|
|
17395
17383
|
let i, s;
|
|
@@ -18014,7 +18002,7 @@ class Nl extends kl {
|
|
|
18014
18002
|
this.overlaps_ = t, this.changed();
|
|
18015
18003
|
}
|
|
18016
18004
|
}
|
|
18017
|
-
class
|
|
18005
|
+
class $f extends Nl {
|
|
18018
18006
|
/**
|
|
18019
18007
|
* @param {Options<FeatureType>} [options] Cluster options.
|
|
18020
18008
|
*/
|
|
@@ -18560,7 +18548,7 @@ class Cn extends Gl {
|
|
|
18560
18548
|
let s, r, o = -1;
|
|
18561
18549
|
for (e = 0; e < i; ++e)
|
|
18562
18550
|
s = t[e], r = /** @type {import("./Instruction.js").default} */
|
|
18563
|
-
s[0], r == N.END_GEOMETRY ? o = e : r == N.BEGIN_GEOMETRY && (s[2] = e,
|
|
18551
|
+
s[0], r == N.END_GEOMETRY ? o = e : r == N.BEGIN_GEOMETRY && (s[2] = e, Eh(this.hitDetectionInstructions, o, e), o = -1);
|
|
18564
18552
|
}
|
|
18565
18553
|
/**
|
|
18566
18554
|
* @param {import("../../style/Fill.js").default} fillStyle Fill style.
|
|
@@ -18605,7 +18593,7 @@ class Cn extends Gl {
|
|
|
18605
18593
|
const c = t.getMiterLimit();
|
|
18606
18594
|
e.miterLimit = c !== void 0 ? c : sn;
|
|
18607
18595
|
const h = t.getOffset();
|
|
18608
|
-
e.strokeOffset = h ??
|
|
18596
|
+
e.strokeOffset = h ?? Sd, e.lineWidth > this.maxLineWidth && (this.maxLineWidth = e.lineWidth, this.bufferedMaxExtent_ = null);
|
|
18609
18597
|
} else
|
|
18610
18598
|
e.strokeStyle = void 0, e.lineCap = void 0, e.lineDash = null, e.lineDashOffset = void 0, e.lineJoin = void 0, e.lineWidth = void 0, e.miterLimit = void 0, e.strokeOffset = void 0;
|
|
18611
18599
|
return e;
|
|
@@ -18688,7 +18676,7 @@ class Cn extends Gl {
|
|
|
18688
18676
|
return this.bufferedMaxExtent_;
|
|
18689
18677
|
}
|
|
18690
18678
|
}
|
|
18691
|
-
class
|
|
18679
|
+
class Jf extends Cn {
|
|
18692
18680
|
/**
|
|
18693
18681
|
* @param {number} tolerance Tolerance.
|
|
18694
18682
|
* @param {import("../../extent.js").Extent} maxExtent Maximum extent.
|
|
@@ -18825,7 +18813,7 @@ class Qf extends Cn {
|
|
|
18825
18813
|
this.imagePixelRatio_ = t.getPixelRatio(this.pixelRatio), this.anchorX_ = i[0], this.anchorY_ = i[1], this.hitDetectionImage_ = t.getHitDetectionImage(), this.image_ = t.getImage(this.pixelRatio), this.height_ = s[1], this.opacity_ = t.getOpacity(), this.originX_ = r[0], this.originY_ = r[1], this.rotateWithView_ = t.getRotateWithView(), this.rotation_ = t.getRotation(), this.scale_ = t.getScaleArray(), this.width_ = s[0], this.declutterMode_ = t.getDeclutterMode(), this.declutterImageWithText_ = e;
|
|
18826
18814
|
}
|
|
18827
18815
|
}
|
|
18828
|
-
class
|
|
18816
|
+
class Qf extends Cn {
|
|
18829
18817
|
/**
|
|
18830
18818
|
* @param {number} tolerance Tolerance.
|
|
18831
18819
|
* @param {import("../../extent.js").Extent} maxExtent Maximum extent.
|
|
@@ -19131,7 +19119,7 @@ class ma extends Cn {
|
|
|
19131
19119
|
return Math.abs(r) > 0 && i !== void 0 && s !== void 0 ? (e.strokeStyle = void 0, e.strokeOffset = 0, t(), e.fillStyle = void 0, e.strokeStyle = s, e.strokeOffset = r, t(), e.fillStyle = i, !0) : !1;
|
|
19132
19120
|
}
|
|
19133
19121
|
}
|
|
19134
|
-
function
|
|
19122
|
+
function tg(n, t, e, i, s) {
|
|
19135
19123
|
const r = [];
|
|
19136
19124
|
let o = e, a = 0, l = t.slice(e, 2);
|
|
19137
19125
|
for (; a < n && o + s < i; ) {
|
|
@@ -19153,7 +19141,7 @@ function eg(n, t, e, i, s) {
|
|
|
19153
19141
|
}
|
|
19154
19142
|
return a > 0 && r.push(l), r;
|
|
19155
19143
|
}
|
|
19156
|
-
function
|
|
19144
|
+
function eg(n, t, e, i, s) {
|
|
19157
19145
|
let r = e, o = e, a = 0, l = 0, c = e, h, u, d, f, g, m, _, p, E, C;
|
|
19158
19146
|
for (u = e; u < i; u += s) {
|
|
19159
19147
|
const y = t[u], x = t[u + 1];
|
|
@@ -19172,7 +19160,7 @@ const is = {
|
|
|
19172
19160
|
ideographic: 0.8,
|
|
19173
19161
|
bottom: 1
|
|
19174
19162
|
};
|
|
19175
|
-
class
|
|
19163
|
+
class ig extends Cn {
|
|
19176
19164
|
/**
|
|
19177
19165
|
* @param {number} tolerance Tolerance.
|
|
19178
19166
|
* @param {import("../../extent.js").Extent} maxExtent Maximum extent.
|
|
@@ -19231,7 +19219,7 @@ class ng extends Cn {
|
|
|
19231
19219
|
let m = 0;
|
|
19232
19220
|
for (let _ = 0, p = d.length; _ < p; ++_) {
|
|
19233
19221
|
let E;
|
|
19234
|
-
f ? E =
|
|
19222
|
+
f ? E = tg(
|
|
19235
19223
|
f * this.resolution,
|
|
19236
19224
|
h,
|
|
19237
19225
|
m,
|
|
@@ -19242,7 +19230,7 @@ class ng extends Cn {
|
|
|
19242
19230
|
const x = E[C];
|
|
19243
19231
|
let T = 0, L = x.length;
|
|
19244
19232
|
if (g == null) {
|
|
19245
|
-
const R =
|
|
19233
|
+
const R = eg(
|
|
19246
19234
|
o.maxAngle,
|
|
19247
19235
|
x,
|
|
19248
19236
|
0,
|
|
@@ -19475,7 +19463,7 @@ class ng extends Cn {
|
|
|
19475
19463
|
}
|
|
19476
19464
|
i = this.textState_;
|
|
19477
19465
|
const l = t.getFont() || pl;
|
|
19478
|
-
|
|
19466
|
+
Ad(l);
|
|
19479
19467
|
const c = t.getScaleArray();
|
|
19480
19468
|
i.overflow = t.getOverflow(), i.font = l, i.maxAngle = t.getMaxAngle(), i.placement = t.getPlacement(), i.textAlign = t.getTextAlign(), i.repeat = t.getRepeat(), i.justify = t.getJustify(), i.textBaseline = t.getTextBaseline() || Qn, i.backgroundFill = t.getBackgroundFill(), i.backgroundStroke = t.getBackgroundStroke(), i.padding = t.getPadding() || Ue, i.scale = c === void 0 ? [1, 1] : c;
|
|
19481
19469
|
const h = t.getOffsetX(), u = t.getOffsetY(), d = t.getRotateWithView(), f = t.getKeepUpright(), g = t.getRotation();
|
|
@@ -19484,15 +19472,15 @@ class ng extends Cn {
|
|
|
19484
19472
|
this.declutterMode_ = t.getDeclutterMode(), this.declutterImageWithText_ = e;
|
|
19485
19473
|
}
|
|
19486
19474
|
}
|
|
19487
|
-
const
|
|
19475
|
+
const ng = {
|
|
19488
19476
|
Circle: ma,
|
|
19489
19477
|
Default: Cn,
|
|
19490
|
-
Image:
|
|
19491
|
-
LineString:
|
|
19478
|
+
Image: Jf,
|
|
19479
|
+
LineString: Qf,
|
|
19492
19480
|
Polygon: ma,
|
|
19493
|
-
Text:
|
|
19481
|
+
Text: ig
|
|
19494
19482
|
};
|
|
19495
|
-
class
|
|
19483
|
+
class sg {
|
|
19496
19484
|
/**
|
|
19497
19485
|
* @param {number} tolerance Tolerance.
|
|
19498
19486
|
* @param {import("../../extent.js").Extent} maxExtent Max extent.
|
|
@@ -19528,7 +19516,7 @@ class rg {
|
|
|
19528
19516
|
s === void 0 && (s = {}, this.buildersByZIndex_[i] = s);
|
|
19529
19517
|
let r = s[e];
|
|
19530
19518
|
if (r === void 0) {
|
|
19531
|
-
const o =
|
|
19519
|
+
const o = ng[e];
|
|
19532
19520
|
r = new o(
|
|
19533
19521
|
this.tolerance_,
|
|
19534
19522
|
this.maxExtent_,
|
|
@@ -19544,7 +19532,7 @@ function zl(n, t, e, i, s, r, o, a) {
|
|
|
19544
19532
|
const l = n[t + i], c = n[t + i + 1], h = n[e - 2 * i], u = n[e - 2 * i + 1];
|
|
19545
19533
|
let d, f, g, m, _, p, E, C, y = 0;
|
|
19546
19534
|
for (let x = t; x < e; x += i) {
|
|
19547
|
-
g = d, m = f, _ = void 0, p = void 0, x + i < e && (_ = n[x + i], p = n[x + i + 1]), r && x === t && (g = h, m = u), r && x === e - i && (_ = l, p = c), d = n[x], f = n[x + 1], [E, C] =
|
|
19535
|
+
g = d, m = f, _ = void 0, p = void 0, x + i < e && (_ = n[x + i], p = n[x + i + 1]), r && x === t && (g = h, m = u), r && x === e - i && (_ = l, p = c), d = n[x], f = n[x + 1], [E, C] = rg(
|
|
19548
19536
|
d,
|
|
19549
19537
|
f,
|
|
19550
19538
|
g,
|
|
@@ -19558,7 +19546,7 @@ function zl(n, t, e, i, s, r, o, a) {
|
|
|
19558
19546
|
}
|
|
19559
19547
|
return o.length != y && (o.length = y), o;
|
|
19560
19548
|
}
|
|
19561
|
-
function
|
|
19549
|
+
function rg(n, t, e, i, s, r, o) {
|
|
19562
19550
|
let a, l;
|
|
19563
19551
|
e !== void 0 && i !== void 0 ? (a = n - e, l = t - i) : s !== void 0 && r !== void 0 ? (a = s - n, l = r - t) : (a = 1, l = 0);
|
|
19564
19552
|
const c = Math.hypot(a, l), h = a / c, u = l / c;
|
|
@@ -19566,7 +19554,7 @@ function og(n, t, e, i, s, r, o) {
|
|
|
19566
19554
|
return [n + a * o, t + l * o];
|
|
19567
19555
|
if (s === void 0 || r === void 0)
|
|
19568
19556
|
return [n + a * o, t + l * o];
|
|
19569
|
-
const d =
|
|
19557
|
+
const d = Yh([n, t], [e, i], [s, r]);
|
|
19570
19558
|
if (Math.cos(d) > 0.998)
|
|
19571
19559
|
return [n + h * o, t + u * o];
|
|
19572
19560
|
const f = Math.cos(d / 2), g = Math.sin(d / 2), m = g * a + f * l, _ = -f * a + g * l, p = m * (1 / g), E = _ * (1 / g);
|
|
@@ -19587,7 +19575,7 @@ function Xl(n, t) {
|
|
|
19587
19575
|
}
|
|
19588
19576
|
return n;
|
|
19589
19577
|
}
|
|
19590
|
-
function
|
|
19578
|
+
function og(n, t, e, i, s, r, o, a, l, c, h, u, d = !0) {
|
|
19591
19579
|
let f = n[t], g = n[t + 1], m = 0, _ = 0, p = 0, E = 0;
|
|
19592
19580
|
function C() {
|
|
19593
19581
|
m = f, _ = g, t += i, f = n[t], g = n[t + 1], E += p, p = Math.sqrt((f - m) * (f - m) + (g - _) * (g - _));
|
|
@@ -19655,14 +19643,14 @@ const ya = new RegExp(
|
|
|
19655
19643
|
function ir(n, t) {
|
|
19656
19644
|
return t === "start" ? t = ya.test(n) ? "right" : "left" : t === "end" && (t = ya.test(n) ? "left" : "right"), is[t];
|
|
19657
19645
|
}
|
|
19658
|
-
function
|
|
19646
|
+
function ag(n, t, e) {
|
|
19659
19647
|
return e > 0 && n.push(`
|
|
19660
19648
|
`, ""), n.push(t, ""), n;
|
|
19661
19649
|
}
|
|
19662
|
-
function
|
|
19650
|
+
function lg(n, t, e) {
|
|
19663
19651
|
return e % 2 === 0 && (n += t), n;
|
|
19664
19652
|
}
|
|
19665
|
-
class
|
|
19653
|
+
class hg {
|
|
19666
19654
|
/**
|
|
19667
19655
|
* @param {number} resolution Resolution.
|
|
19668
19656
|
* @param {number} pixelRatio Pixel ratio.
|
|
@@ -19697,7 +19685,7 @@ class cg {
|
|
|
19697
19685
|
Array.isArray(t) ? t[0] : t,
|
|
19698
19686
|
l.textAlign || rn
|
|
19699
19687
|
), d = s && o.lineWidth ? o.lineWidth : 0, f = Array.isArray(t) ? t : String(t).split(`
|
|
19700
|
-
`).reduce(
|
|
19688
|
+
`).reduce(ag, []), { width: g, height: m, widths: _, heights: p, lineWidths: E } = bd(
|
|
19701
19689
|
l,
|
|
19702
19690
|
f
|
|
19703
19691
|
), C = g + d, y = [], x = (C + 2) * h[0], T = (m + d) * h[1], L = {
|
|
@@ -19834,7 +19822,7 @@ class cg {
|
|
|
19834
19822
|
o,
|
|
19835
19823
|
/** @type {Array<*>} */
|
|
19836
19824
|
a
|
|
19837
|
-
),
|
|
19825
|
+
), Od(
|
|
19838
19826
|
t,
|
|
19839
19827
|
s.canvasTransform,
|
|
19840
19828
|
r,
|
|
@@ -19920,7 +19908,7 @@ class cg {
|
|
|
19920
19908
|
2,
|
|
19921
19909
|
i,
|
|
19922
19910
|
this.pixelCoordinates_
|
|
19923
|
-
),
|
|
19911
|
+
), Tc(this.renderedTransform_, i));
|
|
19924
19912
|
let u = 0;
|
|
19925
19913
|
const d = s.length;
|
|
19926
19914
|
let f = 0, g;
|
|
@@ -20130,7 +20118,7 @@ class cg {
|
|
|
20130
20118
|
S[10]
|
|
20131
20119
|
);
|
|
20132
20120
|
R = /** @type {string|Array<string>} */
|
|
20133
|
-
S[11], Array.isArray(R) && (R = R.reduce(
|
|
20121
|
+
S[11], Array.isArray(R) && (R = R.reduce(lg, "")), v = /** @type {string} */
|
|
20134
20122
|
S[12];
|
|
20135
20123
|
const lo = [
|
|
20136
20124
|
/** @type {number} */
|
|
@@ -20148,9 +20136,9 @@ class cg {
|
|
|
20148
20136
|
];
|
|
20149
20137
|
let Pi;
|
|
20150
20138
|
bi in this.widths_ ? Pi = this.widths_[bi] : (Pi = {}, this.widths_[bi] = Pi);
|
|
20151
|
-
const ho =
|
|
20139
|
+
const ho = Hf(h, so, ro, 2), co = Math.abs(Oi[0]) * Ho(bi, R, Pi);
|
|
20152
20140
|
if (Hl || co <= ho) {
|
|
20153
|
-
const ht = this.textStates[v].textAlign, Ge = (ho - co) * ir(R, ht), bt =
|
|
20141
|
+
const ht = this.textStates[v].textAlign, Ge = (ho - co) * ir(R, ht), bt = og(
|
|
20154
20142
|
h,
|
|
20155
20143
|
so,
|
|
20156
20144
|
ro,
|
|
@@ -20358,11 +20346,11 @@ const Ye = [
|
|
|
20358
20346
|
"Image",
|
|
20359
20347
|
"Text",
|
|
20360
20348
|
"Default"
|
|
20361
|
-
], Wl = ["Image", "Text"],
|
|
20349
|
+
], Wl = ["Image", "Text"], cg = Ye.filter(
|
|
20362
20350
|
(n) => !Wl.includes(n)
|
|
20363
20351
|
);
|
|
20364
20352
|
let Yl = !1, Kl = !1;
|
|
20365
|
-
function
|
|
20353
|
+
function ug() {
|
|
20366
20354
|
let n = 0;
|
|
20367
20355
|
const t = (i) => {
|
|
20368
20356
|
const s = ct(1, 1, null, { willReadFrequently: i });
|
|
@@ -20378,7 +20366,7 @@ function dg() {
|
|
|
20378
20366
|
[t(void 0)]: void 0
|
|
20379
20367
|
}[n], Kl = !0;
|
|
20380
20368
|
}
|
|
20381
|
-
class
|
|
20369
|
+
class dg {
|
|
20382
20370
|
/**
|
|
20383
20371
|
* @param {import("../../extent.js").Extent} maxExtent Max extent for clipping. When a
|
|
20384
20372
|
* `maxExtent` was set on the Builder for this executor group, the same `maxExtent`
|
|
@@ -20416,7 +20404,7 @@ class fg {
|
|
|
20416
20404
|
const r = t[i];
|
|
20417
20405
|
for (const o in r) {
|
|
20418
20406
|
const a = r[o];
|
|
20419
|
-
s[o] = new
|
|
20407
|
+
s[o] = new hg(
|
|
20420
20408
|
this.resolution_,
|
|
20421
20409
|
this.pixelRatio_,
|
|
20422
20410
|
this.overlaps_,
|
|
@@ -20450,7 +20438,7 @@ class fg {
|
|
|
20450
20438
|
* @template T
|
|
20451
20439
|
*/
|
|
20452
20440
|
forEachFeatureAtCoordinate(t, e, i, s, r, o) {
|
|
20453
|
-
Kl === !1 &&
|
|
20441
|
+
Kl === !1 && ug(), s = Math.round(s);
|
|
20454
20442
|
const a = s * 2 + 1, l = ge(
|
|
20455
20443
|
this.hitDetectionTransform_,
|
|
20456
20444
|
s + 0.5,
|
|
@@ -20475,7 +20463,7 @@ class fg {
|
|
|
20475
20463
|
e * (this.renderBuffer_ + s),
|
|
20476
20464
|
u
|
|
20477
20465
|
));
|
|
20478
|
-
const d =
|
|
20466
|
+
const d = fg(s);
|
|
20479
20467
|
let f;
|
|
20480
20468
|
function g(x, T, L) {
|
|
20481
20469
|
const I = h.getImageData(
|
|
@@ -20541,7 +20529,7 @@ class fg {
|
|
|
20541
20529
|
*/
|
|
20542
20530
|
execute(t, e, i, s, r, o, a) {
|
|
20543
20531
|
const l = Object.keys(this.executorsByZIndex_).map(Number);
|
|
20544
|
-
l.sort(a ?
|
|
20532
|
+
l.sort(a ? yh : he), o = o || Ye;
|
|
20545
20533
|
const c = Ye.length;
|
|
20546
20534
|
for (let h = 0, u = l.length; h < u; ++h) {
|
|
20547
20535
|
const d = l[h].toString(), f = this.executorsByZIndex_[d];
|
|
@@ -20590,7 +20578,7 @@ class fg {
|
|
|
20590
20578
|
}
|
|
20591
20579
|
}
|
|
20592
20580
|
const nr = {};
|
|
20593
|
-
function
|
|
20581
|
+
function fg(n) {
|
|
20594
20582
|
if (nr[n] !== void 0)
|
|
20595
20583
|
return nr[n];
|
|
20596
20584
|
const t = n * 2 + 1, e = n * n, i = new Array(e + 1);
|
|
@@ -20607,7 +20595,7 @@ function gg(n) {
|
|
|
20607
20595
|
i[r] && s.push(...i[r]);
|
|
20608
20596
|
return nr[n] = s, s;
|
|
20609
20597
|
}
|
|
20610
|
-
class
|
|
20598
|
+
class gg extends Gl {
|
|
20611
20599
|
/**
|
|
20612
20600
|
* @param {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} context Context.
|
|
20613
20601
|
* @param {number} pixelRatio Pixel ratio.
|
|
@@ -20777,7 +20765,7 @@ class _g extends Gl {
|
|
|
20777
20765
|
)), !!St(this.extent_, t.getExtent())) {
|
|
20778
20766
|
if (this.fillState_ || this.strokeState_) {
|
|
20779
20767
|
this.fillState_ && this.setContextFillState_(this.fillState_), this.strokeState_ && this.setContextStrokeState_(this.strokeState_);
|
|
20780
|
-
const e =
|
|
20768
|
+
const e = Dc(
|
|
20781
20769
|
t,
|
|
20782
20770
|
this.transform_,
|
|
20783
20771
|
this.pixelCoordinates_
|
|
@@ -21218,10 +21206,10 @@ class _g extends Gl {
|
|
|
21218
21206
|
}
|
|
21219
21207
|
}
|
|
21220
21208
|
const $t = 0.5;
|
|
21221
|
-
function
|
|
21209
|
+
function _g(n, t, e, i, s, r, o, a, l) {
|
|
21222
21210
|
const c = l ? qn(s, l) : s, h = n[0] * $t, u = n[1] * $t, d = ct(h, u);
|
|
21223
21211
|
d.imageSmoothingEnabled = !1;
|
|
21224
|
-
const f = d.canvas, g = new
|
|
21212
|
+
const f = d.canvas, g = new gg(
|
|
21225
21213
|
d,
|
|
21226
21214
|
$t,
|
|
21227
21215
|
s,
|
|
@@ -21307,7 +21295,7 @@ function mg(n, t, e, i, s, r, o, a, l) {
|
|
|
21307
21295
|
}
|
|
21308
21296
|
return d.getImageData(0, 0, f.width, f.height);
|
|
21309
21297
|
}
|
|
21310
|
-
function
|
|
21298
|
+
function mg(n, t, e) {
|
|
21311
21299
|
const i = [];
|
|
21312
21300
|
if (e) {
|
|
21313
21301
|
const s = Math.floor(Math.round(n[0]) * $t), r = Math.floor(Math.round(n[1]) * $t), o = (st(s, 0, e.width - 1) + st(r, 0, e.height - 1) * e.width) * 4, a = e.data[o], l = e.data[o + 1], h = e.data[o + 2] + 256 * (l + 256 * a), u = Math.floor((256 * 256 * 256 - 1) / t.length);
|
|
@@ -21315,17 +21303,17 @@ function pg(n, t, e) {
|
|
|
21315
21303
|
}
|
|
21316
21304
|
return i;
|
|
21317
21305
|
}
|
|
21318
|
-
const
|
|
21319
|
-
Point:
|
|
21320
|
-
LineString:
|
|
21321
|
-
Polygon:
|
|
21322
|
-
MultiPoint:
|
|
21323
|
-
MultiLineString:
|
|
21324
|
-
MultiPolygon:
|
|
21325
|
-
GeometryCollection:
|
|
21326
|
-
Circle:
|
|
21306
|
+
const pg = 0.5, Bl = {
|
|
21307
|
+
Point: Ig,
|
|
21308
|
+
LineString: wg,
|
|
21309
|
+
Polygon: vg,
|
|
21310
|
+
MultiPoint: Sg,
|
|
21311
|
+
MultiLineString: Rg,
|
|
21312
|
+
MultiPolygon: Tg,
|
|
21313
|
+
GeometryCollection: Cg,
|
|
21314
|
+
Circle: Eg
|
|
21327
21315
|
};
|
|
21328
|
-
function
|
|
21316
|
+
function yg(n, t) {
|
|
21329
21317
|
return parseInt(j(n), 10) - parseInt(j(t), 10);
|
|
21330
21318
|
}
|
|
21331
21319
|
function Ea(n, t) {
|
|
@@ -21333,9 +21321,9 @@ function Ea(n, t) {
|
|
|
21333
21321
|
return e * e;
|
|
21334
21322
|
}
|
|
21335
21323
|
function Zl(n, t) {
|
|
21336
|
-
return
|
|
21324
|
+
return pg * n / t;
|
|
21337
21325
|
}
|
|
21338
|
-
function
|
|
21326
|
+
function Eg(n, t, e, i, s) {
|
|
21339
21327
|
const r = e.getFill(), o = e.getStroke();
|
|
21340
21328
|
if (r || o) {
|
|
21341
21329
|
const l = n.getBuilder(e.getZIndex(), "Circle");
|
|
@@ -21357,7 +21345,7 @@ function xa(n, t, e, i, s, r, o, a) {
|
|
|
21357
21345
|
const h = e.getFill();
|
|
21358
21346
|
h && h.loading() && l.push(h.ready());
|
|
21359
21347
|
const u = l.length > 0;
|
|
21360
|
-
return u && Promise.all(l).then(() => s(null)),
|
|
21348
|
+
return u && Promise.all(l).then(() => s(null)), xg(
|
|
21361
21349
|
n,
|
|
21362
21350
|
t,
|
|
21363
21351
|
e,
|
|
@@ -21367,7 +21355,7 @@ function xa(n, t, e, i, s, r, o, a) {
|
|
|
21367
21355
|
a
|
|
21368
21356
|
), u;
|
|
21369
21357
|
}
|
|
21370
|
-
function
|
|
21358
|
+
function xg(n, t, e, i, s, r, o) {
|
|
21371
21359
|
const a = e.getGeometryFunction()(t);
|
|
21372
21360
|
if (!a)
|
|
21373
21361
|
return;
|
|
@@ -21408,7 +21396,7 @@ function Ul(n, t, e, i, s) {
|
|
|
21408
21396
|
s
|
|
21409
21397
|
);
|
|
21410
21398
|
}
|
|
21411
|
-
function
|
|
21399
|
+
function Cg(n, t, e, i, s, r) {
|
|
21412
21400
|
const o = t.getGeometriesArray();
|
|
21413
21401
|
let a, l;
|
|
21414
21402
|
for (a = 0, l = o.length; a < l; ++a) {
|
|
@@ -21423,7 +21411,7 @@ function wg(n, t, e, i, s, r) {
|
|
|
21423
21411
|
);
|
|
21424
21412
|
}
|
|
21425
21413
|
}
|
|
21426
|
-
function
|
|
21414
|
+
function wg(n, t, e, i, s) {
|
|
21427
21415
|
const r = e.getStroke();
|
|
21428
21416
|
if (r) {
|
|
21429
21417
|
const a = n.getBuilder(
|
|
@@ -21438,7 +21426,7 @@ function Rg(n, t, e, i, s) {
|
|
|
21438
21426
|
a.setTextStyle(o), a.drawText(t, i, s);
|
|
21439
21427
|
}
|
|
21440
21428
|
}
|
|
21441
|
-
function
|
|
21429
|
+
function Rg(n, t, e, i, s) {
|
|
21442
21430
|
const r = e.getStroke();
|
|
21443
21431
|
if (r) {
|
|
21444
21432
|
const a = n.getBuilder(
|
|
@@ -21453,7 +21441,7 @@ function Tg(n, t, e, i, s) {
|
|
|
21453
21441
|
a.setTextStyle(o), a.drawText(t, i, s);
|
|
21454
21442
|
}
|
|
21455
21443
|
}
|
|
21456
|
-
function
|
|
21444
|
+
function Tg(n, t, e, i, s) {
|
|
21457
21445
|
const r = e.getFill(), o = e.getStroke();
|
|
21458
21446
|
if (o || r) {
|
|
21459
21447
|
const l = n.getBuilder(e.getZIndex(), "Polygon");
|
|
@@ -21465,7 +21453,7 @@ function Ig(n, t, e, i, s) {
|
|
|
21465
21453
|
l.setTextStyle(a), l.drawText(t, i, s);
|
|
21466
21454
|
}
|
|
21467
21455
|
}
|
|
21468
|
-
function
|
|
21456
|
+
function Ig(n, t, e, i, s, r) {
|
|
21469
21457
|
const o = e.getImage(), a = e.getText(), l = a && a.getText(), c = r && o && l ? {} : void 0;
|
|
21470
21458
|
if (o) {
|
|
21471
21459
|
if (o.getImageState() != K.LOADED)
|
|
@@ -21478,7 +21466,7 @@ function Sg(n, t, e, i, s, r) {
|
|
|
21478
21466
|
h.setTextStyle(a, c), h.drawText(t, i, s);
|
|
21479
21467
|
}
|
|
21480
21468
|
}
|
|
21481
|
-
function
|
|
21469
|
+
function Sg(n, t, e, i, s, r) {
|
|
21482
21470
|
const o = e.getImage(), a = o && o.getOpacity() !== 0, l = e.getText(), c = l && l.getText(), h = r && a && c ? {} : void 0;
|
|
21483
21471
|
if (a) {
|
|
21484
21472
|
if (o.getImageState() != K.LOADED)
|
|
@@ -21491,7 +21479,7 @@ function vg(n, t, e, i, s, r) {
|
|
|
21491
21479
|
u.setTextStyle(l, h), u.drawText(t, i, s);
|
|
21492
21480
|
}
|
|
21493
21481
|
}
|
|
21494
|
-
function
|
|
21482
|
+
function vg(n, t, e, i, s) {
|
|
21495
21483
|
const r = e.getFill(), o = e.getStroke();
|
|
21496
21484
|
if (r || o) {
|
|
21497
21485
|
const l = n.getBuilder(e.getZIndex(), "Polygon");
|
|
@@ -21503,7 +21491,7 @@ function Lg(n, t, e, i, s) {
|
|
|
21503
21491
|
l.setTextStyle(a), l.drawText(t, i, s);
|
|
21504
21492
|
}
|
|
21505
21493
|
}
|
|
21506
|
-
class
|
|
21494
|
+
class Lg extends Ol {
|
|
21507
21495
|
/**
|
|
21508
21496
|
* @param {import("../../layer/BaseVector.js").default} vectorLayer Vector layer.
|
|
21509
21497
|
*/
|
|
@@ -21535,7 +21523,7 @@ class Ag extends Ol {
|
|
|
21535
21523
|
L,
|
|
21536
21524
|
c,
|
|
21537
21525
|
m,
|
|
21538
|
-
i === void 0 ? Ye : i ? Wl :
|
|
21526
|
+
i === void 0 ? Ye : i ? Wl : cg,
|
|
21539
21527
|
i ? d && e.declutter[d] : void 0
|
|
21540
21528
|
);
|
|
21541
21529
|
} while (++T < x);
|
|
@@ -21657,7 +21645,7 @@ class Ag extends Ol {
|
|
|
21657
21645
|
), _ -= p;
|
|
21658
21646
|
}
|
|
21659
21647
|
const m = Hn();
|
|
21660
|
-
this.hitDetectionImageData_ =
|
|
21648
|
+
this.hitDetectionImageData_ = _g(
|
|
21661
21649
|
i,
|
|
21662
21650
|
h,
|
|
21663
21651
|
this.renderedFeatures_,
|
|
@@ -21670,7 +21658,7 @@ class Ag extends Ol {
|
|
|
21670
21658
|
);
|
|
21671
21659
|
}
|
|
21672
21660
|
e(
|
|
21673
|
-
|
|
21661
|
+
mg(t, this.renderedFeatures_, this.hitDetectionImageData_)
|
|
21674
21662
|
);
|
|
21675
21663
|
});
|
|
21676
21664
|
}
|
|
@@ -21750,7 +21738,7 @@ class Ag extends Ol {
|
|
|
21750
21738
|
this.animatingOrInteracting_ = !1;
|
|
21751
21739
|
const l = t.extent, c = t.viewState, h = c.projection, u = c.resolution, d = t.pixelRatio, f = e.getRevision(), g = e.getRenderBuffer();
|
|
21752
21740
|
let m = e.getRenderOrder();
|
|
21753
|
-
m === void 0 && (m =
|
|
21741
|
+
m === void 0 && (m = yg);
|
|
21754
21742
|
const _ = c.center.slice(), p = as(
|
|
21755
21743
|
l,
|
|
21756
21744
|
g * u
|
|
@@ -21779,7 +21767,7 @@ class Ag extends Ol {
|
|
|
21779
21767
|
if (this.ready && this.renderedResolution_ == u && this.renderedPixelRatio_ === d && this.renderedRevision_ == f && this.renderedRenderOrder_ == m && this.renderedFrameDeclutter_ === !!t.declutter && Xi(this.wrappedRenderedExtent_, p))
|
|
21780
21768
|
return Fe(this.renderedExtent_, E) || (this.hitDetectionImageData_ = null, this.renderedExtent_ = E), this.renderedCenter_ = _, this.replayGroupChanged = !1, !0;
|
|
21781
21769
|
this.replayGroup_ = null;
|
|
21782
|
-
const T = new
|
|
21770
|
+
const T = new sg(
|
|
21783
21771
|
Zl(u, d),
|
|
21784
21772
|
p,
|
|
21785
21773
|
u,
|
|
@@ -21791,7 +21779,7 @@ class Ag extends Ol {
|
|
|
21791
21779
|
const O = C[M], X = qn(O, h);
|
|
21792
21780
|
i.loadFeatures(
|
|
21793
21781
|
X,
|
|
21794
|
-
|
|
21782
|
+
wc(u, h),
|
|
21795
21783
|
L
|
|
21796
21784
|
);
|
|
21797
21785
|
}
|
|
@@ -21827,7 +21815,7 @@ class Ag extends Ol {
|
|
|
21827
21815
|
for (let M = 0, A = P.length; M < A; ++M)
|
|
21828
21816
|
k(P[M], M);
|
|
21829
21817
|
this.renderedFeatures_ = P, this.ready = v;
|
|
21830
|
-
const D = T.finish(), J = new
|
|
21818
|
+
const D = T.finish(), J = new dg(
|
|
21831
21819
|
p,
|
|
21832
21820
|
u,
|
|
21833
21821
|
d,
|
|
@@ -21878,7 +21866,7 @@ class Ag extends Ol {
|
|
|
21878
21866
|
return l;
|
|
21879
21867
|
}
|
|
21880
21868
|
}
|
|
21881
|
-
class
|
|
21869
|
+
class Ag extends Il {
|
|
21882
21870
|
/**
|
|
21883
21871
|
* @param {Options<VectorSourceType, FeatureType>} [options] Options.
|
|
21884
21872
|
*/
|
|
@@ -21889,10 +21877,10 @@ class Mg extends Il {
|
|
|
21889
21877
|
* @override
|
|
21890
21878
|
*/
|
|
21891
21879
|
createRenderer() {
|
|
21892
|
-
return new
|
|
21880
|
+
return new Lg(this);
|
|
21893
21881
|
}
|
|
21894
21882
|
}
|
|
21895
|
-
const
|
|
21883
|
+
const Mg = ({
|
|
21896
21884
|
data: n,
|
|
21897
21885
|
map: t,
|
|
21898
21886
|
pointIconSrc: e
|
|
@@ -21930,8 +21918,8 @@ const bg = ({
|
|
|
21930
21918
|
font: '700 0.875rem "Open Sans", "Arial", sans-serif'
|
|
21931
21919
|
})
|
|
21932
21920
|
})), s[h];
|
|
21933
|
-
}, o = () => new
|
|
21934
|
-
source: new
|
|
21921
|
+
}, o = () => new Ag({
|
|
21922
|
+
source: new $f({
|
|
21935
21923
|
distance: Number.parseInt(40, 10),
|
|
21936
21924
|
minDistance: Number.parseInt(20, 10),
|
|
21937
21925
|
source: new Nl({
|
|
@@ -21945,18 +21933,27 @@ const bg = ({
|
|
|
21945
21933
|
oh(() => {
|
|
21946
21934
|
t.value && n.value && (t.value.addLayer(o()), a());
|
|
21947
21935
|
});
|
|
21948
|
-
},
|
|
21936
|
+
}, bg = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2058_7122)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2012C10.9%2012%2010%2011.1%2010%2010C10%208.9%2010.9%208%2012%208C13.1%208%2014%208.9%2014%2010C14%2011.1%2013.1%2012%2012%2012ZM12%202C16.2%202%2020%205.22%2020%2010.2C20%2013.52%2017.33%2017.45%2012%2022C6.67%2017.45%204%2013.52%204%2010.2C4%205.22%207.8%202%2012%202Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2058_7122'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", sr = "europeana-map-map", Dg = {
|
|
21949
21937
|
__name: "EuropeanaMap",
|
|
21950
|
-
props:
|
|
21938
|
+
props: mh,
|
|
21951
21939
|
setup(n) {
|
|
21952
|
-
const t = n,
|
|
21953
|
-
|
|
21940
|
+
const t = n, e = Tr(null);
|
|
21941
|
+
if (t.json)
|
|
21942
|
+
e.value = JSON.parse(t.json);
|
|
21943
|
+
else if (t.url)
|
|
21944
|
+
_h(t.url).json().then((s) => {
|
|
21945
|
+
e.value = s.data.value;
|
|
21946
|
+
});
|
|
21947
|
+
else
|
|
21948
|
+
throw new Error("No data JSON or URL supplied in props.");
|
|
21949
|
+
const { map: i } = Bf({ target: sr });
|
|
21950
|
+
return Mg({ data: e, map: i, pointIconSrc: bg }), (s, r) => (ah(), lh("div", {
|
|
21954
21951
|
id: sr,
|
|
21955
21952
|
class: hh(sr)
|
|
21956
21953
|
}));
|
|
21957
21954
|
}
|
|
21958
21955
|
};
|
|
21959
21956
|
export {
|
|
21960
|
-
|
|
21957
|
+
Dg as default
|
|
21961
21958
|
};
|
|
21962
21959
|
//# sourceMappingURL=europeana-map.component.js.map
|