@maptiler/geocoding-control 0.0.94 → 0.0.96-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GeocodingControl.svelte +4 -7
- package/MapLibreBasedGeocodingControl.d.ts +3 -3
- package/README.md +5 -7
- package/leaflet.d.ts +0 -1
- package/leaflet.js +357 -363
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +4 -4
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +2 -4
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +2 -2
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +2 -4
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +2 -2
- package/maptilersdk.umd.js.map +1 -1
- package/package.json +16 -9
- package/react.d.ts +3 -4
- package/react.js +2 -3
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/types.d.ts +6 -0
- package/vanilla.d.ts +16 -0
- package/vanilla.js +1759 -0
- package/vanilla.js.map +1 -0
- package/vanilla.umd.js +2 -0
- package/vanilla.umd.js.map +1 -0
package/leaflet.js
CHANGED
|
@@ -4,7 +4,7 @@ var ms = (r, t, e) => (Il(r, typeof t != "symbol" ? t + "" : t, e), e), ua = (r,
|
|
|
4
4
|
if (!t.has(r))
|
|
5
5
|
throw TypeError("Cannot " + e);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
7
|
+
var or = (r, t, e) => (ua(r, t, "read from private field"), e ? e.call(r) : t.get(r)), _s = (r, t, e) => {
|
|
8
8
|
if (t.has(r))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
@@ -96,7 +96,7 @@ function Dt(r) {
|
|
|
96
96
|
function ht(r) {
|
|
97
97
|
return document.createElement(r);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function jn(r) {
|
|
100
100
|
return document.createElementNS("http://www.w3.org/2000/svg", r);
|
|
101
101
|
}
|
|
102
102
|
function Rr(r) {
|
|
@@ -386,7 +386,7 @@ function Ul(r) {
|
|
|
386
386
|
let t, e;
|
|
387
387
|
return {
|
|
388
388
|
c() {
|
|
389
|
-
t =
|
|
389
|
+
t = jn("svg"), e = jn("path"), b(e, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), b(t, "viewBox", "0 0 14 14"), b(t, "width", "13"), b(t, "height", "13"), b(t, "class", "svelte-en2qvf");
|
|
390
390
|
},
|
|
391
391
|
m(n, i) {
|
|
392
392
|
Tt(n, t, i), nt(t, e);
|
|
@@ -408,7 +408,7 @@ function ql(r) {
|
|
|
408
408
|
let t, e;
|
|
409
409
|
return {
|
|
410
410
|
c() {
|
|
411
|
-
t =
|
|
411
|
+
t = jn("svg"), e = jn("path"), b(e, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), b(t, "viewBox", "0 0 30 30"), b(t, "fill", "none"), b(t, "xmlns", "http://www.w3.org/2000/svg"), b(t, "class", "svelte-d2loi5");
|
|
412
412
|
},
|
|
413
413
|
m(n, i) {
|
|
414
414
|
Tt(n, t, i), nt(t, e);
|
|
@@ -858,7 +858,7 @@ function nc(r) {
|
|
|
858
858
|
let t, e;
|
|
859
859
|
return {
|
|
860
860
|
c() {
|
|
861
|
-
t =
|
|
861
|
+
t = jn("svg"), e = jn("path"), b(e, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), b(t, "viewBox", "0 0 60.006 21.412"), b(t, "width", "14"), b(t, "height", "20"), b(t, "class", "svelte-en2qvf");
|
|
862
862
|
},
|
|
863
863
|
m(n, i) {
|
|
864
864
|
Tt(n, t, i), nt(t, e);
|
|
@@ -880,7 +880,7 @@ function ic(r) {
|
|
|
880
880
|
let t, e;
|
|
881
881
|
return {
|
|
882
882
|
c() {
|
|
883
|
-
t =
|
|
883
|
+
t = jn("svg"), e = jn("path"), b(e, "d", "M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"), b(t, "width", "14"), b(t, "height", "14"), b(t, "viewBox", "0 0 15 15"), b(t, "class", "svelte-en2qvf");
|
|
884
884
|
},
|
|
885
885
|
m(n, i) {
|
|
886
886
|
Tt(n, t, i), nt(t, e);
|
|
@@ -1420,43 +1420,41 @@ function Ea(r) {
|
|
|
1420
1420
|
return t[2] < t[0] && (t[2] += 360), t;
|
|
1421
1421
|
}
|
|
1422
1422
|
function hc(r, t, e) {
|
|
1423
|
-
let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: y = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: _ = !0 } = t, { language: C = void 0 } = t, { limit: L = void 0 } = t, { mapController: N = void 0 } = t, { minLength: x = 2 } = t, { noResultsMessage: D = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: w = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: T = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl:
|
|
1424
|
-
iconsBaseUrl: Bn = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.92/icons/"
|
|
1425
|
-
} = t;
|
|
1423
|
+
let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: y = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: _ = !0 } = t, { language: C = void 0 } = t, { limit: L = void 0 } = t, { mapController: N = void 0 } = t, { minLength: x = 2 } = t, { noResultsMessage: D = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: w = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: T = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: rr = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: ze = {} } = t, { iconsBaseUrl: Fn = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.96-alpha.1/icons/" } = t;
|
|
1426
1424
|
function In() {
|
|
1427
|
-
|
|
1425
|
+
Bn.focus();
|
|
1428
1426
|
}
|
|
1429
1427
|
function di() {
|
|
1430
|
-
|
|
1428
|
+
Bn.blur();
|
|
1431
1429
|
}
|
|
1432
|
-
function
|
|
1430
|
+
function ir(S, kt = !0) {
|
|
1433
1431
|
e(1, R = S), kt ? (e(14, Bt = -1), sa()) : (ps(), setTimeout(() => {
|
|
1434
|
-
|
|
1432
|
+
Bn.focus(), Bn.select();
|
|
1435
1433
|
}));
|
|
1436
1434
|
}
|
|
1437
|
-
let vi = !1, ct, _e, ot, oa = "",
|
|
1435
|
+
let vi = !1, ct, _e, ot, oa = "", Bn, Bt = -1, kn, wo = [], Hr, yi, Lo, hs;
|
|
1438
1436
|
const rl = /* @__PURE__ */ new Set(), Cr = Tl();
|
|
1439
1437
|
Dl(() => {
|
|
1440
1438
|
N && (N.setEventHandler(void 0), N.indicateReverse(!1), N.setSelectedMarker(-1), N.setMarkers(void 0, void 0));
|
|
1441
1439
|
});
|
|
1442
1440
|
function sa(S) {
|
|
1443
1441
|
if (yi && (clearTimeout(yi), yi = void 0), Bt > -1 && ct)
|
|
1444
|
-
e(49, ot = ct[Bt]), e(1, R = ot.place_name.replace(/,.*/, "")), e(17,
|
|
1442
|
+
e(49, ot = ct[Bt]), e(1, R = ot.place_name.replace(/,.*/, "")), e(17, kn = void 0), e(48, _e = void 0), e(14, Bt = -1);
|
|
1445
1443
|
else if (R) {
|
|
1446
1444
|
const kt = S || !aa();
|
|
1447
1445
|
gs(R, { exact: !0 }).then(() => {
|
|
1448
1446
|
e(48, _e = ct), e(49, ot = void 0), kt && il();
|
|
1449
|
-
}).catch((
|
|
1447
|
+
}).catch((Gn) => e(17, kn = Gn));
|
|
1450
1448
|
}
|
|
1451
1449
|
}
|
|
1452
1450
|
function aa() {
|
|
1453
1451
|
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(R);
|
|
1454
1452
|
}
|
|
1455
|
-
async function gs(S, { byId: kt = !1, exact:
|
|
1456
|
-
e(17,
|
|
1453
|
+
async function gs(S, { byId: kt = !1, exact: Gn = !1 } = {}) {
|
|
1454
|
+
e(17, kn = void 0);
|
|
1457
1455
|
const mi = aa(), Ve = new URLSearchParams();
|
|
1458
|
-
C != null && Ve.set("language", Array.isArray(C) ? C.join(",") : C), dt && Ve.set("types", dt.join(",")), mi || (u && Ve.set("bbox", u.map((Nr) => Nr.toFixed(6)).join(",")), h && Ve.set("country", Array.isArray(h) ? h.join(",") : h)), kt || (w && Ve.set("proximity", w.map((Nr) => Nr.toFixed(6)).join(",")), (
|
|
1459
|
-
const jr =
|
|
1456
|
+
C != null && Ve.set("language", Array.isArray(C) ? C.join(",") : C), dt && Ve.set("types", dt.join(",")), mi || (u && Ve.set("bbox", u.map((Nr) => Nr.toFixed(6)).join(",")), h && Ve.set("country", Array.isArray(h) ? h.join(",") : h)), kt || (w && Ve.set("proximity", w.map((Nr) => Nr.toFixed(6)).join(",")), (Gn || !W) && Ve.set("autocomplete", "false"), Ve.set("fuzzyMatch", String(_))), L !== void 0 && (!mi || (dt == null ? void 0 : dt.length) === 1) && Ve.set("limit", String(L)), Ve.set("key", a);
|
|
1457
|
+
const jr = rr + "/" + encodeURIComponent(S) + ".json?" + Ve.toString();
|
|
1460
1458
|
if (jr === oa) {
|
|
1461
1459
|
kt ? (e(13, ct = void 0), e(49, ot = wo[0])) : e(13, ct = wo);
|
|
1462
1460
|
return;
|
|
@@ -1477,19 +1475,19 @@ function hc(r, t, e) {
|
|
|
1477
1475
|
if (!vs.ok)
|
|
1478
1476
|
throw new Error();
|
|
1479
1477
|
const ys = await vs.json();
|
|
1480
|
-
Cr("response", { url: jr, featureCollection: ys }), kt ? (e(13, ct = void 0), e(49, ot = ys.features[0]), wo = [ot]) : (e(13, ct = ys.features.filter(d)), wo = ct, mi &&
|
|
1478
|
+
Cr("response", { url: jr, featureCollection: ys }), kt ? (e(13, ct = void 0), e(49, ot = ys.features[0]), wo = [ot]) : (e(13, ct = ys.features.filter(d)), wo = ct, mi && Bn.focus());
|
|
1481
1479
|
}
|
|
1482
1480
|
function il() {
|
|
1483
|
-
var
|
|
1481
|
+
var Gn, mi, Ve, jr;
|
|
1484
1482
|
if (!(_e != null && _e.length) || !m)
|
|
1485
1483
|
return;
|
|
1486
1484
|
const S = [180, 90, -180, -90], kt = !_e.some((Ee) => !Ee.matching_text);
|
|
1487
1485
|
for (const Ee of _e)
|
|
1488
|
-
(kt || !Ee.matching_text) && (S[0] = Math.min(S[0], ((
|
|
1486
|
+
(kt || !Ee.matching_text) && (S[0] = Math.min(S[0], ((Gn = Ee.bbox) == null ? void 0 : Gn[0]) ?? Ee.center[0]), S[1] = Math.min(S[1], ((mi = Ee.bbox) == null ? void 0 : mi[1]) ?? Ee.center[1]), S[2] = Math.max(S[2], ((Ve = Ee.bbox) == null ? void 0 : Ve[2]) ?? Ee.center[0]), S[3] = Math.max(S[3], ((jr = Ee.bbox) == null ? void 0 : jr[3]) ?? Ee.center[1]));
|
|
1489
1487
|
N && _e.length > 0 && (ot && S[0] === S[2] && S[1] === S[3] ? N.flyTo(ot.center, Ht) : N.fitBounds(Ea(S), 50, Jt));
|
|
1490
1488
|
}
|
|
1491
1489
|
function ol(S) {
|
|
1492
|
-
e(0, F = p === "always"),
|
|
1490
|
+
e(0, F = p === "always"), ir(fc(S[0], [-180, 180], !0).toFixed(6) + "," + S[1].toFixed(6));
|
|
1493
1491
|
}
|
|
1494
1492
|
function sl(S) {
|
|
1495
1493
|
if (!ct)
|
|
@@ -1498,37 +1496,37 @@ function hc(r, t, e) {
|
|
|
1498
1496
|
kt ? (Bt === -1 && kt === -1 && e(14, Bt = ct.length), e(14, Bt += kt), Bt >= ct.length && e(14, Bt = -1), S.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(S.key) && e(14, Bt = -1);
|
|
1499
1497
|
}
|
|
1500
1498
|
function ps(S = !0) {
|
|
1501
|
-
if (e(17,
|
|
1499
|
+
if (e(17, kn = void 0), W) {
|
|
1502
1500
|
if (yi && clearTimeout(yi), R.length < x)
|
|
1503
1501
|
return;
|
|
1504
1502
|
const kt = R;
|
|
1505
1503
|
yi = window.setTimeout(
|
|
1506
1504
|
() => {
|
|
1507
|
-
gs(kt).catch((
|
|
1505
|
+
gs(kt).catch((Gn) => e(17, kn = Gn));
|
|
1508
1506
|
},
|
|
1509
1507
|
S ? g : 0
|
|
1510
1508
|
);
|
|
1511
1509
|
} else
|
|
1512
|
-
e(13, ct = void 0), e(17,
|
|
1510
|
+
e(13, ct = void 0), e(17, kn = void 0);
|
|
1513
1511
|
}
|
|
1514
1512
|
function ds(S) {
|
|
1515
1513
|
e(49, ot = S), e(1, R = S.place_name), e(14, Bt = -1);
|
|
1516
1514
|
}
|
|
1517
|
-
const al = () =>
|
|
1515
|
+
const al = () => Bn.focus();
|
|
1518
1516
|
function ul(S) {
|
|
1519
1517
|
xs[S ? "unshift" : "push"](() => {
|
|
1520
|
-
|
|
1518
|
+
Bn = S, e(16, Bn);
|
|
1521
1519
|
});
|
|
1522
1520
|
}
|
|
1523
1521
|
function ll() {
|
|
1524
1522
|
R = this.value, e(1, R), e(12, vi), e(27, c);
|
|
1525
1523
|
}
|
|
1526
1524
|
const cl = () => e(12, vi = !0), fl = () => e(12, vi = !1), hl = () => ps(), gl = () => {
|
|
1527
|
-
e(1, R = ""),
|
|
1528
|
-
}, pl = () => e(0, F = !F), dl = () => e(17,
|
|
1525
|
+
e(1, R = ""), Bn.focus();
|
|
1526
|
+
}, pl = () => e(0, F = !F), dl = () => e(17, kn = void 0), vl = (S) => e(14, Bt = S), yl = (S) => ds(S), ml = () => e(14, Bt = -1), _l = () => {
|
|
1529
1527
|
};
|
|
1530
1528
|
return r.$$set = (S) => {
|
|
1531
|
-
"class" in S && e(2, s = S.class), "apiKey" in S && e(25, a = S.apiKey), "bbox" in S && e(26, u = S.bbox), "clearButtonTitle" in S && e(3, l = S.clearButtonTitle), "clearOnBlur" in S && e(27, c = S.clearOnBlur), "collapsed" in S && e(4, f = S.collapsed), "country" in S && e(28, h = S.country), "debounceSearch" in S && e(29, g = S.debounceSearch), "enableReverse" in S && e(5, p = S.enableReverse), "errorMessage" in S && e(6, y = S.errorMessage), "filter" in S && e(30, d = S.filter), "flyTo" in S && e(31, m = S.flyTo), "fuzzyMatch" in S && e(32, _ = S.fuzzyMatch), "language" in S && e(33, C = S.language), "limit" in S && e(34, L = S.limit), "mapController" in S && e(35, N = S.mapController), "minLength" in S && e(36, x = S.minLength), "noResultsMessage" in S && e(7, D = S.noResultsMessage), "placeholder" in S && e(8, A = S.placeholder), "proximity" in S && e(24, w = S.proximity), "reverseActive" in S && e(0, F = S.reverseActive), "reverseButtonTitle" in S && e(9, X = S.reverseButtonTitle), "searchValue" in S && e(1, R = S.searchValue), "showFullGeometry" in S && e(37, Y = S.showFullGeometry), "showPlaceType" in S && e(10, T = S.showPlaceType), "showResultsWhileTyping" in S && e(38, W = S.showResultsWhileTyping), "trackProximity" in S && e(39, ut = S.trackProximity), "types" in S && e(40, dt = S.types), "zoom" in S && e(41, Ht = S.zoom), "maxZoom" in S && e(42, Jt = S.maxZoom), "apiUrl" in S && e(43,
|
|
1529
|
+
"class" in S && e(2, s = S.class), "apiKey" in S && e(25, a = S.apiKey), "bbox" in S && e(26, u = S.bbox), "clearButtonTitle" in S && e(3, l = S.clearButtonTitle), "clearOnBlur" in S && e(27, c = S.clearOnBlur), "collapsed" in S && e(4, f = S.collapsed), "country" in S && e(28, h = S.country), "debounceSearch" in S && e(29, g = S.debounceSearch), "enableReverse" in S && e(5, p = S.enableReverse), "errorMessage" in S && e(6, y = S.errorMessage), "filter" in S && e(30, d = S.filter), "flyTo" in S && e(31, m = S.flyTo), "fuzzyMatch" in S && e(32, _ = S.fuzzyMatch), "language" in S && e(33, C = S.language), "limit" in S && e(34, L = S.limit), "mapController" in S && e(35, N = S.mapController), "minLength" in S && e(36, x = S.minLength), "noResultsMessage" in S && e(7, D = S.noResultsMessage), "placeholder" in S && e(8, A = S.placeholder), "proximity" in S && e(24, w = S.proximity), "reverseActive" in S && e(0, F = S.reverseActive), "reverseButtonTitle" in S && e(9, X = S.reverseButtonTitle), "searchValue" in S && e(1, R = S.searchValue), "showFullGeometry" in S && e(37, Y = S.showFullGeometry), "showPlaceType" in S && e(10, T = S.showPlaceType), "showResultsWhileTyping" in S && e(38, W = S.showResultsWhileTyping), "trackProximity" in S && e(39, ut = S.trackProximity), "types" in S && e(40, dt = S.types), "zoom" in S && e(41, Ht = S.zoom), "maxZoom" in S && e(42, Jt = S.maxZoom), "apiUrl" in S && e(43, rr = S.apiUrl), "fetchParameters" in S && e(44, ze = S.fetchParameters), "iconsBaseUrl" in S && e(11, Fn = S.iconsBaseUrl), "$$scope" in S && e(52, o = S.$$scope);
|
|
1532
1530
|
}, r.$$.update = () => {
|
|
1533
1531
|
if (r.$$.dirty[1] & /*trackProximity*/
|
|
1534
1532
|
256 && (ut || e(24, w = void 0)), r.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
@@ -1536,8 +1534,8 @@ function hc(r, t, e) {
|
|
|
1536
1534
|
e(15, Lo = vi), c && !vi && e(1, R = "");
|
|
1537
1535
|
}), r.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
1538
1536
|
8194 | r.$$.dirty[1] & /*minLength*/
|
|
1539
|
-
32 && R.length < x && (e(49, ot = void 0), e(13, ct = void 0), e(17,
|
|
1540
|
-
262208 && Y && ot && !ot.address && ot.geometry.type === "Point" && gs(ot.id, { byId: !0 }).catch((S) => e(17,
|
|
1537
|
+
32 && R.length < x && (e(49, ot = void 0), e(13, ct = void 0), e(17, kn = void 0), e(48, _e = ct)), r.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
1538
|
+
262208 && Y && ot && !ot.address && ot.geometry.type === "Point" && gs(ot.id, { byId: !0 }).catch((S) => e(17, kn = S)), r.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo, maxZoom, zoom*/
|
|
1541
1539
|
789521 && (N && ot && ot.id !== hs && m && (!ot.bbox || ot.bbox[0] === ot.bbox[2] && ot.bbox[1] === ot.bbox[3] ? N.flyTo(ot.center, ot.id.startsWith("poi.") || ot.id.startsWith("address.") ? Jt : Ht) : N.fitBounds(Ea(ot.bbox), 50, Jt), e(13, ct = void 0), e(48, _e = void 0), e(14, Bt = -1)), e(50, hs = ot == null ? void 0 : ot.id)), r.$$.dirty[0] & /*listFeatures*/
|
|
1542
1540
|
8192 | r.$$.dirty[1] & /*markedFeatures*/
|
|
1543
1541
|
131072 && _e !== ct && e(48, _e = void 0), r.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
@@ -1554,7 +1552,7 @@ function hc(r, t, e) {
|
|
|
1554
1552
|
break;
|
|
1555
1553
|
case "markerClick":
|
|
1556
1554
|
{
|
|
1557
|
-
const kt = ct == null ? void 0 : ct.find((
|
|
1555
|
+
const kt = ct == null ? void 0 : ct.find((Gn) => Gn.id === S.id);
|
|
1558
1556
|
kt && ds(kt);
|
|
1559
1557
|
}
|
|
1560
1558
|
break;
|
|
@@ -1596,13 +1594,13 @@ function hc(r, t, e) {
|
|
|
1596
1594
|
A,
|
|
1597
1595
|
X,
|
|
1598
1596
|
T,
|
|
1599
|
-
|
|
1597
|
+
Fn,
|
|
1600
1598
|
vi,
|
|
1601
1599
|
ct,
|
|
1602
1600
|
Bt,
|
|
1603
1601
|
Lo,
|
|
1602
|
+
Bn,
|
|
1604
1603
|
kn,
|
|
1605
|
-
Gn,
|
|
1606
1604
|
Hr,
|
|
1607
1605
|
rl,
|
|
1608
1606
|
sa,
|
|
@@ -1628,11 +1626,11 @@ function hc(r, t, e) {
|
|
|
1628
1626
|
dt,
|
|
1629
1627
|
Ht,
|
|
1630
1628
|
Jt,
|
|
1631
|
-
|
|
1629
|
+
rr,
|
|
1632
1630
|
ze,
|
|
1633
1631
|
In,
|
|
1634
1632
|
di,
|
|
1635
|
-
|
|
1633
|
+
ir,
|
|
1636
1634
|
_e,
|
|
1637
1635
|
ot,
|
|
1638
1636
|
hs,
|
|
@@ -2236,7 +2234,7 @@ var Ec = Lr * Lr, Ts = function(t, e) {
|
|
|
2236
2234
|
x: g,
|
|
2237
2235
|
y: p
|
|
2238
2236
|
};
|
|
2239
|
-
},
|
|
2237
|
+
}, qn = /* @__PURE__ */ function() {
|
|
2240
2238
|
xe(r, null, [{
|
|
2241
2239
|
key: "compare",
|
|
2242
2240
|
// for ordering sweep events in the sweep event queue
|
|
@@ -2508,10 +2506,10 @@ var Ec = Lr * Lr, Ts = function(t, e) {
|
|
|
2508
2506
|
}, {
|
|
2509
2507
|
key: "split",
|
|
2510
2508
|
value: function(e) {
|
|
2511
|
-
var n = [], i = e.events !== void 0, o = new
|
|
2509
|
+
var n = [], i = e.events !== void 0, o = new qn(e, !0), s = new qn(e, !1), a = this.rightSE;
|
|
2512
2510
|
this.replaceRightSE(s), n.push(s), n.push(o);
|
|
2513
2511
|
var u = new r(o, a, this.rings.slice(), this.windings.slice());
|
|
2514
|
-
return
|
|
2512
|
+
return qn.comparePoints(u.leftSE.point, u.rightSE.point) > 0 && u.swapEvents(), qn.comparePoints(this.leftSE.point, this.rightSE.point) > 0 && this.swapEvents(), i && (o.checkForConsuming(), s.checkForConsuming()), n;
|
|
2515
2513
|
}
|
|
2516
2514
|
/* Swap which event is left and right */
|
|
2517
2515
|
}, {
|
|
@@ -2613,7 +2611,7 @@ var Ec = Lr * Lr, Ts = function(t, e) {
|
|
|
2613
2611
|
if (this._isInResult !== void 0)
|
|
2614
2612
|
return this._isInResult;
|
|
2615
2613
|
var e = this.beforeState().multiPolys, n = this.afterState().multiPolys;
|
|
2616
|
-
switch (
|
|
2614
|
+
switch (Nn.type) {
|
|
2617
2615
|
case "union": {
|
|
2618
2616
|
var i = e.length === 0, o = n.length === 0;
|
|
2619
2617
|
this._isInResult = i !== o;
|
|
@@ -2621,7 +2619,7 @@ var Ec = Lr * Lr, Ts = function(t, e) {
|
|
|
2621
2619
|
}
|
|
2622
2620
|
case "intersection": {
|
|
2623
2621
|
var s, a;
|
|
2624
|
-
e.length < n.length ? (s = e.length, a = n.length) : (s = n.length, a = e.length), this._isInResult = a ===
|
|
2622
|
+
e.length < n.length ? (s = e.length, a = n.length) : (s = n.length, a = e.length), this._isInResult = a === Nn.numMultiPolys && s < a;
|
|
2625
2623
|
break;
|
|
2626
2624
|
}
|
|
2627
2625
|
case "xor": {
|
|
@@ -2637,21 +2635,21 @@ var Ec = Lr * Lr, Ts = function(t, e) {
|
|
|
2637
2635
|
break;
|
|
2638
2636
|
}
|
|
2639
2637
|
default:
|
|
2640
|
-
throw new Error("Unrecognized operation type found ".concat(
|
|
2638
|
+
throw new Error("Unrecognized operation type found ".concat(Nn.type));
|
|
2641
2639
|
}
|
|
2642
2640
|
return this._isInResult;
|
|
2643
2641
|
}
|
|
2644
2642
|
}], [{
|
|
2645
2643
|
key: "fromRing",
|
|
2646
2644
|
value: function(e, n, i) {
|
|
2647
|
-
var o, s, a, u =
|
|
2645
|
+
var o, s, a, u = qn.comparePoints(e, n);
|
|
2648
2646
|
if (u < 0)
|
|
2649
2647
|
o = e, s = n, a = 1;
|
|
2650
2648
|
else if (u > 0)
|
|
2651
2649
|
o = n, s = e, a = -1;
|
|
2652
2650
|
else
|
|
2653
2651
|
throw new Error("Tried to create degenerate segment at [".concat(e.x, ", ").concat(e.y, "]"));
|
|
2654
|
-
var l = new
|
|
2652
|
+
var l = new qn(o, !0), c = new qn(s, !1);
|
|
2655
2653
|
return new r(l, c, [i], [a]);
|
|
2656
2654
|
}
|
|
2657
2655
|
}]), r;
|
|
@@ -2837,7 +2835,7 @@ var Ec = Lr * Lr, Ts = function(t, e) {
|
|
|
2837
2835
|
value: function() {
|
|
2838
2836
|
for (var e = this.events[0], n = 1, i = this.events.length; n < i; n++) {
|
|
2839
2837
|
var o = this.events[n];
|
|
2840
|
-
|
|
2838
|
+
qn.compare(e, o) > 0 && (e = o);
|
|
2841
2839
|
}
|
|
2842
2840
|
for (var s = e.segment.prevInResult(), a = s ? s.prevInResult() : null; ; ) {
|
|
2843
2841
|
if (!s)
|
|
@@ -2941,7 +2939,7 @@ var Ec = Lr * Lr, Ts = function(t, e) {
|
|
|
2941
2939
|
else if (y === null)
|
|
2942
2940
|
L = c;
|
|
2943
2941
|
else {
|
|
2944
|
-
var N =
|
|
2942
|
+
var N = qn.comparePoints(c, y);
|
|
2945
2943
|
L = N <= 0 ? c : y;
|
|
2946
2944
|
}
|
|
2947
2945
|
this.queue.remove(n.rightSE), i.push(n.rightSE);
|
|
@@ -2984,19 +2982,19 @@ var Ec = Lr * Lr, Ts = function(t, e) {
|
|
|
2984
2982
|
return xe(r, [{
|
|
2985
2983
|
key: "run",
|
|
2986
2984
|
value: function(e, n, i) {
|
|
2987
|
-
|
|
2985
|
+
Nn.type = e, ro.reset();
|
|
2988
2986
|
for (var o = [new ba(n, !0)], s = 0, a = i.length; s < a; s++)
|
|
2989
2987
|
o.push(new ba(i[s], !1));
|
|
2990
|
-
if (
|
|
2988
|
+
if (Nn.numMultiPolys = o.length, Nn.type === "difference")
|
|
2991
2989
|
for (var u = o[0], l = 1; l < o.length; )
|
|
2992
2990
|
Ds(o[l].bbox, u.bbox) !== null ? l++ : o.splice(l, 1);
|
|
2993
|
-
if (
|
|
2991
|
+
if (Nn.type === "intersection") {
|
|
2994
2992
|
for (var c = 0, f = o.length; c < f; c++)
|
|
2995
2993
|
for (var h = o[c], g = c + 1, p = o.length; g < p; g++)
|
|
2996
2994
|
if (Ds(h.bbox, o[g].bbox) === null)
|
|
2997
2995
|
return [];
|
|
2998
2996
|
}
|
|
2999
|
-
for (var y = new Us(
|
|
2997
|
+
for (var y = new Us(qn.compare), d = 0, m = o.length; d < m; d++)
|
|
3000
2998
|
for (var _ = o[d].getSweepEvents(), C = 0, L = _.length; C < L; C++)
|
|
3001
2999
|
if (y.insert(_[C]), y.size > Ra)
|
|
3002
3000
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
|
|
@@ -3021,22 +3019,22 @@ var Ec = Lr * Lr, Ts = function(t, e) {
|
|
|
3021
3019
|
return W.getGeom();
|
|
3022
3020
|
}
|
|
3023
3021
|
}]), r;
|
|
3024
|
-
}(),
|
|
3022
|
+
}(), Nn = new Oc(), Dc = function(t) {
|
|
3025
3023
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
3026
3024
|
n[i - 1] = arguments[i];
|
|
3027
|
-
return
|
|
3025
|
+
return Nn.run("union", t, n);
|
|
3028
3026
|
}, Tc = function(t) {
|
|
3029
3027
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
3030
3028
|
n[i - 1] = arguments[i];
|
|
3031
|
-
return
|
|
3029
|
+
return Nn.run("intersection", t, n);
|
|
3032
3030
|
}, Mc = function(t) {
|
|
3033
3031
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
3034
3032
|
n[i - 1] = arguments[i];
|
|
3035
|
-
return
|
|
3033
|
+
return Nn.run("xor", t, n);
|
|
3036
3034
|
}, Ac = function(t) {
|
|
3037
3035
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
3038
3036
|
n[i - 1] = arguments[i];
|
|
3039
|
-
return
|
|
3037
|
+
return Nn.run("difference", t, n);
|
|
3040
3038
|
}, lu = {
|
|
3041
3039
|
union: Dc,
|
|
3042
3040
|
intersection: Tc,
|
|
@@ -3137,7 +3135,7 @@ function zc(r) {
|
|
|
3137
3135
|
let t, e, n;
|
|
3138
3136
|
return {
|
|
3139
3137
|
c() {
|
|
3140
|
-
t =
|
|
3138
|
+
t = jn("svg"), e = jn("path"), b(e, "stroke-width", "4"), b(e, "fill-rule", "evenodd"), b(e, "clip-rule", "evenodd"), b(e, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), b(e, "class", "svelte-gzo3ar"), b(t, "width", n = /*displayIn*/
|
|
3141
3139
|
r[0] !== "list" ? void 0 : "20"), b(t, "viewBox", "0 0 70 85"), b(t, "fill", "none"), b(t, "class", "svelte-gzo3ar"), on(
|
|
3142
3140
|
t,
|
|
3143
3141
|
"in-map",
|
|
@@ -4486,12 +4484,12 @@ es.prototype.write = function(t) {
|
|
|
4486
4484
|
};
|
|
4487
4485
|
es.prototype.extractGeometry = function(t) {
|
|
4488
4486
|
var e = t.getGeometryType().toLowerCase();
|
|
4489
|
-
if (!
|
|
4487
|
+
if (!Vn[e])
|
|
4490
4488
|
return null;
|
|
4491
4489
|
var n = e.toUpperCase(), i;
|
|
4492
|
-
return t.isEmpty() ? i = n + " EMPTY" : i = n + "(" +
|
|
4490
|
+
return t.isEmpty() ? i = n + " EMPTY" : i = n + "(" + Vn[e].apply(this, [t]) + ")", i;
|
|
4493
4491
|
};
|
|
4494
|
-
var
|
|
4492
|
+
var Vn = {
|
|
4495
4493
|
coordinate: function(t) {
|
|
4496
4494
|
return t.x + " " + t.y;
|
|
4497
4495
|
},
|
|
@@ -4503,7 +4501,7 @@ var qn = {
|
|
|
4503
4501
|
* @return {String} A string of coordinates representing the point.
|
|
4504
4502
|
*/
|
|
4505
4503
|
point: function(t) {
|
|
4506
|
-
return
|
|
4504
|
+
return Vn.coordinate.call(this, t._coordinates._coordinates[0]);
|
|
4507
4505
|
},
|
|
4508
4506
|
/**
|
|
4509
4507
|
* Return a comma delimited string of point coordinates from a multipoint.
|
|
@@ -4515,7 +4513,7 @@ var qn = {
|
|
|
4515
4513
|
*/
|
|
4516
4514
|
multipoint: function(t) {
|
|
4517
4515
|
for (var e = this, n = [], i = 0, o = t._geometries.length; i < o; ++i)
|
|
4518
|
-
n.push("(" +
|
|
4516
|
+
n.push("(" + Vn.point.apply(e, [t._geometries[i]]) + ")");
|
|
4519
4517
|
return n.join(",");
|
|
4520
4518
|
},
|
|
4521
4519
|
/**
|
|
@@ -4526,12 +4524,12 @@ var qn = {
|
|
|
4526
4524
|
*/
|
|
4527
4525
|
linestring: function(t) {
|
|
4528
4526
|
for (var e = this, n = [], i = 0, o = t._points._coordinates.length; i < o; ++i)
|
|
4529
|
-
n.push(
|
|
4527
|
+
n.push(Vn.coordinate.apply(e, [t._points._coordinates[i]]));
|
|
4530
4528
|
return n.join(",");
|
|
4531
4529
|
},
|
|
4532
4530
|
linearring: function(t) {
|
|
4533
4531
|
for (var e = this, n = [], i = 0, o = t._points._coordinates.length; i < o; ++i)
|
|
4534
|
-
n.push(
|
|
4532
|
+
n.push(Vn.coordinate.apply(e, [t._points._coordinates[i]]));
|
|
4535
4533
|
return n.join(",");
|
|
4536
4534
|
},
|
|
4537
4535
|
/**
|
|
@@ -4543,7 +4541,7 @@ var qn = {
|
|
|
4543
4541
|
*/
|
|
4544
4542
|
multilinestring: function(t) {
|
|
4545
4543
|
for (var e = this, n = [], i = 0, o = t._geometries.length; i < o; ++i)
|
|
4546
|
-
n.push("(" +
|
|
4544
|
+
n.push("(" + Vn.linestring.apply(e, [t._geometries[i]]) + ")");
|
|
4547
4545
|
return n.join(",");
|
|
4548
4546
|
},
|
|
4549
4547
|
/**
|
|
@@ -4554,9 +4552,9 @@ var qn = {
|
|
|
4554
4552
|
*/
|
|
4555
4553
|
polygon: function(t) {
|
|
4556
4554
|
var e = this, n = [];
|
|
4557
|
-
n.push("(" +
|
|
4555
|
+
n.push("(" + Vn.linestring.apply(this, [t._shell]) + ")");
|
|
4558
4556
|
for (var i = 0, o = t._holes.length; i < o; ++i)
|
|
4559
|
-
n.push("(" +
|
|
4557
|
+
n.push("(" + Vn.linestring.apply(e, [t._holes[i]]) + ")");
|
|
4560
4558
|
return n.join(",");
|
|
4561
4559
|
},
|
|
4562
4560
|
/**
|
|
@@ -4567,7 +4565,7 @@ var qn = {
|
|
|
4567
4565
|
*/
|
|
4568
4566
|
multipolygon: function(t) {
|
|
4569
4567
|
for (var e = this, n = [], i = 0, o = t._geometries.length; i < o; ++i)
|
|
4570
|
-
n.push("(" +
|
|
4568
|
+
n.push("(" + Vn.polygon.apply(e, [t._geometries[i]]) + ")");
|
|
4571
4569
|
return n.join(",");
|
|
4572
4570
|
},
|
|
4573
4571
|
/**
|
|
@@ -4714,7 +4712,7 @@ Xe.toLineString = function(t, e) {
|
|
|
4714
4712
|
throw new Error("Not implemented");
|
|
4715
4713
|
return "LINESTRING ( " + t.x + " " + t.y + ", " + e.x + " " + e.y + " )";
|
|
4716
4714
|
};
|
|
4717
|
-
var
|
|
4715
|
+
var Kn = function(r) {
|
|
4718
4716
|
function t(e) {
|
|
4719
4717
|
r.call(this, e), this.name = "RuntimeException", this.message = e, this.stack = new r().stack;
|
|
4720
4718
|
}
|
|
@@ -4733,7 +4731,7 @@ var Qn = function(r) {
|
|
|
4733
4731
|
}, t.prototype.getClass = function() {
|
|
4734
4732
|
return t;
|
|
4735
4733
|
}, t;
|
|
4736
|
-
}(
|
|
4734
|
+
}(Kn), q = function() {
|
|
4737
4735
|
};
|
|
4738
4736
|
q.prototype.interfaces_ = function() {
|
|
4739
4737
|
return [];
|
|
@@ -5215,20 +5213,20 @@ hi.STRAIGHT.get = function() {
|
|
|
5215
5213
|
return M.COLLINEAR;
|
|
5216
5214
|
};
|
|
5217
5215
|
Object.defineProperties(M, hi);
|
|
5218
|
-
var
|
|
5216
|
+
var Qn = function() {
|
|
5219
5217
|
};
|
|
5220
|
-
|
|
5218
|
+
Qn.prototype.filter = function(t) {
|
|
5221
5219
|
};
|
|
5222
|
-
|
|
5220
|
+
Qn.prototype.interfaces_ = function() {
|
|
5223
5221
|
return [];
|
|
5224
5222
|
};
|
|
5225
|
-
|
|
5226
|
-
return
|
|
5223
|
+
Qn.prototype.getClass = function() {
|
|
5224
|
+
return Qn;
|
|
5227
5225
|
};
|
|
5228
5226
|
var G = function() {
|
|
5229
5227
|
var t = arguments[0];
|
|
5230
5228
|
this._envelope = null, this._factory = null, this._SRID = null, this._userData = null, this._factory = t, this._SRID = t.getSRID();
|
|
5231
|
-
},
|
|
5229
|
+
}, An = { serialVersionUID: { configurable: !0 }, SORTINDEX_POINT: { configurable: !0 }, SORTINDEX_MULTIPOINT: { configurable: !0 }, SORTINDEX_LINESTRING: { configurable: !0 }, SORTINDEX_LINEARRING: { configurable: !0 }, SORTINDEX_MULTILINESTRING: { configurable: !0 }, SORTINDEX_POLYGON: { configurable: !0 }, SORTINDEX_MULTIPOLYGON: { configurable: !0 }, SORTINDEX_GEOMETRYCOLLECTION: { configurable: !0 }, geometryChangedFilter: { configurable: !0 } };
|
|
5232
5230
|
G.prototype.isGeometryCollection = function() {
|
|
5233
5231
|
return this.getSortIndex() === G.SORTINDEX_GEOMETRYCOLLECTION;
|
|
5234
5232
|
};
|
|
@@ -5347,57 +5345,57 @@ G.hasNullElements = function(t) {
|
|
|
5347
5345
|
return !0;
|
|
5348
5346
|
return !1;
|
|
5349
5347
|
};
|
|
5350
|
-
|
|
5348
|
+
An.serialVersionUID.get = function() {
|
|
5351
5349
|
return 8763622679187377e3;
|
|
5352
5350
|
};
|
|
5353
|
-
|
|
5351
|
+
An.SORTINDEX_POINT.get = function() {
|
|
5354
5352
|
return 0;
|
|
5355
5353
|
};
|
|
5356
|
-
|
|
5354
|
+
An.SORTINDEX_MULTIPOINT.get = function() {
|
|
5357
5355
|
return 1;
|
|
5358
5356
|
};
|
|
5359
|
-
|
|
5357
|
+
An.SORTINDEX_LINESTRING.get = function() {
|
|
5360
5358
|
return 2;
|
|
5361
5359
|
};
|
|
5362
|
-
|
|
5360
|
+
An.SORTINDEX_LINEARRING.get = function() {
|
|
5363
5361
|
return 3;
|
|
5364
5362
|
};
|
|
5365
|
-
|
|
5363
|
+
An.SORTINDEX_MULTILINESTRING.get = function() {
|
|
5366
5364
|
return 4;
|
|
5367
5365
|
};
|
|
5368
|
-
|
|
5366
|
+
An.SORTINDEX_POLYGON.get = function() {
|
|
5369
5367
|
return 5;
|
|
5370
5368
|
};
|
|
5371
|
-
|
|
5369
|
+
An.SORTINDEX_MULTIPOLYGON.get = function() {
|
|
5372
5370
|
return 6;
|
|
5373
5371
|
};
|
|
5374
|
-
|
|
5372
|
+
An.SORTINDEX_GEOMETRYCOLLECTION.get = function() {
|
|
5375
5373
|
return 7;
|
|
5376
5374
|
};
|
|
5377
|
-
|
|
5375
|
+
An.geometryChangedFilter.get = function() {
|
|
5378
5376
|
return qs;
|
|
5379
5377
|
};
|
|
5380
|
-
Object.defineProperties(G,
|
|
5378
|
+
Object.defineProperties(G, An);
|
|
5381
5379
|
var qs = function() {
|
|
5382
5380
|
};
|
|
5383
5381
|
qs.interfaces_ = function() {
|
|
5384
|
-
return [
|
|
5382
|
+
return [Qn];
|
|
5385
5383
|
};
|
|
5386
5384
|
qs.filter = function(t) {
|
|
5387
5385
|
t.geometryChangedAction();
|
|
5388
5386
|
};
|
|
5389
|
-
var
|
|
5387
|
+
var wn = function() {
|
|
5390
5388
|
};
|
|
5391
|
-
|
|
5389
|
+
wn.prototype.filter = function(t) {
|
|
5392
5390
|
};
|
|
5393
|
-
|
|
5391
|
+
wn.prototype.interfaces_ = function() {
|
|
5394
5392
|
return [];
|
|
5395
5393
|
};
|
|
5396
|
-
|
|
5397
|
-
return
|
|
5394
|
+
wn.prototype.getClass = function() {
|
|
5395
|
+
return wn;
|
|
5398
5396
|
};
|
|
5399
5397
|
var Ae = function() {
|
|
5400
|
-
},
|
|
5398
|
+
}, er = { Mod2BoundaryNodeRule: { configurable: !0 }, EndPointBoundaryNodeRule: { configurable: !0 }, MultiValentEndPointBoundaryNodeRule: { configurable: !0 }, MonoValentEndPointBoundaryNodeRule: { configurable: !0 }, MOD2_BOUNDARY_RULE: { configurable: !0 }, ENDPOINT_BOUNDARY_RULE: { configurable: !0 }, MULTIVALENT_ENDPOINT_BOUNDARY_RULE: { configurable: !0 }, MONOVALENT_ENDPOINT_BOUNDARY_RULE: { configurable: !0 }, OGC_SFS_BOUNDARY_RULE: { configurable: !0 } };
|
|
5401
5399
|
Ae.prototype.isInBoundary = function(t) {
|
|
5402
5400
|
};
|
|
5403
5401
|
Ae.prototype.interfaces_ = function() {
|
|
@@ -5406,34 +5404,34 @@ Ae.prototype.interfaces_ = function() {
|
|
|
5406
5404
|
Ae.prototype.getClass = function() {
|
|
5407
5405
|
return Ae;
|
|
5408
5406
|
};
|
|
5409
|
-
|
|
5407
|
+
er.Mod2BoundaryNodeRule.get = function() {
|
|
5410
5408
|
return xi;
|
|
5411
5409
|
};
|
|
5412
|
-
|
|
5410
|
+
er.EndPointBoundaryNodeRule.get = function() {
|
|
5413
5411
|
return wi;
|
|
5414
5412
|
};
|
|
5415
|
-
|
|
5413
|
+
er.MultiValentEndPointBoundaryNodeRule.get = function() {
|
|
5416
5414
|
return Li;
|
|
5417
5415
|
};
|
|
5418
|
-
|
|
5416
|
+
er.MonoValentEndPointBoundaryNodeRule.get = function() {
|
|
5419
5417
|
return bi;
|
|
5420
5418
|
};
|
|
5421
|
-
|
|
5419
|
+
er.MOD2_BOUNDARY_RULE.get = function() {
|
|
5422
5420
|
return new xi();
|
|
5423
5421
|
};
|
|
5424
|
-
|
|
5422
|
+
er.ENDPOINT_BOUNDARY_RULE.get = function() {
|
|
5425
5423
|
return new wi();
|
|
5426
5424
|
};
|
|
5427
|
-
|
|
5425
|
+
er.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get = function() {
|
|
5428
5426
|
return new Li();
|
|
5429
5427
|
};
|
|
5430
|
-
|
|
5428
|
+
er.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get = function() {
|
|
5431
5429
|
return new bi();
|
|
5432
5430
|
};
|
|
5433
|
-
|
|
5431
|
+
er.OGC_SFS_BOUNDARY_RULE.get = function() {
|
|
5434
5432
|
return Ae.MOD2_BOUNDARY_RULE;
|
|
5435
5433
|
};
|
|
5436
|
-
Object.defineProperties(Ae,
|
|
5434
|
+
Object.defineProperties(Ae, er);
|
|
5437
5435
|
var xi = function() {
|
|
5438
5436
|
};
|
|
5439
5437
|
xi.prototype.isInBoundary = function(t) {
|
|
@@ -5949,14 +5947,14 @@ var Ys = function(r) {
|
|
|
5949
5947
|
}, t.prototype.remove = function() {
|
|
5950
5948
|
throw new Co();
|
|
5951
5949
|
}, t;
|
|
5952
|
-
}(Yi),
|
|
5950
|
+
}(Yi), Xn = 0, Sr = 1;
|
|
5953
5951
|
function Ta(r) {
|
|
5954
|
-
return r === null ?
|
|
5952
|
+
return r === null ? Xn : r.color;
|
|
5955
5953
|
}
|
|
5956
5954
|
function st(r) {
|
|
5957
5955
|
return r === null ? null : r.parent;
|
|
5958
5956
|
}
|
|
5959
|
-
function
|
|
5957
|
+
function zn(r, t) {
|
|
5960
5958
|
r !== null && (r.color = t);
|
|
5961
5959
|
}
|
|
5962
5960
|
function Cs(r) {
|
|
@@ -5989,7 +5987,7 @@ Kt.prototype.put = function(r, t) {
|
|
|
5989
5987
|
left: null,
|
|
5990
5988
|
right: null,
|
|
5991
5989
|
parent: null,
|
|
5992
|
-
color:
|
|
5990
|
+
color: Xn,
|
|
5993
5991
|
getValue: function() {
|
|
5994
5992
|
return this.value;
|
|
5995
5993
|
},
|
|
@@ -6014,7 +6012,7 @@ Kt.prototype.put = function(r, t) {
|
|
|
6014
6012
|
right: null,
|
|
6015
6013
|
value: t,
|
|
6016
6014
|
parent: n,
|
|
6017
|
-
color:
|
|
6015
|
+
color: Xn,
|
|
6018
6016
|
getValue: function() {
|
|
6019
6017
|
return this.value;
|
|
6020
6018
|
},
|
|
@@ -6029,12 +6027,12 @@ Kt.prototype.fixAfterInsertion = function(r) {
|
|
|
6029
6027
|
for (r.color = Sr; r != null && r !== this.root_ && r.parent.color === Sr; )
|
|
6030
6028
|
if (st(r) === Cs(st(st(r)))) {
|
|
6031
6029
|
var e = Ma(st(st(r)));
|
|
6032
|
-
Ta(e) === Sr ? (
|
|
6030
|
+
Ta(e) === Sr ? (zn(st(r), Xn), zn(e, Xn), zn(st(st(r)), Sr), r = st(st(r))) : (r === Ma(st(r)) && (r = st(r), t.rotateLeft(r)), zn(st(r), Xn), zn(st(st(r)), Sr), t.rotateRight(st(st(r))));
|
|
6033
6031
|
} else {
|
|
6034
6032
|
var n = Cs(st(st(r)));
|
|
6035
|
-
Ta(n) === Sr ? (
|
|
6033
|
+
Ta(n) === Sr ? (zn(st(r), Xn), zn(n, Xn), zn(st(st(r)), Sr), r = st(st(r))) : (r === Cs(st(r)) && (r = st(r), t.rotateRight(r)), zn(st(r), Xn), zn(st(st(r)), Sr), t.rotateLeft(st(st(r))));
|
|
6036
6034
|
}
|
|
6037
|
-
this.root_.color =
|
|
6035
|
+
this.root_.color = Xn;
|
|
6038
6036
|
};
|
|
6039
6037
|
Kt.prototype.values = function() {
|
|
6040
6038
|
var r = new O(), t = this.getFirstEntry();
|
|
@@ -6369,7 +6367,7 @@ var ie = function(r) {
|
|
|
6369
6367
|
}
|
|
6370
6368
|
}, t.prototype.apply = function() {
|
|
6371
6369
|
var i = this;
|
|
6372
|
-
if (z(arguments[0],
|
|
6370
|
+
if (z(arguments[0], wn))
|
|
6373
6371
|
for (var o = arguments[0], s = 0; s < this._geometries.length; s++)
|
|
6374
6372
|
i._geometries[s].apply(o);
|
|
6375
6373
|
else if (z(arguments[0], Ye)) {
|
|
@@ -6384,7 +6382,7 @@ var ie = function(r) {
|
|
|
6384
6382
|
l.filter(this);
|
|
6385
6383
|
for (var c = 0; c < this._geometries.length; c++)
|
|
6386
6384
|
i._geometries[c].apply(l);
|
|
6387
|
-
} else if (z(arguments[0],
|
|
6385
|
+
} else if (z(arguments[0], Qn)) {
|
|
6388
6386
|
var f = arguments[0];
|
|
6389
6387
|
f.filter(this);
|
|
6390
6388
|
for (var h = 0; h < this._geometries.length; h++)
|
|
@@ -6755,7 +6753,7 @@ var yt = function(r) {
|
|
|
6755
6753
|
}
|
|
6756
6754
|
}, t.prototype.apply = function() {
|
|
6757
6755
|
var i = this;
|
|
6758
|
-
if (z(arguments[0],
|
|
6756
|
+
if (z(arguments[0], wn))
|
|
6759
6757
|
for (var o = arguments[0], s = 0; s < this._points.size(); s++)
|
|
6760
6758
|
o.filter(i._points.getCoordinate(s));
|
|
6761
6759
|
else if (z(arguments[0], Ye)) {
|
|
@@ -6768,7 +6766,7 @@ var yt = function(r) {
|
|
|
6768
6766
|
} else if (z(arguments[0], cn)) {
|
|
6769
6767
|
var l = arguments[0];
|
|
6770
6768
|
l.filter(this);
|
|
6771
|
-
} else if (z(arguments[0],
|
|
6769
|
+
} else if (z(arguments[0], Qn)) {
|
|
6772
6770
|
var c = arguments[0];
|
|
6773
6771
|
c.filter(this);
|
|
6774
6772
|
}
|
|
@@ -6862,7 +6860,7 @@ var de = function(r) {
|
|
|
6862
6860
|
return a.compare(this._coordinates, u._coordinates);
|
|
6863
6861
|
}
|
|
6864
6862
|
}, t.prototype.apply = function() {
|
|
6865
|
-
if (z(arguments[0],
|
|
6863
|
+
if (z(arguments[0], wn)) {
|
|
6866
6864
|
var i = arguments[0];
|
|
6867
6865
|
if (this.isEmpty())
|
|
6868
6866
|
return null;
|
|
@@ -6875,7 +6873,7 @@ var de = function(r) {
|
|
|
6875
6873
|
} else if (z(arguments[0], cn)) {
|
|
6876
6874
|
var s = arguments[0];
|
|
6877
6875
|
s.filter(this);
|
|
6878
|
-
} else if (z(arguments[0],
|
|
6876
|
+
} else if (z(arguments[0], Qn)) {
|
|
6879
6877
|
var a = arguments[0];
|
|
6880
6878
|
a.filter(this);
|
|
6881
6879
|
}
|
|
@@ -7039,7 +7037,7 @@ var Ot = function(r) {
|
|
|
7039
7037
|
}
|
|
7040
7038
|
}, t.prototype.apply = function(i) {
|
|
7041
7039
|
var o = this;
|
|
7042
|
-
if (z(i,
|
|
7040
|
+
if (z(i, wn)) {
|
|
7043
7041
|
this._shell.apply(i);
|
|
7044
7042
|
for (var s = 0; s < this._holes.length; s++)
|
|
7045
7043
|
o._holes[s].apply(i);
|
|
@@ -7050,7 +7048,7 @@ var Ot = function(r) {
|
|
|
7050
7048
|
i.isGeometryChanged() && this.geometryChanged();
|
|
7051
7049
|
} else if (z(i, cn))
|
|
7052
7050
|
i.filter(this);
|
|
7053
|
-
else if (z(i,
|
|
7051
|
+
else if (z(i, Qn)) {
|
|
7054
7052
|
i.filter(this), this._shell.apply(i);
|
|
7055
7053
|
for (var u = 0; u < this._holes.length; u++)
|
|
7056
7054
|
o._holes[u].apply(i);
|
|
@@ -7130,7 +7128,7 @@ var Ot = function(r) {
|
|
|
7130
7128
|
}, e.serialVersionUID.get = function() {
|
|
7131
7129
|
return -8048474874175356e3;
|
|
7132
7130
|
}, Object.defineProperties(t, e), t;
|
|
7133
|
-
}(ie),
|
|
7131
|
+
}(ie), Ln = function(r) {
|
|
7134
7132
|
function t(n, i) {
|
|
7135
7133
|
n instanceof v && i instanceof H && (n = i.getCoordinateSequenceFactory().create(n)), r.call(this, n, i), this.validateConstruction();
|
|
7136
7134
|
}
|
|
@@ -7165,7 +7163,7 @@ var Ot = function(r) {
|
|
|
7165
7163
|
}, e.serialVersionUID.get = function() {
|
|
7166
7164
|
return -4261142084085851600;
|
|
7167
7165
|
}, Object.defineProperties(t, e), t;
|
|
7168
|
-
}(yt),
|
|
7166
|
+
}(yt), Sn = function(r) {
|
|
7169
7167
|
function t() {
|
|
7170
7168
|
r.apply(this, arguments);
|
|
7171
7169
|
}
|
|
@@ -7229,7 +7227,7 @@ Fe.prototype.editGeometryCollection = function(t, e) {
|
|
|
7229
7227
|
var a = n.edit(i.getGeometryN(s), e);
|
|
7230
7228
|
a === null || a.isEmpty() || o.add(a);
|
|
7231
7229
|
}
|
|
7232
|
-
return i.getClass() === Ri ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Tr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() ===
|
|
7230
|
+
return i.getClass() === Ri ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Tr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === Sn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
|
|
7233
7231
|
};
|
|
7234
7232
|
Fe.prototype.editPolygon = function(t, e) {
|
|
7235
7233
|
var n = this, i = e.edit(t, this._factory);
|
|
@@ -7277,7 +7275,7 @@ var lo = function() {
|
|
|
7277
7275
|
};
|
|
7278
7276
|
lo.prototype.edit = function(t, e) {
|
|
7279
7277
|
var n = this.editCoordinates(t.getCoordinates(), t);
|
|
7280
|
-
return n === null ? t : t instanceof
|
|
7278
|
+
return n === null ? t : t instanceof Ln ? e.createLinearRing(n) : t instanceof yt ? e.createLineString(n) : t instanceof de ? n.length > 0 ? e.createPoint(n[0]) : e.createPoint() : t;
|
|
7281
7279
|
};
|
|
7282
7280
|
lo.prototype.interfaces_ = function() {
|
|
7283
7281
|
return [Fe.GeometryEditorOperation];
|
|
@@ -7288,7 +7286,7 @@ lo.prototype.getClass = function() {
|
|
|
7288
7286
|
var co = function() {
|
|
7289
7287
|
};
|
|
7290
7288
|
co.prototype.edit = function(t, e) {
|
|
7291
|
-
return t instanceof
|
|
7289
|
+
return t instanceof Ln ? e.createLinearRing(this.edit(t.getCoordinateSequence(), t)) : t instanceof yt ? e.createLineString(this.edit(t.getCoordinateSequence(), t)) : t instanceof de ? e.createPoint(this.edit(t.getCoordinateSequence(), t)) : t;
|
|
7292
7290
|
};
|
|
7293
7291
|
co.prototype.interfaces_ = function() {
|
|
7294
7292
|
return [Fe.GeometryEditorOperation];
|
|
@@ -7415,12 +7413,12 @@ Iu.serialVersionUID.get = function() {
|
|
|
7415
7413
|
return -915438501601840600;
|
|
7416
7414
|
};
|
|
7417
7415
|
Object.defineProperties(_t, Iu);
|
|
7418
|
-
var
|
|
7416
|
+
var bn = function() {
|
|
7419
7417
|
}, Hs = { serialVersionUID: { configurable: !0 }, instanceObject: { configurable: !0 } };
|
|
7420
|
-
|
|
7421
|
-
return
|
|
7418
|
+
bn.prototype.readResolve = function() {
|
|
7419
|
+
return bn.instance();
|
|
7422
7420
|
};
|
|
7423
|
-
|
|
7421
|
+
bn.prototype.create = function() {
|
|
7424
7422
|
if (arguments.length === 1) {
|
|
7425
7423
|
if (arguments[0] instanceof Array) {
|
|
7426
7424
|
var t = arguments[0];
|
|
@@ -7434,22 +7432,22 @@ Pn.prototype.create = function() {
|
|
|
7434
7432
|
return i > 3 && (i = 3), i < 2 ? new _t(n) : new _t(n, i);
|
|
7435
7433
|
}
|
|
7436
7434
|
};
|
|
7437
|
-
|
|
7435
|
+
bn.prototype.interfaces_ = function() {
|
|
7438
7436
|
return [Si, Ge];
|
|
7439
7437
|
};
|
|
7440
|
-
|
|
7441
|
-
return
|
|
7438
|
+
bn.prototype.getClass = function() {
|
|
7439
|
+
return bn;
|
|
7442
7440
|
};
|
|
7443
|
-
|
|
7444
|
-
return
|
|
7441
|
+
bn.instance = function() {
|
|
7442
|
+
return bn.instanceObject;
|
|
7445
7443
|
};
|
|
7446
7444
|
Hs.serialVersionUID.get = function() {
|
|
7447
7445
|
return -4099577099607551500;
|
|
7448
7446
|
};
|
|
7449
7447
|
Hs.instanceObject.get = function() {
|
|
7450
|
-
return new
|
|
7448
|
+
return new bn();
|
|
7451
7449
|
};
|
|
7452
|
-
Object.defineProperties(
|
|
7450
|
+
Object.defineProperties(bn, Hs);
|
|
7453
7451
|
var Cu = function(r) {
|
|
7454
7452
|
function t() {
|
|
7455
7453
|
r.call(this), this.map_ = /* @__PURE__ */ new Map();
|
|
@@ -7648,7 +7646,7 @@ H.prototype.createPolygon = function() {
|
|
|
7648
7646
|
} else if (arguments[0] instanceof Array) {
|
|
7649
7647
|
var e = arguments[0];
|
|
7650
7648
|
return this.createPolygon(this.createLinearRing(e));
|
|
7651
|
-
} else if (arguments[0] instanceof
|
|
7649
|
+
} else if (arguments[0] instanceof Ln) {
|
|
7652
7650
|
var n = arguments[0];
|
|
7653
7651
|
return this.createPolygon(n, null);
|
|
7654
7652
|
}
|
|
@@ -7691,16 +7689,16 @@ H.prototype.createLinearRing = function() {
|
|
|
7691
7689
|
return this.createLinearRing(t !== null ? this.getCoordinateSequenceFactory().create(t) : null);
|
|
7692
7690
|
} else if (z(arguments[0], Q)) {
|
|
7693
7691
|
var e = arguments[0];
|
|
7694
|
-
return new
|
|
7692
|
+
return new Ln(e, this);
|
|
7695
7693
|
}
|
|
7696
7694
|
}
|
|
7697
7695
|
};
|
|
7698
7696
|
H.prototype.createMultiPolygon = function() {
|
|
7699
7697
|
if (arguments.length === 0)
|
|
7700
|
-
return new
|
|
7698
|
+
return new Sn(null, this);
|
|
7701
7699
|
if (arguments.length === 1) {
|
|
7702
7700
|
var t = arguments[0];
|
|
7703
|
-
return new
|
|
7701
|
+
return new Sn(t, this);
|
|
7704
7702
|
}
|
|
7705
7703
|
};
|
|
7706
7704
|
H.prototype.createMultiPoint = function() {
|
|
@@ -7743,7 +7741,7 @@ H.toGeometryArray = function(t) {
|
|
|
7743
7741
|
return t.toArray(e);
|
|
7744
7742
|
};
|
|
7745
7743
|
H.getDefaultCoordinateSequenceFactory = function() {
|
|
7746
|
-
return
|
|
7744
|
+
return bn.instance();
|
|
7747
7745
|
};
|
|
7748
7746
|
H.toMultiLineStringArray = function(t) {
|
|
7749
7747
|
var e = new Array(t.size()).fill(null);
|
|
@@ -7789,9 +7787,9 @@ ss.prototype.read = function(t) {
|
|
|
7789
7787
|
};
|
|
7790
7788
|
ss.prototype.write = function(t) {
|
|
7791
7789
|
var e = t.getGeometryType();
|
|
7792
|
-
if (!
|
|
7790
|
+
if (!Un[e])
|
|
7793
7791
|
throw new Error("Geometry is not supported");
|
|
7794
|
-
return
|
|
7792
|
+
return Un[e].apply(this, [t]);
|
|
7795
7793
|
};
|
|
7796
7794
|
var en = {
|
|
7797
7795
|
/**
|
|
@@ -7958,7 +7956,7 @@ var en = {
|
|
|
7958
7956
|
}
|
|
7959
7957
|
return this.geometryFactory.createGeometryCollection(e);
|
|
7960
7958
|
}
|
|
7961
|
-
},
|
|
7959
|
+
}, Un = {
|
|
7962
7960
|
/**
|
|
7963
7961
|
* Convert a Coordinate to an Array
|
|
7964
7962
|
*
|
|
@@ -7979,7 +7977,7 @@ var en = {
|
|
|
7979
7977
|
* @return {Array} Array of 2 ordinates (paired to a coordinate).
|
|
7980
7978
|
*/
|
|
7981
7979
|
Point: function(r) {
|
|
7982
|
-
var t =
|
|
7980
|
+
var t = Un.coordinate.apply(this, [r.getCoordinate()]);
|
|
7983
7981
|
return {
|
|
7984
7982
|
type: "Point",
|
|
7985
7983
|
coordinates: t
|
|
@@ -7995,7 +7993,7 @@ var en = {
|
|
|
7995
7993
|
*/
|
|
7996
7994
|
MultiPoint: function(r) {
|
|
7997
7995
|
for (var t = this, e = [], n = 0; n < r._geometries.length; ++n) {
|
|
7998
|
-
var i = r._geometries[n], o =
|
|
7996
|
+
var i = r._geometries[n], o = Un.Point.apply(t, [i]);
|
|
7999
7997
|
e.push(o.coordinates);
|
|
8000
7998
|
}
|
|
8001
7999
|
return {
|
|
@@ -8014,7 +8012,7 @@ var en = {
|
|
|
8014
8012
|
LineString: function(r) {
|
|
8015
8013
|
for (var t = this, e = [], n = r.getCoordinates(), i = 0; i < n.length; ++i) {
|
|
8016
8014
|
var o = n[i];
|
|
8017
|
-
e.push(
|
|
8015
|
+
e.push(Un.coordinate.apply(t, [o]));
|
|
8018
8016
|
}
|
|
8019
8017
|
return {
|
|
8020
8018
|
type: "LineString",
|
|
@@ -8031,7 +8029,7 @@ var en = {
|
|
|
8031
8029
|
*/
|
|
8032
8030
|
MultiLineString: function(r) {
|
|
8033
8031
|
for (var t = this, e = [], n = 0; n < r._geometries.length; ++n) {
|
|
8034
|
-
var i = r._geometries[n], o =
|
|
8032
|
+
var i = r._geometries[n], o = Un.LineString.apply(t, [i]);
|
|
8035
8033
|
e.push(o.coordinates);
|
|
8036
8034
|
}
|
|
8037
8035
|
return {
|
|
@@ -8048,10 +8046,10 @@ var en = {
|
|
|
8048
8046
|
* @return {Array} Array with shell, holes.
|
|
8049
8047
|
*/
|
|
8050
8048
|
Polygon: function(r) {
|
|
8051
|
-
var t = this, e = [], n =
|
|
8049
|
+
var t = this, e = [], n = Un.LineString.apply(this, [r._shell]);
|
|
8052
8050
|
e.push(n.coordinates);
|
|
8053
8051
|
for (var i = 0; i < r._holes.length; ++i) {
|
|
8054
|
-
var o = r._holes[i], s =
|
|
8052
|
+
var o = r._holes[i], s = Un.LineString.apply(t, [o]);
|
|
8055
8053
|
e.push(s.coordinates);
|
|
8056
8054
|
}
|
|
8057
8055
|
return {
|
|
@@ -8069,7 +8067,7 @@ var en = {
|
|
|
8069
8067
|
*/
|
|
8070
8068
|
MultiPolygon: function(r) {
|
|
8071
8069
|
for (var t = this, e = [], n = 0; n < r._geometries.length; ++n) {
|
|
8072
|
-
var i = r._geometries[n], o =
|
|
8070
|
+
var i = r._geometries[n], o = Un.Polygon.apply(t, [i]);
|
|
8073
8071
|
e.push(o.coordinates);
|
|
8074
8072
|
}
|
|
8075
8073
|
return {
|
|
@@ -8088,7 +8086,7 @@ var en = {
|
|
|
8088
8086
|
GeometryCollection: function(r) {
|
|
8089
8087
|
for (var t = this, e = [], n = 0; n < r._geometries.length; ++n) {
|
|
8090
8088
|
var i = r._geometries[n], o = i.getGeometryType();
|
|
8091
|
-
e.push(
|
|
8089
|
+
e.push(Un[o].apply(t, [i]));
|
|
8092
8090
|
}
|
|
8093
8091
|
return {
|
|
8094
8092
|
type: "GeometryCollection",
|
|
@@ -8236,7 +8234,7 @@ hn.prototype.interfaces_ = function() {
|
|
|
8236
8234
|
hn.prototype.getClass = function() {
|
|
8237
8235
|
return hn;
|
|
8238
8236
|
};
|
|
8239
|
-
var
|
|
8237
|
+
var Zn = function(r) {
|
|
8240
8238
|
function t(e, n) {
|
|
8241
8239
|
r.call(this, t.msgWithCoord(e, n)), this.pt = n ? new v(n) : null, this.name = "TopologyException";
|
|
8242
8240
|
}
|
|
@@ -8249,7 +8247,7 @@ var Jn = function(r) {
|
|
|
8249
8247
|
}, t.msgWithCoord = function(n, i) {
|
|
8250
8248
|
return i ? n : n + " [ " + i + " ]";
|
|
8251
8249
|
}, t;
|
|
8252
|
-
}(
|
|
8250
|
+
}(Kn), ls = function() {
|
|
8253
8251
|
this.array_ = [];
|
|
8254
8252
|
};
|
|
8255
8253
|
ls.prototype.addLast = function(t) {
|
|
@@ -8282,7 +8280,7 @@ oe.prototype.computeNodeDepth = function(t) {
|
|
|
8282
8280
|
}
|
|
8283
8281
|
}
|
|
8284
8282
|
if (n === null)
|
|
8285
|
-
throw new
|
|
8283
|
+
throw new Zn("unable to find edge to compute depths at " + t.getCoordinate());
|
|
8286
8284
|
t.getEdges().computeDepths(n);
|
|
8287
8285
|
for (var s = t.getEdges().iterator(); s.hasNext(); ) {
|
|
8288
8286
|
var a = s.next();
|
|
@@ -8588,9 +8586,9 @@ wt.prototype.computePoints = function(t) {
|
|
|
8588
8586
|
var n = t, i = !0;
|
|
8589
8587
|
do {
|
|
8590
8588
|
if (n === null)
|
|
8591
|
-
throw new
|
|
8589
|
+
throw new Zn("Found null DirectedEdge");
|
|
8592
8590
|
if (n.getEdgeRing() === e)
|
|
8593
|
-
throw new
|
|
8591
|
+
throw new Zn("Directed Edge visited twice during ring-building at " + n.getCoordinate());
|
|
8594
8592
|
e._edges.add(n);
|
|
8595
8593
|
var o = n.getLabel();
|
|
8596
8594
|
q.isTrue(o.isArea()), e.mergeLabel(o), e.addPoints(n.getEdge(), n.isForward(), i), i = !1, e.setEdgeRing(n, e), n = e.getNext(n);
|
|
@@ -9038,7 +9036,7 @@ var Fs = function(r) {
|
|
|
9038
9036
|
return this._next;
|
|
9039
9037
|
}, t.prototype.setDepth = function(n, i) {
|
|
9040
9038
|
if (this._depth[n] !== -999 && this._depth[n] !== i)
|
|
9041
|
-
throw new
|
|
9039
|
+
throw new Zn("assigned depths do not match", this.getCoordinate());
|
|
9042
9040
|
this._depth[n] = i;
|
|
9043
9041
|
}, t.prototype.isInteriorAreaEdge = function() {
|
|
9044
9042
|
for (var n = this, i = !0, o = 0; o < 2; o++)
|
|
@@ -9250,7 +9248,7 @@ ve.prototype.placeFreeHoles = function(t, e) {
|
|
|
9250
9248
|
if (o.getShell() === null) {
|
|
9251
9249
|
var s = n.findEdgeRingContaining(o, t);
|
|
9252
9250
|
if (s === null)
|
|
9253
|
-
throw new
|
|
9251
|
+
throw new Zn("unable to assign hole to a shell", o.getCoordinate(0));
|
|
9254
9252
|
o.setShell(s);
|
|
9255
9253
|
}
|
|
9256
9254
|
}
|
|
@@ -9355,30 +9353,30 @@ We.prototype.interfaces_ = function() {
|
|
|
9355
9353
|
We.prototype.getClass = function() {
|
|
9356
9354
|
return We;
|
|
9357
9355
|
};
|
|
9358
|
-
var
|
|
9356
|
+
var Jn = function() {
|
|
9359
9357
|
this._size = null, this._items = null, this._size = 0, this._items = new O(), this._items.add(null);
|
|
9360
9358
|
};
|
|
9361
|
-
|
|
9359
|
+
Jn.prototype.poll = function() {
|
|
9362
9360
|
if (this.isEmpty())
|
|
9363
9361
|
return null;
|
|
9364
9362
|
var t = this._items.get(1);
|
|
9365
9363
|
return this._items.set(1, this._items.get(this._size)), this._size -= 1, this.reorder(1), t;
|
|
9366
9364
|
};
|
|
9367
|
-
|
|
9365
|
+
Jn.prototype.size = function() {
|
|
9368
9366
|
return this._size;
|
|
9369
9367
|
};
|
|
9370
|
-
|
|
9368
|
+
Jn.prototype.reorder = function(t) {
|
|
9371
9369
|
for (var e = this, n = null, i = this._items.get(t); t * 2 <= this._size && (n = t * 2, n !== e._size && e._items.get(n + 1).compareTo(e._items.get(n)) < 0 && n++, e._items.get(n).compareTo(i) < 0); t = n)
|
|
9372
9370
|
e._items.set(t, e._items.get(n));
|
|
9373
9371
|
this._items.set(t, i);
|
|
9374
9372
|
};
|
|
9375
|
-
|
|
9373
|
+
Jn.prototype.clear = function() {
|
|
9376
9374
|
this._size = 0, this._items.clear();
|
|
9377
9375
|
};
|
|
9378
|
-
|
|
9376
|
+
Jn.prototype.isEmpty = function() {
|
|
9379
9377
|
return this._size === 0;
|
|
9380
9378
|
};
|
|
9381
|
-
|
|
9379
|
+
Jn.prototype.add = function(t) {
|
|
9382
9380
|
var e = this;
|
|
9383
9381
|
this._items.add(null), this._size += 1;
|
|
9384
9382
|
var n = this._size;
|
|
@@ -9386,11 +9384,11 @@ $n.prototype.add = function(t) {
|
|
|
9386
9384
|
e._items.set(n, e._items.get(Math.trunc(n / 2)));
|
|
9387
9385
|
this._items.set(n, t);
|
|
9388
9386
|
};
|
|
9389
|
-
|
|
9387
|
+
Jn.prototype.interfaces_ = function() {
|
|
9390
9388
|
return [];
|
|
9391
9389
|
};
|
|
9392
|
-
|
|
9393
|
-
return
|
|
9390
|
+
Jn.prototype.getClass = function() {
|
|
9391
|
+
return Jn;
|
|
9394
9392
|
};
|
|
9395
9393
|
var gr = function() {
|
|
9396
9394
|
};
|
|
@@ -9795,7 +9793,7 @@ var wu = function(r) {
|
|
|
9795
9793
|
var a = arguments[0], u = arguments[1], l = new St(this.getRoot(), a.getRoot(), u);
|
|
9796
9794
|
return this.nearestNeighbour(l);
|
|
9797
9795
|
} else if (arguments[0] instanceof St && typeof arguments[1] == "number") {
|
|
9798
|
-
var c = arguments[0], f = arguments[1], h = f, g = null, p = new
|
|
9796
|
+
var c = arguments[0], f = arguments[1], h = f, g = null, p = new Jn();
|
|
9799
9797
|
for (p.add(c); !p.isEmpty() && h > 0; ) {
|
|
9800
9798
|
var y = p.poll(), d = y.getDistance();
|
|
9801
9799
|
if (d >= h)
|
|
@@ -10021,10 +10019,10 @@ se.prototype.add = function(t, e) {
|
|
|
10021
10019
|
se.prototype.checkSplitEdgesCorrectness = function(t) {
|
|
10022
10020
|
var e = this._edge.getCoordinates(), n = t.get(0), i = n.getCoordinate(0);
|
|
10023
10021
|
if (!i.equals2D(e[0]))
|
|
10024
|
-
throw new
|
|
10022
|
+
throw new Kn("bad split edge start point at " + i);
|
|
10025
10023
|
var o = t.get(t.size() - 1), s = o.getCoordinates(), a = s[s.length - 1];
|
|
10026
10024
|
if (!a.equals2D(e[e.length - 1]))
|
|
10027
|
-
throw new
|
|
10025
|
+
throw new Kn("bad split edge end point at " + a);
|
|
10028
10026
|
};
|
|
10029
10027
|
se.prototype.interfaces_ = function() {
|
|
10030
10028
|
return [];
|
|
@@ -10054,32 +10052,32 @@ ti.octant = function() {
|
|
|
10054
10052
|
return ti.octant(a, u);
|
|
10055
10053
|
}
|
|
10056
10054
|
};
|
|
10057
|
-
var
|
|
10055
|
+
var Pn = function() {
|
|
10058
10056
|
};
|
|
10059
|
-
|
|
10057
|
+
Pn.prototype.getCoordinates = function() {
|
|
10060
10058
|
};
|
|
10061
|
-
|
|
10059
|
+
Pn.prototype.size = function() {
|
|
10062
10060
|
};
|
|
10063
|
-
|
|
10061
|
+
Pn.prototype.getCoordinate = function(t) {
|
|
10064
10062
|
};
|
|
10065
|
-
|
|
10063
|
+
Pn.prototype.isClosed = function() {
|
|
10066
10064
|
};
|
|
10067
|
-
|
|
10065
|
+
Pn.prototype.setData = function(t) {
|
|
10068
10066
|
};
|
|
10069
|
-
|
|
10067
|
+
Pn.prototype.getData = function() {
|
|
10070
10068
|
};
|
|
10071
|
-
|
|
10069
|
+
Pn.prototype.interfaces_ = function() {
|
|
10072
10070
|
return [];
|
|
10073
10071
|
};
|
|
10074
|
-
|
|
10075
|
-
return
|
|
10072
|
+
Pn.prototype.getClass = function() {
|
|
10073
|
+
return Pn;
|
|
10076
10074
|
};
|
|
10077
10075
|
var fo = function() {
|
|
10078
10076
|
};
|
|
10079
10077
|
fo.prototype.addIntersection = function(t, e) {
|
|
10080
10078
|
};
|
|
10081
10079
|
fo.prototype.interfaces_ = function() {
|
|
10082
|
-
return [
|
|
10080
|
+
return [Pn];
|
|
10083
10081
|
};
|
|
10084
10082
|
fo.prototype.getClass = function() {
|
|
10085
10083
|
return fo;
|
|
@@ -10586,7 +10584,7 @@ var Zs = function(r) {
|
|
|
10586
10584
|
this.setQuadrantSegments(i), this.setEndCapStyle(o), this.setJoinStyle(s), this.setMitreLimit(a);
|
|
10587
10585
|
}
|
|
10588
10586
|
}
|
|
10589
|
-
},
|
|
10587
|
+
}, nr = { CAP_ROUND: { configurable: !0 }, CAP_FLAT: { configurable: !0 }, CAP_SQUARE: { configurable: !0 }, JOIN_ROUND: { configurable: !0 }, JOIN_MITRE: { configurable: !0 }, JOIN_BEVEL: { configurable: !0 }, DEFAULT_QUADRANT_SEGMENTS: { configurable: !0 }, DEFAULT_MITRE_LIMIT: { configurable: !0 }, DEFAULT_SIMPLIFY_FACTOR: { configurable: !0 } };
|
|
10590
10588
|
J.prototype.getEndCapStyle = function() {
|
|
10591
10589
|
return this._endCapStyle;
|
|
10592
10590
|
};
|
|
@@ -10633,34 +10631,34 @@ J.bufferDistanceError = function(t) {
|
|
|
10633
10631
|
var e = Math.PI / 2 / t;
|
|
10634
10632
|
return 1 - Math.cos(e / 2);
|
|
10635
10633
|
};
|
|
10636
|
-
|
|
10634
|
+
nr.CAP_ROUND.get = function() {
|
|
10637
10635
|
return 1;
|
|
10638
10636
|
};
|
|
10639
|
-
|
|
10637
|
+
nr.CAP_FLAT.get = function() {
|
|
10640
10638
|
return 2;
|
|
10641
10639
|
};
|
|
10642
|
-
|
|
10640
|
+
nr.CAP_SQUARE.get = function() {
|
|
10643
10641
|
return 3;
|
|
10644
10642
|
};
|
|
10645
|
-
|
|
10643
|
+
nr.JOIN_ROUND.get = function() {
|
|
10646
10644
|
return 1;
|
|
10647
10645
|
};
|
|
10648
|
-
|
|
10646
|
+
nr.JOIN_MITRE.get = function() {
|
|
10649
10647
|
return 2;
|
|
10650
10648
|
};
|
|
10651
|
-
|
|
10649
|
+
nr.JOIN_BEVEL.get = function() {
|
|
10652
10650
|
return 3;
|
|
10653
10651
|
};
|
|
10654
|
-
|
|
10652
|
+
nr.DEFAULT_QUADRANT_SEGMENTS.get = function() {
|
|
10655
10653
|
return 8;
|
|
10656
10654
|
};
|
|
10657
|
-
|
|
10655
|
+
nr.DEFAULT_MITRE_LIMIT.get = function() {
|
|
10658
10656
|
return 5;
|
|
10659
10657
|
};
|
|
10660
|
-
|
|
10658
|
+
nr.DEFAULT_SIMPLIFY_FACTOR.get = function() {
|
|
10661
10659
|
return 0.01;
|
|
10662
10660
|
};
|
|
10663
|
-
Object.defineProperties(J,
|
|
10661
|
+
Object.defineProperties(J, nr);
|
|
10664
10662
|
var mt = function(t) {
|
|
10665
10663
|
this._distanceTol = null, this._isDeleted = null, this._angleOrientation = M.COUNTERCLOCKWISE, this._inputLine = t || null;
|
|
10666
10664
|
}, So = { INIT: { configurable: !0 }, DELETE: { configurable: !0 }, KEEP: { configurable: !0 }, NUM_PTS_TO_CHECK: { configurable: !0 } };
|
|
@@ -11356,17 +11354,17 @@ Be.prototype.getCurves = function() {
|
|
|
11356
11354
|
return this.add(this._inputGeom), this._curveList;
|
|
11357
11355
|
};
|
|
11358
11356
|
Be.prototype.addPolygonRing = function(t, e, n, i, o) {
|
|
11359
|
-
if (e === 0 && t.length <
|
|
11357
|
+
if (e === 0 && t.length < Ln.MINIMUM_VALID_SIZE)
|
|
11360
11358
|
return null;
|
|
11361
11359
|
var s = i, a = o;
|
|
11362
|
-
t.length >=
|
|
11360
|
+
t.length >= Ln.MINIMUM_VALID_SIZE && M.isCCW(t) && (s = o, a = i, n = P.opposite(n));
|
|
11363
11361
|
var u = this._curveBuilder.getRingCurve(t, n, e);
|
|
11364
11362
|
this.addCurve(u, s, a);
|
|
11365
11363
|
};
|
|
11366
11364
|
Be.prototype.add = function(t) {
|
|
11367
11365
|
if (t.isEmpty())
|
|
11368
11366
|
return null;
|
|
11369
|
-
t instanceof Ot ? this.addPolygon(t) : t instanceof yt ? this.addLineString(t) : t instanceof de ? this.addPoint(t) : t instanceof Ri ? this.addCollection(t) : t instanceof Tr ? this.addCollection(t) : t instanceof
|
|
11367
|
+
t instanceof Ot ? this.addPolygon(t) : t instanceof yt ? this.addLineString(t) : t instanceof de ? this.addPoint(t) : t instanceof Ri ? this.addCollection(t) : t instanceof Tr ? this.addCollection(t) : t instanceof Sn ? this.addCollection(t) : t instanceof ie && this.addCollection(t);
|
|
11370
11368
|
};
|
|
11371
11369
|
Be.prototype.isErodedCompletely = function(t, e) {
|
|
11372
11370
|
var n = t.getCoordinates();
|
|
@@ -11399,14 +11397,14 @@ Mi.prototype.interfaces_ = function() {
|
|
|
11399
11397
|
Mi.prototype.getClass = function() {
|
|
11400
11398
|
return Mi;
|
|
11401
11399
|
};
|
|
11402
|
-
var
|
|
11400
|
+
var xn = function() {
|
|
11403
11401
|
this._parent = null, this._atStart = null, this._max = null, this._index = null, this._subcollectionIterator = null;
|
|
11404
11402
|
var t = arguments[0];
|
|
11405
11403
|
this._parent = t, this._atStart = !0, this._index = 0, this._max = t.getNumGeometries();
|
|
11406
11404
|
};
|
|
11407
|
-
|
|
11405
|
+
xn.prototype.next = function() {
|
|
11408
11406
|
if (this._atStart)
|
|
11409
|
-
return this._atStart = !1,
|
|
11407
|
+
return this._atStart = !1, xn.isAtomic(this._parent) && this._index++, this._parent;
|
|
11410
11408
|
if (this._subcollectionIterator !== null) {
|
|
11411
11409
|
if (this._subcollectionIterator.hasNext())
|
|
11412
11410
|
return this._subcollectionIterator.next();
|
|
@@ -11415,12 +11413,12 @@ wn.prototype.next = function() {
|
|
|
11415
11413
|
if (this._index >= this._max)
|
|
11416
11414
|
throw new Wi();
|
|
11417
11415
|
var t = this._parent.getGeometryN(this._index++);
|
|
11418
|
-
return t instanceof ie ? (this._subcollectionIterator = new
|
|
11416
|
+
return t instanceof ie ? (this._subcollectionIterator = new xn(t), this._subcollectionIterator.next()) : t;
|
|
11419
11417
|
};
|
|
11420
|
-
|
|
11418
|
+
xn.prototype.remove = function() {
|
|
11421
11419
|
throw new Error(this.getClass().getName());
|
|
11422
11420
|
};
|
|
11423
|
-
|
|
11421
|
+
xn.prototype.hasNext = function() {
|
|
11424
11422
|
if (this._atStart)
|
|
11425
11423
|
return !0;
|
|
11426
11424
|
if (this._subcollectionIterator !== null) {
|
|
@@ -11430,13 +11428,13 @@ wn.prototype.hasNext = function() {
|
|
|
11430
11428
|
}
|
|
11431
11429
|
return !(this._index >= this._max);
|
|
11432
11430
|
};
|
|
11433
|
-
|
|
11431
|
+
xn.prototype.interfaces_ = function() {
|
|
11434
11432
|
return [Yi];
|
|
11435
11433
|
};
|
|
11436
|
-
|
|
11437
|
-
return
|
|
11434
|
+
xn.prototype.getClass = function() {
|
|
11435
|
+
return xn;
|
|
11438
11436
|
};
|
|
11439
|
-
|
|
11437
|
+
xn.isAtomic = function(t) {
|
|
11440
11438
|
return !(t instanceof ie);
|
|
11441
11439
|
};
|
|
11442
11440
|
var Se = function() {
|
|
@@ -11473,7 +11471,7 @@ Se.containsPoint = function(t, e) {
|
|
|
11473
11471
|
if (e instanceof Ot)
|
|
11474
11472
|
return Se.containsPointInPolygon(t, e);
|
|
11475
11473
|
if (e instanceof ie)
|
|
11476
|
-
for (var n = new
|
|
11474
|
+
for (var n = new xn(e); n.hasNext(); ) {
|
|
11477
11475
|
var i = n.next();
|
|
11478
11476
|
if (i !== e && Se.containsPoint(t, i))
|
|
11479
11477
|
return !0;
|
|
@@ -11504,7 +11502,7 @@ Zt.prototype.propagateSideLabels = function(t) {
|
|
|
11504
11502
|
var c = l.getLocation(t, P.LEFT), f = l.getLocation(t, P.RIGHT);
|
|
11505
11503
|
if (f !== E.NONE) {
|
|
11506
11504
|
if (f !== s)
|
|
11507
|
-
throw new
|
|
11505
|
+
throw new Zn("side location conflict", u.getCoordinate());
|
|
11508
11506
|
c === E.NONE && q.shouldNeverReachHere("found single null side (at " + u.getCoordinate() + ")"), s = c;
|
|
11509
11507
|
} else
|
|
11510
11508
|
q.isTrue(l.getLocation(t, P.LEFT) === E.NONE, "found single null side"), l.setLocation(t, P.RIGHT, s), l.setLocation(t, P.LEFT, s);
|
|
@@ -11636,7 +11634,7 @@ var rf = function(r) {
|
|
|
11636
11634
|
}
|
|
11637
11635
|
if (s === this._LINKING_TO_OUTGOING) {
|
|
11638
11636
|
if (i === null)
|
|
11639
|
-
throw new
|
|
11637
|
+
throw new Zn("no outgoing dirEdge found", this.getCoordinate());
|
|
11640
11638
|
q.isTrue(i.isInResult(), "unable to link last incoming dirEdge"), o.setNext(i);
|
|
11641
11639
|
}
|
|
11642
11640
|
}, t.prototype.insert = function(n) {
|
|
@@ -11685,7 +11683,7 @@ var rf = function(r) {
|
|
|
11685
11683
|
if (arguments.length === 1) {
|
|
11686
11684
|
var i = arguments[0], o = this.findIndex(i), s = i.getDepth(P.LEFT), a = i.getDepth(P.RIGHT), u = this.computeDepths(o + 1, this._edgeList.size(), s), l = this.computeDepths(0, o, u);
|
|
11687
11685
|
if (l !== a)
|
|
11688
|
-
throw new
|
|
11686
|
+
throw new Zn("depth mismatch at " + i.getCoordinate());
|
|
11689
11687
|
} else if (arguments.length === 3) {
|
|
11690
11688
|
for (var c = arguments[0], f = arguments[1], h = arguments[2], g = h, p = c; p < f; p++) {
|
|
11691
11689
|
var y = n._edgeList.get(p);
|
|
@@ -11959,22 +11957,22 @@ pn.prototype.interfaces_ = function() {
|
|
|
11959
11957
|
pn.prototype.getClass = function() {
|
|
11960
11958
|
return pn;
|
|
11961
11959
|
};
|
|
11962
|
-
var
|
|
11960
|
+
var Rn = function() {
|
|
11963
11961
|
this._nodeMap = new Kt(), this.edge = null;
|
|
11964
11962
|
var t = arguments[0];
|
|
11965
11963
|
this.edge = t;
|
|
11966
11964
|
};
|
|
11967
|
-
|
|
11965
|
+
Rn.prototype.print = function(t) {
|
|
11968
11966
|
t.println("Intersections:");
|
|
11969
11967
|
for (var e = this.iterator(); e.hasNext(); ) {
|
|
11970
11968
|
var n = e.next();
|
|
11971
11969
|
n.print(t);
|
|
11972
11970
|
}
|
|
11973
11971
|
};
|
|
11974
|
-
|
|
11972
|
+
Rn.prototype.iterator = function() {
|
|
11975
11973
|
return this._nodeMap.values().iterator();
|
|
11976
11974
|
};
|
|
11977
|
-
|
|
11975
|
+
Rn.prototype.addSplitEdges = function(t) {
|
|
11978
11976
|
var e = this;
|
|
11979
11977
|
this.addEndpoints();
|
|
11980
11978
|
for (var n = this.iterator(), i = n.next(); n.hasNext(); ) {
|
|
@@ -11982,11 +11980,11 @@ On.prototype.addSplitEdges = function(t) {
|
|
|
11982
11980
|
t.add(s), i = o;
|
|
11983
11981
|
}
|
|
11984
11982
|
};
|
|
11985
|
-
|
|
11983
|
+
Rn.prototype.addEndpoints = function() {
|
|
11986
11984
|
var t = this.edge.pts.length - 1;
|
|
11987
11985
|
this.add(this.edge.pts[0], 0, 0), this.add(this.edge.pts[t], t, 0);
|
|
11988
11986
|
};
|
|
11989
|
-
|
|
11987
|
+
Rn.prototype.createSplitEdge = function(t, e) {
|
|
11990
11988
|
var n = this, i = e.segmentIndex - t.segmentIndex + 2, o = this.edge.pts[e.segmentIndex], s = e.dist > 0 || !e.coord.equals2D(o);
|
|
11991
11989
|
s || i--;
|
|
11992
11990
|
var a = new Array(i).fill(null), u = 0;
|
|
@@ -11995,11 +11993,11 @@ On.prototype.createSplitEdge = function(t, e) {
|
|
|
11995
11993
|
a[u++] = n.edge.pts[l];
|
|
11996
11994
|
return s && (a[u] = e.coord), new Yo(a, new et(this.edge._label));
|
|
11997
11995
|
};
|
|
11998
|
-
|
|
11996
|
+
Rn.prototype.add = function(t, e, n) {
|
|
11999
11997
|
var i = new pn(t, e, n), o = this._nodeMap.get(i);
|
|
12000
11998
|
return o !== null ? o : (this._nodeMap.put(i, i), i);
|
|
12001
11999
|
};
|
|
12002
|
-
|
|
12000
|
+
Rn.prototype.isIntersection = function(t) {
|
|
12003
12001
|
for (var e = this.iterator(); e.hasNext(); ) {
|
|
12004
12002
|
var n = e.next();
|
|
12005
12003
|
if (n.coord.equals(t))
|
|
@@ -12007,11 +12005,11 @@ On.prototype.isIntersection = function(t) {
|
|
|
12007
12005
|
}
|
|
12008
12006
|
return !1;
|
|
12009
12007
|
};
|
|
12010
|
-
|
|
12008
|
+
Rn.prototype.interfaces_ = function() {
|
|
12011
12009
|
return [];
|
|
12012
12010
|
};
|
|
12013
|
-
|
|
12014
|
-
return
|
|
12011
|
+
Rn.prototype.getClass = function() {
|
|
12012
|
+
return Rn;
|
|
12015
12013
|
};
|
|
12016
12014
|
var Br = function() {
|
|
12017
12015
|
};
|
|
@@ -12045,25 +12043,25 @@ Br.toIntArray = function(t) {
|
|
|
12045
12043
|
e[n] = t.get(n).intValue();
|
|
12046
12044
|
return e;
|
|
12047
12045
|
};
|
|
12048
|
-
var
|
|
12046
|
+
var $n = function() {
|
|
12049
12047
|
this.e = null, this.pts = null, this.startIndex = null, this.env1 = new B(), this.env2 = new B();
|
|
12050
12048
|
var t = arguments[0];
|
|
12051
12049
|
this.e = t, this.pts = t.getCoordinates();
|
|
12052
12050
|
var e = new Br();
|
|
12053
12051
|
this.startIndex = e.getChainStartIndices(this.pts);
|
|
12054
12052
|
};
|
|
12055
|
-
|
|
12053
|
+
$n.prototype.getCoordinates = function() {
|
|
12056
12054
|
return this.pts;
|
|
12057
12055
|
};
|
|
12058
|
-
|
|
12056
|
+
$n.prototype.getMaxX = function(t) {
|
|
12059
12057
|
var e = this.pts[this.startIndex[t]].x, n = this.pts[this.startIndex[t + 1]].x;
|
|
12060
12058
|
return e > n ? e : n;
|
|
12061
12059
|
};
|
|
12062
|
-
|
|
12060
|
+
$n.prototype.getMinX = function(t) {
|
|
12063
12061
|
var e = this.pts[this.startIndex[t]].x, n = this.pts[this.startIndex[t + 1]].x;
|
|
12064
12062
|
return e < n ? e : n;
|
|
12065
12063
|
};
|
|
12066
|
-
|
|
12064
|
+
$n.prototype.computeIntersectsForChain = function() {
|
|
12067
12065
|
if (arguments.length === 4) {
|
|
12068
12066
|
var t = arguments[0], e = arguments[1], n = arguments[2], i = arguments[3];
|
|
12069
12067
|
this.computeIntersectsForChain(this.startIndex[t], this.startIndex[t + 1], e, e.startIndex[n], e.startIndex[n + 1], i);
|
|
@@ -12077,19 +12075,19 @@ tr.prototype.computeIntersectsForChain = function() {
|
|
|
12077
12075
|
o < y && (u < d && this.computeIntersectsForChain(o, y, a, u, d, c), d < l && this.computeIntersectsForChain(o, y, a, d, l, c)), y < s && (u < d && this.computeIntersectsForChain(y, s, a, u, d, c), d < l && this.computeIntersectsForChain(y, s, a, d, l, c));
|
|
12078
12076
|
}
|
|
12079
12077
|
};
|
|
12080
|
-
|
|
12078
|
+
$n.prototype.getStartIndexes = function() {
|
|
12081
12079
|
return this.startIndex;
|
|
12082
12080
|
};
|
|
12083
|
-
|
|
12081
|
+
$n.prototype.computeIntersects = function(t, e) {
|
|
12084
12082
|
for (var n = this, i = 0; i < this.startIndex.length - 1; i++)
|
|
12085
12083
|
for (var o = 0; o < t.startIndex.length - 1; o++)
|
|
12086
12084
|
n.computeIntersectsForChain(i, t, o, e);
|
|
12087
12085
|
};
|
|
12088
|
-
|
|
12086
|
+
$n.prototype.interfaces_ = function() {
|
|
12089
12087
|
return [];
|
|
12090
12088
|
};
|
|
12091
|
-
|
|
12092
|
-
return
|
|
12089
|
+
$n.prototype.getClass = function() {
|
|
12090
|
+
return $n;
|
|
12093
12091
|
};
|
|
12094
12092
|
var Ut = function r() {
|
|
12095
12093
|
var t = this;
|
|
@@ -12170,7 +12168,7 @@ Ou.NULL_VALUE.get = function() {
|
|
|
12170
12168
|
Object.defineProperties(Ut, Ou);
|
|
12171
12169
|
var Yo = function(r) {
|
|
12172
12170
|
function t() {
|
|
12173
|
-
if (r.call(this), this.pts = null, this._env = null, this.eiList = new
|
|
12171
|
+
if (r.call(this), this.pts = null, this._env = null, this.eiList = new Rn(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new Ut(), this._depthDelta = 0, arguments.length === 1) {
|
|
12174
12172
|
var e = arguments[0];
|
|
12175
12173
|
t.call(this, e, null);
|
|
12176
12174
|
} else if (arguments.length === 2) {
|
|
@@ -12236,7 +12234,7 @@ var Yo = function(r) {
|
|
|
12236
12234
|
n.print(i.pts[o] + " ");
|
|
12237
12235
|
n.println("");
|
|
12238
12236
|
}, t.prototype.getMonotoneChainEdge = function() {
|
|
12239
|
-
return this._mce === null && (this._mce = new
|
|
12237
|
+
return this._mce === null && (this._mce = new $n(this)), this._mce;
|
|
12240
12238
|
}, t.prototype.getEnvelope = function() {
|
|
12241
12239
|
var n = this;
|
|
12242
12240
|
if (this._env === null) {
|
|
@@ -12442,7 +12440,7 @@ dn.prototype.checkEndPtVertexIntersections = function() {
|
|
|
12442
12440
|
for (var o = arguments[0], s = arguments[1], a = s.iterator(); a.hasNext(); )
|
|
12443
12441
|
for (var u = a.next(), l = u.getCoordinates(), c = 1; c < l.length - 1; c++)
|
|
12444
12442
|
if (l[c].equals(o))
|
|
12445
|
-
throw new
|
|
12443
|
+
throw new Kn("found endpt/interior pt intersection at index " + c + " :pt " + o);
|
|
12446
12444
|
}
|
|
12447
12445
|
};
|
|
12448
12446
|
dn.prototype.checkInteriorIntersections = function() {
|
|
@@ -12463,7 +12461,7 @@ dn.prototype.checkInteriorIntersections = function() {
|
|
|
12463
12461
|
return null;
|
|
12464
12462
|
var d = h.getCoordinates()[g], m = h.getCoordinates()[g + 1], _ = p.getCoordinates()[y], C = p.getCoordinates()[y + 1];
|
|
12465
12463
|
if (this._li.computeIntersection(d, m, _, C), this._li.hasIntersection() && (this._li.isProper() || this.hasInteriorIntersection(this._li, d, m) || this.hasInteriorIntersection(this._li, _, C)))
|
|
12466
|
-
throw new
|
|
12464
|
+
throw new Kn("found non-noded intersection at " + d + "-" + m + " and " + _ + "-" + C);
|
|
12467
12465
|
}
|
|
12468
12466
|
};
|
|
12469
12467
|
dn.prototype.checkValid = function() {
|
|
@@ -12490,7 +12488,7 @@ dn.prototype.hasInteriorIntersection = function(t, e, n) {
|
|
|
12490
12488
|
};
|
|
12491
12489
|
dn.prototype.checkCollapse = function(t, e, n) {
|
|
12492
12490
|
if (t.equals(n))
|
|
12493
|
-
throw new
|
|
12491
|
+
throw new Kn("found non-noded collapse at " + dn.fact.createLineString([t, e, n]));
|
|
12494
12492
|
};
|
|
12495
12493
|
dn.prototype.interfaces_ = function() {
|
|
12496
12494
|
return [];
|
|
@@ -12658,12 +12656,12 @@ ni.prototype.interfaces_ = function() {
|
|
|
12658
12656
|
ni.prototype.getClass = function() {
|
|
12659
12657
|
return ni;
|
|
12660
12658
|
};
|
|
12661
|
-
var
|
|
12659
|
+
var On = function() {
|
|
12662
12660
|
this._pm = null, this._li = null, this._scaleFactor = null, this._noder = null, this._pointSnapper = null, this._nodedSegStrings = null;
|
|
12663
12661
|
var t = arguments[0];
|
|
12664
12662
|
this._pm = t, this._li = new Yr(), this._li.setPrecisionModel(t), this._scaleFactor = t.getScale();
|
|
12665
12663
|
};
|
|
12666
|
-
|
|
12664
|
+
On.prototype.checkCorrectness = function(t) {
|
|
12667
12665
|
var e = Nt.getNodedSubstrings(t), n = new dn(e);
|
|
12668
12666
|
try {
|
|
12669
12667
|
n.checkValid();
|
|
@@ -12675,18 +12673,18 @@ Dn.prototype.checkCorrectness = function(t) {
|
|
|
12675
12673
|
} finally {
|
|
12676
12674
|
}
|
|
12677
12675
|
};
|
|
12678
|
-
|
|
12676
|
+
On.prototype.getNodedSubstrings = function() {
|
|
12679
12677
|
return Nt.getNodedSubstrings(this._nodedSegStrings);
|
|
12680
12678
|
};
|
|
12681
|
-
|
|
12679
|
+
On.prototype.snapRound = function(t, e) {
|
|
12682
12680
|
var n = this.findInteriorIntersections(t, e);
|
|
12683
12681
|
this.computeIntersectionSnaps(n), this.computeVertexSnaps(t);
|
|
12684
12682
|
};
|
|
12685
|
-
|
|
12683
|
+
On.prototype.findInteriorIntersections = function(t, e) {
|
|
12686
12684
|
var n = new ni(e);
|
|
12687
12685
|
return this._noder.setSegmentIntersector(n), this._noder.computeNodes(t), n.getInteriorIntersections();
|
|
12688
12686
|
};
|
|
12689
|
-
|
|
12687
|
+
On.prototype.computeVertexSnaps = function() {
|
|
12690
12688
|
var t = this;
|
|
12691
12689
|
if (z(arguments[0], Lt))
|
|
12692
12690
|
for (var e = arguments[0], n = e.iterator(); n.hasNext(); ) {
|
|
@@ -12699,20 +12697,20 @@ Dn.prototype.computeVertexSnaps = function() {
|
|
|
12699
12697
|
l && o.addIntersection(s[a], a);
|
|
12700
12698
|
}
|
|
12701
12699
|
};
|
|
12702
|
-
|
|
12700
|
+
On.prototype.computeNodes = function(t) {
|
|
12703
12701
|
this._nodedSegStrings = t, this._noder = new Zs(), this._pointSnapper = new Ai(this._noder.getIndex()), this.snapRound(t, this._li);
|
|
12704
12702
|
};
|
|
12705
|
-
|
|
12703
|
+
On.prototype.computeIntersectionSnaps = function(t) {
|
|
12706
12704
|
for (var e = this, n = t.iterator(); n.hasNext(); ) {
|
|
12707
12705
|
var i = n.next(), o = new he(i, e._scaleFactor, e._li);
|
|
12708
12706
|
e._pointSnapper.snap(o);
|
|
12709
12707
|
}
|
|
12710
12708
|
};
|
|
12711
|
-
|
|
12709
|
+
On.prototype.interfaces_ = function() {
|
|
12712
12710
|
return [Mr];
|
|
12713
12711
|
};
|
|
12714
|
-
|
|
12715
|
-
return
|
|
12712
|
+
On.prototype.getClass = function() {
|
|
12713
|
+
return On;
|
|
12716
12714
|
};
|
|
12717
12715
|
var Vt = function() {
|
|
12718
12716
|
if (this._argGeom = null, this._distance = null, this._bufParams = new J(), this._resultGeometry = null, this._saveException = null, arguments.length === 1) {
|
|
@@ -12724,7 +12722,7 @@ var Vt = function() {
|
|
|
12724
12722
|
}
|
|
12725
12723
|
}, Hi = { CAP_ROUND: { configurable: !0 }, CAP_BUTT: { configurable: !0 }, CAP_FLAT: { configurable: !0 }, CAP_SQUARE: { configurable: !0 }, MAX_PRECISION_DIGITS: { configurable: !0 } };
|
|
12726
12724
|
Vt.prototype.bufferFixedPrecision = function(t) {
|
|
12727
|
-
var e = new vr(new
|
|
12725
|
+
var e = new vr(new On(new $(1)), t.getScale()), n = new re(this._bufParams);
|
|
12728
12726
|
n.setWorkingPrecisionModel(t), n.setNoder(e), this._resultGeometry = n.buffer(this._argGeom, this._distance);
|
|
12729
12727
|
};
|
|
12730
12728
|
Vt.prototype.bufferReducedPrecision = function() {
|
|
@@ -12734,7 +12732,7 @@ Vt.prototype.bufferReducedPrecision = function() {
|
|
|
12734
12732
|
try {
|
|
12735
12733
|
t.bufferReducedPrecision(e);
|
|
12736
12734
|
} catch (s) {
|
|
12737
|
-
if (s instanceof
|
|
12735
|
+
if (s instanceof Zn)
|
|
12738
12736
|
t._saveException = s;
|
|
12739
12737
|
else
|
|
12740
12738
|
throw s;
|
|
@@ -12763,7 +12761,7 @@ Vt.prototype.bufferOriginalPrecision = function() {
|
|
|
12763
12761
|
var t = new re(this._bufParams);
|
|
12764
12762
|
this._resultGeometry = t.buffer(this._argGeom, this._distance);
|
|
12765
12763
|
} catch (e) {
|
|
12766
|
-
if (e instanceof
|
|
12764
|
+
if (e instanceof Kn)
|
|
12767
12765
|
this._saveException = e;
|
|
12768
12766
|
else
|
|
12769
12767
|
throw e;
|
|
@@ -12876,15 +12874,15 @@ te.prototype.interfaces_ = function() {
|
|
|
12876
12874
|
te.prototype.getClass = function() {
|
|
12877
12875
|
return te;
|
|
12878
12876
|
};
|
|
12879
|
-
var
|
|
12877
|
+
var Cn = function() {
|
|
12880
12878
|
};
|
|
12881
|
-
|
|
12879
|
+
Cn.prototype.interfaces_ = function() {
|
|
12882
12880
|
return [];
|
|
12883
12881
|
};
|
|
12884
|
-
|
|
12885
|
-
return
|
|
12882
|
+
Cn.prototype.getClass = function() {
|
|
12883
|
+
return Cn;
|
|
12886
12884
|
};
|
|
12887
|
-
|
|
12885
|
+
Cn.computeDistance = function() {
|
|
12888
12886
|
if (arguments[2] instanceof te && arguments[0] instanceof yt && arguments[1] instanceof v)
|
|
12889
12887
|
for (var t = arguments[0], e = arguments[1], n = arguments[2], i = t.getCoordinates(), o = new k(), s = 0; s < i.length - 1; s++) {
|
|
12890
12888
|
o.setCoordinates(i[s], i[s + 1]);
|
|
@@ -12893,19 +12891,19 @@ Nn.computeDistance = function() {
|
|
|
12893
12891
|
}
|
|
12894
12892
|
else if (arguments[2] instanceof te && arguments[0] instanceof Ot && arguments[1] instanceof v) {
|
|
12895
12893
|
var u = arguments[0], l = arguments[1], c = arguments[2];
|
|
12896
|
-
|
|
12894
|
+
Cn.computeDistance(u.getExteriorRing(), l, c);
|
|
12897
12895
|
for (var f = 0; f < u.getNumInteriorRing(); f++)
|
|
12898
|
-
|
|
12896
|
+
Cn.computeDistance(u.getInteriorRingN(f), l, c);
|
|
12899
12897
|
} else if (arguments[2] instanceof te && arguments[0] instanceof G && arguments[1] instanceof v) {
|
|
12900
12898
|
var h = arguments[0], g = arguments[1], p = arguments[2];
|
|
12901
12899
|
if (h instanceof yt)
|
|
12902
|
-
|
|
12900
|
+
Cn.computeDistance(h, g, p);
|
|
12903
12901
|
else if (h instanceof Ot)
|
|
12904
|
-
|
|
12902
|
+
Cn.computeDistance(h, g, p);
|
|
12905
12903
|
else if (h instanceof ie)
|
|
12906
12904
|
for (var y = h, d = 0; d < y.getNumGeometries(); d++) {
|
|
12907
12905
|
var m = y.getGeometryN(d);
|
|
12908
|
-
|
|
12906
|
+
Cn.computeDistance(m, g, p);
|
|
12909
12907
|
}
|
|
12910
12908
|
else
|
|
12911
12909
|
p.setMinimum(h.getCoordinate(), g);
|
|
@@ -12948,13 +12946,13 @@ var ri = function(t) {
|
|
|
12948
12946
|
this._maxPtDist = new te(), this._minPtDist = new te(), this._geom = t || null;
|
|
12949
12947
|
};
|
|
12950
12948
|
ri.prototype.filter = function(t) {
|
|
12951
|
-
this._minPtDist.initialize(),
|
|
12949
|
+
this._minPtDist.initialize(), Cn.computeDistance(this._geom, t, this._minPtDist), this._maxPtDist.setMaximum(this._minPtDist);
|
|
12952
12950
|
};
|
|
12953
12951
|
ri.prototype.getMaxPointDistance = function() {
|
|
12954
12952
|
return this._maxPtDist;
|
|
12955
12953
|
};
|
|
12956
12954
|
ri.prototype.interfaces_ = function() {
|
|
12957
|
-
return [
|
|
12955
|
+
return [wn];
|
|
12958
12956
|
};
|
|
12959
12957
|
ri.prototype.getClass = function() {
|
|
12960
12958
|
return ri;
|
|
@@ -12966,7 +12964,7 @@ yr.prototype.filter = function(t, e) {
|
|
|
12966
12964
|
if (e === 0)
|
|
12967
12965
|
return null;
|
|
12968
12966
|
var n = t.getCoordinate(e - 1), i = t.getCoordinate(e), o = new v((n.x + i.x) / 2, (n.y + i.y) / 2);
|
|
12969
|
-
this._minPtDist.initialize(),
|
|
12967
|
+
this._minPtDist.initialize(), Cn.computeDistance(this._geom, o, this._minPtDist), this._maxPtDist.setMaximum(this._minPtDist);
|
|
12970
12968
|
};
|
|
12971
12969
|
yr.prototype.isDone = function() {
|
|
12972
12970
|
return !1;
|
|
@@ -12983,25 +12981,25 @@ yr.prototype.interfaces_ = function() {
|
|
|
12983
12981
|
yr.prototype.getClass = function() {
|
|
12984
12982
|
return yr;
|
|
12985
12983
|
};
|
|
12986
|
-
var
|
|
12984
|
+
var Hn = function(t) {
|
|
12987
12985
|
this._comps = t || null;
|
|
12988
12986
|
};
|
|
12989
|
-
|
|
12987
|
+
Hn.prototype.filter = function(t) {
|
|
12990
12988
|
t instanceof Ot && this._comps.add(t);
|
|
12991
12989
|
};
|
|
12992
|
-
|
|
12990
|
+
Hn.prototype.interfaces_ = function() {
|
|
12993
12991
|
return [cn];
|
|
12994
12992
|
};
|
|
12995
|
-
|
|
12996
|
-
return
|
|
12993
|
+
Hn.prototype.getClass = function() {
|
|
12994
|
+
return Hn;
|
|
12997
12995
|
};
|
|
12998
|
-
|
|
12996
|
+
Hn.getPolygons = function() {
|
|
12999
12997
|
if (arguments.length === 1) {
|
|
13000
12998
|
var t = arguments[0];
|
|
13001
|
-
return
|
|
12999
|
+
return Hn.getPolygons(t, new O());
|
|
13002
13000
|
} else if (arguments.length === 2) {
|
|
13003
13001
|
var e = arguments[0], n = arguments[1];
|
|
13004
|
-
return e instanceof Ot ? n.add(e) : e instanceof ie && e.apply(new
|
|
13002
|
+
return e instanceof Ot ? n.add(e) : e instanceof ie && e.apply(new Hn(n)), n;
|
|
13005
13003
|
}
|
|
13006
13004
|
};
|
|
13007
13005
|
var zt = function() {
|
|
@@ -13014,7 +13012,7 @@ var zt = function() {
|
|
|
13014
13012
|
}
|
|
13015
13013
|
};
|
|
13016
13014
|
zt.prototype.filter = function(t) {
|
|
13017
|
-
if (this._isForcedToLineString && t instanceof
|
|
13015
|
+
if (this._isForcedToLineString && t instanceof Ln) {
|
|
13018
13016
|
var e = t.getFactory().createLineString(t.getCoordinateSequence());
|
|
13019
13017
|
return this._lines.add(e), null;
|
|
13020
13018
|
}
|
|
@@ -13024,7 +13022,7 @@ zt.prototype.setForceToLineString = function(t) {
|
|
|
13024
13022
|
this._isForcedToLineString = t;
|
|
13025
13023
|
};
|
|
13026
13024
|
zt.prototype.interfaces_ = function() {
|
|
13027
|
-
return [
|
|
13025
|
+
return [Qn];
|
|
13028
13026
|
};
|
|
13029
13027
|
zt.prototype.getClass = function() {
|
|
13030
13028
|
return zt;
|
|
@@ -13129,13 +13127,13 @@ Ke.prototype.computeLocation = function(t, e) {
|
|
|
13129
13127
|
var s = i.getGeometryN(o);
|
|
13130
13128
|
n.updateLocationInfo(n.locateInternal(t, s));
|
|
13131
13129
|
}
|
|
13132
|
-
else if (e instanceof
|
|
13130
|
+
else if (e instanceof Sn)
|
|
13133
13131
|
for (var a = e, u = 0; u < a.getNumGeometries(); u++) {
|
|
13134
13132
|
var l = a.getGeometryN(u);
|
|
13135
13133
|
n.updateLocationInfo(n.locateInternal(t, l));
|
|
13136
13134
|
}
|
|
13137
13135
|
else if (e instanceof ie)
|
|
13138
|
-
for (var c = new
|
|
13136
|
+
for (var c = new xn(e); c.hasNext(); ) {
|
|
13139
13137
|
var f = c.next();
|
|
13140
13138
|
f !== e && n.computeLocation(t, f);
|
|
13141
13139
|
}
|
|
@@ -13236,7 +13234,7 @@ Xt.prototype.computeContainmentDistance = function() {
|
|
|
13236
13234
|
return null;
|
|
13237
13235
|
this.computeContainmentDistance(1, e);
|
|
13238
13236
|
} else if (arguments.length === 2) {
|
|
13239
|
-
var n = arguments[0], i = arguments[1], o = 1 - n, s =
|
|
13237
|
+
var n = arguments[0], i = arguments[1], o = 1 - n, s = Hn.getPolygons(this._geom[n]);
|
|
13240
13238
|
if (s.size() > 0) {
|
|
13241
13239
|
var a = ii.getLocations(this._geom[o]);
|
|
13242
13240
|
if (this.computeContainmentDistance(a, s, i), this._minDistance <= this._terminateDistance)
|
|
@@ -13517,7 +13515,7 @@ oi.prototype.getMaxPointDistance = function() {
|
|
|
13517
13515
|
return this._maxPtDist;
|
|
13518
13516
|
};
|
|
13519
13517
|
oi.prototype.interfaces_ = function() {
|
|
13520
|
-
return [
|
|
13518
|
+
return [wn];
|
|
13521
13519
|
};
|
|
13522
13520
|
oi.prototype.getClass = function() {
|
|
13523
13521
|
return oi;
|
|
@@ -13567,7 +13565,7 @@ pe.prototype.isValid = function() {
|
|
|
13567
13565
|
return this._minValidDistance = t - e, this._maxValidDistance = t + e, this._input.isEmpty() || this._result.isEmpty() ? !0 : (this._bufDistance > 0 ? this.checkPositiveValid() : this.checkNegativeValid(), pe.VERBOSE && qt.out.println("Min Dist= " + this._minDistanceFound + " err= " + (1 - this._minDistanceFound / this._bufDistance) + " Max Dist= " + this._maxDistanceFound + " err= " + (this._maxDistanceFound / this._bufDistance - 1)), this._isValid);
|
|
13568
13566
|
};
|
|
13569
13567
|
pe.prototype.checkNegativeValid = function() {
|
|
13570
|
-
if (!(this._input instanceof Ot || this._input instanceof
|
|
13568
|
+
if (!(this._input instanceof Ot || this._input instanceof Sn || this._input instanceof ie))
|
|
13571
13569
|
return null;
|
|
13572
13570
|
var t = this.getPolygonLines(this._input);
|
|
13573
13571
|
if (this.checkMinimumDistance(t, this._result, this._minValidDistance), !this._isValid)
|
|
@@ -13595,7 +13593,7 @@ pe.prototype.getErrorLocation = function() {
|
|
|
13595
13593
|
return this._errorLocation;
|
|
13596
13594
|
};
|
|
13597
13595
|
pe.prototype.getPolygonLines = function(t) {
|
|
13598
|
-
for (var e = new O(), n = new zt(e), i =
|
|
13596
|
+
for (var e = new O(), n = new zt(e), i = Hn.getPolygons(t), o = i.iterator(); o.hasNext(); ) {
|
|
13599
13597
|
var s = o.next();
|
|
13600
13598
|
s.apply(n);
|
|
13601
13599
|
}
|
|
@@ -13642,7 +13640,7 @@ Yt.prototype.checkArea = function() {
|
|
|
13642
13640
|
this._distance > 0 && t > e && (this._isValid = !1, this._errorMsg = "Area of positive buffer is smaller than input", this._errorIndicator = this._result), this._distance < 0 && t < e && (this._isValid = !1, this._errorMsg = "Area of negative buffer is larger than input", this._errorIndicator = this._result), this.report("Area");
|
|
13643
13641
|
};
|
|
13644
13642
|
Yt.prototype.checkPolygonal = function() {
|
|
13645
|
-
this._result instanceof Ot || this._result instanceof
|
|
13643
|
+
this._result instanceof Ot || this._result instanceof Sn || (this._isValid = !1), this._errorMsg = "Result is not polygonal", this._errorIndicator = this._result, this.report("Polygonal");
|
|
13646
13644
|
};
|
|
13647
13645
|
Yt.prototype.getErrorIndicator = function() {
|
|
13648
13646
|
return this._errorIndicator;
|
|
@@ -13714,7 +13712,7 @@ vn.prototype.toString = function() {
|
|
|
13714
13712
|
return Xe.toLineString(new _t(this._pts));
|
|
13715
13713
|
};
|
|
13716
13714
|
vn.prototype.interfaces_ = function() {
|
|
13717
|
-
return [
|
|
13715
|
+
return [Pn];
|
|
13718
13716
|
};
|
|
13719
13717
|
vn.prototype.getClass = function() {
|
|
13720
13718
|
return vn;
|
|
@@ -13809,7 +13807,7 @@ Qe.prototype.checkInteriorIntersections = function() {
|
|
|
13809
13807
|
};
|
|
13810
13808
|
Qe.prototype.checkValid = function() {
|
|
13811
13809
|
if (this.execute(), !this._isValid)
|
|
13812
|
-
throw new
|
|
13810
|
+
throw new Zn(this.getErrorMessage(), this._segInt.getInteriorIntersection());
|
|
13813
13811
|
};
|
|
13814
13812
|
Qe.prototype.getErrorMessage = function() {
|
|
13815
13813
|
if (this._isValid)
|
|
@@ -13969,10 +13967,10 @@ ge.prototype.transformPoint = function(t, e) {
|
|
|
13969
13967
|
};
|
|
13970
13968
|
ge.prototype.transformPolygon = function(t, e) {
|
|
13971
13969
|
var n = this, i = !0, o = this.transformLinearRing(t.getExteriorRing(), t);
|
|
13972
|
-
(o === null || !(o instanceof
|
|
13970
|
+
(o === null || !(o instanceof Ln) || o.isEmpty()) && (i = !1);
|
|
13973
13971
|
for (var s = new O(), a = 0; a < t.getNumInteriorRing(); a++) {
|
|
13974
13972
|
var u = n.transformLinearRing(t.getInteriorRingN(a), t);
|
|
13975
|
-
u === null || u.isEmpty() || (u instanceof
|
|
13973
|
+
u === null || u.isEmpty() || (u instanceof Ln || (i = !1), s.add(u));
|
|
13976
13974
|
}
|
|
13977
13975
|
if (i)
|
|
13978
13976
|
return this._factory.createPolygon(o, s.toArray([]));
|
|
@@ -14027,7 +14025,7 @@ ge.prototype.transform = function(t) {
|
|
|
14027
14025
|
return this.transformPoint(t, null);
|
|
14028
14026
|
if (t instanceof Ri)
|
|
14029
14027
|
return this.transformMultiPoint(t, null);
|
|
14030
|
-
if (t instanceof
|
|
14028
|
+
if (t instanceof Ln)
|
|
14031
14029
|
return this.transformLinearRing(t, null);
|
|
14032
14030
|
if (t instanceof yt)
|
|
14033
14031
|
return this.transformLineString(t, null);
|
|
@@ -14035,7 +14033,7 @@ ge.prototype.transform = function(t) {
|
|
|
14035
14033
|
return this.transformMultiLineString(t, null);
|
|
14036
14034
|
if (t instanceof Ot)
|
|
14037
14035
|
return this.transformPolygon(t, null);
|
|
14038
|
-
if (t instanceof
|
|
14036
|
+
if (t instanceof Sn)
|
|
14039
14037
|
return this.transformMultiPolygon(t, null);
|
|
14040
14038
|
if (t instanceof ie)
|
|
14041
14039
|
return this.transformGeometryCollection(t, null);
|
|
@@ -14054,7 +14052,7 @@ ge.prototype.interfaces_ = function() {
|
|
|
14054
14052
|
ge.prototype.getClass = function() {
|
|
14055
14053
|
return ge;
|
|
14056
14054
|
};
|
|
14057
|
-
var
|
|
14055
|
+
var Dn = function r() {
|
|
14058
14056
|
if (this._snapTolerance = 0, this._srcPts = null, this._seg = new k(), this._allowSnappingToSourceVertices = !1, this._isClosed = !1, arguments[0] instanceof yt && typeof arguments[1] == "number") {
|
|
14059
14057
|
var t = arguments[0], e = arguments[1];
|
|
14060
14058
|
r.call(this, t.getCoordinates(), e);
|
|
@@ -14063,13 +14061,13 @@ var Tn = function r() {
|
|
|
14063
14061
|
this._srcPts = n, this._isClosed = r.isClosed(n), this._snapTolerance = i;
|
|
14064
14062
|
}
|
|
14065
14063
|
};
|
|
14066
|
-
|
|
14064
|
+
Dn.prototype.snapVertices = function(t, e) {
|
|
14067
14065
|
for (var n = this, i = this._isClosed ? t.size() - 1 : t.size(), o = 0; o < i; o++) {
|
|
14068
14066
|
var s = t.get(o), a = n.findSnapForVertex(s, e);
|
|
14069
14067
|
a !== null && (t.set(o, new v(a)), o === 0 && n._isClosed && t.set(t.size() - 1, new v(a)));
|
|
14070
14068
|
}
|
|
14071
14069
|
};
|
|
14072
|
-
|
|
14070
|
+
Dn.prototype.findSnapForVertex = function(t, e) {
|
|
14073
14071
|
for (var n = this, i = 0; i < e.length; i++) {
|
|
14074
14072
|
if (t.equals2D(e[i]))
|
|
14075
14073
|
return null;
|
|
@@ -14078,13 +14076,13 @@ Tn.prototype.findSnapForVertex = function(t, e) {
|
|
|
14078
14076
|
}
|
|
14079
14077
|
return null;
|
|
14080
14078
|
};
|
|
14081
|
-
|
|
14079
|
+
Dn.prototype.snapTo = function(t) {
|
|
14082
14080
|
var e = new Io(this._srcPts);
|
|
14083
14081
|
this.snapVertices(e, t), this.snapSegments(e, t);
|
|
14084
14082
|
var n = e.toCoordinateArray();
|
|
14085
14083
|
return n;
|
|
14086
14084
|
};
|
|
14087
|
-
|
|
14085
|
+
Dn.prototype.snapSegments = function(t, e) {
|
|
14088
14086
|
var n = this;
|
|
14089
14087
|
if (e.length === 0)
|
|
14090
14088
|
return null;
|
|
@@ -14095,7 +14093,7 @@ Tn.prototype.snapSegments = function(t, e) {
|
|
|
14095
14093
|
a >= 0 && t.add(a + 1, new v(s), !1);
|
|
14096
14094
|
}
|
|
14097
14095
|
};
|
|
14098
|
-
|
|
14096
|
+
Dn.prototype.findSegmentIndexToSnap = function(t, e) {
|
|
14099
14097
|
for (var n = this, i = V.MAX_VALUE, o = -1, s = 0; s < e.size() - 1; s++) {
|
|
14100
14098
|
if (n._seg.p0 = e.get(s), n._seg.p1 = e.get(s + 1), n._seg.p0.equals2D(t) || n._seg.p1.equals2D(t)) {
|
|
14101
14099
|
if (n._allowSnappingToSourceVertices)
|
|
@@ -14107,16 +14105,16 @@ Tn.prototype.findSegmentIndexToSnap = function(t, e) {
|
|
|
14107
14105
|
}
|
|
14108
14106
|
return o;
|
|
14109
14107
|
};
|
|
14110
|
-
|
|
14108
|
+
Dn.prototype.setAllowSnappingToSourceVertices = function(t) {
|
|
14111
14109
|
this._allowSnappingToSourceVertices = t;
|
|
14112
14110
|
};
|
|
14113
|
-
|
|
14111
|
+
Dn.prototype.interfaces_ = function() {
|
|
14114
14112
|
return [];
|
|
14115
14113
|
};
|
|
14116
|
-
|
|
14117
|
-
return
|
|
14114
|
+
Dn.prototype.getClass = function() {
|
|
14115
|
+
return Dn;
|
|
14118
14116
|
};
|
|
14119
|
-
|
|
14117
|
+
Dn.isClosed = function(t) {
|
|
14120
14118
|
return t.length <= 1 ? !1 : t[0].equals2D(t[t.length - 1]);
|
|
14121
14119
|
};
|
|
14122
14120
|
var Et = function(t) {
|
|
@@ -14188,7 +14186,7 @@ var ku = function(r) {
|
|
|
14188
14186
|
r.call(this), this._snapTolerance = e || null, this._snapPts = n || null, this._isSelfSnap = i !== void 0 ? i : !1;
|
|
14189
14187
|
}
|
|
14190
14188
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.snapLine = function(n, i) {
|
|
14191
|
-
var o = new
|
|
14189
|
+
var o = new Dn(n, this._snapTolerance);
|
|
14192
14190
|
return o.setAllowSnappingToSourceVertices(this._isSelfSnap), o.snapTo(i);
|
|
14193
14191
|
}, t.prototype.transformCoordinates = function(n, i) {
|
|
14194
14192
|
var o = n.toCoordinateArray(), s = this.snapLine(o, this._snapPts);
|
|
@@ -14288,7 +14286,7 @@ ui.prototype.getCommonCoordinate = function() {
|
|
|
14288
14286
|
return new v(this._commonBitsX.getCommon(), this._commonBitsY.getCommon());
|
|
14289
14287
|
};
|
|
14290
14288
|
ui.prototype.interfaces_ = function() {
|
|
14291
|
-
return [
|
|
14289
|
+
return [wn];
|
|
14292
14290
|
};
|
|
14293
14291
|
ui.prototype.getClass = function() {
|
|
14294
14292
|
return ui;
|
|
@@ -14375,7 +14373,7 @@ ae.prototype.getResultGeometry = function(t) {
|
|
|
14375
14373
|
var o = !0;
|
|
14376
14374
|
o && (n = !0);
|
|
14377
14375
|
} catch (s) {
|
|
14378
|
-
if (s instanceof
|
|
14376
|
+
if (s instanceof Kn)
|
|
14379
14377
|
i = s;
|
|
14380
14378
|
else
|
|
14381
14379
|
throw s;
|
|
@@ -14385,7 +14383,7 @@ ae.prototype.getResultGeometry = function(t) {
|
|
|
14385
14383
|
try {
|
|
14386
14384
|
e = Ft.overlayOp(this._geom[0], this._geom[1], t);
|
|
14387
14385
|
} catch (s) {
|
|
14388
|
-
throw s instanceof
|
|
14386
|
+
throw s instanceof Kn ? i : s;
|
|
14389
14387
|
} finally {
|
|
14390
14388
|
}
|
|
14391
14389
|
return e;
|
|
@@ -14606,31 +14604,31 @@ var of = function(r) {
|
|
|
14606
14604
|
}, t.prototype.getClass = function() {
|
|
14607
14605
|
return t;
|
|
14608
14606
|
}, t;
|
|
14609
|
-
}(Wo),
|
|
14607
|
+
}(Wo), Tn = function() {
|
|
14610
14608
|
this._min = V.POSITIVE_INFINITY, this._max = V.NEGATIVE_INFINITY;
|
|
14611
14609
|
}, Gu = { NodeComparator: { configurable: !0 } };
|
|
14612
|
-
|
|
14610
|
+
Tn.prototype.getMin = function() {
|
|
14613
14611
|
return this._min;
|
|
14614
14612
|
};
|
|
14615
|
-
|
|
14613
|
+
Tn.prototype.intersects = function(t, e) {
|
|
14616
14614
|
return !(this._min > e || this._max < t);
|
|
14617
14615
|
};
|
|
14618
|
-
|
|
14616
|
+
Tn.prototype.getMax = function() {
|
|
14619
14617
|
return this._max;
|
|
14620
14618
|
};
|
|
14621
|
-
|
|
14619
|
+
Tn.prototype.toString = function() {
|
|
14622
14620
|
return Xe.toLineString(new v(this._min, 0), new v(this._max, 0));
|
|
14623
14621
|
};
|
|
14624
|
-
|
|
14622
|
+
Tn.prototype.interfaces_ = function() {
|
|
14625
14623
|
return [];
|
|
14626
14624
|
};
|
|
14627
|
-
|
|
14628
|
-
return
|
|
14625
|
+
Tn.prototype.getClass = function() {
|
|
14626
|
+
return Tn;
|
|
14629
14627
|
};
|
|
14630
14628
|
Gu.NodeComparator.get = function() {
|
|
14631
14629
|
return yo;
|
|
14632
14630
|
};
|
|
14633
|
-
Object.defineProperties(
|
|
14631
|
+
Object.defineProperties(Tn, Gu);
|
|
14634
14632
|
var yo = function() {
|
|
14635
14633
|
};
|
|
14636
14634
|
yo.prototype.compare = function(t, e) {
|
|
@@ -14658,7 +14656,7 @@ var sf = function(r) {
|
|
|
14658
14656
|
}, t.prototype.getClass = function() {
|
|
14659
14657
|
return t;
|
|
14660
14658
|
}, t;
|
|
14661
|
-
}(
|
|
14659
|
+
}(Tn), af = function(r) {
|
|
14662
14660
|
function t() {
|
|
14663
14661
|
r.call(this), this._node1 = null, this._node2 = null;
|
|
14664
14662
|
var e = arguments[0], n = arguments[1];
|
|
@@ -14675,40 +14673,40 @@ var sf = function(r) {
|
|
|
14675
14673
|
}, t.prototype.getClass = function() {
|
|
14676
14674
|
return t;
|
|
14677
14675
|
}, t;
|
|
14678
|
-
}(
|
|
14676
|
+
}(Tn), Mn = function() {
|
|
14679
14677
|
this._leaves = new O(), this._root = null, this._level = 0;
|
|
14680
14678
|
};
|
|
14681
|
-
|
|
14679
|
+
Mn.prototype.buildTree = function() {
|
|
14682
14680
|
var t = this;
|
|
14683
|
-
He.sort(this._leaves, new
|
|
14681
|
+
He.sort(this._leaves, new Tn.NodeComparator());
|
|
14684
14682
|
for (var e = this._leaves, n = null, i = new O(); ; ) {
|
|
14685
14683
|
if (t.buildLevel(e, i), i.size() === 1)
|
|
14686
14684
|
return i.get(0);
|
|
14687
14685
|
n = e, e = i, i = n;
|
|
14688
14686
|
}
|
|
14689
14687
|
};
|
|
14690
|
-
|
|
14688
|
+
Mn.prototype.insert = function(t, e, n) {
|
|
14691
14689
|
if (this._root !== null)
|
|
14692
14690
|
throw new Error("Index cannot be added to once it has been queried");
|
|
14693
14691
|
this._leaves.add(new sf(t, e, n));
|
|
14694
14692
|
};
|
|
14695
|
-
|
|
14693
|
+
Mn.prototype.query = function(t, e, n) {
|
|
14696
14694
|
this.init(), this._root.query(t, e, n);
|
|
14697
14695
|
};
|
|
14698
|
-
|
|
14696
|
+
Mn.prototype.buildRoot = function() {
|
|
14699
14697
|
if (this._root !== null)
|
|
14700
14698
|
return null;
|
|
14701
14699
|
this._root = this.buildTree();
|
|
14702
14700
|
};
|
|
14703
|
-
|
|
14701
|
+
Mn.prototype.printNode = function(t) {
|
|
14704
14702
|
qt.out.println(Xe.toLineString(new v(t._min, this._level), new v(t._max, this._level)));
|
|
14705
14703
|
};
|
|
14706
|
-
|
|
14704
|
+
Mn.prototype.init = function() {
|
|
14707
14705
|
if (this._root !== null)
|
|
14708
14706
|
return null;
|
|
14709
14707
|
this.buildRoot();
|
|
14710
14708
|
};
|
|
14711
|
-
|
|
14709
|
+
Mn.prototype.buildLevel = function(t, e) {
|
|
14712
14710
|
this._level++, e.clear();
|
|
14713
14711
|
for (var n = 0; n < t.size(); n += 2) {
|
|
14714
14712
|
var i = t.get(n), o = n + 1 < t.size() ? t.get(n) : null;
|
|
@@ -14720,11 +14718,11 @@ An.prototype.buildLevel = function(t, e) {
|
|
|
14720
14718
|
}
|
|
14721
14719
|
}
|
|
14722
14720
|
};
|
|
14723
|
-
|
|
14721
|
+
Mn.prototype.interfaces_ = function() {
|
|
14724
14722
|
return [];
|
|
14725
14723
|
};
|
|
14726
|
-
|
|
14727
|
-
return
|
|
14724
|
+
Mn.prototype.getClass = function() {
|
|
14725
|
+
return Mn;
|
|
14728
14726
|
};
|
|
14729
14727
|
var Fi = function() {
|
|
14730
14728
|
this._items = new O();
|
|
@@ -14781,7 +14779,7 @@ ki.prototype.getClass = function() {
|
|
|
14781
14779
|
return ki;
|
|
14782
14780
|
};
|
|
14783
14781
|
var zr = function() {
|
|
14784
|
-
this._index = new
|
|
14782
|
+
this._index = new Mn();
|
|
14785
14783
|
var t = arguments[0];
|
|
14786
14784
|
this.init(t);
|
|
14787
14785
|
};
|
|
@@ -14834,7 +14832,7 @@ var Qi = function(r) {
|
|
|
14834
14832
|
} else if (arguments.length === 3) {
|
|
14835
14833
|
var o = arguments[0], s = arguments[1], a = arguments[2], u = new Wt(o, !0, !1);
|
|
14836
14834
|
u.setIsDoneIfProperInt(a);
|
|
14837
|
-
var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof
|
|
14835
|
+
var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof Ln || this._parentGeom instanceof Ot || this._parentGeom instanceof Sn, f = s || !c;
|
|
14838
14836
|
return l.computeIntersections(this._edges, u, f), this.addSelfIntersectionNodes(this._argIndex), u;
|
|
14839
14837
|
}
|
|
14840
14838
|
}, t.prototype.computeSplitEdges = function(n) {
|
|
@@ -14918,7 +14916,7 @@ var Qi = function(r) {
|
|
|
14918
14916
|
var n = arguments[0];
|
|
14919
14917
|
if (n.isEmpty())
|
|
14920
14918
|
return null;
|
|
14921
|
-
if (n instanceof
|
|
14919
|
+
if (n instanceof Sn && (this._useBoundaryDeterminationRule = !1), n instanceof Ot)
|
|
14922
14920
|
this.addPolygon(n);
|
|
14923
14921
|
else if (n instanceof yt)
|
|
14924
14922
|
this.addLineString(n);
|
|
@@ -14928,7 +14926,7 @@ var Qi = function(r) {
|
|
|
14928
14926
|
this.addCollection(n);
|
|
14929
14927
|
else if (n instanceof Tr)
|
|
14930
14928
|
this.addCollection(n);
|
|
14931
|
-
else if (n instanceof
|
|
14929
|
+
else if (n instanceof Sn)
|
|
14932
14930
|
this.addCollection(n);
|
|
14933
14931
|
else if (n instanceof ie)
|
|
14934
14932
|
this.addCollection(n);
|
|
@@ -15504,7 +15502,7 @@ xt.prototype.getClass = function() {
|
|
|
15504
15502
|
xt.restrictToPolygons = function(t) {
|
|
15505
15503
|
if (z(t, hr))
|
|
15506
15504
|
return t;
|
|
15507
|
-
var e =
|
|
15505
|
+
var e = Hn.getPolygons(t);
|
|
15508
15506
|
return e.size() === 1 ? e.get(0) : t.getFactory().createMultiPolygon(H.toPolygonArray(e));
|
|
15509
15507
|
};
|
|
15510
15508
|
xt.getGeometry = function(t, e) {
|
|
@@ -15561,12 +15559,12 @@ function Ba(r, t, e) {
|
|
|
15561
15559
|
var n = r.s = t + e, i = n - t, o = n - i;
|
|
15562
15560
|
r.t = t - o + (e - i);
|
|
15563
15561
|
}
|
|
15564
|
-
var vt = 1e-6, it = Math.PI,
|
|
15562
|
+
var vt = 1e-6, it = Math.PI, Wn = it / 2, ka = it / 4, tr = it * 2, xr = 180 / it, tn = it / 180, ne = Math.abs, uf = Math.atan, Vi = Math.atan2, bt = Math.cos, Pt = Math.sin, ji = Math.sqrt;
|
|
15565
15563
|
function Uu(r) {
|
|
15566
15564
|
return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
|
|
15567
15565
|
}
|
|
15568
15566
|
function li(r) {
|
|
15569
|
-
return r > 1 ?
|
|
15567
|
+
return r > 1 ? Wn : r < -1 ? -Wn : Math.asin(r);
|
|
15570
15568
|
}
|
|
15571
15569
|
function Zi() {
|
|
15572
15570
|
}
|
|
@@ -15661,15 +15659,15 @@ function qu(r, t) {
|
|
|
15661
15659
|
}), e;
|
|
15662
15660
|
}
|
|
15663
15661
|
function zs(r, t) {
|
|
15664
|
-
return [r > it ? r -
|
|
15662
|
+
return [r > it ? r - tr : r < -it ? r + tr : r, t];
|
|
15665
15663
|
}
|
|
15666
15664
|
zs.invert = zs;
|
|
15667
15665
|
function cf(r, t, e) {
|
|
15668
|
-
return (r %=
|
|
15666
|
+
return (r %= tr) ? t || e ? qu(qa(r), Xa(t, e)) : qa(r) : t || e ? Xa(t, e) : zs;
|
|
15669
15667
|
}
|
|
15670
15668
|
function Ua(r) {
|
|
15671
15669
|
return function(t, e) {
|
|
15672
|
-
return t += r, [t > it ? t -
|
|
15670
|
+
return t += r, [t > it ? t - tr : t < -it ? t + tr : t, e];
|
|
15673
15671
|
};
|
|
15674
15672
|
}
|
|
15675
15673
|
function qa(r) {
|
|
@@ -15696,7 +15694,7 @@ function Xa(r, t) {
|
|
|
15696
15694
|
function ff(r, t, e, n, i, o) {
|
|
15697
15695
|
if (e) {
|
|
15698
15696
|
var s = bt(t), a = Pt(t), u = n * e;
|
|
15699
|
-
i == null ? (i = t + n *
|
|
15697
|
+
i == null ? (i = t + n * tr, o = t - u / 2) : (i = Ya(s, i), o = Ya(s, o), (n > 0 ? i < o : i > o) && (i += n * tr));
|
|
15700
15698
|
for (var l, c = i; n > 0 ? c > o : c < o; c -= u)
|
|
15701
15699
|
l = ks([s, -a * bt(c), -a * Pt(c)]), r.point(l[0], l[1]);
|
|
15702
15700
|
}
|
|
@@ -15704,7 +15702,7 @@ function ff(r, t, e, n, i, o) {
|
|
|
15704
15702
|
function Ya(r, t) {
|
|
15705
15703
|
t = Ui(t), t[0] -= r, Gs(t);
|
|
15706
15704
|
var e = Uu(-t[1]);
|
|
15707
|
-
return ((-t[2] < 0 ? -e : e) +
|
|
15705
|
+
return ((-t[2] < 0 ? -e : e) + tr - vt) % tr;
|
|
15708
15706
|
}
|
|
15709
15707
|
function Xu() {
|
|
15710
15708
|
var r = [], t;
|
|
@@ -15901,8 +15899,8 @@ function df(r, t, e, n) {
|
|
|
15901
15899
|
}
|
|
15902
15900
|
function w() {
|
|
15903
15901
|
for (var W = 0, ut = 0, dt = g.length; ut < dt; ++ut)
|
|
15904
|
-
for (var Ht = g[ut], Jt = 1,
|
|
15905
|
-
|
|
15902
|
+
for (var Ht = g[ut], Jt = 1, rr = Ht.length, ze = Ht[0], Fn, In, di = ze[0], ir = ze[1]; Jt < rr; ++Jt)
|
|
15903
|
+
Fn = di, In = ir, ze = Ht[Jt], di = ze[0], ir = ze[1], In <= n ? ir > n && (di - Fn) * (n - In) > (ir - In) * (r - Fn) && ++W : ir <= n && (di - Fn) * (n - In) < (ir - In) * (r - Fn) && --W;
|
|
15906
15904
|
return W;
|
|
15907
15905
|
}
|
|
15908
15906
|
function F() {
|
|
@@ -15941,7 +15939,7 @@ function vf(r, t) {
|
|
|
15941
15939
|
if (c = (l = r[a]).length)
|
|
15942
15940
|
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + ka, p = Pt(g), y = bt(g), d = 0; d < c; ++d, h = _, p = L, y = N, f = m) {
|
|
15943
15941
|
var m = l[d], _ = m[0], C = m[1] / 2 + ka, L = Pt(C), N = bt(C), x = _ - h, D = x >= 0 ? 1 : -1, A = D * x, w = A > it, F = p * L;
|
|
15944
|
-
if (Ss.add(Vi(F * D * Pt(A), y * N + F * bt(A))), o += w ? x + D *
|
|
15942
|
+
if (Ss.add(Vi(F * D * Pt(A), y * N + F * bt(A))), o += w ? x + D * tr : x, w ^ h >= e ^ _ >= e) {
|
|
15945
15943
|
var X = Qo(Ui(f), Ui(m));
|
|
15946
15944
|
Gs(X);
|
|
15947
15945
|
var R = Qo(i, X);
|
|
@@ -16035,7 +16033,7 @@ function mf(r) {
|
|
|
16035
16033
|
return r.length > 1;
|
|
16036
16034
|
}
|
|
16037
16035
|
function _f(r, t) {
|
|
16038
|
-
return ((r = r.x)[0] < 0 ? r[1] -
|
|
16036
|
+
return ((r = r.x)[0] < 0 ? r[1] - Wn - vt : Wn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - Wn - vt : Wn - t[1]);
|
|
16039
16037
|
}
|
|
16040
16038
|
const Ka = ju(
|
|
16041
16039
|
function() {
|
|
@@ -16043,7 +16041,7 @@ const Ka = ju(
|
|
|
16043
16041
|
},
|
|
16044
16042
|
Ef,
|
|
16045
16043
|
Cf,
|
|
16046
|
-
[-it, -
|
|
16044
|
+
[-it, -Wn]
|
|
16047
16045
|
);
|
|
16048
16046
|
function Ef(r) {
|
|
16049
16047
|
var t = NaN, e = NaN, n = NaN, i;
|
|
@@ -16053,7 +16051,7 @@ function Ef(r) {
|
|
|
16053
16051
|
},
|
|
16054
16052
|
point: function(o, s) {
|
|
16055
16053
|
var a = o > 0 ? it : -it, u = ne(o - t);
|
|
16056
|
-
ne(u - it) < vt ? (r.point(t, e = (e + s) / 2 > 0 ?
|
|
16054
|
+
ne(u - it) < vt ? (r.point(t, e = (e + s) / 2 > 0 ? Wn : -Wn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (ne(t - n) < vt && (t -= n * vt), ne(o - a) < vt && (o -= a * vt), e = If(t, e, o, s), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), i = 0), r.point(t = o, e = s), n = a;
|
|
16057
16055
|
},
|
|
16058
16056
|
lineEnd: function() {
|
|
16059
16057
|
r.lineEnd(), t = e = NaN;
|
|
@@ -16070,7 +16068,7 @@ function If(r, t, e, n) {
|
|
|
16070
16068
|
function Cf(r, t, e, n) {
|
|
16071
16069
|
var i;
|
|
16072
16070
|
if (r == null)
|
|
16073
|
-
i = e *
|
|
16071
|
+
i = e * Wn, n.point(-it, i), n.point(0, i), n.point(it, i), n.point(it, 0), n.point(it, -i), n.point(0, -i), n.point(-it, -i), n.point(-it, 0), n.point(-it, i);
|
|
16074
16072
|
else if (ne(r[0] - t[0]) > vt) {
|
|
16075
16073
|
var o = r[0] < t[0] ? it : -it;
|
|
16076
16074
|
i = e * o / 2, n.point(-o, i), n.point(0, i), n.point(o, i);
|
|
@@ -16124,8 +16122,8 @@ function Nf(r, t) {
|
|
|
16124
16122
|
return T;
|
|
16125
16123
|
var W = c[0], ut = f[0], dt = c[1], Ht = f[1], Jt;
|
|
16126
16124
|
ut < W && (Jt = W, W = ut, ut = Jt);
|
|
16127
|
-
var
|
|
16128
|
-
if (!ze && Ht < dt && (Jt = dt, dt = Ht, Ht = Jt),
|
|
16125
|
+
var rr = ut - W, ze = ne(rr - it) < vt, Fn = ze || rr < vt;
|
|
16126
|
+
if (!ze && Ht < dt && (Jt = dt, dt = Ht, Ht = Jt), Fn ? ze ? dt + Ht > 0 ^ T[1] < (ne(T[0] - W) < vt ? dt : Ht) : dt <= T[1] && T[1] <= Ht : rr > it ^ (W <= T[0] && T[0] <= ut)) {
|
|
16129
16127
|
var In = Do(w, (-F + Y) / X);
|
|
16130
16128
|
return Ns(In, D), [T, ks(In)];
|
|
16131
16129
|
}
|
|
@@ -16570,11 +16568,11 @@ function Ff(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
16570
16568
|
}
|
|
16571
16569
|
};
|
|
16572
16570
|
}
|
|
16573
|
-
var
|
|
16571
|
+
var Yn, Qr;
|
|
16574
16572
|
class Bf extends sr.Control {
|
|
16575
16573
|
constructor(e) {
|
|
16576
16574
|
super();
|
|
16577
|
-
_s(this,
|
|
16575
|
+
_s(this, Yn, void 0);
|
|
16578
16576
|
_s(this, Qr, void 0);
|
|
16579
16577
|
bo(this, Qr, e);
|
|
16580
16578
|
}
|
|
@@ -16587,7 +16585,7 @@ class Bf extends sr.Control {
|
|
|
16587
16585
|
flyTo: s,
|
|
16588
16586
|
fullGeometryStyle: a,
|
|
16589
16587
|
...u
|
|
16590
|
-
} =
|
|
16588
|
+
} = or(this, Qr), l = typeof s == "boolean" ? {} : s, c = Ff(
|
|
16591
16589
|
e,
|
|
16592
16590
|
i,
|
|
16593
16591
|
o,
|
|
@@ -16595,7 +16593,7 @@ class Bf extends sr.Control {
|
|
|
16595
16593
|
l,
|
|
16596
16594
|
a
|
|
16597
16595
|
);
|
|
16598
|
-
bo(this,
|
|
16596
|
+
bo(this, Yn, new gc({
|
|
16599
16597
|
target: n,
|
|
16600
16598
|
props: {
|
|
16601
16599
|
mapController: c,
|
|
@@ -16613,7 +16611,7 @@ class Bf extends sr.Control {
|
|
|
16613
16611
|
"reverseToggle",
|
|
16614
16612
|
"queryChange"
|
|
16615
16613
|
])
|
|
16616
|
-
|
|
16614
|
+
or(this, Yn).$on(
|
|
16617
16615
|
f,
|
|
16618
16616
|
(h) => e.fire(f.toLowerCase(), h.detail)
|
|
16619
16617
|
);
|
|
@@ -16628,31 +16626,27 @@ class Bf extends sr.Control {
|
|
|
16628
16626
|
flyTo: o,
|
|
16629
16627
|
fullGeometryStyle: s,
|
|
16630
16628
|
...a
|
|
16631
|
-
} =
|
|
16632
|
-
(u =
|
|
16629
|
+
} = or(this, Qr);
|
|
16630
|
+
(u = or(this, Yn)) == null || u.$set(a);
|
|
16633
16631
|
}
|
|
16634
16632
|
setQuery(e, n = !0) {
|
|
16635
16633
|
var i;
|
|
16636
|
-
(i =
|
|
16637
|
-
}
|
|
16638
|
-
setReverseMode(e) {
|
|
16639
|
-
var n;
|
|
16640
|
-
(n = Vn(this, Cn)) == null || n.$set({ reverseActive: e });
|
|
16634
|
+
(i = or(this, Yn)) == null || i.setQuery(e, n);
|
|
16641
16635
|
}
|
|
16642
16636
|
focus() {
|
|
16643
16637
|
var e;
|
|
16644
|
-
(e =
|
|
16638
|
+
(e = or(this, Yn)) == null || e.focus();
|
|
16645
16639
|
}
|
|
16646
16640
|
blur() {
|
|
16647
16641
|
var e;
|
|
16648
|
-
(e =
|
|
16642
|
+
(e = or(this, Yn)) == null || e.blur();
|
|
16649
16643
|
}
|
|
16650
16644
|
onRemove() {
|
|
16651
16645
|
var e;
|
|
16652
|
-
(e =
|
|
16646
|
+
(e = or(this, Yn)) == null || e.$destroy();
|
|
16653
16647
|
}
|
|
16654
16648
|
}
|
|
16655
|
-
|
|
16649
|
+
Yn = new WeakMap(), Qr = new WeakMap();
|
|
16656
16650
|
function kf(...r) {
|
|
16657
16651
|
return new Bf(...r);
|
|
16658
16652
|
}
|