@hybridcore/ui 1.5.30 → 1.5.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Source-CnCcu5UP.js → Source-BESIjd9X.js} +770 -761
- package/dist/{Text-BT5kPHOo.js → Text-Cl1H4b0h.js} +47 -43
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +42 -57
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/geometry/map-overlay.js +1 -1
- package/dist/components/geometry-picker/index.js +31 -32
- package/dist/components/geometry-picker/kml/index.js +7 -7
- package/dist/components/geometry-picker/map/logic.js +2025 -680
- package/dist/components/geometry-picker/map/style.js +1 -1
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +2 -2
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +122 -135
- package/dist/components/map/helpers/mapbox.js +1 -1
- package/dist/components/map/helpers/ol.js +6 -6
- package/dist/components/map/logic.js +3 -3
- package/dist/components/map/styled.js +31 -41
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/{has-9_asnBxn.js → has-DNclCIDV.js} +99 -81
- package/dist/main.d.ts +2 -2
- package/dist/{ol-9hySGI6D.js → ol-lGwSyEIV.js} +331 -322
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import li from "lodash";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { E as Se, F as ls, G as hr, y as ft, H as cr, R as Wt, I as ko, J as ni, K as yi, N as Go, O as dr, Q as ur, T as fr, n as We, U as Ut, V as ae, g as Yo, W as st, f as Xo, X as he, Y as ws, Z as Wo, _ as hi, $ as gr, a0 as _r, a1 as Uo, L as _n, r as mn, a2 as mr, a3 as pr, a4 as yr, a5 as Bo, a6 as Ko, a7 as zn, b as Ls, a8 as It, a9 as Zi, o as zt, aa as xr, x as Vn, ab as xi, ac as Er, ad as zo, ae as vs, B as hs, h as Hn, af as Ps, ag as Tr, w as ci, C as Vo, ah as Ei, ai as Ti, aj as Ho, ak as Zo, al as qo, am as ke, an as jo, ao as Jo, ap as Cr, aq as Qo, ar as $o, as as Zn, at as ta, au as ea, av as ia, P as Vt, aw as na, ax as sa, ay as ra, az as oa, aA as aa, aB as la, aC as As, aD as qn, aE as ha, aF as ca, aG as da, aH as ua, aI as fa, aJ as ga, u as Ji, aK as _a, aL as Sr, S as ma, aM as pa, aN as ti, c as ya, j as pn, aO as xa, aP as Ea, aQ as Ta, aR as Ca, aS as si, aT as Sa, aU as Ra, aV as Ia, aW as wa, i as La, aX as yn, t as va, q as Rr } from "./Source-BESIjd9X.js";
|
|
3
|
+
import { B as Ci, A as Pa, h as ze, D as Ir, d as tt, e as di, j as Z, O as ui, u as it, a as ot, b as wr, E as W, g as q, T as Lr, P as vr, V as cs, i as Re, F as Si, y as Aa, M as Pr, z as Fa, c as fi, C as Ar, G as Da, p as An, H as Oa, x as Qi, J as Ma, v as St, f as V, s as Na, q as ba, K as $i, L as ka, t as Ga } from "./has-DNclCIDV.js";
|
|
4
|
+
import { b as Fr, d as Ya, e as xn, r as Xa, f as jn, g as ds, h as Fs, i as Wa, j as Ds, k as Yi, l as Os, m as lt, n as Jn, o as Mt, p as Ua, q as En, t as Ba, S as _t, F as Ve, I as Ht, a as tn, T as Ri, R as Ka, C as za, u as Va, v as Ha, w as ce, x as Rt, y as en, z as nn, A as Bt, B as Kt, D as sn, E as rn, G as on, H as xe, J as gi, K as an, L as Dr, M as Za, N as qa, O as ja, P as Ms } from "./Text-Cl1H4b0h.js";
|
|
5
5
|
import { Feature as me } from "ol";
|
|
6
|
-
import { getNumberCoordinates as us, validate as Or, parse as Mr, getGeometries as Qn, findPlacemarkCoordinates as
|
|
7
|
-
import { defaultStyle as Nr, selectStyleFunction as
|
|
8
|
-
import { parse as
|
|
6
|
+
import { getNumberCoordinates as us, validate as Or, parse as Mr, getGeometries as Qn, findPlacemarkCoordinates as Ja, build as Qa } from "./components/map/helpers/kml.js";
|
|
7
|
+
import { defaultStyle as Nr, selectStyleFunction as $a } from "./components/map/styled.js";
|
|
8
|
+
import { parse as tl, findCoordinate as el } from "./components/map/helpers/wkt.js";
|
|
9
9
|
const gt = {
|
|
10
10
|
/**
|
|
11
11
|
* Triggered when an item is added to the collection.
|
|
@@ -203,10 +203,10 @@ class Ot extends Ci {
|
|
|
203
203
|
assertUnique_(t, e) {
|
|
204
204
|
for (let i = 0, n = this.array_.length; i < n; ++i)
|
|
205
205
|
if (this.array_[i] === t && i !== e)
|
|
206
|
-
throw new
|
|
206
|
+
throw new Pa(58);
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
class
|
|
209
|
+
class il extends Ir {
|
|
210
210
|
/**
|
|
211
211
|
* @param {import("../Map.js").default} map Map.
|
|
212
212
|
*/
|
|
@@ -344,10 +344,10 @@ class el extends Ir {
|
|
|
344
344
|
* @protected
|
|
345
345
|
*/
|
|
346
346
|
scheduleExpireIconCache(t) {
|
|
347
|
-
Fr.canExpireCache() && t.postRenderFunctions.push(
|
|
347
|
+
Fr.canExpireCache() && t.postRenderFunctions.push(nl);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function nl(r, t) {
|
|
351
351
|
Fr.expire();
|
|
352
352
|
}
|
|
353
353
|
class br extends ze {
|
|
@@ -362,13 +362,13 @@ class br extends ze {
|
|
|
362
362
|
super(t), this.inversePixelTransform = e, this.frameState = i, this.context = n;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
class
|
|
365
|
+
class sl extends il {
|
|
366
366
|
/**
|
|
367
367
|
* @param {import("../Map.js").default} map Map.
|
|
368
368
|
*/
|
|
369
369
|
constructor(t) {
|
|
370
370
|
super(t), this.fontChangeListenerKey_ = Z(
|
|
371
|
-
|
|
371
|
+
Ya,
|
|
372
372
|
ui.PROPERTYCHANGE,
|
|
373
373
|
t.redrawText.bind(t)
|
|
374
374
|
), this.element_ = document.createElement("div");
|
|
@@ -422,7 +422,7 @@ class nl extends el {
|
|
|
422
422
|
h
|
|
423
423
|
));
|
|
424
424
|
}
|
|
425
|
-
this.flushDeclutterItems(t),
|
|
425
|
+
this.flushDeclutterItems(t), Xa(this.element_, this.children_), this.dispatchRenderEvent(Wt.POSTCOMPOSE, t), this.renderedVisible_ || (this.element_.style.display = "", this.renderedVisible_ = !0), this.scheduleExpireIconCache(t);
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
428
|
* @param {import("../Map.js").FrameState} frameState Frame state.
|
|
@@ -446,7 +446,7 @@ class oe extends ze {
|
|
|
446
446
|
const Fn = {
|
|
447
447
|
LAYERS: "layers"
|
|
448
448
|
};
|
|
449
|
-
class He extends
|
|
449
|
+
class He extends ko {
|
|
450
450
|
/**
|
|
451
451
|
* @param {Options} [options] Layer options.
|
|
452
452
|
*/
|
|
@@ -724,7 +724,7 @@ const J = {
|
|
|
724
724
|
POINTERLEAVE: "pointerleave",
|
|
725
725
|
POINTERCANCEL: "pointercancel"
|
|
726
726
|
};
|
|
727
|
-
class
|
|
727
|
+
class rl extends Lr {
|
|
728
728
|
/**
|
|
729
729
|
* @param {import("./Map.js").default} map The map with the viewport to listen to events on.
|
|
730
730
|
* @param {number} [moveTolerance] The minimal distance the pointer must travel to trigger a move.
|
|
@@ -980,7 +980,7 @@ const re = {
|
|
|
980
980
|
TARGET: "target",
|
|
981
981
|
VIEW: "view"
|
|
982
982
|
}, ln = 1 / 0;
|
|
983
|
-
class
|
|
983
|
+
class ol {
|
|
984
984
|
/**
|
|
985
985
|
* @param {function(T): number} priorityFunction Priority function.
|
|
986
986
|
* @param {function(T): string} keyFunction Key function.
|
|
@@ -1128,7 +1128,7 @@ const b = {
|
|
|
1128
1128
|
ERROR: 3,
|
|
1129
1129
|
EMPTY: 4
|
|
1130
1130
|
};
|
|
1131
|
-
class
|
|
1131
|
+
class al extends ol {
|
|
1132
1132
|
/**
|
|
1133
1133
|
* @param {PriorityFunction} tilePriorityFunction Tile priority function.
|
|
1134
1134
|
* @param {function(): ?} tileChangeCallback Function called on each tile change event.
|
|
@@ -1194,7 +1194,7 @@ class ol extends rl {
|
|
|
1194
1194
|
this.dequeue()[0], o = s.getKey(), n = s.getState(), n === b.IDLE && !(o in this.tilesLoadingKeys_) && (this.tilesLoadingKeys_[o] = !0, ++this.tilesLoading_, ++i, s.load());
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function ll(r, t, e, i, n) {
|
|
1198
1198
|
if (!r || !(e in r.wantedTiles) || !r.wantedTiles[e][t.getKey()])
|
|
1199
1199
|
return ln;
|
|
1200
1200
|
const s = r.viewState.center, o = i[0] - s[0], a = i[1] - s[1];
|
|
@@ -1259,7 +1259,7 @@ class fs extends Ci {
|
|
|
1259
1259
|
this.target_ = typeof t == "string" ? document.getElementById(t) : t;
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
|
-
class
|
|
1262
|
+
class hl extends fs {
|
|
1263
1263
|
/**
|
|
1264
1264
|
* @param {Options} [options] Attribution options.
|
|
1265
1265
|
*/
|
|
@@ -1309,7 +1309,7 @@ class ll extends fs {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
const e = this.collectSourceAttributions_(t), i = e.length > 0;
|
|
1311
1311
|
if (this.renderedVisible_ != i && (this.element.style.display = i ? "" : "none", this.renderedVisible_ = i), !Re(e, this.renderedAttributions_)) {
|
|
1312
|
-
|
|
1312
|
+
Wa(this.ulElement_);
|
|
1313
1313
|
for (let n = 0, s = e.length; n < s; ++n) {
|
|
1314
1314
|
const o = document.createElement("li");
|
|
1315
1315
|
o.innerHTML = e[n], this.ulElement_.appendChild(o);
|
|
@@ -1374,7 +1374,7 @@ class ll extends fs {
|
|
|
1374
1374
|
this.updateElement_(t.frameState);
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
|
-
class
|
|
1377
|
+
class cl extends fs {
|
|
1378
1378
|
/**
|
|
1379
1379
|
* @param {Options} [options] Rotate options.
|
|
1380
1380
|
*/
|
|
@@ -1437,7 +1437,7 @@ class hl extends fs {
|
|
|
1437
1437
|
this.rotation_ = i;
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
|
-
class
|
|
1440
|
+
class dl extends fs {
|
|
1441
1441
|
/**
|
|
1442
1442
|
* @param {Options} [options] Zoom options.
|
|
1443
1443
|
*/
|
|
@@ -1495,7 +1495,7 @@ class cl extends fs {
|
|
|
1495
1495
|
function kr(r) {
|
|
1496
1496
|
r = r || {};
|
|
1497
1497
|
const t = new Ot();
|
|
1498
|
-
return (r.zoom !== void 0 ? r.zoom : !0) && t.push(new
|
|
1498
|
+
return (r.zoom !== void 0 ? r.zoom : !0) && t.push(new dl(r.zoomOptions)), (r.rotate !== void 0 ? r.rotate : !0) && t.push(new cl(r.rotateOptions)), (r.attribution !== void 0 ? r.attribution : !0) && t.push(new hl(r.attributionOptions)), t;
|
|
1499
1499
|
}
|
|
1500
1500
|
const bs = {
|
|
1501
1501
|
ACTIVE: "active"
|
|
@@ -1555,13 +1555,13 @@ class Ii extends Ci {
|
|
|
1555
1555
|
this.map_ = t;
|
|
1556
1556
|
}
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function ul(r, t, e) {
|
|
1559
1559
|
const i = r.getCenterInternal();
|
|
1560
1560
|
if (i) {
|
|
1561
1561
|
const n = [i[0] + t[0], i[1] + t[1]];
|
|
1562
1562
|
r.animateInternal({
|
|
1563
1563
|
duration: e !== void 0 ? e : 250,
|
|
1564
|
-
easing:
|
|
1564
|
+
easing: Go,
|
|
1565
1565
|
center: r.getConstrainedCenter(n)
|
|
1566
1566
|
});
|
|
1567
1567
|
}
|
|
@@ -1578,7 +1578,7 @@ function gs(r, t, e, i) {
|
|
|
1578
1578
|
easing: yi
|
|
1579
1579
|
});
|
|
1580
1580
|
}
|
|
1581
|
-
class
|
|
1581
|
+
class fl extends Ii {
|
|
1582
1582
|
/**
|
|
1583
1583
|
* @param {Options} [options] Options.
|
|
1584
1584
|
*/
|
|
@@ -1718,25 +1718,25 @@ const Vd = function(r) {
|
|
|
1718
1718
|
r.originalEvent
|
|
1719
1719
|
);
|
|
1720
1720
|
return t.altKey && !(t.metaKey || t.ctrlKey) && !t.shiftKey;
|
|
1721
|
-
},
|
|
1721
|
+
}, gl = function(r) {
|
|
1722
1722
|
const t = (
|
|
1723
1723
|
/** @type {KeyboardEvent|MouseEvent|TouchEvent} */
|
|
1724
1724
|
r.originalEvent
|
|
1725
1725
|
);
|
|
1726
1726
|
return t.altKey && !(t.metaKey || t.ctrlKey) && t.shiftKey;
|
|
1727
|
-
},
|
|
1727
|
+
}, _l = function(r) {
|
|
1728
1728
|
const t = r.map.getTargetElement(), e = r.map.getOwnerDocument().activeElement;
|
|
1729
1729
|
return t.contains(e);
|
|
1730
1730
|
}, Gr = function(r) {
|
|
1731
|
-
return r.map.getTargetElement().hasAttribute("tabindex") ?
|
|
1732
|
-
},
|
|
1731
|
+
return r.map.getTargetElement().hasAttribute("tabindex") ? _l(r) : !0;
|
|
1732
|
+
}, ml = di, Hd = function(r) {
|
|
1733
1733
|
return r.type == J.CLICK;
|
|
1734
1734
|
}, Yr = function(r) {
|
|
1735
1735
|
const t = (
|
|
1736
1736
|
/** @type {MouseEvent} */
|
|
1737
1737
|
r.originalEvent
|
|
1738
1738
|
);
|
|
1739
|
-
return t.button == 0 && !(
|
|
1739
|
+
return t.button == 0 && !(Aa && Pr && t.ctrlKey);
|
|
1740
1740
|
}, Zd = Si, qd = function(r) {
|
|
1741
1741
|
return r.type == J.SINGLECLICK;
|
|
1742
1742
|
}, Xr = function(r) {
|
|
@@ -1745,13 +1745,13 @@ const Vd = function(r) {
|
|
|
1745
1745
|
r.originalEvent
|
|
1746
1746
|
);
|
|
1747
1747
|
return !t.altKey && !(t.metaKey || t.ctrlKey) && !t.shiftKey;
|
|
1748
|
-
},
|
|
1748
|
+
}, pl = function(r) {
|
|
1749
1749
|
const t = (
|
|
1750
1750
|
/** @type {KeyboardEvent|MouseEvent|TouchEvent} */
|
|
1751
1751
|
r.originalEvent
|
|
1752
1752
|
);
|
|
1753
1753
|
return Pr ? t.metaKey : t.ctrlKey;
|
|
1754
|
-
},
|
|
1754
|
+
}, yl = function(r) {
|
|
1755
1755
|
const t = (
|
|
1756
1756
|
/** @type {KeyboardEvent|MouseEvent|TouchEvent} */
|
|
1757
1757
|
r.originalEvent
|
|
@@ -1775,14 +1775,14 @@ const Vd = function(r) {
|
|
|
1775
1775
|
r.originalEvent
|
|
1776
1776
|
);
|
|
1777
1777
|
return ot(t !== void 0, 56), t.pointerType == "mouse";
|
|
1778
|
-
},
|
|
1778
|
+
}, xl = function(r) {
|
|
1779
1779
|
const t = (
|
|
1780
1780
|
/** @type {import("../MapBrowserEvent").default} */
|
|
1781
1781
|
r.originalEvent
|
|
1782
1782
|
);
|
|
1783
1783
|
return ot(t !== void 0, 56), t.isPrimary && t.button === 0;
|
|
1784
1784
|
};
|
|
1785
|
-
class
|
|
1785
|
+
class El extends wi {
|
|
1786
1786
|
/**
|
|
1787
1787
|
* @param {Options} [options] Options.
|
|
1788
1788
|
*/
|
|
@@ -1790,7 +1790,7 @@ class xl extends wi {
|
|
|
1790
1790
|
super({
|
|
1791
1791
|
stopDown: Si
|
|
1792
1792
|
}), t = t || {}, this.kinetic_ = t.kinetic, this.lastCentroid = null, this.lastPointersCount_, this.panning_ = !1;
|
|
1793
|
-
const e = t.condition ? t.condition : ts(Xr,
|
|
1793
|
+
const e = t.condition ? t.condition : ts(Xr, xl);
|
|
1794
1794
|
this.condition_ = t.onFocusOnly ? ts(Gr, e) : e, this.noKinetic_ = !1;
|
|
1795
1795
|
}
|
|
1796
1796
|
/**
|
|
@@ -1848,14 +1848,14 @@ class xl extends wi {
|
|
|
1848
1848
|
return !1;
|
|
1849
1849
|
}
|
|
1850
1850
|
}
|
|
1851
|
-
class
|
|
1851
|
+
class Tl extends wi {
|
|
1852
1852
|
/**
|
|
1853
1853
|
* @param {Options} [options] Options.
|
|
1854
1854
|
*/
|
|
1855
1855
|
constructor(t) {
|
|
1856
1856
|
t = t || {}, super({
|
|
1857
1857
|
stopDown: Si
|
|
1858
|
-
}), this.condition_ = t.condition ? t.condition :
|
|
1858
|
+
}), this.condition_ = t.condition ? t.condition : gl, this.lastAngle_ = void 0, this.duration_ = t.duration !== void 0 ? t.duration : 250;
|
|
1859
1859
|
}
|
|
1860
1860
|
/**
|
|
1861
1861
|
* Handle pointer drag events.
|
|
@@ -1891,7 +1891,7 @@ class El extends wi {
|
|
|
1891
1891
|
return Dn(t) && Yr(t) && this.condition_(t) ? (t.map.getView().beginInteraction(), this.lastAngle_ = void 0, !0) : !1;
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
1894
|
-
class
|
|
1894
|
+
class Cl extends Ir {
|
|
1895
1895
|
/**
|
|
1896
1896
|
* @param {string} className CSS class name.
|
|
1897
1897
|
*/
|
|
@@ -1987,12 +1987,12 @@ class On extends ze {
|
|
|
1987
1987
|
super(t), this.coordinate = e, this.mapBrowserEvent = i;
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
|
-
class
|
|
1990
|
+
class Sl extends wi {
|
|
1991
1991
|
/**
|
|
1992
1992
|
* @param {Options} [options] Options.
|
|
1993
1993
|
*/
|
|
1994
1994
|
constructor(t) {
|
|
1995
|
-
super(), this.on, this.once, this.un, t = t || {}, this.box_ = new
|
|
1995
|
+
super(), this.on, this.once, this.un, t = t || {}, this.box_ = new Cl(t.className || "ol-dragbox"), this.minArea_ = t.minArea !== void 0 ? t.minArea : 64, t.onBoxEnd && (this.onBoxEnd = t.onBoxEnd), this.startPixel_ = null, this.condition_ = t.condition ? t.condition : Yr, this.boxEndCondition_ = t.boxEndCondition ? t.boxEndCondition : this.defaultBoxEndCondition;
|
|
1996
1996
|
}
|
|
1997
1997
|
/**
|
|
1998
1998
|
* The default condition for determining whether the boxend event
|
|
@@ -2069,13 +2069,13 @@ class Cl extends wi {
|
|
|
2069
2069
|
onBoxEnd(t) {
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
|
-
class
|
|
2072
|
+
class Rl extends Sl {
|
|
2073
2073
|
/**
|
|
2074
2074
|
* @param {Options} [options] Options.
|
|
2075
2075
|
*/
|
|
2076
2076
|
constructor(t) {
|
|
2077
2077
|
t = t || {};
|
|
2078
|
-
const e = t.condition ? t.condition :
|
|
2078
|
+
const e = t.condition ? t.condition : yl;
|
|
2079
2079
|
super({
|
|
2080
2080
|
condition: e,
|
|
2081
2081
|
className: t.className || "ol-dragzoom",
|
|
@@ -2108,7 +2108,7 @@ const ye = {
|
|
|
2108
2108
|
RIGHT: "ArrowRight",
|
|
2109
2109
|
DOWN: "ArrowDown"
|
|
2110
2110
|
};
|
|
2111
|
-
class
|
|
2111
|
+
class Il extends Ii {
|
|
2112
2112
|
/**
|
|
2113
2113
|
* @param {Options} [options] Options.
|
|
2114
2114
|
*/
|
|
@@ -2136,19 +2136,19 @@ class Rl extends Ii {
|
|
|
2136
2136
|
let l = 0, h = 0;
|
|
2137
2137
|
n == ye.DOWN ? h = -a : n == ye.LEFT ? l = -a : n == ye.RIGHT ? l = a : h = a;
|
|
2138
2138
|
const c = [l, h];
|
|
2139
|
-
ur(c, o.getRotation()),
|
|
2139
|
+
ur(c, o.getRotation()), ul(o, c, this.duration_), i.preventDefault(), e = !0;
|
|
2140
2140
|
}
|
|
2141
2141
|
}
|
|
2142
2142
|
return !e;
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
|
-
class
|
|
2145
|
+
class wl extends Ii {
|
|
2146
2146
|
/**
|
|
2147
2147
|
* @param {Options} [options] Options.
|
|
2148
2148
|
*/
|
|
2149
2149
|
constructor(t) {
|
|
2150
2150
|
super(), t = t || {}, this.condition_ = t.condition ? t.condition : function(e) {
|
|
2151
|
-
return !
|
|
2151
|
+
return !pl(e) && Wr(e);
|
|
2152
2152
|
}, this.delta_ = t.delta ? t.delta : 1, this.duration_ = t.duration !== void 0 ? t.duration : 100;
|
|
2153
2153
|
}
|
|
2154
2154
|
/**
|
|
@@ -2173,7 +2173,7 @@ class Il extends Ii {
|
|
|
2173
2173
|
return !e;
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
|
-
class
|
|
2176
|
+
class Ll {
|
|
2177
2177
|
/**
|
|
2178
2178
|
* @param {number} decay Rate of decay (must be negative).
|
|
2179
2179
|
* @param {number} minVelocity Minimum velocity (pixels/millisecond).
|
|
@@ -2227,7 +2227,7 @@ class wl {
|
|
|
2227
2227
|
return this.angle_;
|
|
2228
2228
|
}
|
|
2229
2229
|
}
|
|
2230
|
-
class
|
|
2230
|
+
class vl extends Ii {
|
|
2231
2231
|
/**
|
|
2232
2232
|
* @param {Options} [options] Options.
|
|
2233
2233
|
*/
|
|
@@ -2236,7 +2236,7 @@ class Ll extends Ii {
|
|
|
2236
2236
|
/** @type {import("./Interaction.js").InteractionOptions} */
|
|
2237
2237
|
t
|
|
2238
2238
|
), 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;
|
|
2239
|
-
const e = t.condition ? t.condition :
|
|
2239
|
+
const e = t.condition ? t.condition : ml;
|
|
2240
2240
|
this.condition_ = t.onFocusOnly ? ts(Gr, e) : e, this.lastAnchor_ = null, this.startTime_ = void 0, this.timeoutId_, this.mode_ = void 0, this.trackpadEventGap_ = 400, this.trackpadTimeoutId_, this.deltaPerZoom_ = 300;
|
|
2241
2241
|
}
|
|
2242
2242
|
/**
|
|
@@ -2268,7 +2268,7 @@ class Ll extends Ii {
|
|
|
2268
2268
|
);
|
|
2269
2269
|
n.preventDefault(), this.useAnchor_ && (this.lastAnchor_ = t.coordinate);
|
|
2270
2270
|
let s;
|
|
2271
|
-
if (t.type == W.WHEEL && (s = n.deltaY,
|
|
2271
|
+
if (t.type == W.WHEEL && (s = n.deltaY, Fa && n.deltaMode === WheelEvent.DOM_DELTA_PIXEL && (s /= Ar), n.deltaMode === WheelEvent.DOM_DELTA_LINE && (s *= 40)), s === 0)
|
|
2272
2272
|
return !1;
|
|
2273
2273
|
this.lastDelta_ = s;
|
|
2274
2274
|
const o = Date.now();
|
|
@@ -2310,7 +2310,7 @@ class Ll extends Ii {
|
|
|
2310
2310
|
this.useAnchor_ = t, t || (this.lastAnchor_ = null);
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
2313
|
-
class
|
|
2313
|
+
class Pl extends wi {
|
|
2314
2314
|
/**
|
|
2315
2315
|
* @param {Options} [options] Options.
|
|
2316
2316
|
*/
|
|
@@ -2363,7 +2363,7 @@ class vl extends wi {
|
|
|
2363
2363
|
return !1;
|
|
2364
2364
|
}
|
|
2365
2365
|
}
|
|
2366
|
-
class
|
|
2366
|
+
class Al extends wi {
|
|
2367
2367
|
/**
|
|
2368
2368
|
* @param {Options} [options] Options.
|
|
2369
2369
|
*/
|
|
@@ -2415,33 +2415,33 @@ class Pl extends wi {
|
|
|
2415
2415
|
}
|
|
2416
2416
|
function Ur(r) {
|
|
2417
2417
|
r = r || {};
|
|
2418
|
-
const t = new Ot(), e = new
|
|
2419
|
-
return (r.altShiftDragRotate !== void 0 ? r.altShiftDragRotate : !0) && t.push(new
|
|
2420
|
-
new
|
|
2418
|
+
const t = new Ot(), e = new Ll(-5e-3, 0.05, 100);
|
|
2419
|
+
return (r.altShiftDragRotate !== void 0 ? r.altShiftDragRotate : !0) && t.push(new Tl()), (r.doubleClickZoom !== void 0 ? r.doubleClickZoom : !0) && t.push(
|
|
2420
|
+
new fl({
|
|
2421
2421
|
delta: r.zoomDelta,
|
|
2422
2422
|
duration: r.zoomDuration
|
|
2423
2423
|
})
|
|
2424
2424
|
), (r.dragPan !== void 0 ? r.dragPan : !0) && t.push(
|
|
2425
|
-
new
|
|
2425
|
+
new El({
|
|
2426
2426
|
onFocusOnly: r.onFocusOnly,
|
|
2427
2427
|
kinetic: e
|
|
2428
2428
|
})
|
|
2429
|
-
), (r.pinchRotate !== void 0 ? r.pinchRotate : !0) && t.push(new
|
|
2430
|
-
new
|
|
2429
|
+
), (r.pinchRotate !== void 0 ? r.pinchRotate : !0) && t.push(new Pl()), (r.pinchZoom !== void 0 ? r.pinchZoom : !0) && t.push(
|
|
2430
|
+
new Al({
|
|
2431
2431
|
duration: r.zoomDuration
|
|
2432
2432
|
})
|
|
2433
|
-
), (r.keyboard !== void 0 ? r.keyboard : !0) && (t.push(new
|
|
2434
|
-
new
|
|
2433
|
+
), (r.keyboard !== void 0 ? r.keyboard : !0) && (t.push(new Il()), t.push(
|
|
2434
|
+
new wl({
|
|
2435
2435
|
delta: r.zoomDelta,
|
|
2436
2436
|
duration: r.zoomDuration
|
|
2437
2437
|
})
|
|
2438
2438
|
)), (r.mouseWheelZoom !== void 0 ? r.mouseWheelZoom : !0) && t.push(
|
|
2439
|
-
new
|
|
2439
|
+
new vl({
|
|
2440
2440
|
onFocusOnly: r.onFocusOnly,
|
|
2441
2441
|
duration: r.zoomDuration
|
|
2442
2442
|
})
|
|
2443
2443
|
), (r.shiftDragZoom !== void 0 ? r.shiftDragZoom : !0) && t.push(
|
|
2444
|
-
new
|
|
2444
|
+
new Rl({
|
|
2445
2445
|
duration: r.zoomDuration
|
|
2446
2446
|
})
|
|
2447
2447
|
), t;
|
|
@@ -2464,16 +2464,16 @@ function Kr(r, t) {
|
|
|
2464
2464
|
Kr(e[i], t);
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
2467
|
-
class
|
|
2467
|
+
class Fl extends Ci {
|
|
2468
2468
|
/**
|
|
2469
2469
|
* @param {MapOptions} [options] Map options.
|
|
2470
2470
|
*/
|
|
2471
2471
|
constructor(t) {
|
|
2472
2472
|
super(), t = t || {}, this.on, this.once, this.un;
|
|
2473
|
-
const e =
|
|
2473
|
+
const e = Dl(t);
|
|
2474
2474
|
this.renderComplete_, 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 : Ar, this.postRenderTimeoutHandle_, this.animationDelayKey_, this.animationDelay_ = this.animationDelay_.bind(this), this.coordinateToPixelTransform_ = Ut(), this.pixelToCoordinateTransform_ = Ut(), this.frameIndex_ = 0, this.frameState_ = null, this.previousExtent_ = null, this.viewPropertyListenerKey_ = null, this.viewChangeListenerKey_ = null, this.layerGroupPropertyListenerKeys_ = null, 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, this.resizeObserver_ = new ResizeObserver(() => this.updateSize()), this.controls = e.controls || kr(), this.interactions = e.interactions || Ur({
|
|
2475
2475
|
onFocusOnly: !0
|
|
2476
|
-
}), this.overlays_ = e.overlays, this.overlayIdIndex_ = {}, this.renderer_ = null, this.postRenderFunctions_ = [], this.tileQueue_ = new
|
|
2476
|
+
}), this.overlays_ = e.overlays, this.overlayIdIndex_ = {}, this.renderer_ = null, this.postRenderFunctions_ = [], this.tileQueue_ = new al(
|
|
2477
2477
|
this.getTilePriority.bind(this),
|
|
2478
2478
|
this.handleTileChange_.bind(this)
|
|
2479
2479
|
), this.addChangeListener(
|
|
@@ -2771,7 +2771,7 @@ class Al extends Ci {
|
|
|
2771
2771
|
* @api
|
|
2772
2772
|
*/
|
|
2773
2773
|
getCoordinateFromPixel(t) {
|
|
2774
|
-
return
|
|
2774
|
+
return Yo(
|
|
2775
2775
|
this.getCoordinateFromPixelInternal(t),
|
|
2776
2776
|
this.getView().getProjection()
|
|
2777
2777
|
);
|
|
@@ -2887,7 +2887,7 @@ class Al extends Ci {
|
|
|
2887
2887
|
* @api
|
|
2888
2888
|
*/
|
|
2889
2889
|
getPixelFromCoordinate(t) {
|
|
2890
|
-
const e =
|
|
2890
|
+
const e = Xo(
|
|
2891
2891
|
t,
|
|
2892
2892
|
this.getView().getProjection()
|
|
2893
2893
|
);
|
|
@@ -2981,7 +2981,7 @@ class Al extends Ci {
|
|
|
2981
2981
|
* @return {number} Tile priority.
|
|
2982
2982
|
*/
|
|
2983
2983
|
getTilePriority(t, e, i, n) {
|
|
2984
|
-
return
|
|
2984
|
+
return ll(
|
|
2985
2985
|
this.frameState_,
|
|
2986
2986
|
t,
|
|
2987
2987
|
e,
|
|
@@ -3094,7 +3094,7 @@ class Al extends Ci {
|
|
|
3094
3094
|
if (this.targetElement_ = e, !e)
|
|
3095
3095
|
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);
|
|
3096
3096
|
else {
|
|
3097
|
-
e.appendChild(this.viewport_), this.renderer_ || (this.renderer_ = new
|
|
3097
|
+
e.appendChild(this.viewport_), this.renderer_ || (this.renderer_ = new sl(this)), this.mapBrowserEventHandler_ = new rl(
|
|
3098
3098
|
this,
|
|
3099
3099
|
this.moveTolerance_
|
|
3100
3100
|
);
|
|
@@ -3318,7 +3318,7 @@ class Al extends Ci {
|
|
|
3318
3318
|
this.frameState_ = s, this.renderer_.renderFrame(s), s && (s.animate && this.render(), Array.prototype.push.apply(
|
|
3319
3319
|
this.postRenderFunctions_,
|
|
3320
3320
|
s.postRenderFunctions
|
|
3321
|
-
), n && (!this.previousExtent_ || !
|
|
3321
|
+
), n && (!this.previousExtent_ || !Wo(this.previousExtent_) && !hi(s.extent, this.previousExtent_)) && (this.dispatchEvent(
|
|
3322
3322
|
new Me(re.MOVESTART, this, n)
|
|
3323
3323
|
), this.previousExtent_ = gr(this.previousExtent_)), this.previousExtent_ && !s.viewHints[he.ANIMATING] && !s.viewHints[he.INTERACTING] && !hi(s.extent, this.previousExtent_) && (this.dispatchEvent(
|
|
3324
3324
|
new Me(re.MOVEEND, this, s)
|
|
@@ -3385,7 +3385,7 @@ class Al extends Ci {
|
|
|
3385
3385
|
let e;
|
|
3386
3386
|
if (t) {
|
|
3387
3387
|
const n = getComputedStyle(t), s = t.offsetWidth - parseFloat(n.borderLeftWidth) - parseFloat(n.paddingLeft) - parseFloat(n.paddingRight) - parseFloat(n.borderRightWidth), o = t.offsetHeight - parseFloat(n.borderTopWidth) - parseFloat(n.paddingTop) - parseFloat(n.paddingBottom) - parseFloat(n.borderBottomWidth);
|
|
3388
|
-
!isNaN(s) && !isNaN(o) && (e = [s, o], !Os(e) && (t.offsetWidth || t.offsetHeight || t.getClientRects().length) &&
|
|
3388
|
+
!isNaN(s) && !isNaN(o) && (e = [s, o], !Os(e) && (t.offsetWidth || t.offsetHeight || t.getClientRects().length) && Uo(
|
|
3389
3389
|
"No map visible because the map container's width or height are 0."
|
|
3390
3390
|
));
|
|
3391
3391
|
}
|
|
@@ -3408,7 +3408,7 @@ class Al extends Ci {
|
|
|
3408
3408
|
}
|
|
3409
3409
|
}
|
|
3410
3410
|
}
|
|
3411
|
-
function
|
|
3411
|
+
function Dl(r) {
|
|
3412
3412
|
let t = null;
|
|
3413
3413
|
r.keyboardEventTarget !== void 0 && (t = typeof r.keyboardEventTarget == "string" ? document.getElementById(r.keyboardEventTarget) : r.keyboardEventTarget);
|
|
3414
3414
|
const e = {}, i = r.layers && typeof /** @type {?} */
|
|
@@ -3451,7 +3451,7 @@ const Ui = {
|
|
|
3451
3451
|
PRELOAD: "preload",
|
|
3452
3452
|
USE_INTERIM_TILES_ON_ERROR: "useInterimTilesOnError"
|
|
3453
3453
|
};
|
|
3454
|
-
class
|
|
3454
|
+
class Ol extends _n {
|
|
3455
3455
|
/**
|
|
3456
3456
|
* @param {Options<TileSourceType>} [options] Tile layer options.
|
|
3457
3457
|
*/
|
|
@@ -3524,7 +3524,7 @@ class Dl extends _n {
|
|
|
3524
3524
|
return super.getData(t);
|
|
3525
3525
|
}
|
|
3526
3526
|
}
|
|
3527
|
-
class
|
|
3527
|
+
class Ml extends Da {
|
|
3528
3528
|
/**
|
|
3529
3529
|
* @param {LayerType} layer Layer.
|
|
3530
3530
|
*/
|
|
@@ -3660,12 +3660,12 @@ class Ol extends Fa {
|
|
|
3660
3660
|
}
|
|
3661
3661
|
const ks = [];
|
|
3662
3662
|
let Ne = null;
|
|
3663
|
-
function
|
|
3663
|
+
function Nl() {
|
|
3664
3664
|
Ne = Mt(1, 1, void 0, {
|
|
3665
3665
|
willReadFrequently: !0
|
|
3666
3666
|
});
|
|
3667
3667
|
}
|
|
3668
|
-
class zr extends
|
|
3668
|
+
class zr extends Ml {
|
|
3669
3669
|
/**
|
|
3670
3670
|
* @param {LayerType} layer Layer.
|
|
3671
3671
|
*/
|
|
@@ -3679,7 +3679,7 @@ class zr extends Ol {
|
|
|
3679
3679
|
* @return {Uint8ClampedArray|null} The image data.
|
|
3680
3680
|
*/
|
|
3681
3681
|
getImageData(t, e, i) {
|
|
3682
|
-
Ne ||
|
|
3682
|
+
Ne || Nl(), Ne.clearRect(0, 0, 1, 1);
|
|
3683
3683
|
let n;
|
|
3684
3684
|
try {
|
|
3685
3685
|
Ne.drawImage(t, e, i, 1, 1, 0, 0, 1, 1), n = Ne.getImageData(0, 0, 1, 1).data;
|
|
@@ -3911,7 +3911,7 @@ class Vr extends Lr {
|
|
|
3911
3911
|
else if (i === -1)
|
|
3912
3912
|
return 1;
|
|
3913
3913
|
const n = e - i + 1e3 / 60;
|
|
3914
|
-
return n >= this.transition_ ? 1 :
|
|
3914
|
+
return n >= this.transition_ ? 1 : Bo(n / this.transition_);
|
|
3915
3915
|
}
|
|
3916
3916
|
/**
|
|
3917
3917
|
* Determine if a tile is in an alpha transition. A tile is considered in
|
|
@@ -3931,7 +3931,7 @@ class Vr extends Lr {
|
|
|
3931
3931
|
this.transition_ && (this.transitionStarts_[t] = -1);
|
|
3932
3932
|
}
|
|
3933
3933
|
}
|
|
3934
|
-
class
|
|
3934
|
+
class bl extends Vr {
|
|
3935
3935
|
/**
|
|
3936
3936
|
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
3937
3937
|
* @param {import("./TileState.js").default} state State.
|
|
@@ -3964,7 +3964,7 @@ class Nl extends Vr {
|
|
|
3964
3964
|
* @private
|
|
3965
3965
|
*/
|
|
3966
3966
|
handleImageError_() {
|
|
3967
|
-
this.state = b.ERROR, this.unlistenImage_(), this.image_ =
|
|
3967
|
+
this.state = b.ERROR, this.unlistenImage_(), this.image_ = kl(), this.changed();
|
|
3968
3968
|
}
|
|
3969
3969
|
/**
|
|
3970
3970
|
* Tracks successful image load.
|
|
@@ -4016,7 +4016,7 @@ class Nl extends Vr {
|
|
|
4016
4016
|
* @api
|
|
4017
4017
|
*/
|
|
4018
4018
|
load() {
|
|
4019
|
-
this.state == b.ERROR && (this.state = b.IDLE, this.image_ = new Image(), this.crossOrigin_ !== null && (this.image_.crossOrigin = this.crossOrigin_)), this.state == b.IDLE && (this.state = b.LOADING, this.changed(), this.tileLoadFunction_(this, this.src_), this.unlisten_ =
|
|
4019
|
+
this.state == b.ERROR && (this.state = b.IDLE, this.image_ = new Image(), this.crossOrigin_ !== null && (this.image_.crossOrigin = this.crossOrigin_)), this.state == b.IDLE && (this.state = b.LOADING, this.changed(), this.tileLoadFunction_(this, this.src_), this.unlisten_ = Ua(
|
|
4020
4020
|
this.image_,
|
|
4021
4021
|
this.handleImageLoad_.bind(this),
|
|
4022
4022
|
this.handleImageError_.bind(this)
|
|
@@ -4031,12 +4031,12 @@ class Nl extends Vr {
|
|
|
4031
4031
|
this.unlisten_ && (this.unlisten_(), this.unlisten_ = null);
|
|
4032
4032
|
}
|
|
4033
4033
|
}
|
|
4034
|
-
function
|
|
4034
|
+
function kl() {
|
|
4035
4035
|
const r = Mt(1, 1);
|
|
4036
4036
|
return r.fillStyle = "rgba(0,0,0,0)", r.fillRect(0, 0, 1, 1), r.canvas;
|
|
4037
4037
|
}
|
|
4038
|
-
const
|
|
4039
|
-
class
|
|
4038
|
+
const Gl = 0.5, Yl = 10, Gs = 0.25;
|
|
4039
|
+
class Xl {
|
|
4040
4040
|
/**
|
|
4041
4041
|
* @param {import("../proj/Projection.js").default} sourceProj Source projection.
|
|
4042
4042
|
* @param {import("../proj/Projection.js").default} targetProj Target projection.
|
|
@@ -4048,12 +4048,12 @@ class Yl {
|
|
|
4048
4048
|
constructor(t, e, i, n, s, o) {
|
|
4049
4049
|
this.sourceProj_ = t, this.targetProj_ = e;
|
|
4050
4050
|
let a = {};
|
|
4051
|
-
const l =
|
|
4051
|
+
const l = Ko(this.targetProj_, this.sourceProj_);
|
|
4052
4052
|
this.transformInv_ = function(E) {
|
|
4053
4053
|
const x = E[0] + "/" + E[1];
|
|
4054
4054
|
return a[x] || (a[x] = l(E)), a[x];
|
|
4055
4055
|
}, this.maxSourceExtent_ = n, this.errorThresholdSquared_ = s * s, this.triangles_ = [], this.wrapsXInSource_ = !1, this.canWrapXInSource_ = this.sourceProj_.canWrapX() && !!n && !!this.sourceProj_.getExtent() && ft(n) >= ft(this.sourceProj_.getExtent()), this.sourceWorldWidth_ = this.sourceProj_.getExtent() ? ft(this.sourceProj_.getExtent()) : null, this.targetWorldWidth_ = this.targetProj_.getExtent() ? ft(this.targetProj_.getExtent()) : null;
|
|
4056
|
-
const h = mn(i), c = mr(i), u = pr(i), d = yr(i), f = this.transformInv_(h), g = this.transformInv_(c), m = this.transformInv_(u), p = this.transformInv_(d), _ =
|
|
4056
|
+
const h = mn(i), c = mr(i), u = pr(i), d = yr(i), f = this.transformInv_(h), g = this.transformInv_(c), m = this.transformInv_(u), p = this.transformInv_(d), _ = Yl + (o ? Math.max(
|
|
4057
4057
|
0,
|
|
4058
4058
|
Math.ceil(
|
|
4059
4059
|
Math.log2(
|
|
@@ -4254,7 +4254,7 @@ function Ys(r, t, e, i, n) {
|
|
|
4254
4254
|
function Nn(r, t) {
|
|
4255
4255
|
return Math.abs(r[t * 4] - 210) > 2 || Math.abs(r[t * 4 + 3] - 0.75 * 255) > 2;
|
|
4256
4256
|
}
|
|
4257
|
-
function
|
|
4257
|
+
function Wl() {
|
|
4258
4258
|
if (Mn === void 0) {
|
|
4259
4259
|
const r = Mt(6, 6, Ge);
|
|
4260
4260
|
r.globalCompositeOperation = "lighter", r.fillStyle = "rgba(210, 0, 0, 0.75)", Ys(r, 4, 5, 4, 0), Ys(r, 4, 5, 0, 5);
|
|
@@ -4264,7 +4264,7 @@ function Xl() {
|
|
|
4264
4264
|
return Mn;
|
|
4265
4265
|
}
|
|
4266
4266
|
function Xs(r, t, e, i) {
|
|
4267
|
-
const n =
|
|
4267
|
+
const n = zo(e, t, r);
|
|
4268
4268
|
let s = vs(
|
|
4269
4269
|
t,
|
|
4270
4270
|
i,
|
|
@@ -4281,7 +4281,7 @@ function Xs(r, t, e, i) {
|
|
|
4281
4281
|
}
|
|
4282
4282
|
return s;
|
|
4283
4283
|
}
|
|
4284
|
-
function
|
|
4284
|
+
function Ul(r, t, e, i) {
|
|
4285
4285
|
const n = xi(e);
|
|
4286
4286
|
let s = Xs(
|
|
4287
4287
|
r,
|
|
@@ -4298,7 +4298,7 @@ function Wl(r, t, e, i) {
|
|
|
4298
4298
|
), isFinite(s) && s > 0;
|
|
4299
4299
|
}), s;
|
|
4300
4300
|
}
|
|
4301
|
-
function
|
|
4301
|
+
function Bl(r, t, e, i, n, s, o, a, l, h, c, u) {
|
|
4302
4302
|
const d = Mt(
|
|
4303
4303
|
Math.round(e * r),
|
|
4304
4304
|
Math.round(e * t),
|
|
@@ -4353,9 +4353,9 @@ function Ul(r, t, e, i, n, s, o, a, l, h, c, u) {
|
|
|
4353
4353
|
[G, $, 0, 0, z - A],
|
|
4354
4354
|
[0, 0, X, Y, k - N],
|
|
4355
4355
|
[0, 0, G, $, K - N]
|
|
4356
|
-
], B =
|
|
4356
|
+
], B = Oa(mt);
|
|
4357
4357
|
if (B) {
|
|
4358
|
-
if (d.save(), d.beginPath(),
|
|
4358
|
+
if (d.save(), d.beginPath(), Wl() || !u) {
|
|
4359
4359
|
d.moveTo(w, k);
|
|
4360
4360
|
const H = 4, Jt = A - w, Ft = N - k;
|
|
4361
4361
|
for (let rt = 0; rt < H; rt++)
|
|
@@ -4420,7 +4420,7 @@ class Ws extends Vr {
|
|
|
4420
4420
|
_ && (m ? m = ni(m, _) : m = _);
|
|
4421
4421
|
const E = n.getResolution(
|
|
4422
4422
|
this.wrappedTileCoord_[0]
|
|
4423
|
-
), x =
|
|
4423
|
+
), x = Ul(
|
|
4424
4424
|
t,
|
|
4425
4425
|
i,
|
|
4426
4426
|
p,
|
|
@@ -4430,8 +4430,8 @@ class Ws extends Vr {
|
|
|
4430
4430
|
this.state = b.EMPTY;
|
|
4431
4431
|
return;
|
|
4432
4432
|
}
|
|
4433
|
-
const y = c !== void 0 ? c :
|
|
4434
|
-
if (this.triangulation_ = new
|
|
4433
|
+
const y = c !== void 0 ? c : Gl;
|
|
4434
|
+
if (this.triangulation_ = new Xl(
|
|
4435
4435
|
t,
|
|
4436
4436
|
i,
|
|
4437
4437
|
p,
|
|
@@ -4492,7 +4492,7 @@ class Ws extends Vr {
|
|
|
4492
4492
|
), l = this.targetTileGrid_.getTileCoordExtent(
|
|
4493
4493
|
this.wrappedTileCoord_
|
|
4494
4494
|
);
|
|
4495
|
-
this.canvas_ =
|
|
4495
|
+
this.canvas_ = Bl(
|
|
4496
4496
|
n,
|
|
4497
4497
|
s,
|
|
4498
4498
|
this.pixelRatio_,
|
|
@@ -4549,7 +4549,7 @@ class Ws extends Vr {
|
|
|
4549
4549
|
this.canvas_ && (En(this.canvas_.getContext("2d")), Ge.push(this.canvas_), this.canvas_ = null), super.release();
|
|
4550
4550
|
}
|
|
4551
4551
|
}
|
|
4552
|
-
class
|
|
4552
|
+
class Hr {
|
|
4553
4553
|
/**
|
|
4554
4554
|
* @param {number} minX Minimum X.
|
|
4555
4555
|
* @param {number} maxX Maximum X.
|
|
@@ -4620,12 +4620,15 @@ class Bl {
|
|
|
4620
4620
|
return this.minX <= t.maxX && this.maxX >= t.minX && this.minY <= t.maxY && this.maxY >= t.minY;
|
|
4621
4621
|
}
|
|
4622
4622
|
}
|
|
4623
|
+
function jd(r, t, e, i, n) {
|
|
4624
|
+
return n !== void 0 ? (n.minX = r, n.maxX = t, n.minY = e, n.maxY = i, n) : new Hr(r, t, e, i);
|
|
4625
|
+
}
|
|
4623
4626
|
class Kl extends zr {
|
|
4624
4627
|
/**
|
|
4625
4628
|
* @param {LayerType} tileLayer Tile layer.
|
|
4626
4629
|
*/
|
|
4627
4630
|
constructor(t) {
|
|
4628
|
-
super(t), this.extentChanged = !0, this.renderedExtent_ = null, this.renderedPixelRatio, this.renderedProjection = null, this.renderedRevision, this.renderedTiles = [], this.newTiles_ = !1, this.tmpExtent = zt(), this.tmpTileRange_ = new
|
|
4631
|
+
super(t), this.extentChanged = !0, this.renderedExtent_ = null, this.renderedPixelRatio, this.renderedProjection = null, this.renderedRevision, this.renderedTiles = [], this.newTiles_ = !1, this.tmpExtent = zt(), this.tmpTileRange_ = new Hr(0, 0, 0, 0);
|
|
4629
4632
|
}
|
|
4630
4633
|
/**
|
|
4631
4634
|
* @protected
|
|
@@ -4671,11 +4674,11 @@ class Kl extends zr {
|
|
|
4671
4674
|
o,
|
|
4672
4675
|
a
|
|
4673
4676
|
);
|
|
4674
|
-
if (!(g instanceof
|
|
4677
|
+
if (!(g instanceof bl || g instanceof Ws) || g instanceof Ws && g.getState() === b.EMPTY)
|
|
4675
4678
|
return null;
|
|
4676
4679
|
if (g.getState() !== b.LOADED)
|
|
4677
4680
|
continue;
|
|
4678
|
-
const m = c.getOrigin(d), p =
|
|
4681
|
+
const m = c.getOrigin(d), p = Ba(c.getTileSize(d)), _ = c.getResolution(d), E = Math.floor(
|
|
4679
4682
|
u * ((n[0] - m[0]) / _ - f[1] * p[0])
|
|
4680
4683
|
), x = Math.floor(
|
|
4681
4684
|
u * ((m[1] - n[1]) / _ - f[2] * p[1])
|
|
@@ -4960,7 +4963,7 @@ class Kl extends zr {
|
|
|
4960
4963
|
e.updateCacheSize(p, s);
|
|
4961
4964
|
}
|
|
4962
4965
|
}
|
|
4963
|
-
class zl extends
|
|
4966
|
+
class zl extends Ol {
|
|
4964
4967
|
/**
|
|
4965
4968
|
* @param {import("./BaseTile.js").Options<TileSourceType>} [options] Tile layer options.
|
|
4966
4969
|
*/
|
|
@@ -5140,7 +5143,7 @@ function Vl(r) {
|
|
|
5140
5143
|
return t;
|
|
5141
5144
|
};
|
|
5142
5145
|
}
|
|
5143
|
-
class
|
|
5146
|
+
class Zr {
|
|
5144
5147
|
constructor() {
|
|
5145
5148
|
this.dataProjection = void 0, this.defaultFeatureProjection = void 0, this.supportedMediaTypes = null;
|
|
5146
5149
|
}
|
|
@@ -5266,7 +5269,7 @@ class Hr {
|
|
|
5266
5269
|
function hn(r, t, e) {
|
|
5267
5270
|
const i = e ? ci(e.featureProjection) : null, n = e ? ci(e.dataProjection) : null;
|
|
5268
5271
|
let s;
|
|
5269
|
-
if (i && n && !
|
|
5272
|
+
if (i && n && !Vo(i, n) ? s = (t ? r.clone() : r).transform(
|
|
5270
5273
|
t ? i : n,
|
|
5271
5274
|
t ? n : i
|
|
5272
5275
|
) : s = r, t && e && /** @type {WriteOptions} */
|
|
@@ -5284,7 +5287,7 @@ function hn(r, t, e) {
|
|
|
5284
5287
|
}
|
|
5285
5288
|
return s;
|
|
5286
5289
|
}
|
|
5287
|
-
function
|
|
5290
|
+
function qr(r, t, e, i, n, s, o) {
|
|
5288
5291
|
let a, l;
|
|
5289
5292
|
const h = (e - t) / i;
|
|
5290
5293
|
if (h === 1)
|
|
@@ -5298,7 +5301,7 @@ function Zr(r, t, e, i, n, s, o) {
|
|
|
5298
5301
|
const _ = r[p], E = r[p + 1];
|
|
5299
5302
|
d += Math.sqrt((_ - c) * (_ - c) + (E - u) * (E - u)), f.push(d), c = _, u = E;
|
|
5300
5303
|
}
|
|
5301
|
-
const g = n * d, m =
|
|
5304
|
+
const g = n * d, m = Ma(f, g);
|
|
5302
5305
|
m < 0 ? (l = (g - f[-m - 2]) / (f[-m - 1] - f[-m - 2]), a = t + (-m - 2) * i) : a = t + m * i;
|
|
5303
5306
|
}
|
|
5304
5307
|
o = o > 1 ? o : 2, s = s || new Array(o);
|
|
@@ -5370,7 +5373,7 @@ function Hl(r, t, e, i, n, s, o) {
|
|
|
5370
5373
|
}
|
|
5371
5374
|
return null;
|
|
5372
5375
|
}
|
|
5373
|
-
function
|
|
5376
|
+
function jr(r, t, e, i) {
|
|
5374
5377
|
let n = r[t], s = r[t + 1], o = 0;
|
|
5375
5378
|
for (let a = t + i; a < e; a += i) {
|
|
5376
5379
|
const l = r[a], h = r[a + 1];
|
|
@@ -5424,14 +5427,14 @@ class ge extends Ei {
|
|
|
5424
5427
|
*/
|
|
5425
5428
|
closestPointXY(t, e, i, n) {
|
|
5426
5429
|
return n < Ti(this.getExtent(), t, e) ? n : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
|
|
5427
|
-
|
|
5430
|
+
Ho(
|
|
5428
5431
|
this.flatCoordinates,
|
|
5429
5432
|
0,
|
|
5430
5433
|
this.flatCoordinates.length,
|
|
5431
5434
|
this.stride,
|
|
5432
5435
|
0
|
|
5433
5436
|
)
|
|
5434
|
-
), this.maxDeltaRevision_ = this.getRevision()),
|
|
5437
|
+
), this.maxDeltaRevision_ = this.getRevision()), Zo(
|
|
5435
5438
|
this.flatCoordinates,
|
|
5436
5439
|
0,
|
|
5437
5440
|
this.flatCoordinates.length,
|
|
@@ -5456,7 +5459,7 @@ class ge extends Ei {
|
|
|
5456
5459
|
* @api
|
|
5457
5460
|
*/
|
|
5458
5461
|
forEachSegment(t) {
|
|
5459
|
-
return
|
|
5462
|
+
return qo(
|
|
5460
5463
|
this.flatCoordinates,
|
|
5461
5464
|
0,
|
|
5462
5465
|
this.flatCoordinates.length,
|
|
@@ -5512,7 +5515,7 @@ class ge extends Ei {
|
|
|
5512
5515
|
* @api
|
|
5513
5516
|
*/
|
|
5514
5517
|
getCoordinateAt(t, e) {
|
|
5515
|
-
return
|
|
5518
|
+
return qr(
|
|
5516
5519
|
this.flatCoordinates,
|
|
5517
5520
|
0,
|
|
5518
5521
|
this.flatCoordinates.length,
|
|
@@ -5528,7 +5531,7 @@ class ge extends Ei {
|
|
|
5528
5531
|
* @api
|
|
5529
5532
|
*/
|
|
5530
5533
|
getLength() {
|
|
5531
|
-
return
|
|
5534
|
+
return jr(
|
|
5532
5535
|
this.flatCoordinates,
|
|
5533
5536
|
0,
|
|
5534
5537
|
this.flatCoordinates.length,
|
|
@@ -5548,7 +5551,7 @@ class ge extends Ei {
|
|
|
5548
5551
|
*/
|
|
5549
5552
|
getSimplifiedGeometryInternal(t) {
|
|
5550
5553
|
const e = [];
|
|
5551
|
-
return e.length =
|
|
5554
|
+
return e.length = jo(
|
|
5552
5555
|
this.flatCoordinates,
|
|
5553
5556
|
0,
|
|
5554
5557
|
this.flatCoordinates.length,
|
|
@@ -5573,7 +5576,7 @@ class ge extends Ei {
|
|
|
5573
5576
|
* @api
|
|
5574
5577
|
*/
|
|
5575
5578
|
intersectsExtent(t) {
|
|
5576
|
-
return
|
|
5579
|
+
return Jo(
|
|
5577
5580
|
this.flatCoordinates,
|
|
5578
5581
|
0,
|
|
5579
5582
|
this.flatCoordinates.length,
|
|
@@ -5660,14 +5663,14 @@ class Be extends Ei {
|
|
|
5660
5663
|
*/
|
|
5661
5664
|
closestPointXY(t, e, i, n) {
|
|
5662
5665
|
return n < Ti(this.getExtent(), t, e) ? n : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
|
|
5663
|
-
|
|
5666
|
+
Qo(
|
|
5664
5667
|
this.flatCoordinates,
|
|
5665
5668
|
0,
|
|
5666
5669
|
this.ends_,
|
|
5667
5670
|
this.stride,
|
|
5668
5671
|
0
|
|
5669
5672
|
)
|
|
5670
|
-
), this.maxDeltaRevision_ = this.getRevision()),
|
|
5673
|
+
), this.maxDeltaRevision_ = this.getRevision()), $o(
|
|
5671
5674
|
this.flatCoordinates,
|
|
5672
5675
|
0,
|
|
5673
5676
|
this.ends_,
|
|
@@ -5772,7 +5775,7 @@ class Be extends Ei {
|
|
|
5772
5775
|
let i = 0;
|
|
5773
5776
|
const n = this.ends_, s = this.stride;
|
|
5774
5777
|
for (let o = 0, a = n.length; o < a; ++o) {
|
|
5775
|
-
const l = n[o], h =
|
|
5778
|
+
const l = n[o], h = qr(
|
|
5776
5779
|
e,
|
|
5777
5780
|
i,
|
|
5778
5781
|
l,
|
|
@@ -5790,7 +5793,7 @@ class Be extends Ei {
|
|
|
5790
5793
|
*/
|
|
5791
5794
|
getSimplifiedGeometryInternal(t) {
|
|
5792
5795
|
const e = [], i = [];
|
|
5793
|
-
return e.length =
|
|
5796
|
+
return e.length = ta(
|
|
5794
5797
|
this.flatCoordinates,
|
|
5795
5798
|
0,
|
|
5796
5799
|
this.ends_,
|
|
@@ -5816,7 +5819,7 @@ class Be extends Ei {
|
|
|
5816
5819
|
* @api
|
|
5817
5820
|
*/
|
|
5818
5821
|
intersectsExtent(t) {
|
|
5819
|
-
return
|
|
5822
|
+
return ea(
|
|
5820
5823
|
this.flatCoordinates,
|
|
5821
5824
|
0,
|
|
5822
5825
|
this.ends_,
|
|
@@ -5832,7 +5835,7 @@ class Be extends Ei {
|
|
|
5832
5835
|
*/
|
|
5833
5836
|
setCoordinates(t, e) {
|
|
5834
5837
|
this.setLayout(e, t, 2), this.flatCoordinates || (this.flatCoordinates = []);
|
|
5835
|
-
const i =
|
|
5838
|
+
const i = ia(
|
|
5836
5839
|
this.flatCoordinates,
|
|
5837
5840
|
0,
|
|
5838
5841
|
t,
|
|
@@ -5891,7 +5894,7 @@ class Li extends Ei {
|
|
|
5891
5894
|
return n;
|
|
5892
5895
|
const s = this.flatCoordinates, o = this.stride;
|
|
5893
5896
|
for (let a = 0, l = s.length; a < l; a += o) {
|
|
5894
|
-
const h =
|
|
5897
|
+
const h = Na(
|
|
5895
5898
|
t,
|
|
5896
5899
|
e,
|
|
5897
5900
|
s[a],
|
|
@@ -5966,7 +5969,7 @@ class Li extends Ei {
|
|
|
5966
5969
|
const e = this.flatCoordinates, i = this.stride;
|
|
5967
5970
|
for (let n = 0, s = e.length; n < s; n += i) {
|
|
5968
5971
|
const o = e[n], a = e[n + 1];
|
|
5969
|
-
if (
|
|
5972
|
+
if (na(t, o, a))
|
|
5970
5973
|
return !0;
|
|
5971
5974
|
}
|
|
5972
5975
|
return !1;
|
|
@@ -5991,7 +5994,7 @@ function Zl(r, t, e, i) {
|
|
|
5991
5994
|
let s = zt();
|
|
5992
5995
|
for (let o = 0, a = e.length; o < a; ++o) {
|
|
5993
5996
|
const l = e[o];
|
|
5994
|
-
s =
|
|
5997
|
+
s = sa(
|
|
5995
5998
|
r,
|
|
5996
5999
|
t,
|
|
5997
6000
|
l[0],
|
|
@@ -6076,14 +6079,14 @@ class _i extends Ei {
|
|
|
6076
6079
|
*/
|
|
6077
6080
|
closestPointXY(t, e, i, n) {
|
|
6078
6081
|
return n < Ti(this.getExtent(), t, e) ? n : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
|
|
6079
|
-
|
|
6082
|
+
ra(
|
|
6080
6083
|
this.flatCoordinates,
|
|
6081
6084
|
0,
|
|
6082
6085
|
this.endss_,
|
|
6083
6086
|
this.stride,
|
|
6084
6087
|
0
|
|
6085
6088
|
)
|
|
6086
|
-
), this.maxDeltaRevision_ = this.getRevision()),
|
|
6089
|
+
), this.maxDeltaRevision_ = this.getRevision()), oa(
|
|
6087
6090
|
this.getOrientedFlatCoordinates(),
|
|
6088
6091
|
0,
|
|
6089
6092
|
this.endss_,
|
|
@@ -6102,7 +6105,7 @@ class _i extends Ei {
|
|
|
6102
6105
|
* @return {boolean} Contains (x, y).
|
|
6103
6106
|
*/
|
|
6104
6107
|
containsXY(t, e) {
|
|
6105
|
-
return
|
|
6108
|
+
return aa(
|
|
6106
6109
|
this.getOrientedFlatCoordinates(),
|
|
6107
6110
|
0,
|
|
6108
6111
|
this.endss_,
|
|
@@ -6117,7 +6120,7 @@ class _i extends Ei {
|
|
|
6117
6120
|
* @api
|
|
6118
6121
|
*/
|
|
6119
6122
|
getArea() {
|
|
6120
|
-
return
|
|
6123
|
+
return la(
|
|
6121
6124
|
this.getOrientedFlatCoordinates(),
|
|
6122
6125
|
0,
|
|
6123
6126
|
this.endss_,
|
|
@@ -6169,7 +6172,7 @@ class _i extends Ei {
|
|
|
6169
6172
|
this.endss_,
|
|
6170
6173
|
this.stride
|
|
6171
6174
|
);
|
|
6172
|
-
this.flatInteriorPoints_ =
|
|
6175
|
+
this.flatInteriorPoints_ = ha(
|
|
6173
6176
|
this.getOrientedFlatCoordinates(),
|
|
6174
6177
|
0,
|
|
6175
6178
|
this.endss_,
|
|
@@ -6194,7 +6197,7 @@ class _i extends Ei {
|
|
|
6194
6197
|
getOrientedFlatCoordinates() {
|
|
6195
6198
|
if (this.orientedRevision_ != this.getRevision()) {
|
|
6196
6199
|
const t = this.flatCoordinates;
|
|
6197
|
-
|
|
6200
|
+
ca(t, 0, this.endss_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = As(
|
|
6198
6201
|
this.orientedFlatCoordinates_,
|
|
6199
6202
|
0,
|
|
6200
6203
|
this.endss_,
|
|
@@ -6210,7 +6213,7 @@ class _i extends Ei {
|
|
|
6210
6213
|
*/
|
|
6211
6214
|
getSimplifiedGeometryInternal(t) {
|
|
6212
6215
|
const e = [], i = [];
|
|
6213
|
-
return e.length =
|
|
6216
|
+
return e.length = da(
|
|
6214
6217
|
this.flatCoordinates,
|
|
6215
6218
|
0,
|
|
6216
6219
|
this.endss_,
|
|
@@ -6284,7 +6287,7 @@ class _i extends Ei {
|
|
|
6284
6287
|
* @api
|
|
6285
6288
|
*/
|
|
6286
6289
|
intersectsExtent(t) {
|
|
6287
|
-
return
|
|
6290
|
+
return ua(
|
|
6288
6291
|
this.getOrientedFlatCoordinates(),
|
|
6289
6292
|
0,
|
|
6290
6293
|
this.endss_,
|
|
@@ -6300,7 +6303,7 @@ class _i extends Ei {
|
|
|
6300
6303
|
*/
|
|
6301
6304
|
setCoordinates(t, e) {
|
|
6302
6305
|
this.setLayout(e, t, 3), this.flatCoordinates || (this.flatCoordinates = []);
|
|
6303
|
-
const i =
|
|
6306
|
+
const i = fa(
|
|
6304
6307
|
this.flatCoordinates,
|
|
6305
6308
|
0,
|
|
6306
6309
|
t,
|
|
@@ -6316,7 +6319,7 @@ class _i extends Ei {
|
|
|
6316
6319
|
this.changed();
|
|
6317
6320
|
}
|
|
6318
6321
|
}
|
|
6319
|
-
class xt extends
|
|
6322
|
+
class xt extends ga {
|
|
6320
6323
|
/**
|
|
6321
6324
|
* @param {Array<Geometry>} [geometries] Geometries.
|
|
6322
6325
|
*/
|
|
@@ -6556,15 +6559,15 @@ function vi(r, t) {
|
|
|
6556
6559
|
return Tn().createElementNS(r, t);
|
|
6557
6560
|
}
|
|
6558
6561
|
function Zt(r, t) {
|
|
6559
|
-
return
|
|
6562
|
+
return Jr(r, t, []).join("");
|
|
6560
6563
|
}
|
|
6561
|
-
function
|
|
6564
|
+
function Jr(r, t, e) {
|
|
6562
6565
|
if (r.nodeType == Node.CDATA_SECTION_NODE || r.nodeType == Node.TEXT_NODE)
|
|
6563
6566
|
e.push(r.nodeValue);
|
|
6564
6567
|
else {
|
|
6565
6568
|
let i;
|
|
6566
6569
|
for (i = r.firstChild; i; i = i.nextSibling)
|
|
6567
|
-
|
|
6570
|
+
Jr(i, t, e);
|
|
6568
6571
|
}
|
|
6569
6572
|
return e;
|
|
6570
6573
|
}
|
|
@@ -6739,7 +6742,7 @@ let kn;
|
|
|
6739
6742
|
function Tn() {
|
|
6740
6743
|
return kn === void 0 && typeof document < "u" && (kn = document.implementation.createDocument("", "", null)), kn;
|
|
6741
6744
|
}
|
|
6742
|
-
class Jl extends
|
|
6745
|
+
class Jl extends Zr {
|
|
6743
6746
|
constructor() {
|
|
6744
6747
|
super(), this.xmlSerializer_ = jl();
|
|
6745
6748
|
}
|
|
@@ -7019,7 +7022,7 @@ function Ee(r, t) {
|
|
|
7019
7022
|
function Pt(r, t) {
|
|
7020
7023
|
r.appendChild(Tn().createTextNode(t));
|
|
7021
7024
|
}
|
|
7022
|
-
class eh extends
|
|
7025
|
+
class eh extends Zr {
|
|
7023
7026
|
constructor() {
|
|
7024
7027
|
super();
|
|
7025
7028
|
}
|
|
@@ -7199,13 +7202,13 @@ const jt = ["http://www.google.com/kml/ext/2.2"], v = [
|
|
|
7199
7202
|
}, nh = F(
|
|
7200
7203
|
v,
|
|
7201
7204
|
{
|
|
7202
|
-
ExtendedData:
|
|
7203
|
-
Region:
|
|
7204
|
-
MultiGeometry: L(
|
|
7205
|
-
LineString: L(
|
|
7206
|
-
LinearRing: L(
|
|
7207
|
-
Point: L(
|
|
7208
|
-
Polygon: L(
|
|
7205
|
+
ExtendedData: fo,
|
|
7206
|
+
Region: go,
|
|
7207
|
+
MultiGeometry: L(ho, "geometry"),
|
|
7208
|
+
LineString: L(ao, "geometry"),
|
|
7209
|
+
LinearRing: L(lo, "geometry"),
|
|
7210
|
+
Point: L(co, "geometry"),
|
|
7211
|
+
Polygon: L(uo, "geometry"),
|
|
7209
7212
|
Style: L(xs),
|
|
7210
7213
|
StyleMap: Yh,
|
|
7211
7214
|
address: L(ht),
|
|
@@ -7213,16 +7216,16 @@ const jt = ["http://www.google.com/kml/ext/2.2"], v = [
|
|
|
7213
7216
|
name: L(ht),
|
|
7214
7217
|
open: L(_e),
|
|
7215
7218
|
phoneNumber: L(ht),
|
|
7216
|
-
styleUrl: L(
|
|
7219
|
+
styleUrl: L(io),
|
|
7217
7220
|
visibility: L(_e)
|
|
7218
7221
|
},
|
|
7219
7222
|
F(jt, {
|
|
7220
7223
|
MultiTrack: L(wh, "geometry"),
|
|
7221
|
-
Track: L(
|
|
7224
|
+
Track: L(oo, "geometry")
|
|
7222
7225
|
})
|
|
7223
7226
|
), sh = F(v, {
|
|
7224
|
-
ExtendedData:
|
|
7225
|
-
Region:
|
|
7227
|
+
ExtendedData: fo,
|
|
7228
|
+
Region: go,
|
|
7226
7229
|
Link: Jh,
|
|
7227
7230
|
address: L(ht),
|
|
7228
7231
|
description: L(ht),
|
|
@@ -7231,7 +7234,7 @@ const jt = ["http://www.google.com/kml/ext/2.2"], v = [
|
|
|
7231
7234
|
phoneNumber: L(ht),
|
|
7232
7235
|
visibility: L(_e)
|
|
7233
7236
|
}), rh = F(v, {
|
|
7234
|
-
href: L(
|
|
7237
|
+
href: L(eo)
|
|
7235
7238
|
}), oh = F(v, {
|
|
7236
7239
|
Altitude: L(Q),
|
|
7237
7240
|
Longitude: L(Q),
|
|
@@ -7240,12 +7243,12 @@ const jt = ["http://www.google.com/kml/ext/2.2"], v = [
|
|
|
7240
7243
|
AltitudeMode: L(ht),
|
|
7241
7244
|
Heading: L(Q),
|
|
7242
7245
|
Roll: L(Q)
|
|
7243
|
-
}),
|
|
7246
|
+
}), Qr = F(v, {
|
|
7244
7247
|
LatLonAltBox: Kh,
|
|
7245
7248
|
Lod: Vh
|
|
7246
7249
|
}), ah = F(v, ["Document", "Placemark"]), lh = F(v, {
|
|
7247
7250
|
Document: O(rc),
|
|
7248
|
-
Placemark: O(
|
|
7251
|
+
Placemark: O(po)
|
|
7249
7252
|
});
|
|
7250
7253
|
let Ye, qi = null, is, ri, oi, ai, cn, ns = null, ps, ss = null, rs, Te = null, Vs = null, os = null;
|
|
7251
7254
|
function dn(r) {
|
|
@@ -7369,7 +7372,7 @@ class un extends Jl {
|
|
|
7369
7372
|
const i = t.getAttribute("id");
|
|
7370
7373
|
if (i === null)
|
|
7371
7374
|
return;
|
|
7372
|
-
const n =
|
|
7375
|
+
const n = so.call(this, t, e);
|
|
7373
7376
|
if (!n)
|
|
7374
7377
|
return;
|
|
7375
7378
|
let s, o = t.baseURI;
|
|
@@ -7588,7 +7591,7 @@ class un extends Jl {
|
|
|
7588
7591
|
const e = [];
|
|
7589
7592
|
for (let i = t.firstElementChild; i; i = i.nextElementSibling)
|
|
7590
7593
|
if (v.includes(i.namespaceURI) && i.localName == "Region") {
|
|
7591
|
-
const n = j({},
|
|
7594
|
+
const n = j({}, Qr, i, []);
|
|
7592
7595
|
e.push(n);
|
|
7593
7596
|
}
|
|
7594
7597
|
for (let i = t.firstElementChild; i; i = i.nextElementSibling) {
|
|
@@ -7740,7 +7743,7 @@ function uh(r, t, e, i, n) {
|
|
|
7740
7743
|
a && (l = /** @type {string} */
|
|
7741
7744
|
s.get("name"), a = a && !!l, a && /&[^&]+;/.test(l) && (Ki || (Ki = document.createElement("textarea")), Ki.innerHTML = l, l = Ki.value));
|
|
7742
7745
|
let c = e;
|
|
7743
|
-
if (r ? c = r : t && (c =
|
|
7746
|
+
if (r ? c = r : t && (c = $r(t, e, i)), a) {
|
|
7744
7747
|
const u = dh(c[0], l);
|
|
7745
7748
|
if (h.length > 0) {
|
|
7746
7749
|
u.setGeometry(new xt(h));
|
|
@@ -7759,8 +7762,8 @@ function uh(r, t, e, i, n) {
|
|
|
7759
7762
|
}
|
|
7760
7763
|
);
|
|
7761
7764
|
}
|
|
7762
|
-
function
|
|
7763
|
-
return Array.isArray(r) ? r : typeof r == "string" ?
|
|
7765
|
+
function $r(r, t, e) {
|
|
7766
|
+
return Array.isArray(r) ? r : typeof r == "string" ? $r(e[r], t, e) : t;
|
|
7764
7767
|
}
|
|
7765
7768
|
function Cn(r) {
|
|
7766
7769
|
const t = Zt(r, !1), e = /^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t);
|
|
@@ -7774,7 +7777,7 @@ function Cn(r) {
|
|
|
7774
7777
|
];
|
|
7775
7778
|
}
|
|
7776
7779
|
}
|
|
7777
|
-
function
|
|
7780
|
+
function to(r) {
|
|
7778
7781
|
let t = Zt(r, !1);
|
|
7779
7782
|
const e = [];
|
|
7780
7783
|
t = t.replace(/\s*,\s*/g, ",");
|
|
@@ -7787,12 +7790,12 @@ function $r(r) {
|
|
|
7787
7790
|
if (t === "")
|
|
7788
7791
|
return e;
|
|
7789
7792
|
}
|
|
7790
|
-
function
|
|
7793
|
+
function eo(r) {
|
|
7791
7794
|
const t = Zt(r, !1).trim();
|
|
7792
7795
|
let e = r.baseURI;
|
|
7793
7796
|
return (!e || e == "about:blank") && (e = window.location.href), e ? new URL(t, e).href : t;
|
|
7794
7797
|
}
|
|
7795
|
-
function
|
|
7798
|
+
function io(r) {
|
|
7796
7799
|
const t = Zt(r, !1).trim().replace(/^(?!.*#)/, "#");
|
|
7797
7800
|
let e = r.baseURI;
|
|
7798
7801
|
return (!e || e == "about:blank") && (e = window.location.href), e ? new URL(t, e).href : t;
|
|
@@ -7808,13 +7811,13 @@ function fh(r) {
|
|
|
7808
7811
|
origin: i
|
|
7809
7812
|
};
|
|
7810
7813
|
}
|
|
7811
|
-
function
|
|
7814
|
+
function no(r) {
|
|
7812
7815
|
return Q(r);
|
|
7813
7816
|
}
|
|
7814
7817
|
const gh = F(v, {
|
|
7815
7818
|
Pair: Gh
|
|
7816
7819
|
});
|
|
7817
|
-
function
|
|
7820
|
+
function so(r, t) {
|
|
7818
7821
|
return j(void 0, gh, r, t, this);
|
|
7819
7822
|
}
|
|
7820
7823
|
const _h = F(v, {
|
|
@@ -7822,7 +7825,7 @@ const _h = F(v, {
|
|
|
7822
7825
|
color: L(Cn),
|
|
7823
7826
|
heading: L(Q),
|
|
7824
7827
|
hotSpot: L(fh),
|
|
7825
|
-
scale: L(
|
|
7828
|
+
scale: L(no)
|
|
7826
7829
|
});
|
|
7827
7830
|
function mh(r, t) {
|
|
7828
7831
|
const e = j({}, _h, r, t);
|
|
@@ -7867,7 +7870,7 @@ function mh(r, t) {
|
|
|
7867
7870
|
/** @type {number} */
|
|
7868
7871
|
e.heading
|
|
7869
7872
|
);
|
|
7870
|
-
y !== void 0 && (x =
|
|
7873
|
+
y !== void 0 && (x = ba(y));
|
|
7871
7874
|
const T = (
|
|
7872
7875
|
/** @type {number|undefined} */
|
|
7873
7876
|
e.scale
|
|
@@ -7917,7 +7920,7 @@ function mh(r, t) {
|
|
|
7917
7920
|
}
|
|
7918
7921
|
const ph = F(v, {
|
|
7919
7922
|
color: L(Cn),
|
|
7920
|
-
scale: L(
|
|
7923
|
+
scale: L(no)
|
|
7921
7924
|
});
|
|
7922
7925
|
function yh(r, t) {
|
|
7923
7926
|
const e = j({}, ph, r, t);
|
|
@@ -7985,9 +7988,9 @@ function Ch(r, t) {
|
|
|
7985
7988
|
o !== void 0 && (i.outline = o);
|
|
7986
7989
|
}
|
|
7987
7990
|
const Sh = F(v, {
|
|
7988
|
-
coordinates: ms(
|
|
7991
|
+
coordinates: ms(to)
|
|
7989
7992
|
});
|
|
7990
|
-
function
|
|
7993
|
+
function ro(r, t) {
|
|
7991
7994
|
return j(null, Sh, r, t);
|
|
7992
7995
|
}
|
|
7993
7996
|
function Rh(r, t) {
|
|
@@ -7999,7 +8002,7 @@ function Rh(r, t) {
|
|
|
7999
8002
|
i.push([]);
|
|
8000
8003
|
}
|
|
8001
8004
|
const Ih = F(jt, {
|
|
8002
|
-
Track: le(
|
|
8005
|
+
Track: le(oo)
|
|
8003
8006
|
});
|
|
8004
8007
|
function wh(r, t) {
|
|
8005
8008
|
const e = j(
|
|
@@ -8020,7 +8023,7 @@ const Lh = F(
|
|
|
8020
8023
|
coord: Rh
|
|
8021
8024
|
})
|
|
8022
8025
|
);
|
|
8023
|
-
function
|
|
8026
|
+
function oo(r, t) {
|
|
8024
8027
|
const e = j(
|
|
8025
8028
|
/** @type {GxTrackObject} */
|
|
8026
8029
|
{
|
|
@@ -8046,7 +8049,7 @@ function ro(r, t) {
|
|
|
8046
8049
|
const vh = F(
|
|
8047
8050
|
v,
|
|
8048
8051
|
{
|
|
8049
|
-
href: L(
|
|
8052
|
+
href: L(eo)
|
|
8050
8053
|
},
|
|
8051
8054
|
F(jt, {
|
|
8052
8055
|
x: L(Q),
|
|
@@ -8060,7 +8063,7 @@ function Ph(r, t) {
|
|
|
8060
8063
|
return e || null;
|
|
8061
8064
|
}
|
|
8062
8065
|
const Ah = F(v, {
|
|
8063
|
-
coordinates: ms(
|
|
8066
|
+
coordinates: ms(to)
|
|
8064
8067
|
});
|
|
8065
8068
|
function ys(r, t) {
|
|
8066
8069
|
return j(
|
|
@@ -8075,7 +8078,7 @@ const Sn = F(v, {
|
|
|
8075
8078
|
tessellate: L(_e),
|
|
8076
8079
|
altitudeMode: L(ht)
|
|
8077
8080
|
});
|
|
8078
|
-
function
|
|
8081
|
+
function ao(r, t) {
|
|
8079
8082
|
const e = j(
|
|
8080
8083
|
{},
|
|
8081
8084
|
Sn,
|
|
@@ -8087,7 +8090,7 @@ function oo(r, t) {
|
|
|
8087
8090
|
return n.setProperties(e, !0), n;
|
|
8088
8091
|
}
|
|
8089
8092
|
}
|
|
8090
|
-
function
|
|
8093
|
+
function lo(r, t) {
|
|
8091
8094
|
const e = j(
|
|
8092
8095
|
{},
|
|
8093
8096
|
Sn,
|
|
@@ -8102,13 +8105,13 @@ function ao(r, t) {
|
|
|
8102
8105
|
}
|
|
8103
8106
|
}
|
|
8104
8107
|
const Fh = F(v, {
|
|
8105
|
-
LineString: le(
|
|
8106
|
-
LinearRing: le(
|
|
8107
|
-
MultiGeometry: le(
|
|
8108
|
-
Point: le(
|
|
8109
|
-
Polygon: le(
|
|
8108
|
+
LineString: le(ao),
|
|
8109
|
+
LinearRing: le(lo),
|
|
8110
|
+
MultiGeometry: le(ho),
|
|
8111
|
+
Point: le(co),
|
|
8112
|
+
Polygon: le(uo)
|
|
8110
8113
|
});
|
|
8111
|
-
function
|
|
8114
|
+
function ho(r, t) {
|
|
8112
8115
|
const e = j(
|
|
8113
8116
|
[],
|
|
8114
8117
|
Fh,
|
|
@@ -8143,7 +8146,7 @@ function lo(r, t) {
|
|
|
8143
8146
|
i
|
|
8144
8147
|
);
|
|
8145
8148
|
}
|
|
8146
|
-
function
|
|
8149
|
+
function co(r, t) {
|
|
8147
8150
|
const e = j(
|
|
8148
8151
|
{},
|
|
8149
8152
|
Sn,
|
|
@@ -8159,7 +8162,7 @@ const Dh = F(v, {
|
|
|
8159
8162
|
innerBoundaryIs: Zh,
|
|
8160
8163
|
outerBoundaryIs: jh
|
|
8161
8164
|
});
|
|
8162
|
-
function
|
|
8165
|
+
function uo(r, t) {
|
|
8163
8166
|
const e = j(
|
|
8164
8167
|
/** @type {Object<string,*>} */
|
|
8165
8168
|
{},
|
|
@@ -8311,16 +8314,16 @@ const bh = F(v, {
|
|
|
8311
8314
|
Data: Nh,
|
|
8312
8315
|
SchemaData: Wh
|
|
8313
8316
|
});
|
|
8314
|
-
function
|
|
8317
|
+
function fo(r, t) {
|
|
8315
8318
|
Ze(bh, r, t);
|
|
8316
8319
|
}
|
|
8317
|
-
function
|
|
8318
|
-
Ze(
|
|
8320
|
+
function go(r, t) {
|
|
8321
|
+
Ze(Qr, r, t);
|
|
8319
8322
|
}
|
|
8320
8323
|
const kh = F(v, {
|
|
8321
8324
|
Style: L(xs),
|
|
8322
8325
|
key: L(ht),
|
|
8323
|
-
styleUrl: L(
|
|
8326
|
+
styleUrl: L(io)
|
|
8324
8327
|
});
|
|
8325
8328
|
function Gh(r, t) {
|
|
8326
8329
|
const e = j({}, kh, r, t, this);
|
|
@@ -8344,7 +8347,7 @@ function Gh(r, t) {
|
|
|
8344
8347
|
}
|
|
8345
8348
|
}
|
|
8346
8349
|
function Yh(r, t) {
|
|
8347
|
-
const e =
|
|
8350
|
+
const e = so.call(this, r, t);
|
|
8348
8351
|
if (!e)
|
|
8349
8352
|
return;
|
|
8350
8353
|
const i = t[t.length - 1];
|
|
@@ -8414,7 +8417,7 @@ function Vh(r, t) {
|
|
|
8414
8417
|
const Hh = F(v, {
|
|
8415
8418
|
// KML spec only allows one LinearRing per innerBoundaryIs, but Google Earth
|
|
8416
8419
|
// allows multiple, so we parse multiple here too.
|
|
8417
|
-
LinearRing: le(
|
|
8420
|
+
LinearRing: le(ro)
|
|
8418
8421
|
});
|
|
8419
8422
|
function Zh(r, t) {
|
|
8420
8423
|
const e = j(
|
|
@@ -8428,7 +8431,7 @@ function Zh(r, t) {
|
|
|
8428
8431
|
t[t.length - 1].push(...e);
|
|
8429
8432
|
}
|
|
8430
8433
|
const qh = F(v, {
|
|
8431
|
-
LinearRing: ms(
|
|
8434
|
+
LinearRing: ms(ro)
|
|
8432
8435
|
});
|
|
8433
8436
|
function jh(r, t) {
|
|
8434
8437
|
const e = j(
|
|
@@ -8519,7 +8522,7 @@ function ic(r, t) {
|
|
|
8519
8522
|
Pt(r, t);
|
|
8520
8523
|
}
|
|
8521
8524
|
const nc = F(v, {
|
|
8522
|
-
Placemark: O(
|
|
8525
|
+
Placemark: O(po)
|
|
8523
8526
|
}), sc = function(r, t, e) {
|
|
8524
8527
|
const i = t[t.length - 1].node;
|
|
8525
8528
|
return vi(i.namespaceURI, "Placemark");
|
|
@@ -8595,7 +8598,7 @@ const cc = F(v, [
|
|
|
8595
8598
|
color: O(Rn),
|
|
8596
8599
|
heading: O(Ee),
|
|
8597
8600
|
hotSpot: O(Gc),
|
|
8598
|
-
scale: O(
|
|
8601
|
+
scale: O(xo)
|
|
8599
8602
|
});
|
|
8600
8603
|
function uc(r, t, e) {
|
|
8601
8604
|
const i = { node: r }, n = {}, s = t.getSrc(), o = t.getSize(), a = t.getImageSize(), l = {
|
|
@@ -8640,7 +8643,7 @@ const fc = F(v, [
|
|
|
8640
8643
|
"scale"
|
|
8641
8644
|
]), gc = F(v, {
|
|
8642
8645
|
color: O(Rn),
|
|
8643
|
-
scale: O(
|
|
8646
|
+
scale: O(xo)
|
|
8644
8647
|
});
|
|
8645
8648
|
function _c(r, t, e) {
|
|
8646
8649
|
const i = { node: r }, n = {}, s = t.getFill();
|
|
@@ -8684,7 +8687,7 @@ const xc = {
|
|
|
8684
8687
|
MultiLineString: "MultiGeometry",
|
|
8685
8688
|
MultiPolygon: "MultiGeometry",
|
|
8686
8689
|
GeometryCollection: "MultiGeometry"
|
|
8687
|
-
},
|
|
8690
|
+
}, _o = function(r, t, e) {
|
|
8688
8691
|
if (r) {
|
|
8689
8692
|
const i = t[t.length - 1].node;
|
|
8690
8693
|
return vi(
|
|
@@ -8698,10 +8701,10 @@ const xc = {
|
|
|
8698
8701
|
}, Ec = qt("Point"), Tc = qt("LineString"), Cc = qt("LinearRing"), Sc = qt("Polygon"), Rc = F(v, {
|
|
8699
8702
|
LineString: O(Xe),
|
|
8700
8703
|
Point: O(Xe),
|
|
8701
|
-
Polygon: O(
|
|
8702
|
-
GeometryCollection: O(
|
|
8704
|
+
Polygon: O(yo),
|
|
8705
|
+
GeometryCollection: O(mo)
|
|
8703
8706
|
});
|
|
8704
|
-
function
|
|
8707
|
+
function mo(r, t, e) {
|
|
8705
8708
|
const i = { node: r }, n = t.getType();
|
|
8706
8709
|
let s = [], o;
|
|
8707
8710
|
n === "GeometryCollection" ? (t.getGeometriesArrayRecursive().forEach(function(a) {
|
|
@@ -8716,7 +8719,7 @@ function _o(r, t, e) {
|
|
|
8716
8719
|
/** @type {MultiPolygon} */
|
|
8717
8720
|
a.getPolygons()
|
|
8718
8721
|
) : l === "Point" || l === "LineString" || l === "Polygon" ? s.push(a) : ot(!1, 39);
|
|
8719
|
-
}), o =
|
|
8722
|
+
}), o = _o) : n === "MultiPoint" ? (s = /** @type {MultiPoint} */
|
|
8720
8723
|
t.getPoints(), o = Ec) : n === "MultiLineString" ? (s = /** @type {MultiLineString} */
|
|
8721
8724
|
t.getLineStrings(), o = Tc) : n === "MultiPolygon" ? (s = /** @type {MultiPolygon} */
|
|
8722
8725
|
t.getPolygons(), o = Sc) : ot(!1, 39), et(
|
|
@@ -8741,11 +8744,11 @@ function qs(r, t, e) {
|
|
|
8741
8744
|
}
|
|
8742
8745
|
const Yn = F(v, {
|
|
8743
8746
|
ExtendedData: O(ac),
|
|
8744
|
-
MultiGeometry: O(
|
|
8747
|
+
MultiGeometry: O(mo),
|
|
8745
8748
|
LineString: O(Xe),
|
|
8746
8749
|
LinearRing: O(Xe),
|
|
8747
8750
|
Point: O(Xe),
|
|
8748
|
-
Polygon: O(
|
|
8751
|
+
Polygon: O(yo),
|
|
8749
8752
|
Style: O(kc),
|
|
8750
8753
|
address: O(Pt),
|
|
8751
8754
|
description: O(Pt),
|
|
@@ -8764,7 +8767,7 @@ const Yn = F(v, {
|
|
|
8764
8767
|
"styleUrl",
|
|
8765
8768
|
"Style"
|
|
8766
8769
|
]), Lc = qt("ExtendedData");
|
|
8767
|
-
function
|
|
8770
|
+
function po(r, t, e) {
|
|
8768
8771
|
const i = { node: r };
|
|
8769
8772
|
t.getId() && r.setAttribute(
|
|
8770
8773
|
"id",
|
|
@@ -8865,7 +8868,7 @@ function mo(r, t, e) {
|
|
|
8865
8868
|
d && (d = hn(d, !0, u)), et(
|
|
8866
8869
|
i,
|
|
8867
8870
|
Yn,
|
|
8868
|
-
|
|
8871
|
+
_o,
|
|
8869
8872
|
[d],
|
|
8870
8873
|
e
|
|
8871
8874
|
);
|
|
@@ -8904,7 +8907,7 @@ const Ac = F(v, [
|
|
|
8904
8907
|
outerBoundaryIs: O(qs),
|
|
8905
8908
|
innerBoundaryIs: O(qs)
|
|
8906
8909
|
}), Fc = qt("innerBoundaryIs"), Dc = qt("outerBoundaryIs");
|
|
8907
|
-
function
|
|
8910
|
+
function yo(r, t, e) {
|
|
8908
8911
|
const i = t.getLinearRings(), n = i.shift(), s = { node: r };
|
|
8909
8912
|
et(
|
|
8910
8913
|
s,
|
|
@@ -8940,7 +8943,7 @@ function Mc(r, t, e) {
|
|
|
8940
8943
|
l
|
|
8941
8944
|
);
|
|
8942
8945
|
}
|
|
8943
|
-
function
|
|
8946
|
+
function xo(r, t) {
|
|
8944
8947
|
Ee(r, Math.round(t * 1e6) / 1e6);
|
|
8945
8948
|
}
|
|
8946
8949
|
const Nc = F(v, [
|
|
@@ -9124,7 +9127,7 @@ class Pi extends Ei {
|
|
|
9124
9127
|
setCenterAndRadius(t, e, i) {
|
|
9125
9128
|
this.setLayout(i, t, 0), this.flatCoordinates || (this.flatCoordinates = []);
|
|
9126
9129
|
const n = this.flatCoordinates;
|
|
9127
|
-
let s =
|
|
9130
|
+
let s = _a(n, 0, t, this.stride);
|
|
9128
9131
|
n[s++] = n[0] + e;
|
|
9129
9132
|
for (let o = 1, a = this.stride; o < a; ++o)
|
|
9130
9133
|
n[s++] = n[o];
|
|
@@ -9165,7 +9168,7 @@ const Yc = {
|
|
|
9165
9168
|
MULTIPOINT: Li,
|
|
9166
9169
|
MULTILINESTRING: Be,
|
|
9167
9170
|
MULTIPOLYGON: _i
|
|
9168
|
-
},
|
|
9171
|
+
}, Eo = "EMPTY", To = "Z", Co = "M", Xc = "ZM", U = {
|
|
9169
9172
|
START: 0,
|
|
9170
9173
|
TEXT: 1,
|
|
9171
9174
|
LEFT_PAREN: 2,
|
|
@@ -9332,7 +9335,7 @@ class Bc {
|
|
|
9332
9335
|
const e = this.token_;
|
|
9333
9336
|
if (this.isTokenType(U.TEXT)) {
|
|
9334
9337
|
const i = e.value;
|
|
9335
|
-
i ===
|
|
9338
|
+
i === To ? t = "XYZ" : i === Co ? t = "XYM" : i === Xc && (t = "XYZM"), t !== "XY" && this.consume_();
|
|
9336
9339
|
}
|
|
9337
9340
|
return t;
|
|
9338
9341
|
}
|
|
@@ -9489,7 +9492,7 @@ class Bc {
|
|
|
9489
9492
|
* @private
|
|
9490
9493
|
*/
|
|
9491
9494
|
isEmptyGeometry_() {
|
|
9492
|
-
const t = this.isTokenType(U.TEXT) && this.token_.value ==
|
|
9495
|
+
const t = this.isTokenType(U.TEXT) && this.token_.value == Eo;
|
|
9493
9496
|
return t && this.consume_(), t;
|
|
9494
9497
|
}
|
|
9495
9498
|
/**
|
|
@@ -9645,23 +9648,23 @@ class fn extends eh {
|
|
|
9645
9648
|
* @return {string} Text.
|
|
9646
9649
|
*/
|
|
9647
9650
|
writeGeometryText(t, e) {
|
|
9648
|
-
return
|
|
9651
|
+
return Io(hn(t, !0, e));
|
|
9649
9652
|
}
|
|
9650
9653
|
}
|
|
9651
|
-
function
|
|
9654
|
+
function So(r) {
|
|
9652
9655
|
const t = r.getCoordinates();
|
|
9653
9656
|
return t.length === 0 ? "" : t.join(" ");
|
|
9654
9657
|
}
|
|
9655
9658
|
function Kc(r) {
|
|
9656
9659
|
const t = [], e = r.getPoints();
|
|
9657
9660
|
for (let i = 0, n = e.length; i < n; ++i)
|
|
9658
|
-
t.push("(" +
|
|
9661
|
+
t.push("(" + So(e[i]) + ")");
|
|
9659
9662
|
return t.join(",");
|
|
9660
9663
|
}
|
|
9661
9664
|
function zc(r) {
|
|
9662
9665
|
const t = [], e = r.getGeometries();
|
|
9663
9666
|
for (let i = 0, n = e.length; i < n; ++i)
|
|
9664
|
-
t.push(
|
|
9667
|
+
t.push(Io(e[i]));
|
|
9665
9668
|
return t.join(",");
|
|
9666
9669
|
}
|
|
9667
9670
|
function Es(r) {
|
|
@@ -9676,7 +9679,7 @@ function Vc(r) {
|
|
|
9676
9679
|
t.push("(" + Es(e[i]) + ")");
|
|
9677
9680
|
return t.join(",");
|
|
9678
9681
|
}
|
|
9679
|
-
function
|
|
9682
|
+
function Ro(r) {
|
|
9680
9683
|
const t = [], e = r.getLinearRings();
|
|
9681
9684
|
for (let i = 0, n = e.length; i < n; ++i)
|
|
9682
9685
|
t.push("(" + Es(e[i]) + ")");
|
|
@@ -9685,24 +9688,24 @@ function So(r) {
|
|
|
9685
9688
|
function Hc(r) {
|
|
9686
9689
|
const t = [], e = r.getPolygons();
|
|
9687
9690
|
for (let i = 0, n = e.length; i < n; ++i)
|
|
9688
|
-
t.push("(" +
|
|
9691
|
+
t.push("(" + Ro(e[i]) + ")");
|
|
9689
9692
|
return t.join(",");
|
|
9690
9693
|
}
|
|
9691
9694
|
function Zc(r) {
|
|
9692
9695
|
const t = r.getLayout();
|
|
9693
9696
|
let e = "";
|
|
9694
|
-
return (t === "XYZ" || t === "XYZM") && (e +=
|
|
9697
|
+
return (t === "XYZ" || t === "XYZM") && (e += To), (t === "XYM" || t === "XYZM") && (e += Co), e;
|
|
9695
9698
|
}
|
|
9696
9699
|
const qc = {
|
|
9697
|
-
Point:
|
|
9700
|
+
Point: So,
|
|
9698
9701
|
LineString: Es,
|
|
9699
|
-
Polygon:
|
|
9702
|
+
Polygon: Ro,
|
|
9700
9703
|
MultiPoint: Kc,
|
|
9701
9704
|
MultiLineString: Vc,
|
|
9702
9705
|
MultiPolygon: Hc,
|
|
9703
9706
|
GeometryCollection: zc
|
|
9704
9707
|
};
|
|
9705
|
-
function
|
|
9708
|
+
function Io(r) {
|
|
9706
9709
|
const t = r.getType(), e = qc[t], i = e(r);
|
|
9707
9710
|
let n = Wc[t];
|
|
9708
9711
|
if (typeof /** @type {?} */
|
|
@@ -9713,16 +9716,16 @@ function Ro(r) {
|
|
|
9713
9716
|
);
|
|
9714
9717
|
s.length > 0 && (n += " " + s);
|
|
9715
9718
|
}
|
|
9716
|
-
return i.length === 0 ? n + " " +
|
|
9719
|
+
return i.length === 0 ? n + " " + Eo : n + "(" + i + ")";
|
|
9717
9720
|
}
|
|
9718
9721
|
function jc(r, t, e, i, n) {
|
|
9719
|
-
|
|
9722
|
+
wo(r, t, e || 0, i || r.length - 1, n || Jc);
|
|
9720
9723
|
}
|
|
9721
|
-
function
|
|
9724
|
+
function wo(r, t, e, i, n) {
|
|
9722
9725
|
for (; i > e; ) {
|
|
9723
9726
|
if (i - e > 600) {
|
|
9724
9727
|
var s = i - e + 1, o = t - e + 1, a = Math.log(s), l = 0.5 * Math.exp(2 * a / 3), h = 0.5 * Math.sqrt(a * l * (s - l) / s) * (o - s / 2 < 0 ? -1 : 1), c = Math.max(e, Math.floor(t - o * l / s + h)), u = Math.min(i, Math.floor(t + (s - o) * l / s + h));
|
|
9725
|
-
|
|
9728
|
+
wo(r, t, c, u, n);
|
|
9726
9729
|
}
|
|
9727
9730
|
var d = r[t], f = e, g = i;
|
|
9728
9731
|
for ($e(r, e, t), n(r[i], d) > 0 && $e(r, e, i); f < g; ) {
|
|
@@ -9739,7 +9742,7 @@ function $e(r, t, e) {
|
|
|
9739
9742
|
function Jc(r, t) {
|
|
9740
9743
|
return r < t ? -1 : r > t ? 1 : 0;
|
|
9741
9744
|
}
|
|
9742
|
-
let
|
|
9745
|
+
let Lo = class {
|
|
9743
9746
|
constructor(t = 9) {
|
|
9744
9747
|
this._maxEntries = Math.max(4, t), this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4)), this.clear();
|
|
9745
9748
|
}
|
|
@@ -9990,7 +9993,7 @@ class Qs {
|
|
|
9990
9993
|
* @param {number} [maxEntries] Max entries.
|
|
9991
9994
|
*/
|
|
9992
9995
|
constructor(t) {
|
|
9993
|
-
this.rbush_ = new
|
|
9996
|
+
this.rbush_ = new Lo(t), this.items_ = {};
|
|
9994
9997
|
}
|
|
9995
9998
|
/**
|
|
9996
9999
|
* Insert a value into the RBush.
|
|
@@ -10240,7 +10243,7 @@ class ee extends ze {
|
|
|
10240
10243
|
super(t), this.feature = e, this.features = i;
|
|
10241
10244
|
}
|
|
10242
10245
|
}
|
|
10243
|
-
class Ie extends
|
|
10246
|
+
class Ie extends ma {
|
|
10244
10247
|
/**
|
|
10245
10248
|
* @param {Options<Geometry>} [options] Vector source options.
|
|
10246
10249
|
*/
|
|
@@ -10565,7 +10568,7 @@ class Ie extends _a {
|
|
|
10565
10568
|
if (this.featuresRtree_) {
|
|
10566
10569
|
if (!(e && e.canWrapX() && this.getWrapX()))
|
|
10567
10570
|
return this.featuresRtree_.getInExtent(t);
|
|
10568
|
-
const n =
|
|
10571
|
+
const n = pa(t, e);
|
|
10569
10572
|
return [].concat(
|
|
10570
10573
|
...n.map((s) => this.featuresRtree_.getInExtent(s))
|
|
10571
10574
|
);
|
|
@@ -10836,7 +10839,7 @@ class Ie extends _a {
|
|
|
10836
10839
|
ot(this.format_, 7), this.url_ = t, this.setLoader($s(t, this.format_));
|
|
10837
10840
|
}
|
|
10838
10841
|
}
|
|
10839
|
-
class
|
|
10842
|
+
class vo extends Ie {
|
|
10840
10843
|
/**
|
|
10841
10844
|
* @param {Options} options Cluster options.
|
|
10842
10845
|
*/
|
|
@@ -10945,7 +10948,7 @@ class Lo extends Ie {
|
|
|
10945
10948
|
const l = this.geometryFunction(a);
|
|
10946
10949
|
if (l) {
|
|
10947
10950
|
const h = l.getCoordinates();
|
|
10948
|
-
|
|
10951
|
+
ya(h, t), pn(t, e, t);
|
|
10949
10952
|
const c = this.source.getFeaturesInExtent(t).filter(function(u) {
|
|
10950
10953
|
const d = q(u);
|
|
10951
10954
|
return d in n ? !1 : (n[d] = !0, !0);
|
|
@@ -10965,7 +10968,7 @@ class Lo extends Ie {
|
|
|
10965
10968
|
const i = [0, 0];
|
|
10966
10969
|
for (let a = t.length - 1; a >= 0; --a) {
|
|
10967
10970
|
const l = this.geometryFunction(t[a]);
|
|
10968
|
-
l ?
|
|
10971
|
+
l ? xa(i, l.getCoordinates()) : t.splice(a, 1);
|
|
10969
10972
|
}
|
|
10970
10973
|
dr(i, 1 / t.length);
|
|
10971
10974
|
const n = xi(e), s = this.interpolationRatio, o = new Vt([
|
|
@@ -11055,7 +11058,7 @@ function ad(r) {
|
|
|
11055
11058
|
const i = r["shape-points"];
|
|
11056
11059
|
if (i) {
|
|
11057
11060
|
const s = "shape-";
|
|
11058
|
-
return new
|
|
11061
|
+
return new Ka({
|
|
11059
11062
|
points: i,
|
|
11060
11063
|
fill: mi(r, s),
|
|
11061
11064
|
stroke: pi(r, s),
|
|
@@ -11073,7 +11076,7 @@ function ad(r) {
|
|
|
11073
11076
|
const n = r["circle-radius"];
|
|
11074
11077
|
if (n) {
|
|
11075
11078
|
const s = "circle-";
|
|
11076
|
-
return new
|
|
11079
|
+
return new za({
|
|
11077
11080
|
radius: n,
|
|
11078
11081
|
fill: mi(r, s),
|
|
11079
11082
|
stroke: pi(r, s),
|
|
@@ -11172,7 +11175,7 @@ class ld extends _n {
|
|
|
11172
11175
|
* @param {import("../Map.js").FrameState} frameState Frame state.
|
|
11173
11176
|
*/
|
|
11174
11177
|
renderDeclutter(t) {
|
|
11175
|
-
t.declutterTree || (t.declutterTree = new
|
|
11178
|
+
t.declutterTree || (t.declutterTree = new Lo(9)), this.getRenderer().renderDeclutter(t);
|
|
11176
11179
|
}
|
|
11177
11180
|
/**
|
|
11178
11181
|
* @param {import("../render.js").OrderFunction|null|undefined} renderOrder
|
|
@@ -11205,7 +11208,7 @@ class ld extends _n {
|
|
|
11205
11208
|
setStyle(t) {
|
|
11206
11209
|
let e;
|
|
11207
11210
|
if (t === void 0)
|
|
11208
|
-
e =
|
|
11211
|
+
e = Ha;
|
|
11209
11212
|
else if (t === null)
|
|
11210
11213
|
e = null;
|
|
11211
11214
|
else if (typeof t == "function")
|
|
@@ -11221,7 +11224,7 @@ class ld extends _n {
|
|
|
11221
11224
|
e = n;
|
|
11222
11225
|
} else
|
|
11223
11226
|
e = tr(t);
|
|
11224
|
-
this.style_ = e, this.styleFunction_ = t === null ? void 0 :
|
|
11227
|
+
this.style_ = e, this.styleFunction_ = t === null ? void 0 : Va(this.style_), this.changed();
|
|
11225
11228
|
}
|
|
11226
11229
|
}
|
|
11227
11230
|
const D = {
|
|
@@ -11239,7 +11242,7 @@ const D = {
|
|
|
11239
11242
|
SET_STROKE_STYLE: 11,
|
|
11240
11243
|
STROKE: 12
|
|
11241
11244
|
}, Hi = [D.FILL], fe = [D.STROKE], Ce = [D.BEGIN_PATH], ir = [D.CLOSE_PATH];
|
|
11242
|
-
class
|
|
11245
|
+
class Po {
|
|
11243
11246
|
/**
|
|
11244
11247
|
* Render a geometry with a custom renderer.
|
|
11245
11248
|
*
|
|
@@ -11343,7 +11346,7 @@ class vo {
|
|
|
11343
11346
|
setTextStyle(t, e) {
|
|
11344
11347
|
}
|
|
11345
11348
|
}
|
|
11346
|
-
class Ai extends
|
|
11349
|
+
class Ai extends Po {
|
|
11347
11350
|
/**
|
|
11348
11351
|
* @param {number} tolerance Tolerance.
|
|
11349
11352
|
* @param {import("../../extent.js").Extent} maxExtent Maximum extent.
|
|
@@ -11397,7 +11400,7 @@ class Ai extends vo {
|
|
|
11397
11400
|
const d = this.tmpCoordinate_;
|
|
11398
11401
|
let f = !0, g, m, p;
|
|
11399
11402
|
for (g = e + n; g < i; g += n)
|
|
11400
|
-
d[0] = t[g], d[1] = t[g + 1], p =
|
|
11403
|
+
d[0] = t[g], d[1] = t[g + 1], p = Ea(h, d), p !== m ? (f && (a[l++] = c, a[l++] = u, f = !1), a[l++] = d[0], a[l++] = d[1]) : p === Ta.INTERSECTING ? (a[l++] = d[0], a[l++] = d[1], f = !1) : f = !0, c = d[0], u = d[1], m = p;
|
|
11401
11404
|
return (s && f || g === e + n) && (a[l++] = c, a[l++] = u), l;
|
|
11402
11405
|
}
|
|
11403
11406
|
/**
|
|
@@ -11594,7 +11597,7 @@ class Ai extends vo {
|
|
|
11594
11597
|
let n, s, o = -1;
|
|
11595
11598
|
for (e = 0; e < i; ++e)
|
|
11596
11599
|
n = t[e], s = /** @type {import("./Instruction.js").default} */
|
|
11597
|
-
n[0], s == D.END_GEOMETRY ? o = e : s == D.BEGIN_GEOMETRY && (n[2] = e,
|
|
11600
|
+
n[0], s == D.END_GEOMETRY ? o = e : s == D.BEGIN_GEOMETRY && (n[2] = e, ka(this.hitDetectionInstructions, o, e), o = -1);
|
|
11598
11601
|
}
|
|
11599
11602
|
/**
|
|
11600
11603
|
* @param {import("../../style/Fill.js").default} fillStyle Fill style.
|
|
@@ -12074,7 +12077,7 @@ class nr extends Ai {
|
|
|
12074
12077
|
if (t !== 0) {
|
|
12075
12078
|
const e = this.coordinates;
|
|
12076
12079
|
for (let i = 0, n = e.length; i < n; ++i)
|
|
12077
|
-
e[i] =
|
|
12080
|
+
e[i] = Ca(e[i], t);
|
|
12078
12081
|
}
|
|
12079
12082
|
return super.finish();
|
|
12080
12083
|
}
|
|
@@ -12423,7 +12426,7 @@ class fd extends Ai {
|
|
|
12423
12426
|
}
|
|
12424
12427
|
i = this.textState_;
|
|
12425
12428
|
const l = t.getFont() || Dr;
|
|
12426
|
-
|
|
12429
|
+
Za(l);
|
|
12427
12430
|
const h = t.getScaleArray();
|
|
12428
12431
|
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() || an, i.backgroundFill = t.getBackgroundFill(), i.backgroundStroke = t.getBackgroundStroke(), i.padding = t.getPadding() || xe, i.scale = h === void 0 ? [1, 1] : h;
|
|
12429
12432
|
const c = t.getOffsetX(), u = t.getOffsetY(), d = t.getRotateWithView(), f = t.getRotation();
|
|
@@ -12586,7 +12589,7 @@ class pd {
|
|
|
12586
12589
|
Array.isArray(t) ? t[0] : t,
|
|
12587
12590
|
l.textAlign || gi
|
|
12588
12591
|
), f = n && o.lineWidth ? o.lineWidth : 0, g = u ? t : t.split(`
|
|
12589
|
-
`).reduce(md, []), { width: m, height: p, widths: _, heights: E, lineWidths: x } =
|
|
12592
|
+
`).reduce(md, []), { width: m, height: p, widths: _, heights: E, lineWidths: x } = qa(
|
|
12590
12593
|
l,
|
|
12591
12594
|
g
|
|
12592
12595
|
), y = m + f, T = [], R = (y + 2) * c[0], S = (p + f) * c[1], I = {
|
|
@@ -12722,7 +12725,7 @@ class pd {
|
|
|
12722
12725
|
o,
|
|
12723
12726
|
/** @type {Array<*>} */
|
|
12724
12727
|
a
|
|
12725
|
-
),
|
|
12728
|
+
), ja(
|
|
12726
12729
|
t,
|
|
12727
12730
|
n.canvasTransform,
|
|
12728
12731
|
s,
|
|
@@ -12806,7 +12809,7 @@ class pd {
|
|
|
12806
12809
|
2,
|
|
12807
12810
|
i,
|
|
12808
12811
|
this.pixelCoordinates_
|
|
12809
|
-
),
|
|
12812
|
+
), Sa(this.renderedTransform_, i));
|
|
12810
12813
|
let c = 0;
|
|
12811
12814
|
const u = n.length;
|
|
12812
12815
|
let d = 0, f, g, m, p, _, E, x, y, T, R, S, I, P = 0, M = 0, X = null, Y = null;
|
|
@@ -13002,13 +13005,13 @@ class pd {
|
|
|
13002
13005
|
), Ln = (
|
|
13003
13006
|
/** @type {number} */
|
|
13004
13007
|
C[3]
|
|
13005
|
-
),
|
|
13008
|
+
), Mo = (
|
|
13006
13009
|
/** @type {number} */
|
|
13007
13010
|
C[4]
|
|
13008
13011
|
);
|
|
13009
13012
|
I = /** @type {string} */
|
|
13010
13013
|
C[5];
|
|
13011
|
-
const
|
|
13014
|
+
const No = (
|
|
13012
13015
|
/** @type {number} */
|
|
13013
13016
|
C[6]
|
|
13014
13017
|
), Ts = (
|
|
@@ -13038,8 +13041,8 @@ class pd {
|
|
|
13038
13041
|
];
|
|
13039
13042
|
let Qe;
|
|
13040
13043
|
je in this.widths_ ? Qe = this.widths_[je] : (Qe = {}, this.widths_[je] = Qe);
|
|
13041
|
-
const Rs =
|
|
13042
|
-
if (
|
|
13044
|
+
const Rs = jr(h, bi, ct, 2), Is = Math.abs(Je[0]) * Ms(je, T, Qe);
|
|
13045
|
+
if (Mo || Is <= Rs) {
|
|
13043
13046
|
const pt = this.textStates[R].textAlign, Fe = (Rs - Is) * Un(T, pt), Tt = _d(
|
|
13044
13047
|
h,
|
|
13045
13048
|
bi,
|
|
@@ -13047,7 +13050,7 @@ class pd {
|
|
|
13047
13050
|
2,
|
|
13048
13051
|
T,
|
|
13049
13052
|
Fe,
|
|
13050
|
-
|
|
13053
|
+
No,
|
|
13051
13054
|
Math.abs(Je[0]),
|
|
13052
13055
|
Ms,
|
|
13053
13056
|
je,
|
|
@@ -13128,7 +13131,7 @@ class pd {
|
|
|
13128
13131
|
]);
|
|
13129
13132
|
}
|
|
13130
13133
|
l && l.load(kt.map(rr));
|
|
13131
|
-
for (let Gt = 0,
|
|
13134
|
+
for (let Gt = 0, bo = kt.length; Gt < bo; ++Gt)
|
|
13132
13135
|
this.replayImageOrLabel_.apply(this, kt[Gt]);
|
|
13133
13136
|
}
|
|
13134
13137
|
}
|
|
@@ -13414,7 +13417,7 @@ function yd(r) {
|
|
|
13414
13417
|
i[s] && n.push(...i[s]);
|
|
13415
13418
|
return Kn[r] = n, n;
|
|
13416
13419
|
}
|
|
13417
|
-
class xd extends
|
|
13420
|
+
class xd extends Po {
|
|
13418
13421
|
/**
|
|
13419
13422
|
* @param {CanvasRenderingContext2D} context Context.
|
|
13420
13423
|
* @param {number} pixelRatio Pixel ratio.
|
|
@@ -13425,7 +13428,7 @@ class xd extends vo {
|
|
|
13425
13428
|
* @param {import("../../proj.js").TransformFunction} [userTransform] Transform from user to view projection.
|
|
13426
13429
|
*/
|
|
13427
13430
|
constructor(t, e, i, n, s, o, a) {
|
|
13428
|
-
super(), this.context_ = t, this.pixelRatio_ = e, this.extent_ = i, this.transform_ = n, this.transformRotation_ = n ?
|
|
13431
|
+
super(), this.context_ = t, this.pixelRatio_ = e, this.extent_ = i, this.transform_ = n, this.transformRotation_ = n ? Ga(Math.atan2(n[1], n[0]), 10) : 0, this.viewRotation_ = s, this.squaredTolerance_ = o, this.userTransform_ = a, this.contextFillState_ = null, this.contextStrokeState_ = null, this.contextTextState_ = null, this.fillState_ = null, this.strokeState_ = null, this.image_ = null, this.imageAnchorX_ = 0, this.imageAnchorY_ = 0, this.imageHeight_ = 0, this.imageOpacity_ = 0, this.imageOriginX_ = 0, this.imageOriginY_ = 0, this.imageRotateWithView_ = !1, this.imageRotation_ = 0, this.imageScale_ = [0, 0], this.imageWidth_ = 0, this.text_ = "", this.textOffsetX_ = 0, this.textOffsetY_ = 0, this.textRotateWithView_ = !1, this.textRotation_ = 0, this.textScale_ = [0, 0], this.textFillState_ = null, this.textStrokeState_ = null, this.textState_ = null, this.pixelCoordinates_ = [], this.tmpLocalTransform_ = Ut();
|
|
13429
13432
|
}
|
|
13430
13433
|
/**
|
|
13431
13434
|
* @param {Array<number>} flatCoordinates Flat coordinates.
|
|
@@ -13571,7 +13574,7 @@ class xd extends vo {
|
|
|
13571
13574
|
)), !!It(this.extent_, t.getExtent())) {
|
|
13572
13575
|
if (this.fillState_ || this.strokeState_) {
|
|
13573
13576
|
this.fillState_ && this.setContextFillState_(this.fillState_), this.strokeState_ && this.setContextStrokeState_(this.strokeState_);
|
|
13574
|
-
const e =
|
|
13577
|
+
const e = Ra(
|
|
13575
13578
|
t,
|
|
13576
13579
|
this.transform_,
|
|
13577
13580
|
this.pixelCoordinates_
|
|
@@ -14085,7 +14088,7 @@ function Td(r, t, e) {
|
|
|
14085
14088
|
}
|
|
14086
14089
|
return i;
|
|
14087
14090
|
}
|
|
14088
|
-
const Cd = 0.5,
|
|
14091
|
+
const Cd = 0.5, Ao = {
|
|
14089
14092
|
Point: Fd,
|
|
14090
14093
|
LineString: vd,
|
|
14091
14094
|
Polygon: Od,
|
|
@@ -14145,9 +14148,9 @@ function wd(r, t, e, i, n, s) {
|
|
|
14145
14148
|
n
|
|
14146
14149
|
);
|
|
14147
14150
|
if (e.getRenderer())
|
|
14148
|
-
|
|
14151
|
+
Fo(r, a, e, t);
|
|
14149
14152
|
else {
|
|
14150
|
-
const h =
|
|
14153
|
+
const h = Ao[a.getType()];
|
|
14151
14154
|
h(
|
|
14152
14155
|
r,
|
|
14153
14156
|
a,
|
|
@@ -14157,14 +14160,14 @@ function wd(r, t, e, i, n, s) {
|
|
|
14157
14160
|
);
|
|
14158
14161
|
}
|
|
14159
14162
|
}
|
|
14160
|
-
function
|
|
14163
|
+
function Fo(r, t, e, i) {
|
|
14161
14164
|
if (t.getType() == "GeometryCollection") {
|
|
14162
14165
|
const s = (
|
|
14163
14166
|
/** @type {import("../geom/GeometryCollection.js").default} */
|
|
14164
14167
|
t.getGeometries()
|
|
14165
14168
|
);
|
|
14166
14169
|
for (let o = 0, a = s.length; o < a; ++o)
|
|
14167
|
-
|
|
14170
|
+
Fo(r, s[o], e, i);
|
|
14168
14171
|
return;
|
|
14169
14172
|
}
|
|
14170
14173
|
r.getBuilder(e.getZIndex(), "Default").drawCustom(
|
|
@@ -14179,7 +14182,7 @@ function Ld(r, t, e, i, n) {
|
|
|
14179
14182
|
const s = t.getGeometriesArray();
|
|
14180
14183
|
let o, a;
|
|
14181
14184
|
for (o = 0, a = s.length; o < a; ++o) {
|
|
14182
|
-
const l =
|
|
14185
|
+
const l = Ao[s[o].getType()];
|
|
14183
14186
|
l(
|
|
14184
14187
|
r,
|
|
14185
14188
|
s[o],
|
|
@@ -14389,7 +14392,7 @@ class Md extends zr {
|
|
|
14389
14392
|
*/
|
|
14390
14393
|
renderFrame(t, e) {
|
|
14391
14394
|
const i = t.pixelRatio, n = t.layerStatesArray[t.layerIndex];
|
|
14392
|
-
|
|
14395
|
+
Ia(this.pixelTransform, 1 / i, 1 / i), ls(this.inversePixelTransform, this.pixelTransform);
|
|
14393
14396
|
const s = Tr(this.pixelTransform);
|
|
14394
14397
|
this.useContainer(e, s, this.getBackground(t));
|
|
14395
14398
|
const o = this.context, a = o.canvas, l = this.replayGroup_, h = this.declutterExecutorGroup;
|
|
@@ -14558,7 +14561,7 @@ class Md extends zr {
|
|
|
14558
14561
|
if (i.getWrapX() && c.canWrapX() && !ti(y, t.extent)) {
|
|
14559
14562
|
const A = ft(y), N = Math.max(ft(_) / 2, A);
|
|
14560
14563
|
_[0] = y[0] - N, _[2] = y[2] + N, hr(p, c);
|
|
14561
|
-
const w =
|
|
14564
|
+
const w = wa(x[0], c);
|
|
14562
14565
|
w[0] < y[0] && w[2] < y[2] ? x.push([
|
|
14563
14566
|
w[0] + A,
|
|
14564
14567
|
w[1],
|
|
@@ -14611,7 +14614,7 @@ class Md extends zr {
|
|
|
14611
14614
|
P = P && !k;
|
|
14612
14615
|
}
|
|
14613
14616
|
}
|
|
14614
|
-
), X =
|
|
14617
|
+
), X = La(_), Y = i.getFeaturesInExtent(X);
|
|
14615
14618
|
m && Y.sort(m);
|
|
14616
14619
|
for (let A = 0, N = Y.length; A < N; ++A)
|
|
14617
14620
|
M(Y[A]);
|
|
@@ -14670,7 +14673,7 @@ class Md extends zr {
|
|
|
14670
14673
|
return a;
|
|
14671
14674
|
}
|
|
14672
14675
|
}
|
|
14673
|
-
class
|
|
14676
|
+
class Do extends ld {
|
|
14674
14677
|
/**
|
|
14675
14678
|
* @param {import("./BaseVector.js").Options<VectorSourceType>} [options] Options.
|
|
14676
14679
|
*/
|
|
@@ -14684,23 +14687,23 @@ class Fo extends ld {
|
|
|
14684
14687
|
const In = {
|
|
14685
14688
|
featureProjection: "EPSG:3857",
|
|
14686
14689
|
dataProjection: "EPSG:4326"
|
|
14687
|
-
},
|
|
14690
|
+
}, Qd = (r, t, e, i = "map", n = {
|
|
14688
14691
|
doubleClickZoom: !0
|
|
14689
14692
|
}, s = {
|
|
14690
|
-
zoom: !0
|
|
14691
|
-
zoomOptions: {
|
|
14692
|
-
|
|
14693
|
-
|
|
14694
|
-
|
|
14695
|
-
|
|
14696
|
-
}
|
|
14697
|
-
}) => new
|
|
14693
|
+
zoom: !0
|
|
14694
|
+
// zoomOptions: {
|
|
14695
|
+
// zoomInLabel: "zoom_in",
|
|
14696
|
+
// zoomOutLabel: "zoom_out",
|
|
14697
|
+
// zoomInClassName: "material-icons",
|
|
14698
|
+
// zoomOutClassName: "material-icons",
|
|
14699
|
+
// },
|
|
14700
|
+
}) => new Fl({
|
|
14698
14701
|
target: i,
|
|
14699
14702
|
layers: r,
|
|
14700
14703
|
view: new ae({
|
|
14701
14704
|
center: yn([t.longitude, t.latitude]),
|
|
14702
14705
|
zoom: e,
|
|
14703
|
-
extent:
|
|
14706
|
+
extent: va(
|
|
14704
14707
|
[-178, -88, 178, 88],
|
|
14705
14708
|
"EPSG:4326",
|
|
14706
14709
|
"EPSG:3857"
|
|
@@ -14708,9 +14711,9 @@ const In = {
|
|
|
14708
14711
|
}),
|
|
14709
14712
|
interactions: Ur(n),
|
|
14710
14713
|
controls: kr(s)
|
|
14711
|
-
}),
|
|
14714
|
+
}), $d = (r) => new zl({
|
|
14712
14715
|
source: r
|
|
14713
|
-
}),
|
|
14716
|
+
}), tu = ({
|
|
14714
14717
|
features: r,
|
|
14715
14718
|
writeStyles: t = !1,
|
|
14716
14719
|
projections: e = In
|
|
@@ -14757,9 +14760,9 @@ const In = {
|
|
|
14757
14760
|
}), e.writeFeatures(i, {
|
|
14758
14761
|
...t
|
|
14759
14762
|
});
|
|
14760
|
-
},
|
|
14763
|
+
}, Oo = (r, t, e, i = 0.35) => {
|
|
14761
14764
|
li.isArray(r) && r.forEach(
|
|
14762
|
-
(a) =>
|
|
14765
|
+
(a) => Oo(a, t, e)
|
|
14763
14766
|
);
|
|
14764
14767
|
const n = us(r.Point.coordinates), s = new me({
|
|
14765
14768
|
geometry: new Vt(yn(n)),
|
|
@@ -14774,11 +14777,11 @@ const In = {
|
|
|
14774
14777
|
zIndex: 1
|
|
14775
14778
|
});
|
|
14776
14779
|
return s.setStyle(o), s;
|
|
14777
|
-
},
|
|
14780
|
+
}, eu = (r, t, e, i = 0.35) => {
|
|
14778
14781
|
if (Or(r) === !0) {
|
|
14779
14782
|
const s = Mr(r), o = Qn(s);
|
|
14780
14783
|
if (li.has(o, "Placemark"))
|
|
14781
|
-
return
|
|
14784
|
+
return Oo(
|
|
14782
14785
|
o.Placemark,
|
|
14783
14786
|
t,
|
|
14784
14787
|
e,
|
|
@@ -14789,9 +14792,9 @@ const In = {
|
|
|
14789
14792
|
if (Or(r) === !0) {
|
|
14790
14793
|
const o = Mr(r), a = Qn(o);
|
|
14791
14794
|
if (li.has(a, "Placemark")) {
|
|
14792
|
-
const l = li.isArray(a.Placemark) ? a.Placemark : [a.Placemark], h =
|
|
14795
|
+
const l = li.isArray(a.Placemark) ? a.Placemark : [a.Placemark], h = Ja(l);
|
|
14793
14796
|
let c = Qn(o, ["Point"]);
|
|
14794
|
-
c !== null && (c =
|
|
14797
|
+
c !== null && (c = Qa(c));
|
|
14795
14798
|
const u = new me({
|
|
14796
14799
|
geometry: new Vt(yn(h)),
|
|
14797
14800
|
icon: t,
|
|
@@ -14811,7 +14814,7 @@ const In = {
|
|
|
14811
14814
|
return [];
|
|
14812
14815
|
}
|
|
14813
14816
|
return [];
|
|
14814
|
-
},
|
|
14817
|
+
}, iu = (r, t = "EPSG:4326", e = "EPSG:3857") => {
|
|
14815
14818
|
var o;
|
|
14816
14819
|
let i = new un().readFeatures(r, {
|
|
14817
14820
|
dataProjection: t,
|
|
@@ -14821,7 +14824,7 @@ const In = {
|
|
|
14821
14824
|
format: new un()
|
|
14822
14825
|
}).getFeatures()[0].getGeometry()) == null ? void 0 : o.getExtent();
|
|
14823
14826
|
return s ? xi(s) : !1;
|
|
14824
|
-
},
|
|
14827
|
+
}, nu = (r, t, e) => {
|
|
14825
14828
|
let i = [];
|
|
14826
14829
|
if (e.forEach((n) => {
|
|
14827
14830
|
n.geometry.forEach((s) => {
|
|
@@ -14836,7 +14839,7 @@ const In = {
|
|
|
14836
14839
|
}), i.length > 0) {
|
|
14837
14840
|
const n = new Ie({
|
|
14838
14841
|
features: i
|
|
14839
|
-
}), s = new
|
|
14842
|
+
}), s = new vo({
|
|
14840
14843
|
distance: 50,
|
|
14841
14844
|
source: n,
|
|
14842
14845
|
createCluster: function(a, l) {
|
|
@@ -14865,12 +14868,12 @@ const In = {
|
|
|
14865
14868
|
return c.setStyle(u), c;
|
|
14866
14869
|
}
|
|
14867
14870
|
});
|
|
14868
|
-
return new
|
|
14871
|
+
return new Do({
|
|
14869
14872
|
source: s
|
|
14870
14873
|
});
|
|
14871
14874
|
}
|
|
14872
14875
|
return !1;
|
|
14873
|
-
},
|
|
14876
|
+
}, su = (r, t) => {
|
|
14874
14877
|
var n;
|
|
14875
14878
|
const i = (n = new Ie({
|
|
14876
14879
|
format: new un({
|
|
@@ -14888,7 +14891,7 @@ const In = {
|
|
|
14888
14891
|
}
|
|
14889
14892
|
return t || o.setStyle(Nr), o;
|
|
14890
14893
|
}) : !1;
|
|
14891
|
-
},
|
|
14894
|
+
}, ru = (r, t, e) => {
|
|
14892
14895
|
let i = [];
|
|
14893
14896
|
if (e.forEach((n) => {
|
|
14894
14897
|
n.geometry.forEach((s) => {
|
|
@@ -14903,7 +14906,7 @@ const In = {
|
|
|
14903
14906
|
}), i.length > 0) {
|
|
14904
14907
|
const n = new Ie({
|
|
14905
14908
|
features: i
|
|
14906
|
-
}), s = new
|
|
14909
|
+
}), s = new vo({
|
|
14907
14910
|
distance: 50,
|
|
14908
14911
|
source: n,
|
|
14909
14912
|
createCluster: function(a, l) {
|
|
@@ -14932,17 +14935,17 @@ const In = {
|
|
|
14932
14935
|
return c.setStyle(u), c;
|
|
14933
14936
|
}
|
|
14934
14937
|
});
|
|
14935
|
-
return new
|
|
14938
|
+
return new Do({
|
|
14936
14939
|
source: s,
|
|
14937
|
-
style:
|
|
14940
|
+
style: $a
|
|
14938
14941
|
});
|
|
14939
14942
|
}
|
|
14940
14943
|
return !1;
|
|
14941
14944
|
}, kd = (r, t, e, i, n = 0.35) => {
|
|
14942
|
-
let s =
|
|
14945
|
+
let s = tl(r);
|
|
14943
14946
|
if (s) {
|
|
14944
14947
|
li.isArray(s) && (s = s[0]);
|
|
14945
|
-
const o =
|
|
14948
|
+
const o = el(s);
|
|
14946
14949
|
let a = null;
|
|
14947
14950
|
s.type !== "Point" && (a = r);
|
|
14948
14951
|
const l = new me({
|
|
@@ -14964,7 +14967,7 @@ const In = {
|
|
|
14964
14967
|
return l.setStyle(h), [l];
|
|
14965
14968
|
}
|
|
14966
14969
|
return [];
|
|
14967
|
-
},
|
|
14970
|
+
}, ou = (r, t, e = Nr) => {
|
|
14968
14971
|
var s;
|
|
14969
14972
|
const n = (s = new Ie({
|
|
14970
14973
|
format: new fn(),
|
|
@@ -14980,7 +14983,7 @@ const In = {
|
|
|
14980
14983
|
}
|
|
14981
14984
|
return a.setStyle(e), a.set("extraData", t), t != null && t.id && a.setId(t.id), a;
|
|
14982
14985
|
}) : !1;
|
|
14983
|
-
},
|
|
14986
|
+
}, au = (r, t = "EPSG:4326", e = "EPSG:3857") => {
|
|
14984
14987
|
var o;
|
|
14985
14988
|
let i = new fn().readFeatures(r, {
|
|
14986
14989
|
dataProjection: t,
|
|
@@ -14990,52 +14993,58 @@ const In = {
|
|
|
14990
14993
|
features: i,
|
|
14991
14994
|
format: new fn()
|
|
14992
14995
|
}).getFeatures()[0].getGeometry()) == null ? void 0 : o.getExtent();
|
|
14993
|
-
},
|
|
14996
|
+
}, lu = (r) => {
|
|
14994
14997
|
const t = xi(r), e = new me({
|
|
14995
14998
|
geometry: new Vt(t)
|
|
14996
14999
|
});
|
|
14997
15000
|
return Nd({ features: [e] });
|
|
14998
15001
|
};
|
|
14999
15002
|
export {
|
|
15000
|
-
|
|
15001
|
-
|
|
15003
|
+
ou as A,
|
|
15004
|
+
zl as B,
|
|
15002
15005
|
Ot as C,
|
|
15003
|
-
|
|
15004
|
-
|
|
15006
|
+
$d as D,
|
|
15007
|
+
tu as E,
|
|
15005
15008
|
Ue as F,
|
|
15006
15009
|
xt as G,
|
|
15007
|
-
|
|
15010
|
+
Oo as H,
|
|
15008
15011
|
Ii as I,
|
|
15009
|
-
|
|
15012
|
+
eu as J,
|
|
15013
|
+
bd as K,
|
|
15010
15014
|
ge as L,
|
|
15011
15015
|
J as M,
|
|
15016
|
+
iu as N,
|
|
15017
|
+
nu as O,
|
|
15012
15018
|
wi as P,
|
|
15019
|
+
ru as Q,
|
|
15013
15020
|
Qs as R,
|
|
15014
|
-
|
|
15015
|
-
|
|
15016
|
-
|
|
15021
|
+
kd as S,
|
|
15022
|
+
Hr as T,
|
|
15023
|
+
Do as V,
|
|
15024
|
+
su as a,
|
|
15025
|
+
Qd as b,
|
|
15017
15026
|
Nd as c,
|
|
15018
|
-
|
|
15019
|
-
|
|
15020
|
-
|
|
15021
|
-
|
|
15022
|
-
|
|
15023
|
-
|
|
15024
|
-
|
|
15025
|
-
|
|
15026
|
-
|
|
15027
|
-
|
|
15027
|
+
au as d,
|
|
15028
|
+
yl as e,
|
|
15029
|
+
gt as f,
|
|
15030
|
+
lu as g,
|
|
15031
|
+
Vd as h,
|
|
15032
|
+
ml as i,
|
|
15033
|
+
Ie as j,
|
|
15034
|
+
vt as k,
|
|
15035
|
+
Pi as l,
|
|
15036
|
+
Xr as m,
|
|
15028
15037
|
Zd as n,
|
|
15029
|
-
|
|
15030
|
-
|
|
15031
|
-
|
|
15032
|
-
|
|
15038
|
+
bs as o,
|
|
15039
|
+
xl as p,
|
|
15040
|
+
se as q,
|
|
15041
|
+
Li as r,
|
|
15033
15042
|
qd as s,
|
|
15034
|
-
|
|
15035
|
-
|
|
15036
|
-
|
|
15037
|
-
|
|
15038
|
-
|
|
15039
|
-
|
|
15040
|
-
|
|
15043
|
+
Be as t,
|
|
15044
|
+
_i as u,
|
|
15045
|
+
jd as v,
|
|
15046
|
+
b as w,
|
|
15047
|
+
bl as x,
|
|
15048
|
+
Ws as y,
|
|
15049
|
+
Hd as z
|
|
15041
15050
|
};
|