@maptiler/geocoding-control 0.0.84 → 0.0.85
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 +188 -204
- package/leaflet.js +21 -21
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +1 -1
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +299 -299
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +2 -2
- package/maplibregl.umd.js.map +1 -1
- package/package.json +2 -1
- package/react.js +422 -422
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
package/maplibregl.js
CHANGED
|
@@ -92,7 +92,7 @@ function gl(r, t) {
|
|
|
92
92
|
function oe(r) {
|
|
93
93
|
return document.createElement(r);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Nr(r) {
|
|
96
96
|
return document.createElementNS("http://www.w3.org/2000/svg", r);
|
|
97
97
|
}
|
|
98
98
|
function Vr(r) {
|
|
@@ -241,7 +241,7 @@ function Ki(r, t) {
|
|
|
241
241
|
const e = r.$$;
|
|
242
242
|
e.fragment !== null && (Cl(e.after_update), Mr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Nl(r, t) {
|
|
245
245
|
r.$$.dirty[0] === -1 && (ai.push(r), El(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
246
246
|
}
|
|
247
247
|
function Ti(r, t, e, n, i, o, s, a = [-1]) {
|
|
@@ -272,7 +272,7 @@ function Ti(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
272
272
|
let c = !1;
|
|
273
273
|
if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
|
|
274
274
|
const p = g.length ? g[0] : h;
|
|
275
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c &&
|
|
275
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Nl(r, f)), h;
|
|
276
276
|
}) : [], l.update(), c = !0, Mr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
277
277
|
if (t.hydrate) {
|
|
278
278
|
const f = dl(t.target);
|
|
@@ -300,11 +300,11 @@ class Mi {
|
|
|
300
300
|
this.$$set && !ul(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function xl(r) {
|
|
304
304
|
let t, e;
|
|
305
305
|
return {
|
|
306
306
|
c() {
|
|
307
|
-
t =
|
|
307
|
+
t = Nr("svg"), e = Nr("path"), B(e, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "width", "16"), B(t, "height", "16"), B(t, "class", "svelte-en2qvf");
|
|
308
308
|
},
|
|
309
309
|
m(n, i) {
|
|
310
310
|
We(n, t, i), ct(t, e);
|
|
@@ -319,7 +319,7 @@ function Nl(r) {
|
|
|
319
319
|
}
|
|
320
320
|
class Sl extends Mi {
|
|
321
321
|
constructor(t) {
|
|
322
|
-
super(), Ti(this, t, null,
|
|
322
|
+
super(), Ti(this, t, null, xl, Di, {});
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
function wl(r) {
|
|
@@ -348,7 +348,7 @@ function bl(r) {
|
|
|
348
348
|
let t, e;
|
|
349
349
|
return {
|
|
350
350
|
c() {
|
|
351
|
-
t =
|
|
351
|
+
t = Nr("svg"), e = Nr("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");
|
|
352
352
|
},
|
|
353
353
|
m(n, i) {
|
|
354
354
|
We(n, t, i), ct(t, e);
|
|
@@ -370,7 +370,7 @@ function Rl(r) {
|
|
|
370
370
|
let t, e;
|
|
371
371
|
return {
|
|
372
372
|
c() {
|
|
373
|
-
t =
|
|
373
|
+
t = Nr("svg"), e = Nr("path"), B(e, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "xml:space", "preserve"), B(t, "width", "20"), B(t, "class", "svelte-en2qvf");
|
|
374
374
|
},
|
|
375
375
|
m(n, i) {
|
|
376
376
|
We(n, t, i), ct(t, e);
|
|
@@ -421,7 +421,7 @@ function aa(r) {
|
|
|
421
421
|
"title",
|
|
422
422
|
/*reverseButtonTitle*/
|
|
423
423
|
r[9]
|
|
424
|
-
), B(t, "class", "svelte-
|
|
424
|
+
), B(t, "class", "svelte-1qszo8o"), en(
|
|
425
425
|
t,
|
|
426
426
|
"active",
|
|
427
427
|
/*reverseActive*/
|
|
@@ -474,7 +474,7 @@ function Dl(r) {
|
|
|
474
474
|
t = oe("ul");
|
|
475
475
|
for (let s = 0; s < o.length; s += 1)
|
|
476
476
|
o[s].c();
|
|
477
|
-
B(t, "class", "svelte-
|
|
477
|
+
B(t, "class", "svelte-1qszo8o");
|
|
478
478
|
},
|
|
479
479
|
m(s, a) {
|
|
480
480
|
We(s, t, a);
|
|
@@ -522,7 +522,7 @@ function Tl(r) {
|
|
|
522
522
|
t = oe("div"), e = Vr(
|
|
523
523
|
/*noResultsMessage*/
|
|
524
524
|
r[7]
|
|
525
|
-
), B(t, "class", "no-results svelte-
|
|
525
|
+
), B(t, "class", "no-results svelte-1qszo8o");
|
|
526
526
|
},
|
|
527
527
|
m(n, i) {
|
|
528
528
|
We(n, t, i), ct(t, e);
|
|
@@ -562,7 +562,7 @@ function Al(r) {
|
|
|
562
562
|
t = oe("div"), e = Vr(
|
|
563
563
|
/*errorMessage*/
|
|
564
564
|
r[6]
|
|
565
|
-
), B(t, "class", "error svelte-
|
|
565
|
+
), B(t, "class", "error svelte-1qszo8o");
|
|
566
566
|
},
|
|
567
567
|
m(n, i) {
|
|
568
568
|
We(n, t, i), ct(t, e);
|
|
@@ -589,7 +589,7 @@ function ua(r) {
|
|
|
589
589
|
), n;
|
|
590
590
|
return {
|
|
591
591
|
c() {
|
|
592
|
-
t = oe("span"), n = Vr(e), B(t, "class", "line2 svelte-
|
|
592
|
+
t = oe("span"), n = Vr(e), B(t, "class", "line2 svelte-1qszo8o");
|
|
593
593
|
},
|
|
594
594
|
m(s, a) {
|
|
595
595
|
We(s, t, a), ct(t, n);
|
|
@@ -637,9 +637,9 @@ function la(r) {
|
|
|
637
637
|
}
|
|
638
638
|
return {
|
|
639
639
|
c() {
|
|
640
|
-
t = oe("li"), e = oe("span"), n = oe("span"), i = oe("span"), s = Vr(o), a = tr(), u = oe("span"), c = Vr(l), f = tr(), d && d.c(), h = tr(), B(i, "class", "primary svelte-
|
|
640
|
+
t = oe("li"), e = oe("span"), n = oe("span"), i = oe("span"), s = Vr(o), a = tr(), u = oe("span"), c = Vr(l), f = tr(), d && d.c(), h = tr(), B(i, "class", "primary svelte-1qszo8o"), B(u, "class", "secondary svelte-1qszo8o"), B(n, "class", "line1 svelte-1qszo8o"), B(e, "class", "texts svelte-1qszo8o"), B(t, "tabindex", "0"), B(t, "data-selected", g = /*selectedItemIndex*/
|
|
641
641
|
r[13] === /*i*/
|
|
642
|
-
r[71]), B(t, "class", "svelte-
|
|
642
|
+
r[71]), B(t, "class", "svelte-1qszo8o"), en(
|
|
643
643
|
t,
|
|
644
644
|
"selected",
|
|
645
645
|
/*selectedItemIndex*/
|
|
@@ -647,22 +647,22 @@ function la(r) {
|
|
|
647
647
|
r[71]
|
|
648
648
|
);
|
|
649
649
|
},
|
|
650
|
-
m(C,
|
|
651
|
-
We(C, t,
|
|
650
|
+
m(C, N) {
|
|
651
|
+
We(C, t, N), ct(t, e), ct(e, n), ct(n, i), ct(i, s), ct(n, a), ct(n, u), ct(u, c), ct(e, f), d && d.m(e, null), ct(t, h), p || (m = [
|
|
652
652
|
Be(t, "mouseenter", _),
|
|
653
653
|
Be(t, "focus", I)
|
|
654
654
|
], p = !0);
|
|
655
655
|
},
|
|
656
|
-
p(C,
|
|
657
|
-
r = C,
|
|
656
|
+
p(C, N) {
|
|
657
|
+
r = C, N[0] & /*listFeatures*/
|
|
658
658
|
4096 && o !== (o = /*feature*/
|
|
659
|
-
r[69].place_name.replace(/,.*/, "") + "") && Hi(s, o),
|
|
659
|
+
r[69].place_name.replace(/,.*/, "") + "") && Hi(s, o), N[0] & /*listFeatures*/
|
|
660
660
|
4096 && l !== (l = /*feature*/
|
|
661
661
|
r[69].place_name.replace(/[^,]*,?\s*/, "") + "") && Hi(c, l), /*showPlaceType*/
|
|
662
|
-
r[10] ? d ? d.p(r,
|
|
662
|
+
r[10] ? d ? d.p(r, N) : (d = ua(r), d.c(), d.m(e, null)) : d && (d.d(1), d = null), N[0] & /*selectedItemIndex*/
|
|
663
663
|
8192 && g !== (g = /*selectedItemIndex*/
|
|
664
664
|
r[13] === /*i*/
|
|
665
|
-
r[71]) && B(t, "data-selected", g),
|
|
665
|
+
r[71]) && B(t, "data-selected", g), N[0] & /*selectedItemIndex*/
|
|
666
666
|
8192 && en(
|
|
667
667
|
t,
|
|
668
668
|
"selected",
|
|
@@ -682,7 +682,7 @@ function Fl(r) {
|
|
|
682
682
|
let C = (
|
|
683
683
|
/*abortController*/
|
|
684
684
|
r[17] && sa()
|
|
685
|
-
),
|
|
685
|
+
), N = (
|
|
686
686
|
/*enableReverse*/
|
|
687
687
|
r[5] === !0 && aa(r)
|
|
688
688
|
);
|
|
@@ -721,7 +721,7 @@ function Fl(r) {
|
|
|
721
721
|
let F = A(r), D = F && F(r);
|
|
722
722
|
return {
|
|
723
723
|
c() {
|
|
724
|
-
t = oe("form"), e = oe("div"), n = oe("button"), Oo(i.$$.fragment), o = tr(), s = oe("input"), a = tr(), u = oe("div"), l = oe("button"), Oo(c.$$.fragment), f = tr(), C && C.c(), h = tr(),
|
|
724
|
+
t = oe("form"), e = oe("div"), n = oe("button"), Oo(i.$$.fragment), o = tr(), s = oe("input"), a = tr(), u = oe("div"), l = oe("button"), Oo(c.$$.fragment), f = tr(), C && C.c(), h = tr(), N && N.c(), g = tr(), b && b.c(), p = tr(), D && D.c(), B(n, "type", "button"), B(n, "class", "svelte-1qszo8o"), B(
|
|
725
725
|
s,
|
|
726
726
|
"placeholder",
|
|
727
727
|
/*placeholder*/
|
|
@@ -731,20 +731,20 @@ function Fl(r) {
|
|
|
731
731
|
"aria-label",
|
|
732
732
|
/*placeholder*/
|
|
733
733
|
r[8]
|
|
734
|
-
), B(s, "class", "svelte-
|
|
734
|
+
), B(s, "class", "svelte-1qszo8o"), B(l, "type", "button"), B(
|
|
735
735
|
l,
|
|
736
736
|
"title",
|
|
737
737
|
/*clearButtonTitle*/
|
|
738
738
|
r[3]
|
|
739
|
-
), B(l, "class", "svelte-
|
|
740
|
-
|
|
739
|
+
), B(l, "class", "svelte-1qszo8o"), B(u, "class", "clear-button-container svelte-1qszo8o"), en(
|
|
740
|
+
u,
|
|
741
741
|
"displayable",
|
|
742
742
|
/*searchValue*/
|
|
743
743
|
r[1] !== ""
|
|
744
|
-
), B(
|
|
744
|
+
), B(e, "class", "input-group svelte-1qszo8o"), B(t, "tabindex", "0"), B(t, "class", m = ta(
|
|
745
745
|
/*className*/
|
|
746
746
|
r[2]
|
|
747
|
-
) + " svelte-
|
|
747
|
+
) + " svelte-1qszo8o"), en(
|
|
748
748
|
t,
|
|
749
749
|
"can-collapse",
|
|
750
750
|
/*collapsed*/
|
|
@@ -757,7 +757,7 @@ function Fl(r) {
|
|
|
757
757
|
s,
|
|
758
758
|
/*searchValue*/
|
|
759
759
|
r[1]
|
|
760
|
-
), ct(e, a), ct(e, u), ct(u, l), ji(c, l, null), ct(u, f), C && C.m(u, null), ct(e, h),
|
|
760
|
+
), ct(e, a), ct(e, u), ct(u, l), ji(c, l, null), ct(u, f), C && C.m(u, null), ct(e, h), N && N.m(e, null), ct(e, g), b && b.m(e, null), ct(t, p), D && D.m(t, null), d = !0, _ || (I = [
|
|
761
761
|
Be(
|
|
762
762
|
n,
|
|
763
763
|
"click",
|
|
@@ -831,20 +831,20 @@ function Fl(r) {
|
|
|
831
831
|
"title",
|
|
832
832
|
/*clearButtonTitle*/
|
|
833
833
|
R[3]
|
|
834
|
-
), (!d || z[0] & /*searchValue*/
|
|
835
|
-
2) && en(
|
|
836
|
-
l,
|
|
837
|
-
"displayable",
|
|
838
|
-
/*searchValue*/
|
|
839
|
-
R[1] !== ""
|
|
840
834
|
), /*abortController*/
|
|
841
835
|
R[17] ? C ? z[0] & /*abortController*/
|
|
842
836
|
131072 && Je(C, 1) : (C = sa(), C.c(), Je(C, 1), C.m(u, null)) : C && (ra(), $n(C, 1, 1, () => {
|
|
843
837
|
C = null;
|
|
844
|
-
}), ia()), /*
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
838
|
+
}), ia()), (!d || z[0] & /*searchValue*/
|
|
839
|
+
2) && en(
|
|
840
|
+
u,
|
|
841
|
+
"displayable",
|
|
842
|
+
/*searchValue*/
|
|
843
|
+
R[1] !== ""
|
|
844
|
+
), /*enableReverse*/
|
|
845
|
+
R[5] === !0 ? N ? (N.p(R, z), z[0] & /*enableReverse*/
|
|
846
|
+
32 && Je(N, 1)) : (N = aa(R), N.c(), Je(N, 1), N.m(e, g)) : N && (ra(), $n(N, 1, 1, () => {
|
|
847
|
+
N = null;
|
|
848
848
|
}), ia()), b && b.p && (!d || z[1] & /*$$scope*/
|
|
849
849
|
65536) && fl(
|
|
850
850
|
b,
|
|
@@ -867,7 +867,7 @@ function Fl(r) {
|
|
|
867
867
|
4 && m !== (m = ta(
|
|
868
868
|
/*className*/
|
|
869
869
|
R[2]
|
|
870
|
-
) + " svelte-
|
|
870
|
+
) + " svelte-1qszo8o")) && B(t, "class", m), (!d || z[0] & /*className, collapsed, searchValue*/
|
|
871
871
|
22) && en(
|
|
872
872
|
t,
|
|
873
873
|
"can-collapse",
|
|
@@ -877,13 +877,13 @@ function Fl(r) {
|
|
|
877
877
|
);
|
|
878
878
|
},
|
|
879
879
|
i(R) {
|
|
880
|
-
d || (Je(i.$$.fragment, R), Je(c.$$.fragment, R), Je(C), Je(
|
|
880
|
+
d || (Je(i.$$.fragment, R), Je(c.$$.fragment, R), Je(C), Je(N), Je(b, R), d = !0);
|
|
881
881
|
},
|
|
882
882
|
o(R) {
|
|
883
|
-
$n(i.$$.fragment, R), $n(c.$$.fragment, R), $n(C), $n(
|
|
883
|
+
$n(i.$$.fragment, R), $n(c.$$.fragment, R), $n(C), $n(N), $n(b, R), d = !1;
|
|
884
884
|
},
|
|
885
885
|
d(R) {
|
|
886
|
-
R && Te(t), Ki(i), r[50](null), Ki(c), C && C.d(),
|
|
886
|
+
R && Te(t), Ki(i), r[50](null), Ki(c), C && C.d(), N && N.d(), b && b.d(R), D && D.d(), _ = !1, Mr(I);
|
|
887
887
|
}
|
|
888
888
|
};
|
|
889
889
|
}
|
|
@@ -896,15 +896,15 @@ function ca(r) {
|
|
|
896
896
|
return t[2] < t[0] && (t[2] += 360), t;
|
|
897
897
|
}
|
|
898
898
|
function kl(r, t, e) {
|
|
899
|
-
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: m = "Searching failed" } = t, { filter: d = () => !0 } = t, { flyTo: _ = !0 } = t, { fuzzyMatch: I = !0 } = t, { language: C = void 0 } = t, { limit:
|
|
899
|
+
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: m = "Searching failed" } = t, { filter: d = () => !0 } = t, { flyTo: _ = !0 } = t, { fuzzyMatch: I = !0 } = t, { language: C = void 0 } = t, { limit: N = void 0 } = t, { mapController: S = void 0 } = t, { minLength: b = 2 } = t, { noResultsMessage: A = "No results found" } = t, { placeholder: F = "Search" } = t, { proximity: D = void 0 } = t, { reverseActive: R = p === "always" } = t, { reverseButtonTitle: z = "toggle reverse geocoding" } = t, { searchValue: q = "" } = t, { showFullGeometry: rt = !0 } = t, { showPlaceType: O = !1 } = t, { showResultsWhileTyping: Y = !0 } = t, { trackProximity: at = !0 } = t, { types: xt = void 0 } = t, { zoom: qt = 16 } = t, { fetchParameters: ce = {} } = t;
|
|
900
900
|
function Br() {
|
|
901
901
|
Fn.focus();
|
|
902
902
|
}
|
|
903
903
|
function mn() {
|
|
904
904
|
Fn.blur();
|
|
905
905
|
}
|
|
906
|
-
function An(
|
|
907
|
-
e(1, q =
|
|
906
|
+
function An(x, At = !0) {
|
|
907
|
+
e(1, q = x), At ? (e(13, Mt = -1), Qs()) : (os(), setTimeout(() => {
|
|
908
908
|
Fn.focus(), Fn.select();
|
|
909
909
|
}));
|
|
910
910
|
}
|
|
@@ -913,11 +913,11 @@ function kl(r, t, e) {
|
|
|
913
913
|
yl(() => {
|
|
914
914
|
S && (S.setEventHandler(void 0), S.indicateReverse(!1), S.setSelectedMarker(-1), S.setMarkers(void 0, void 0));
|
|
915
915
|
});
|
|
916
|
-
function Qs(
|
|
916
|
+
function Qs(x) {
|
|
917
917
|
if (oi && (clearTimeout(oi), oi = void 0), Mt > -1 && et)
|
|
918
918
|
e(45, vt = et[Mt]), e(1, q = vt.place_name.replace(/,.*/, "")), e(16, gr = void 0), e(44, Rt = void 0), e(13, Mt = -1);
|
|
919
919
|
else if (q) {
|
|
920
|
-
const At =
|
|
920
|
+
const At = x || !Js();
|
|
921
921
|
is(q, { exact: !0 }).then(() => {
|
|
922
922
|
e(44, Rt = et), e(45, vt = void 0), At && Xu();
|
|
923
923
|
}).catch((Bn) => e(16, gr = Bn));
|
|
@@ -926,11 +926,11 @@ function kl(r, t, e) {
|
|
|
926
926
|
function Js() {
|
|
927
927
|
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(q);
|
|
928
928
|
}
|
|
929
|
-
async function is(
|
|
929
|
+
async function is(x, { byId: At = !1, exact: Bn = !1 } = {}) {
|
|
930
930
|
e(16, gr = void 0);
|
|
931
931
|
const Gi = Js(), Fe = new URLSearchParams();
|
|
932
|
-
C != null && Fe.set("language", Array.isArray(C) ? C.join(",") : C),
|
|
933
|
-
const Gr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(
|
|
932
|
+
C != null && Fe.set("language", Array.isArray(C) ? C.join(",") : C), xt && Fe.set("types", xt.join(",")), Gi || (u && Fe.set("bbox", u.map((dr) => dr.toFixed(6)).join(",")), h && Fe.set("country", Array.isArray(h) ? h.join(",") : h)), At || (D && Fe.set("proximity", D.map((dr) => dr.toFixed(6)).join(",")), (Bn || !Y) && Fe.set("autocomplete", "false"), Fe.set("fuzzyMatch", String(I))), N !== void 0 && Fe.set("limit", String(N)), Fe.set("key", a);
|
|
933
|
+
const Gr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(x) + ".json?" + Fe.toString();
|
|
934
934
|
if (Gr === Ks) {
|
|
935
935
|
At ? (e(12, et = void 0), e(45, vt = Eo[0])) : e(12, et = Eo);
|
|
936
936
|
return;
|
|
@@ -957,21 +957,21 @@ function kl(r, t, e) {
|
|
|
957
957
|
var Bn, Gi, Fe, Gr;
|
|
958
958
|
if (!(Rt != null && Rt.length) || !_)
|
|
959
959
|
return;
|
|
960
|
-
const
|
|
960
|
+
const x = [180, 90, -180, -90], At = !Rt.some((ye) => !ye.matching_text);
|
|
961
961
|
for (const ye of Rt)
|
|
962
|
-
(At || !ye.matching_text) && (
|
|
963
|
-
S && Rt.length > 0 && (vt &&
|
|
962
|
+
(At || !ye.matching_text) && (x[0] = Math.min(x[0], ((Bn = ye.bbox) == null ? void 0 : Bn[0]) ?? ye.center[0]), x[1] = Math.min(x[1], ((Gi = ye.bbox) == null ? void 0 : Gi[1]) ?? ye.center[1]), x[2] = Math.max(x[2], ((Fe = ye.bbox) == null ? void 0 : Fe[2]) ?? ye.center[0]), x[3] = Math.max(x[3], ((Gr = ye.bbox) == null ? void 0 : Gr[3]) ?? ye.center[1]));
|
|
963
|
+
S && Rt.length > 0 && (vt && x[0] === x[2] && x[1] === x[3] ? S.flyTo(vt.center, qt) : S.fitBounds(ca(x), 50));
|
|
964
964
|
}
|
|
965
|
-
function Yu(
|
|
966
|
-
e(0, R = p === "always"), An(Bl(
|
|
965
|
+
function Yu(x) {
|
|
966
|
+
e(0, R = p === "always"), An(Bl(x[0], [-180, 180], !0).toFixed(6) + "," + x[1].toFixed(6));
|
|
967
967
|
}
|
|
968
|
-
function Hu(
|
|
968
|
+
function Hu(x) {
|
|
969
969
|
if (!et)
|
|
970
970
|
return;
|
|
971
|
-
let At =
|
|
972
|
-
At ? (Mt === -1 && At === -1 && e(13, Mt = et.length), e(13, Mt += At), Mt >= et.length && e(13, Mt = -1),
|
|
971
|
+
let At = x.key === "ArrowDown" ? 1 : x.key === "ArrowUp" ? -1 : 0;
|
|
972
|
+
At ? (Mt === -1 && At === -1 && e(13, Mt = et.length), e(13, Mt += At), Mt >= et.length && e(13, Mt = -1), x.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(x.key) && e(13, Mt = -1);
|
|
973
973
|
}
|
|
974
|
-
function os(
|
|
974
|
+
function os(x = !0) {
|
|
975
975
|
if (Y && q.length > b) {
|
|
976
976
|
oi && clearTimeout(oi);
|
|
977
977
|
const At = q;
|
|
@@ -979,18 +979,18 @@ function kl(r, t, e) {
|
|
|
979
979
|
() => {
|
|
980
980
|
is(At).catch((Bn) => e(16, gr = Bn));
|
|
981
981
|
},
|
|
982
|
-
|
|
982
|
+
x ? g : 0
|
|
983
983
|
);
|
|
984
984
|
} else
|
|
985
985
|
e(12, et = void 0), e(16, gr = void 0);
|
|
986
986
|
}
|
|
987
|
-
function ss(
|
|
988
|
-
e(45, vt =
|
|
987
|
+
function ss(x) {
|
|
988
|
+
e(45, vt = x), e(1, q = x.place_name), e(13, Mt = -1);
|
|
989
989
|
}
|
|
990
990
|
const Wu = () => Fn.focus();
|
|
991
|
-
function ju(
|
|
992
|
-
ds[
|
|
993
|
-
Fn =
|
|
991
|
+
function ju(x) {
|
|
992
|
+
ds[x ? "unshift" : "push"](() => {
|
|
993
|
+
Fn = x, e(15, Fn);
|
|
994
994
|
});
|
|
995
995
|
}
|
|
996
996
|
function Ku() {
|
|
@@ -998,10 +998,10 @@ function kl(r, t, e) {
|
|
|
998
998
|
}
|
|
999
999
|
const Qu = () => e(11, fe = !0), Ju = () => e(11, fe = !1), Zu = () => os(), $u = () => {
|
|
1000
1000
|
e(1, q = ""), Fn.focus();
|
|
1001
|
-
}, tl = () => e(0, R = !R), el = (
|
|
1001
|
+
}, tl = () => e(0, R = !R), el = (x) => e(13, Mt = x), nl = (x) => ss(x), rl = () => e(13, Mt = -1), il = () => {
|
|
1002
1002
|
};
|
|
1003
|
-
return r.$$set = (
|
|
1004
|
-
"class" in
|
|
1003
|
+
return r.$$set = (x) => {
|
|
1004
|
+
"class" in x && e(2, s = x.class), "apiKey" in x && e(23, a = x.apiKey), "bbox" in x && e(24, u = x.bbox), "clearButtonTitle" in x && e(3, l = x.clearButtonTitle), "clearOnBlur" in x && e(25, c = x.clearOnBlur), "collapsed" in x && e(4, f = x.collapsed), "country" in x && e(26, h = x.country), "debounceSearch" in x && e(27, g = x.debounceSearch), "enableReverse" in x && e(5, p = x.enableReverse), "errorMessage" in x && e(6, m = x.errorMessage), "filter" in x && e(28, d = x.filter), "flyTo" in x && e(29, _ = x.flyTo), "fuzzyMatch" in x && e(30, I = x.fuzzyMatch), "language" in x && e(31, C = x.language), "limit" in x && e(32, N = x.limit), "mapController" in x && e(33, S = x.mapController), "minLength" in x && e(34, b = x.minLength), "noResultsMessage" in x && e(7, A = x.noResultsMessage), "placeholder" in x && e(8, F = x.placeholder), "proximity" in x && e(22, D = x.proximity), "reverseActive" in x && e(0, R = x.reverseActive), "reverseButtonTitle" in x && e(9, z = x.reverseButtonTitle), "searchValue" in x && e(1, q = x.searchValue), "showFullGeometry" in x && e(35, rt = x.showFullGeometry), "showPlaceType" in x && e(10, O = x.showPlaceType), "showResultsWhileTyping" in x && e(36, Y = x.showResultsWhileTyping), "trackProximity" in x && e(37, at = x.trackProximity), "types" in x && e(38, xt = x.types), "zoom" in x && e(39, qt = x.zoom), "fetchParameters" in x && e(40, ce = x.fetchParameters), "$$scope" in x && e(47, o = x.$$scope);
|
|
1005
1005
|
}, r.$$.update = () => {
|
|
1006
1006
|
if (r.$$.dirty[1] & /*trackProximity*/
|
|
1007
1007
|
64 && (at || e(22, D = void 0)), r.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
@@ -1009,7 +1009,7 @@ function kl(r, t, e) {
|
|
|
1009
1009
|
e(14, Io = fe), c && !fe && e(1, q = "");
|
|
1010
1010
|
}), r.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
1011
1011
|
4098 && (q || (e(45, vt = void 0), e(12, et = void 0), e(16, gr = void 0), e(44, Rt = et))), r.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
1012
|
-
16400 && rt && vt && !vt.address && vt.geometry.type === "Point" && is(vt.id, { byId: !0 }).catch((
|
|
1012
|
+
16400 && rt && vt && !vt.address && vt.geometry.type === "Point" && is(vt.id, { byId: !0 }).catch((x) => e(16, gr = x)), r.$$.dirty[0] & /*flyTo*/
|
|
1013
1013
|
536870912 | r.$$.dirty[1] & /*mapController, picked, zoom*/
|
|
1014
1014
|
16644 && S && vt && _ && (!vt.bbox || vt.bbox[0] === vt.bbox[2] && vt.bbox[1] === vt.bbox[3] ? S.flyTo(vt.center, qt) : S.fitBounds(ca(vt.bbox), 50), e(12, et = void 0), e(44, Rt = void 0), e(13, Mt = -1)), r.$$.dirty[0] & /*listFeatures*/
|
|
1015
1015
|
4096 | r.$$.dirty[1] & /*markedFeatures*/
|
|
@@ -1017,22 +1017,22 @@ function kl(r, t, e) {
|
|
|
1017
1017
|
24580 && S && S.setMarkers(Rt, vt), r.$$.dirty[0] & /*searchValue*/
|
|
1018
1018
|
2 && e(13, Mt = -1), r.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
1019
1019
|
20481 | r.$$.dirty[1] & /*mapController, trackProximity*/
|
|
1020
|
-
68 && S && S.setEventHandler((
|
|
1021
|
-
switch (
|
|
1020
|
+
68 && S && S.setEventHandler((x) => {
|
|
1021
|
+
switch (x.type) {
|
|
1022
1022
|
case "mapClick":
|
|
1023
|
-
R && Yu(
|
|
1023
|
+
R && Yu(x.coordinates);
|
|
1024
1024
|
break;
|
|
1025
1025
|
case "proximityChange":
|
|
1026
|
-
e(22, D = at ?
|
|
1026
|
+
e(22, D = at ? x.proximity : void 0);
|
|
1027
1027
|
break;
|
|
1028
1028
|
case "markerClick":
|
|
1029
1029
|
{
|
|
1030
|
-
const At = et == null ? void 0 : et.find((Bn) => Bn.id ===
|
|
1030
|
+
const At = et == null ? void 0 : et.find((Bn) => Bn.id === x.id);
|
|
1031
1031
|
At && ss(At);
|
|
1032
1032
|
}
|
|
1033
1033
|
break;
|
|
1034
1034
|
case "markerMouseEnter":
|
|
1035
|
-
e(13, Mt = Io ? (et == null ? void 0 : et.findIndex((At) => At.id ===
|
|
1035
|
+
e(13, Mt = Io ? (et == null ? void 0 : et.findIndex((At) => At.id === x.id)) ?? -1 : -1);
|
|
1036
1036
|
break;
|
|
1037
1037
|
case "markerMouseLeave":
|
|
1038
1038
|
e(13, Mt = -1);
|
|
@@ -1044,8 +1044,8 @@ function kl(r, t, e) {
|
|
|
1044
1044
|
12288 && e(46, n = et == null ? void 0 : et[Mt]), r.$$.dirty[0] & /*searchValue*/
|
|
1045
1045
|
2 | r.$$.dirty[1] & /*mapController*/
|
|
1046
1046
|
4) {
|
|
1047
|
-
const
|
|
1048
|
-
S == null || S.setReverseMarker(
|
|
1047
|
+
const x = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(q);
|
|
1048
|
+
S == null || S.setReverseMarker(x ? [Number(x[1]), Number(x[2])] : void 0);
|
|
1049
1049
|
}
|
|
1050
1050
|
r.$$.dirty[1] & /*selected*/
|
|
1051
1051
|
32768 && pr("select", n), r.$$.dirty[1] & /*picked*/
|
|
@@ -1090,13 +1090,13 @@ function kl(r, t, e) {
|
|
|
1090
1090
|
_,
|
|
1091
1091
|
I,
|
|
1092
1092
|
C,
|
|
1093
|
-
|
|
1093
|
+
N,
|
|
1094
1094
|
S,
|
|
1095
1095
|
b,
|
|
1096
1096
|
rt,
|
|
1097
1097
|
Y,
|
|
1098
1098
|
at,
|
|
1099
|
-
|
|
1099
|
+
xt,
|
|
1100
1100
|
qt,
|
|
1101
1101
|
ce,
|
|
1102
1102
|
Br,
|
|
@@ -1265,7 +1265,7 @@ function zl(r, t) {
|
|
|
1265
1265
|
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
|
-
var
|
|
1268
|
+
var xr = (
|
|
1269
1269
|
/** @class */
|
|
1270
1270
|
function() {
|
|
1271
1271
|
function r(t, e) {
|
|
@@ -1278,7 +1278,7 @@ function Vl(r, t) {
|
|
|
1278
1278
|
return r > t ? 1 : r < t ? -1 : 0;
|
|
1279
1279
|
}
|
|
1280
1280
|
function mr(r, t, e) {
|
|
1281
|
-
for (var n = new
|
|
1281
|
+
for (var n = new xr(null, null), i = n, o = n; ; ) {
|
|
1282
1282
|
var s = e(r, t.key);
|
|
1283
1283
|
if (s < 0) {
|
|
1284
1284
|
if (t.left === null)
|
|
@@ -1304,7 +1304,7 @@ function mr(r, t, e) {
|
|
|
1304
1304
|
return i.right = t.left, o.left = t.right, t.left = n.right, t.right = n.left, t;
|
|
1305
1305
|
}
|
|
1306
1306
|
function fs(r, t, e, n) {
|
|
1307
|
-
var i = new
|
|
1307
|
+
var i = new xr(r, t);
|
|
1308
1308
|
if (e === null)
|
|
1309
1309
|
return i.left = i.right = null, i;
|
|
1310
1310
|
e = mr(r, e, n);
|
|
@@ -1340,7 +1340,7 @@ var Ds = (
|
|
|
1340
1340
|
return r.prototype.insert = function(t, e) {
|
|
1341
1341
|
return this._size++, this._root = fs(t, e, this._root, this._comparator);
|
|
1342
1342
|
}, r.prototype.add = function(t, e) {
|
|
1343
|
-
var n = new
|
|
1343
|
+
var n = new xr(t, e);
|
|
1344
1344
|
this._root === null && (n.left = n.right = null, this._size++, this._root = n);
|
|
1345
1345
|
var i = this._comparator, o = mr(t, this._root, i), s = i(t, o.key);
|
|
1346
1346
|
return s === 0 ? this._root = o : (s < 0 ? (n.left = o.left, n.right = o, o.left = null) : s > 0 && (n.right = o.right, n.left = o, o.right = null), this._size++, this._root = n), this._root;
|
|
@@ -1524,18 +1524,18 @@ var Ds = (
|
|
|
1524
1524
|
function _s(r, t, e, n) {
|
|
1525
1525
|
var i = n - e;
|
|
1526
1526
|
if (i > 0) {
|
|
1527
|
-
var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new
|
|
1527
|
+
var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new xr(s, a);
|
|
1528
1528
|
return u.left = _s(r, t, e, o), u.right = _s(r, t, o + 1, n), u;
|
|
1529
1529
|
}
|
|
1530
1530
|
return null;
|
|
1531
1531
|
}
|
|
1532
1532
|
function ql(r, t) {
|
|
1533
|
-
for (var e = new
|
|
1534
|
-
n = n.next = new
|
|
1533
|
+
for (var e = new xr(null, null), n = e, i = 0; i < r.length; i++)
|
|
1534
|
+
n = n.next = new xr(r[i], t[i]);
|
|
1535
1535
|
return n.next = null, e.next;
|
|
1536
1536
|
}
|
|
1537
1537
|
function Xl(r) {
|
|
1538
|
-
for (var t = r, e = [], n = !1, i = new
|
|
1538
|
+
for (var t = r, e = [], n = !1, i = new xr(null, null), o = i; !n; )
|
|
1539
1539
|
t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
|
|
1540
1540
|
return o.next = null, i.next;
|
|
1541
1541
|
}
|
|
@@ -1548,7 +1548,7 @@ function Es(r, t, e) {
|
|
|
1548
1548
|
return null;
|
|
1549
1549
|
}
|
|
1550
1550
|
function Yl(r, t, e) {
|
|
1551
|
-
for (var n = new
|
|
1551
|
+
for (var n = new xr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
|
|
1552
1552
|
e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
|
|
1553
1553
|
return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
|
|
1554
1554
|
}
|
|
@@ -1600,7 +1600,7 @@ var zi = function(t, e) {
|
|
|
1600
1600
|
};
|
|
1601
1601
|
}, Er = Number.EPSILON;
|
|
1602
1602
|
Er === void 0 && (Er = Math.pow(2, -52));
|
|
1603
|
-
var Hl = Er * Er,
|
|
1603
|
+
var Hl = Er * Er, Ns = function(t, e) {
|
|
1604
1604
|
if (-Er < t && t < Er && -Er < e && e < Er)
|
|
1605
1605
|
return 0;
|
|
1606
1606
|
var n = t - e;
|
|
@@ -1631,10 +1631,10 @@ var Hl = Er * Er, xs = function(t, e) {
|
|
|
1631
1631
|
key: "round",
|
|
1632
1632
|
value: function(e) {
|
|
1633
1633
|
var n = this.tree.add(e), i = this.tree.prev(n);
|
|
1634
|
-
if (i !== null &&
|
|
1634
|
+
if (i !== null && Ns(n.key, i.key) === 0)
|
|
1635
1635
|
return this.tree.remove(e), i.key;
|
|
1636
1636
|
var o = this.tree.next(n);
|
|
1637
|
-
return o !== null &&
|
|
1637
|
+
return o !== null && Ns(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
|
|
1638
1638
|
}
|
|
1639
1639
|
}]), r;
|
|
1640
1640
|
}(), Qi = new Wl(), Yi = function(t, e) {
|
|
@@ -1649,7 +1649,7 @@ var Hl = Er * Er, xs = function(t, e) {
|
|
|
1649
1649
|
x: n.x - t.x,
|
|
1650
1650
|
y: n.y - t.y
|
|
1651
1651
|
}, s = Yi(i, o);
|
|
1652
|
-
return
|
|
1652
|
+
return Ns(s, 0);
|
|
1653
1653
|
}, Do = function(t) {
|
|
1654
1654
|
return Math.sqrt(Ja(t, t));
|
|
1655
1655
|
}, jl = function(t, e, n) {
|
|
@@ -1844,10 +1844,10 @@ var Hl = Er * Er, xs = function(t, e) {
|
|
|
1844
1844
|
return -1;
|
|
1845
1845
|
}
|
|
1846
1846
|
if (s !== a) {
|
|
1847
|
-
var I = c - u, C = s - i,
|
|
1848
|
-
if (I > C &&
|
|
1847
|
+
var I = c - u, C = s - i, N = f - l, S = a - o;
|
|
1848
|
+
if (I > C && N < S)
|
|
1849
1849
|
return 1;
|
|
1850
|
-
if (I < C &&
|
|
1850
|
+
if (I < C && N > S)
|
|
1851
1851
|
return -1;
|
|
1852
1852
|
}
|
|
1853
1853
|
return s > a ? 1 : s < a || c < f ? -1 : c > f ? 1 : e.id < n.id ? -1 : e.id > n.id ? 1 : 0;
|
|
@@ -2063,8 +2063,8 @@ var Hl = Er * Er, xs = function(t, e) {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
}
|
|
2065
2065
|
for (var I = 0, C = f.length; I < C; I++) {
|
|
2066
|
-
var
|
|
2067
|
-
o.indexOf(
|
|
2066
|
+
var N = f[I].multiPoly;
|
|
2067
|
+
o.indexOf(N) === -1 && o.push(N);
|
|
2068
2068
|
}
|
|
2069
2069
|
return this._afterState;
|
|
2070
2070
|
}
|
|
@@ -2242,8 +2242,8 @@ var Hl = Er * Er, xs = function(t, e) {
|
|
|
2242
2242
|
break;
|
|
2243
2243
|
}
|
|
2244
2244
|
if (d !== null) {
|
|
2245
|
-
var C = h.splice(d)[0],
|
|
2246
|
-
|
|
2245
|
+
var C = h.splice(d)[0], N = c.splice(C.index);
|
|
2246
|
+
N.unshift(N[0].otherSE), n.push(new r(N.reverse()));
|
|
2247
2247
|
continue;
|
|
2248
2248
|
}
|
|
2249
2249
|
h.push({
|
|
@@ -2399,17 +2399,17 @@ var Hl = Er * Er, xs = function(t, e) {
|
|
|
2399
2399
|
i.push(_[I]);
|
|
2400
2400
|
}
|
|
2401
2401
|
if (c !== null || m !== null) {
|
|
2402
|
-
var
|
|
2402
|
+
var N = null;
|
|
2403
2403
|
if (c === null)
|
|
2404
|
-
|
|
2404
|
+
N = m;
|
|
2405
2405
|
else if (m === null)
|
|
2406
|
-
|
|
2406
|
+
N = c;
|
|
2407
2407
|
else {
|
|
2408
2408
|
var S = Vn.comparePoints(c, m);
|
|
2409
|
-
|
|
2409
|
+
N = S <= 0 ? c : m;
|
|
2410
2410
|
}
|
|
2411
2411
|
this.queue.remove(n.rightSE), i.push(n.rightSE);
|
|
2412
|
-
for (var b = n.split(
|
|
2412
|
+
for (var b = n.split(N), A = 0, F = b.length; A < F; A++)
|
|
2413
2413
|
i.push(b[A]);
|
|
2414
2414
|
}
|
|
2415
2415
|
i.length > 0 ? (this.tree.remove(n), i.push(e)) : (this.segments.push(n), n.prev = u);
|
|
@@ -2461,7 +2461,7 @@ var Hl = Er * Er, xs = function(t, e) {
|
|
|
2461
2461
|
return [];
|
|
2462
2462
|
}
|
|
2463
2463
|
for (var m = new Ds(Vn.compare), d = 0, _ = o.length; d < _; d++)
|
|
2464
|
-
for (var I = o[d].getSweepEvents(), C = 0,
|
|
2464
|
+
for (var I = o[d].getSweepEvents(), C = 0, N = I.length; C < N; C++)
|
|
2465
2465
|
if (m.insert(I[C]), m.size > Ea)
|
|
2466
2466
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
|
|
2467
2467
|
for (var S = new ec(m), b = m.size, A = m.pop(); A; ) {
|
|
@@ -2559,7 +2559,7 @@ function tu(r, t, e) {
|
|
|
2559
2559
|
};
|
|
2560
2560
|
return Yo(a, t, e);
|
|
2561
2561
|
}
|
|
2562
|
-
function
|
|
2562
|
+
function xs(r, t) {
|
|
2563
2563
|
t === void 0 && (t = {});
|
|
2564
2564
|
var e = { type: "FeatureCollection" };
|
|
2565
2565
|
return t.id && (e.id = t.id), t.bbox && (e.bbox = t.bbox), e.features = r, e;
|
|
@@ -2601,7 +2601,7 @@ function hc(r) {
|
|
|
2601
2601
|
let t, e, n;
|
|
2602
2602
|
return {
|
|
2603
2603
|
c() {
|
|
2604
|
-
t =
|
|
2604
|
+
t = Nr("svg"), e = Nr("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-1k1cmht"), B(t, "width", n = /*displayIn*/
|
|
2605
2605
|
r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-1k1cmht"), en(
|
|
2606
2606
|
t,
|
|
2607
2607
|
"in-map",
|
|
@@ -2657,7 +2657,7 @@ function nu(r, t, e) {
|
|
|
2657
2657
|
for (var n, i, o, s, a, u, l, c = 0, f = 0, h, g = r.type, p = g === "FeatureCollection", m = g === "Feature", d = p ? r.features.length : 1, _ = 0; _ < d; _++) {
|
|
2658
2658
|
l = p ? r.features[_].geometry : m ? r.geometry : r, h = l ? l.type === "GeometryCollection" : !1, a = h ? l.geometries.length : 1;
|
|
2659
2659
|
for (var I = 0; I < a; I++) {
|
|
2660
|
-
var C = 0,
|
|
2660
|
+
var C = 0, N = 0;
|
|
2661
2661
|
if (s = h ? l.geometries[I] : l, s !== null) {
|
|
2662
2662
|
u = s.coordinates;
|
|
2663
2663
|
var S = s.type;
|
|
@@ -2670,7 +2670,7 @@ function nu(r, t, e) {
|
|
|
2670
2670
|
f,
|
|
2671
2671
|
_,
|
|
2672
2672
|
C,
|
|
2673
|
-
|
|
2673
|
+
N
|
|
2674
2674
|
) === !1)
|
|
2675
2675
|
return !1;
|
|
2676
2676
|
f++, C++;
|
|
@@ -2683,7 +2683,7 @@ function nu(r, t, e) {
|
|
|
2683
2683
|
f,
|
|
2684
2684
|
_,
|
|
2685
2685
|
C,
|
|
2686
|
-
|
|
2686
|
+
N
|
|
2687
2687
|
) === !1)
|
|
2688
2688
|
return !1;
|
|
2689
2689
|
f++, S === "MultiPoint" && C++;
|
|
@@ -2699,30 +2699,30 @@ function nu(r, t, e) {
|
|
|
2699
2699
|
f,
|
|
2700
2700
|
_,
|
|
2701
2701
|
C,
|
|
2702
|
-
|
|
2702
|
+
N
|
|
2703
2703
|
) === !1)
|
|
2704
2704
|
return !1;
|
|
2705
2705
|
f++;
|
|
2706
2706
|
}
|
|
2707
|
-
S === "MultiLineString" && C++, S === "Polygon" &&
|
|
2707
|
+
S === "MultiLineString" && C++, S === "Polygon" && N++;
|
|
2708
2708
|
}
|
|
2709
2709
|
S === "Polygon" && C++;
|
|
2710
2710
|
break;
|
|
2711
2711
|
case "MultiPolygon":
|
|
2712
2712
|
for (n = 0; n < u.length; n++) {
|
|
2713
|
-
for (
|
|
2713
|
+
for (N = 0, i = 0; i < u[n].length; i++) {
|
|
2714
2714
|
for (o = 0; o < u[n][i].length - c; o++) {
|
|
2715
2715
|
if (t(
|
|
2716
2716
|
u[n][i][o],
|
|
2717
2717
|
f,
|
|
2718
2718
|
_,
|
|
2719
2719
|
C,
|
|
2720
|
-
|
|
2720
|
+
N
|
|
2721
2721
|
) === !1)
|
|
2722
2722
|
return !1;
|
|
2723
2723
|
f++;
|
|
2724
2724
|
}
|
|
2725
|
-
|
|
2725
|
+
N++;
|
|
2726
2726
|
}
|
|
2727
2727
|
C++;
|
|
2728
2728
|
}
|
|
@@ -3307,8 +3307,8 @@ E.prototype.selfAdd = function() {
|
|
|
3307
3307
|
} else if (arguments.length === 2) {
|
|
3308
3308
|
var l = arguments[0], c = arguments[1], f = null, h = null, g = null, p = null, m = null, d = null, _ = null, I = null;
|
|
3309
3309
|
m = this._hi + l, g = this._lo + c, _ = m - this._hi, I = g - this._lo, d = m - _, p = g - I, d = l - _ + (this._hi - d), p = c - I + (this._lo - p), _ = d + g, f = m + _, h = _ + (m - f), _ = p + h;
|
|
3310
|
-
var C = f + _,
|
|
3311
|
-
return this._hi = C, this._lo =
|
|
3310
|
+
var C = f + _, N = _ + (f - C);
|
|
3311
|
+
return this._hi = C, this._lo = N, this;
|
|
3312
3312
|
}
|
|
3313
3313
|
};
|
|
3314
3314
|
E.prototype.selfMultiply = function() {
|
|
@@ -3690,8 +3690,8 @@ var ke = function r() {
|
|
|
3690
3690
|
var u = arguments[0], l = arguments[1], c = arguments[2];
|
|
3691
3691
|
this.x = u, this.y = l, this.w = c;
|
|
3692
3692
|
} else if (arguments.length === 4) {
|
|
3693
|
-
var f = arguments[0], h = arguments[1], g = arguments[2], p = arguments[3], m = f.y - h.y, d = h.x - f.x, _ = f.x * h.y - h.x * f.y, I = g.y - p.y, C = p.x - g.x,
|
|
3694
|
-
this.x = d *
|
|
3693
|
+
var f = arguments[0], h = arguments[1], g = arguments[2], p = arguments[3], m = f.y - h.y, d = h.x - f.x, _ = f.x * h.y - h.x * f.y, I = g.y - p.y, C = p.x - g.x, N = g.x * p.y - p.x * g.y;
|
|
3694
|
+
this.x = d * N - C * _, this.y = I * _ - m * N, this.w = m * C - I * d;
|
|
3695
3695
|
}
|
|
3696
3696
|
};
|
|
3697
3697
|
ke.prototype.getY = function() {
|
|
@@ -4391,8 +4391,8 @@ var Ar = function(r) {
|
|
|
4391
4391
|
var a = T.intersects(n, i, o), u = T.intersects(n, i, s), l = T.intersects(o, s, n), c = T.intersects(o, s, i);
|
|
4392
4392
|
return a && u ? (this._intPt[0] = o, this._intPt[1] = s, r.COLLINEAR_INTERSECTION) : l && c ? (this._intPt[0] = n, this._intPt[1] = i, r.COLLINEAR_INTERSECTION) : a && l ? (this._intPt[0] = o, this._intPt[1] = n, o.equals(n) && !u && !c ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : a && c ? (this._intPt[0] = o, this._intPt[1] = i, o.equals(i) && !u && !l ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : u && l ? (this._intPt[0] = s, this._intPt[1] = n, s.equals(n) && !a && !c ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : u && c ? (this._intPt[0] = s, this._intPt[1] = i, s.equals(i) && !a && !l ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : r.NO_INTERSECTION;
|
|
4393
4393
|
}, t.prototype.normalizeToEnvCentre = function(n, i, o, s, a) {
|
|
4394
|
-
var u = n.x < i.x ? n.x : i.x, l = n.y < i.y ? n.y : i.y, c = n.x > i.x ? n.x : i.x, f = n.y > i.y ? n.y : i.y, h = o.x < s.x ? o.x : s.x, g = o.y < s.y ? o.y : s.y, p = o.x > s.x ? o.x : s.x, m = o.y > s.y ? o.y : s.y, d = u > h ? u : h, _ = c < p ? c : p, I = l > g ? l : g, C = f < m ? f : m,
|
|
4395
|
-
a.x =
|
|
4394
|
+
var u = n.x < i.x ? n.x : i.x, l = n.y < i.y ? n.y : i.y, c = n.x > i.x ? n.x : i.x, f = n.y > i.y ? n.y : i.y, h = o.x < s.x ? o.x : s.x, g = o.y < s.y ? o.y : s.y, p = o.x > s.x ? o.x : s.x, m = o.y > s.y ? o.y : s.y, d = u > h ? u : h, _ = c < p ? c : p, I = l > g ? l : g, C = f < m ? f : m, N = (d + _) / 2, S = (I + C) / 2;
|
|
4395
|
+
a.x = N, a.y = S, n.x -= a.x, n.y -= a.y, i.x -= a.x, i.y -= a.y, o.x -= a.x, o.y -= a.y, s.x -= a.x, s.y -= a.y;
|
|
4396
4396
|
}, t.prototype.computeIntersect = function(n, i, o, s) {
|
|
4397
4397
|
if (this._isProper = !1, !T.intersects(n, i, o, s))
|
|
4398
4398
|
return r.NO_INTERSECTION;
|
|
@@ -5104,8 +5104,8 @@ var L = function(r) {
|
|
|
5104
5104
|
i.add(g[_], p);
|
|
5105
5105
|
return !0;
|
|
5106
5106
|
} else if (typeof arguments[2] == "boolean" && Number.isInteger(arguments[0]) && arguments[1] instanceof v) {
|
|
5107
|
-
var I = arguments[0], C = arguments[1],
|
|
5108
|
-
if (!
|
|
5107
|
+
var I = arguments[0], C = arguments[1], N = arguments[2];
|
|
5108
|
+
if (!N) {
|
|
5109
5109
|
var S = this.size();
|
|
5110
5110
|
if (S > 0) {
|
|
5111
5111
|
if (I > 0) {
|
|
@@ -5414,7 +5414,7 @@ var As = function(r) {
|
|
|
5414
5414
|
throw new po();
|
|
5415
5415
|
}, t;
|
|
5416
5416
|
}(Fi), Un = 0, vr = 1;
|
|
5417
|
-
function
|
|
5417
|
+
function Na(r) {
|
|
5418
5418
|
return r === null ? Un : r.color;
|
|
5419
5419
|
}
|
|
5420
5420
|
function ot(r) {
|
|
@@ -5426,7 +5426,7 @@ function kn(r, t) {
|
|
|
5426
5426
|
function hs(r) {
|
|
5427
5427
|
return r === null ? null : r.left;
|
|
5428
5428
|
}
|
|
5429
|
-
function
|
|
5429
|
+
function xa(r) {
|
|
5430
5430
|
return r === null ? null : r.right;
|
|
5431
5431
|
}
|
|
5432
5432
|
function Yt() {
|
|
@@ -5492,11 +5492,11 @@ Yt.prototype.fixAfterInsertion = function(r) {
|
|
|
5492
5492
|
var t = this;
|
|
5493
5493
|
for (r.color = vr; r != null && r !== this.root_ && r.parent.color === vr; )
|
|
5494
5494
|
if (ot(r) === hs(ot(ot(r)))) {
|
|
5495
|
-
var e =
|
|
5496
|
-
|
|
5495
|
+
var e = xa(ot(ot(r)));
|
|
5496
|
+
Na(e) === vr ? (kn(ot(r), Un), kn(e, Un), kn(ot(ot(r)), vr), r = ot(ot(r))) : (r === xa(ot(r)) && (r = ot(r), t.rotateLeft(r)), kn(ot(r), Un), kn(ot(ot(r)), vr), t.rotateRight(ot(ot(r))));
|
|
5497
5497
|
} else {
|
|
5498
5498
|
var n = hs(ot(ot(r)));
|
|
5499
|
-
|
|
5499
|
+
Na(n) === vr ? (kn(ot(r), Un), kn(n, Un), kn(ot(ot(r)), vr), r = ot(ot(r))) : (r === hs(ot(r)) && (r = ot(r), t.rotateRight(r)), kn(ot(r), Un), kn(ot(ot(r)), vr), t.rotateLeft(ot(ot(r))));
|
|
5500
5500
|
}
|
|
5501
5501
|
this.root_.color = Un;
|
|
5502
5502
|
};
|
|
@@ -6004,10 +6004,10 @@ var Ic = function() {
|
|
|
6004
6004
|
};
|
|
6005
6005
|
function Cc() {
|
|
6006
6006
|
}
|
|
6007
|
-
function xc() {
|
|
6008
|
-
}
|
|
6009
6007
|
function Nc() {
|
|
6010
6008
|
}
|
|
6009
|
+
function xc() {
|
|
6010
|
+
}
|
|
6011
6011
|
var be = function() {
|
|
6012
6012
|
}, Fs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
6013
6013
|
be.prototype.interfaces_ = function() {
|
|
@@ -6028,11 +6028,11 @@ be.getStackTrace = function() {
|
|
|
6028
6028
|
} else if (arguments.length === 2) {
|
|
6029
6029
|
var i = arguments[0], o = arguments[1], s = "";
|
|
6030
6030
|
new Ec(be.getStackTrace(i));
|
|
6031
|
-
for (var a = new
|
|
6031
|
+
for (var a = new xc(), u = 0; u < o; u++)
|
|
6032
6032
|
try {
|
|
6033
6033
|
s += a.readLine() + be.NEWLINE;
|
|
6034
6034
|
} catch (l) {
|
|
6035
|
-
if (l instanceof
|
|
6035
|
+
if (l instanceof Nc)
|
|
6036
6036
|
X.shouldNeverReachHere();
|
|
6037
6037
|
else
|
|
6038
6038
|
throw l;
|
|
@@ -6629,7 +6629,7 @@ var Pt = function(r) {
|
|
|
6629
6629
|
}, e.serialVersionUID.get = function() {
|
|
6630
6630
|
return -4261142084085851600;
|
|
6631
6631
|
}, Object.defineProperties(t, e), t;
|
|
6632
|
-
}(pt),
|
|
6632
|
+
}(pt), Nn = function(r) {
|
|
6633
6633
|
function t() {
|
|
6634
6634
|
r.apply(this, arguments);
|
|
6635
6635
|
}
|
|
@@ -6693,7 +6693,7 @@ Oe.prototype.editGeometryCollection = function(t, e) {
|
|
|
6693
6693
|
var a = n.edit(i.getGeometryN(s), e);
|
|
6694
6694
|
a === null || a.isEmpty() || o.add(a);
|
|
6695
6695
|
}
|
|
6696
|
-
return i.getClass() === yi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Sr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() ===
|
|
6696
|
+
return i.getClass() === yi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Sr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === Nn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
|
|
6697
6697
|
};
|
|
6698
6698
|
Oe.prototype.editPolygon = function(t, e) {
|
|
6699
6699
|
var n = this, i = e.edit(t, this._factory);
|
|
@@ -7161,10 +7161,10 @@ H.prototype.createLinearRing = function() {
|
|
|
7161
7161
|
};
|
|
7162
7162
|
H.prototype.createMultiPolygon = function() {
|
|
7163
7163
|
if (arguments.length === 0)
|
|
7164
|
-
return new
|
|
7164
|
+
return new Nn(null, this);
|
|
7165
7165
|
if (arguments.length === 1) {
|
|
7166
7166
|
var t = arguments[0];
|
|
7167
|
-
return new
|
|
7167
|
+
return new Nn(t, this);
|
|
7168
7168
|
}
|
|
7169
7169
|
};
|
|
7170
7170
|
H.prototype.createMultiPoint = function() {
|
|
@@ -8030,12 +8030,12 @@ tt.toLineLabel = function(t) {
|
|
|
8030
8030
|
e.setLocation(n, t.getLocation(n));
|
|
8031
8031
|
return e;
|
|
8032
8032
|
};
|
|
8033
|
-
var
|
|
8033
|
+
var Nt = function() {
|
|
8034
8034
|
this._startDe = null, this._maxNodeDegree = -1, this._edges = new L(), this._pts = new L(), this._label = new tt(y.NONE), this._ring = null, this._isHole = null, this._shell = null, this._holes = new L(), this._geometryFactory = null;
|
|
8035
8035
|
var t = arguments[0], e = arguments[1];
|
|
8036
8036
|
this._geometryFactory = e, this.computePoints(t), this.computeRing();
|
|
8037
8037
|
};
|
|
8038
|
-
|
|
8038
|
+
Nt.prototype.computeRing = function() {
|
|
8039
8039
|
var t = this;
|
|
8040
8040
|
if (this._ring !== null)
|
|
8041
8041
|
return null;
|
|
@@ -8043,10 +8043,10 @@ xt.prototype.computeRing = function() {
|
|
|
8043
8043
|
e[n] = t._pts.get(n);
|
|
8044
8044
|
this._ring = this._geometryFactory.createLinearRing(e), this._isHole = P.isCCW(this._ring.getCoordinates());
|
|
8045
8045
|
};
|
|
8046
|
-
|
|
8046
|
+
Nt.prototype.isIsolated = function() {
|
|
8047
8047
|
return this._label.getGeometryCount() === 1;
|
|
8048
8048
|
};
|
|
8049
|
-
|
|
8049
|
+
Nt.prototype.computePoints = function(t) {
|
|
8050
8050
|
var e = this;
|
|
8051
8051
|
this._startDe = t;
|
|
8052
8052
|
var n = t, i = !0;
|
|
@@ -8060,13 +8060,13 @@ xt.prototype.computePoints = function(t) {
|
|
|
8060
8060
|
X.isTrue(o.isArea()), e.mergeLabel(o), e.addPoints(n.getEdge(), n.isForward(), i), i = !1, e.setEdgeRing(n, e), n = e.getNext(n);
|
|
8061
8061
|
} while (n !== this._startDe);
|
|
8062
8062
|
};
|
|
8063
|
-
|
|
8063
|
+
Nt.prototype.getLinearRing = function() {
|
|
8064
8064
|
return this._ring;
|
|
8065
8065
|
};
|
|
8066
|
-
|
|
8066
|
+
Nt.prototype.getCoordinate = function(t) {
|
|
8067
8067
|
return this._pts.get(t);
|
|
8068
8068
|
};
|
|
8069
|
-
|
|
8069
|
+
Nt.prototype.computeMaxNodeDegree = function() {
|
|
8070
8070
|
var t = this;
|
|
8071
8071
|
this._maxNodeDegree = 0;
|
|
8072
8072
|
var e = this._startDe;
|
|
@@ -8076,7 +8076,7 @@ xt.prototype.computeMaxNodeDegree = function() {
|
|
|
8076
8076
|
} while (e !== this._startDe);
|
|
8077
8077
|
this._maxNodeDegree *= 2;
|
|
8078
8078
|
};
|
|
8079
|
-
|
|
8079
|
+
Nt.prototype.addPoints = function(t, e, n) {
|
|
8080
8080
|
var i = this, o = t.getCoordinates();
|
|
8081
8081
|
if (e) {
|
|
8082
8082
|
var s = 1;
|
|
@@ -8090,16 +8090,16 @@ xt.prototype.addPoints = function(t, e, n) {
|
|
|
8090
8090
|
i._pts.add(o[l]);
|
|
8091
8091
|
}
|
|
8092
8092
|
};
|
|
8093
|
-
|
|
8093
|
+
Nt.prototype.isHole = function() {
|
|
8094
8094
|
return this._isHole;
|
|
8095
8095
|
};
|
|
8096
|
-
|
|
8096
|
+
Nt.prototype.setInResult = function() {
|
|
8097
8097
|
var t = this._startDe;
|
|
8098
8098
|
do
|
|
8099
8099
|
t.getEdge().setInResult(!0), t = t.getNext();
|
|
8100
8100
|
while (t !== this._startDe);
|
|
8101
8101
|
};
|
|
8102
|
-
|
|
8102
|
+
Nt.prototype.containsPoint = function(t) {
|
|
8103
8103
|
var e = this.getLinearRing(), n = e.getEnvelopeInternal();
|
|
8104
8104
|
if (!n.contains(t) || !P.isPointInRing(t, e.getCoordinates()))
|
|
8105
8105
|
return !1;
|
|
@@ -8110,25 +8110,25 @@ xt.prototype.containsPoint = function(t) {
|
|
|
8110
8110
|
}
|
|
8111
8111
|
return !0;
|
|
8112
8112
|
};
|
|
8113
|
-
|
|
8113
|
+
Nt.prototype.addHole = function(t) {
|
|
8114
8114
|
this._holes.add(t);
|
|
8115
8115
|
};
|
|
8116
|
-
|
|
8116
|
+
Nt.prototype.isShell = function() {
|
|
8117
8117
|
return this._shell === null;
|
|
8118
8118
|
};
|
|
8119
|
-
|
|
8119
|
+
Nt.prototype.getLabel = function() {
|
|
8120
8120
|
return this._label;
|
|
8121
8121
|
};
|
|
8122
|
-
|
|
8122
|
+
Nt.prototype.getEdges = function() {
|
|
8123
8123
|
return this._edges;
|
|
8124
8124
|
};
|
|
8125
|
-
|
|
8125
|
+
Nt.prototype.getMaxNodeDegree = function() {
|
|
8126
8126
|
return this._maxNodeDegree < 0 && this.computeMaxNodeDegree(), this._maxNodeDegree;
|
|
8127
8127
|
};
|
|
8128
|
-
|
|
8128
|
+
Nt.prototype.getShell = function() {
|
|
8129
8129
|
return this._shell;
|
|
8130
8130
|
};
|
|
8131
|
-
|
|
8131
|
+
Nt.prototype.mergeLabel = function() {
|
|
8132
8132
|
if (arguments.length === 1) {
|
|
8133
8133
|
var t = arguments[0];
|
|
8134
8134
|
this.mergeLabel(t, 0), this.mergeLabel(t, 1);
|
|
@@ -8140,20 +8140,20 @@ xt.prototype.mergeLabel = function() {
|
|
|
8140
8140
|
return this._label.setLocation(n, i), null;
|
|
8141
8141
|
}
|
|
8142
8142
|
};
|
|
8143
|
-
|
|
8143
|
+
Nt.prototype.setShell = function(t) {
|
|
8144
8144
|
this._shell = t, t !== null && t.addHole(this);
|
|
8145
8145
|
};
|
|
8146
|
-
|
|
8146
|
+
Nt.prototype.toPolygon = function(t) {
|
|
8147
8147
|
for (var e = this, n = new Array(this._holes.size()).fill(null), i = 0; i < this._holes.size(); i++)
|
|
8148
8148
|
n[i] = e._holes.get(i).getLinearRing();
|
|
8149
8149
|
var o = t.createPolygon(this.getLinearRing(), n);
|
|
8150
8150
|
return o;
|
|
8151
8151
|
};
|
|
8152
|
-
|
|
8152
|
+
Nt.prototype.interfaces_ = function() {
|
|
8153
8153
|
return [];
|
|
8154
8154
|
};
|
|
8155
|
-
|
|
8156
|
-
return
|
|
8155
|
+
Nt.prototype.getClass = function() {
|
|
8156
|
+
return Nt;
|
|
8157
8157
|
};
|
|
8158
8158
|
var wc = function(r) {
|
|
8159
8159
|
function t() {
|
|
@@ -8169,7 +8169,7 @@ var wc = function(r) {
|
|
|
8169
8169
|
}, t.prototype.getClass = function() {
|
|
8170
8170
|
return t;
|
|
8171
8171
|
}, t;
|
|
8172
|
-
}(
|
|
8172
|
+
}(Nt), Lc = function(r) {
|
|
8173
8173
|
function t() {
|
|
8174
8174
|
var e = arguments[0], n = arguments[1];
|
|
8175
8175
|
r.call(this, e, n);
|
|
@@ -8199,7 +8199,7 @@ var wc = function(r) {
|
|
|
8199
8199
|
}, t.prototype.getClass = function() {
|
|
8200
8200
|
return t;
|
|
8201
8201
|
}, t;
|
|
8202
|
-
}(
|
|
8202
|
+
}(Nt), Ne = function() {
|
|
8203
8203
|
if (this._label = null, this._isInResult = !1, this._isCovered = !1, this._isCoveredSet = !1, this._isVisited = !1, arguments.length !== 0) {
|
|
8204
8204
|
if (arguments.length === 1) {
|
|
8205
8205
|
var t = arguments[0];
|
|
@@ -8207,41 +8207,41 @@ var wc = function(r) {
|
|
|
8207
8207
|
}
|
|
8208
8208
|
}
|
|
8209
8209
|
};
|
|
8210
|
-
|
|
8210
|
+
Ne.prototype.setVisited = function(t) {
|
|
8211
8211
|
this._isVisited = t;
|
|
8212
8212
|
};
|
|
8213
|
-
|
|
8213
|
+
Ne.prototype.setInResult = function(t) {
|
|
8214
8214
|
this._isInResult = t;
|
|
8215
8215
|
};
|
|
8216
|
-
|
|
8216
|
+
Ne.prototype.isCovered = function() {
|
|
8217
8217
|
return this._isCovered;
|
|
8218
8218
|
};
|
|
8219
|
-
|
|
8219
|
+
Ne.prototype.isCoveredSet = function() {
|
|
8220
8220
|
return this._isCoveredSet;
|
|
8221
8221
|
};
|
|
8222
|
-
|
|
8222
|
+
Ne.prototype.setLabel = function(t) {
|
|
8223
8223
|
this._label = t;
|
|
8224
8224
|
};
|
|
8225
|
-
|
|
8225
|
+
Ne.prototype.getLabel = function() {
|
|
8226
8226
|
return this._label;
|
|
8227
8227
|
};
|
|
8228
|
-
|
|
8228
|
+
Ne.prototype.setCovered = function(t) {
|
|
8229
8229
|
this._isCovered = t, this._isCoveredSet = !0;
|
|
8230
8230
|
};
|
|
8231
|
-
|
|
8231
|
+
Ne.prototype.updateIM = function(t) {
|
|
8232
8232
|
X.isTrue(this._label.getGeometryCount() >= 2, "found partial label"), this.computeIM(t);
|
|
8233
8233
|
};
|
|
8234
|
-
|
|
8234
|
+
Ne.prototype.isInResult = function() {
|
|
8235
8235
|
return this._isInResult;
|
|
8236
8236
|
};
|
|
8237
|
-
|
|
8237
|
+
Ne.prototype.isVisited = function() {
|
|
8238
8238
|
return this._isVisited;
|
|
8239
8239
|
};
|
|
8240
|
-
|
|
8240
|
+
Ne.prototype.interfaces_ = function() {
|
|
8241
8241
|
return [];
|
|
8242
8242
|
};
|
|
8243
|
-
|
|
8244
|
-
return
|
|
8243
|
+
Ne.prototype.getClass = function() {
|
|
8244
|
+
return Ne;
|
|
8245
8245
|
};
|
|
8246
8246
|
var ns = function(r) {
|
|
8247
8247
|
function t() {
|
|
@@ -8313,7 +8313,7 @@ var ns = function(r) {
|
|
|
8313
8313
|
}, t.prototype.getClass = function() {
|
|
8314
8314
|
return t;
|
|
8315
8315
|
}, t;
|
|
8316
|
-
}(
|
|
8316
|
+
}(Ne), cn = function() {
|
|
8317
8317
|
this.nodeMap = new Yt(), this.nodeFact = null;
|
|
8318
8318
|
var t = arguments[0];
|
|
8319
8319
|
this.nodeFact = t;
|
|
@@ -9269,7 +9269,7 @@ var du = function(r) {
|
|
|
9269
9269
|
return [g.getBoundable(0).getItem(), g.getBoundable(1).getItem()];
|
|
9270
9270
|
}
|
|
9271
9271
|
} else if (arguments.length === 3) {
|
|
9272
|
-
var _ = arguments[0], I = arguments[1], C = arguments[2],
|
|
9272
|
+
var _ = arguments[0], I = arguments[1], C = arguments[2], N = new Ue(_, I), S = new It(this.getRoot(), N, C);
|
|
9273
9273
|
return this.nearestNeighbour(S)[0];
|
|
9274
9274
|
}
|
|
9275
9275
|
}, t.prototype.interfaces_ = function() {
|
|
@@ -10204,25 +10204,25 @@ yo.NUM_PTS_TO_CHECK.get = function() {
|
|
|
10204
10204
|
return 10;
|
|
10205
10205
|
};
|
|
10206
10206
|
Object.defineProperties(dt, yo);
|
|
10207
|
-
var
|
|
10207
|
+
var xe = function() {
|
|
10208
10208
|
this._ptList = null, this._precisionModel = null, this._minimimVertexDistance = 0, this._ptList = new L();
|
|
10209
10209
|
}, yu = { COORDINATE_ARRAY_TYPE: { configurable: !0 } };
|
|
10210
|
-
|
|
10211
|
-
var t = this._ptList.toArray(
|
|
10210
|
+
xe.prototype.getCoordinates = function() {
|
|
10211
|
+
var t = this._ptList.toArray(xe.COORDINATE_ARRAY_TYPE);
|
|
10212
10212
|
return t;
|
|
10213
10213
|
};
|
|
10214
|
-
|
|
10214
|
+
xe.prototype.setPrecisionModel = function(t) {
|
|
10215
10215
|
this._precisionModel = t;
|
|
10216
10216
|
};
|
|
10217
|
-
|
|
10217
|
+
xe.prototype.addPt = function(t) {
|
|
10218
10218
|
var e = new v(t);
|
|
10219
10219
|
if (this._precisionModel.makePrecise(e), this.isRedundant(e))
|
|
10220
10220
|
return null;
|
|
10221
10221
|
this._ptList.add(e);
|
|
10222
10222
|
};
|
|
10223
|
-
|
|
10223
|
+
xe.prototype.revere = function() {
|
|
10224
10224
|
};
|
|
10225
|
-
|
|
10225
|
+
xe.prototype.addPts = function(t, e) {
|
|
10226
10226
|
var n = this;
|
|
10227
10227
|
if (e)
|
|
10228
10228
|
for (var i = 0; i < t.length; i++)
|
|
@@ -10231,17 +10231,17 @@ Ne.prototype.addPts = function(t, e) {
|
|
|
10231
10231
|
for (var o = t.length - 1; o >= 0; o--)
|
|
10232
10232
|
n.addPt(t[o]);
|
|
10233
10233
|
};
|
|
10234
|
-
|
|
10234
|
+
xe.prototype.isRedundant = function(t) {
|
|
10235
10235
|
if (this._ptList.size() < 1)
|
|
10236
10236
|
return !1;
|
|
10237
10237
|
var e = this._ptList.get(this._ptList.size() - 1), n = t.distance(e);
|
|
10238
10238
|
return n < this._minimimVertexDistance;
|
|
10239
10239
|
};
|
|
10240
|
-
|
|
10240
|
+
xe.prototype.toString = function() {
|
|
10241
10241
|
var t = new H(), e = t.createLineString(this.getCoordinates());
|
|
10242
10242
|
return e.toString();
|
|
10243
10243
|
};
|
|
10244
|
-
|
|
10244
|
+
xe.prototype.closeRing = function() {
|
|
10245
10245
|
if (this._ptList.size() < 1)
|
|
10246
10246
|
return null;
|
|
10247
10247
|
var t = new v(this._ptList.get(0)), e = this._ptList.get(this._ptList.size() - 1);
|
|
@@ -10249,19 +10249,19 @@ Ne.prototype.closeRing = function() {
|
|
|
10249
10249
|
return null;
|
|
10250
10250
|
this._ptList.add(t);
|
|
10251
10251
|
};
|
|
10252
|
-
|
|
10252
|
+
xe.prototype.setMinimumVertexDistance = function(t) {
|
|
10253
10253
|
this._minimimVertexDistance = t;
|
|
10254
10254
|
};
|
|
10255
|
-
|
|
10255
|
+
xe.prototype.interfaces_ = function() {
|
|
10256
10256
|
return [];
|
|
10257
10257
|
};
|
|
10258
|
-
|
|
10259
|
-
return
|
|
10258
|
+
xe.prototype.getClass = function() {
|
|
10259
|
+
return xe;
|
|
10260
10260
|
};
|
|
10261
10261
|
yu.COORDINATE_ARRAY_TYPE.get = function() {
|
|
10262
10262
|
return new Array(0).fill(null);
|
|
10263
10263
|
};
|
|
10264
|
-
Object.defineProperties(
|
|
10264
|
+
Object.defineProperties(xe, yu);
|
|
10265
10265
|
var j = function() {
|
|
10266
10266
|
}, ii = { PI_TIMES_2: { configurable: !0 }, PI_OVER_2: { configurable: !0 }, PI_OVER_4: { configurable: !0 }, COUNTERCLOCKWISE: { configurable: !0 }, CLOCKWISE: { configurable: !0 }, NONE: { configurable: !0 } };
|
|
10267
10267
|
j.prototype.interfaces_ = function() {
|
|
@@ -10467,7 +10467,7 @@ ut.prototype.addBevelJoin = function(t, e) {
|
|
|
10467
10467
|
this._segList.addPt(t.p1), this._segList.addPt(e.p0);
|
|
10468
10468
|
};
|
|
10469
10469
|
ut.prototype.init = function(t) {
|
|
10470
|
-
this._distance = t, this._maxCurveSegmentError = t * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new
|
|
10470
|
+
this._distance = t, this._maxCurveSegmentError = t * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new xe(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(t * ut.CURVE_VERTEX_SNAP_DISTANCE_FACTOR);
|
|
10471
10471
|
};
|
|
10472
10472
|
ut.prototype.addCollinear = function(t) {
|
|
10473
10473
|
this._li.computeIntersection(this._s0, this._s1, this._s1, this._s2);
|
|
@@ -10830,7 +10830,7 @@ De.prototype.addPolygonRing = function(t, e, n, i, o) {
|
|
|
10830
10830
|
De.prototype.add = function(t) {
|
|
10831
10831
|
if (t.isEmpty())
|
|
10832
10832
|
return null;
|
|
10833
|
-
t instanceof Pt ? this.addPolygon(t) : t instanceof pt ? this.addLineString(t) : t instanceof ge ? this.addPoint(t) : t instanceof yi ? this.addCollection(t) : t instanceof Sr ? this.addCollection(t) : t instanceof
|
|
10833
|
+
t instanceof Pt ? this.addPolygon(t) : t instanceof pt ? this.addLineString(t) : t instanceof ge ? this.addPoint(t) : t instanceof yi ? this.addCollection(t) : t instanceof Sr ? this.addCollection(t) : t instanceof Nn ? this.addCollection(t) : t instanceof te && this.addCollection(t);
|
|
10834
10834
|
};
|
|
10835
10835
|
De.prototype.isErodedCompletely = function(t, e) {
|
|
10836
10836
|
var n = t.getCoordinates();
|
|
@@ -10863,14 +10863,14 @@ Ii.prototype.interfaces_ = function() {
|
|
|
10863
10863
|
Ii.prototype.getClass = function() {
|
|
10864
10864
|
return Ii;
|
|
10865
10865
|
};
|
|
10866
|
-
var
|
|
10866
|
+
var xn = function() {
|
|
10867
10867
|
this._parent = null, this._atStart = null, this._max = null, this._index = null, this._subcollectionIterator = null;
|
|
10868
10868
|
var t = arguments[0];
|
|
10869
10869
|
this._parent = t, this._atStart = !0, this._index = 0, this._max = t.getNumGeometries();
|
|
10870
10870
|
};
|
|
10871
|
-
|
|
10871
|
+
xn.prototype.next = function() {
|
|
10872
10872
|
if (this._atStart)
|
|
10873
|
-
return this._atStart = !1,
|
|
10873
|
+
return this._atStart = !1, xn.isAtomic(this._parent) && this._index++, this._parent;
|
|
10874
10874
|
if (this._subcollectionIterator !== null) {
|
|
10875
10875
|
if (this._subcollectionIterator.hasNext())
|
|
10876
10876
|
return this._subcollectionIterator.next();
|
|
@@ -10879,12 +10879,12 @@ Nn.prototype.next = function() {
|
|
|
10879
10879
|
if (this._index >= this._max)
|
|
10880
10880
|
throw new Bi();
|
|
10881
10881
|
var t = this._parent.getGeometryN(this._index++);
|
|
10882
|
-
return t instanceof te ? (this._subcollectionIterator = new
|
|
10882
|
+
return t instanceof te ? (this._subcollectionIterator = new xn(t), this._subcollectionIterator.next()) : t;
|
|
10883
10883
|
};
|
|
10884
|
-
|
|
10884
|
+
xn.prototype.remove = function() {
|
|
10885
10885
|
throw new Error(this.getClass().getName());
|
|
10886
10886
|
};
|
|
10887
|
-
|
|
10887
|
+
xn.prototype.hasNext = function() {
|
|
10888
10888
|
if (this._atStart)
|
|
10889
10889
|
return !0;
|
|
10890
10890
|
if (this._subcollectionIterator !== null) {
|
|
@@ -10894,13 +10894,13 @@ Nn.prototype.hasNext = function() {
|
|
|
10894
10894
|
}
|
|
10895
10895
|
return !(this._index >= this._max);
|
|
10896
10896
|
};
|
|
10897
|
-
|
|
10897
|
+
xn.prototype.interfaces_ = function() {
|
|
10898
10898
|
return [Fi];
|
|
10899
10899
|
};
|
|
10900
|
-
|
|
10901
|
-
return
|
|
10900
|
+
xn.prototype.getClass = function() {
|
|
10901
|
+
return xn;
|
|
10902
10902
|
};
|
|
10903
|
-
|
|
10903
|
+
xn.isAtomic = function(t) {
|
|
10904
10904
|
return !(t instanceof te);
|
|
10905
10905
|
};
|
|
10906
10906
|
var Ee = function() {
|
|
@@ -10937,7 +10937,7 @@ Ee.containsPoint = function(t, e) {
|
|
|
10937
10937
|
if (e instanceof Pt)
|
|
10938
10938
|
return Ee.containsPointInPolygon(t, e);
|
|
10939
10939
|
if (e instanceof te)
|
|
10940
|
-
for (var n = new
|
|
10940
|
+
for (var n = new xn(e); n.hasNext(); ) {
|
|
10941
10941
|
var i = n.next();
|
|
10942
10942
|
if (i !== e && Ee.containsPoint(t, i))
|
|
10943
10943
|
return !0;
|
|
@@ -11748,7 +11748,7 @@ var Bo = function(r) {
|
|
|
11748
11748
|
} else
|
|
11749
11749
|
return r.prototype.updateIM.apply(this, arguments);
|
|
11750
11750
|
}, t;
|
|
11751
|
-
}(
|
|
11751
|
+
}(Ne), $t = function(t) {
|
|
11752
11752
|
this._workingPrecisionModel = null, this._workingNoder = null, this._geomFact = null, this._graph = null, this._edgeList = new Xe(), this._bufParams = t || null;
|
|
11753
11753
|
};
|
|
11754
11754
|
$t.prototype.setWorkingPrecisionModel = function(t) {
|
|
@@ -12045,13 +12045,13 @@ var Ci = function() {
|
|
|
12045
12045
|
this._index = null;
|
|
12046
12046
|
var t = arguments[0];
|
|
12047
12047
|
this._index = t;
|
|
12048
|
-
},
|
|
12048
|
+
}, Nu = { HotPixelSnapAction: { configurable: !0 } };
|
|
12049
12049
|
Ci.prototype.snap = function() {
|
|
12050
12050
|
if (arguments.length === 1) {
|
|
12051
12051
|
var t = arguments[0];
|
|
12052
12052
|
return this.snap(t, null, -1);
|
|
12053
12053
|
} else if (arguments.length === 3) {
|
|
12054
|
-
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new
|
|
12054
|
+
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new xu(e, n, i);
|
|
12055
12055
|
return this._index.query(o, {
|
|
12056
12056
|
interfaces_: function() {
|
|
12057
12057
|
return [or];
|
|
@@ -12069,11 +12069,11 @@ Ci.prototype.interfaces_ = function() {
|
|
|
12069
12069
|
Ci.prototype.getClass = function() {
|
|
12070
12070
|
return Ci;
|
|
12071
12071
|
};
|
|
12072
|
-
|
|
12073
|
-
return
|
|
12072
|
+
Nu.HotPixelSnapAction.get = function() {
|
|
12073
|
+
return xu;
|
|
12074
12074
|
};
|
|
12075
|
-
Object.defineProperties(Ci,
|
|
12076
|
-
var
|
|
12075
|
+
Object.defineProperties(Ci, Nu);
|
|
12076
|
+
var xu = function(r) {
|
|
12077
12077
|
function t() {
|
|
12078
12078
|
r.call(this), this._hotPixel = null, this._parentEdge = null, this._hotPixelVertexIndex = null, this._isNodeAdded = !1;
|
|
12079
12079
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -12263,8 +12263,8 @@ Bt.bufferOp = function() {
|
|
|
12263
12263
|
} else if (arguments.length === 4) {
|
|
12264
12264
|
var m = arguments[0], d = arguments[1], _ = arguments[2], I = arguments[3], C = new Bt(m);
|
|
12265
12265
|
C.setQuadrantSegments(_), C.setEndCapStyle(I);
|
|
12266
|
-
var
|
|
12267
|
-
return
|
|
12266
|
+
var N = C.getResultGeometry(d);
|
|
12267
|
+
return N;
|
|
12268
12268
|
}
|
|
12269
12269
|
};
|
|
12270
12270
|
Bt.precisionScaleFactor = function(t, e, n) {
|
|
@@ -12374,8 +12374,8 @@ In.computeDistance = function() {
|
|
|
12374
12374
|
else
|
|
12375
12375
|
p.setMinimum(h.getCoordinate(), g);
|
|
12376
12376
|
} else if (arguments[2] instanceof Kt && arguments[0] instanceof M && arguments[1] instanceof v) {
|
|
12377
|
-
var I = arguments[0], C = arguments[1],
|
|
12378
|
-
|
|
12377
|
+
var I = arguments[0], C = arguments[1], N = arguments[2], S = I.closestPoint(C);
|
|
12378
|
+
N.setMinimum(S, C);
|
|
12379
12379
|
}
|
|
12380
12380
|
};
|
|
12381
12381
|
var Rr = function(t) {
|
|
@@ -12593,13 +12593,13 @@ Ye.prototype.computeLocation = function(t, e) {
|
|
|
12593
12593
|
var s = i.getGeometryN(o);
|
|
12594
12594
|
n.updateLocationInfo(n.locateInternal(t, s));
|
|
12595
12595
|
}
|
|
12596
|
-
else if (e instanceof
|
|
12596
|
+
else if (e instanceof Nn)
|
|
12597
12597
|
for (var a = e, u = 0; u < a.getNumGeometries(); u++) {
|
|
12598
12598
|
var l = a.getGeometryN(u);
|
|
12599
12599
|
n.updateLocationInfo(n.locateInternal(t, l));
|
|
12600
12600
|
}
|
|
12601
12601
|
else if (e instanceof te)
|
|
12602
|
-
for (var c = new
|
|
12602
|
+
for (var c = new xn(e); c.hasNext(); ) {
|
|
12603
12603
|
var f = c.next();
|
|
12604
12604
|
f !== e && n.computeLocation(t, f);
|
|
12605
12605
|
}
|
|
@@ -12776,7 +12776,7 @@ zt.prototype.computeMinDistance = function() {
|
|
|
12776
12776
|
var I = P.distanceLineLine(p[d], p[d + 1], m[_], m[_ + 1]);
|
|
12777
12777
|
if (I < t._minDistance) {
|
|
12778
12778
|
t._minDistance = I;
|
|
12779
|
-
var C = new M(p[d], p[d + 1]),
|
|
12779
|
+
var C = new M(p[d], p[d + 1]), N = new M(m[_], m[_ + 1]), S = C.closestPoints(N);
|
|
12780
12780
|
g[0] = new Qt(f, d, S[0]), g[1] = new Qt(h, _, S[1]);
|
|
12781
12781
|
}
|
|
12782
12782
|
if (t._minDistance <= t._terminateDistance)
|
|
@@ -12914,8 +12914,8 @@ tn.computeDistance = function() {
|
|
|
12914
12914
|
else
|
|
12915
12915
|
p.setMinimum(h.getCoordinate(), g);
|
|
12916
12916
|
} else if (arguments[2] instanceof Xt && arguments[0] instanceof M && arguments[1] instanceof v) {
|
|
12917
|
-
var I = arguments[0], C = arguments[1],
|
|
12918
|
-
|
|
12917
|
+
var I = arguments[0], C = arguments[1], N = arguments[2], S = I.closestPoint(C);
|
|
12918
|
+
N.setMinimum(S, C);
|
|
12919
12919
|
}
|
|
12920
12920
|
};
|
|
12921
12921
|
var Pe = function() {
|
|
@@ -13031,7 +13031,7 @@ he.prototype.isValid = function() {
|
|
|
13031
13031
|
return this._minValidDistance = t - e, this._maxValidDistance = t + e, this._input.isEmpty() || this._result.isEmpty() ? !0 : (this._bufDistance > 0 ? this.checkPositiveValid() : this.checkNegativeValid(), he.VERBOSE && Gt.out.println("Min Dist= " + this._minDistanceFound + " err= " + (1 - this._minDistanceFound / this._bufDistance) + " Max Dist= " + this._maxDistanceFound + " err= " + (this._maxDistanceFound / this._bufDistance - 1)), this._isValid);
|
|
13032
13032
|
};
|
|
13033
13033
|
he.prototype.checkNegativeValid = function() {
|
|
13034
|
-
if (!(this._input instanceof Pt || this._input instanceof
|
|
13034
|
+
if (!(this._input instanceof Pt || this._input instanceof Nn || this._input instanceof te))
|
|
13035
13035
|
return null;
|
|
13036
13036
|
var t = this.getPolygonLines(this._input);
|
|
13037
13037
|
if (this.checkMinimumDistance(t, this._result, this._minValidDistance), !this._isValid)
|
|
@@ -13106,7 +13106,7 @@ Vt.prototype.checkArea = function() {
|
|
|
13106
13106
|
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");
|
|
13107
13107
|
};
|
|
13108
13108
|
Vt.prototype.checkPolygonal = function() {
|
|
13109
|
-
this._result instanceof Pt || this._result instanceof
|
|
13109
|
+
this._result instanceof Pt || this._result instanceof Nn || (this._isValid = !1), this._errorMsg = "Result is not polygonal", this._errorIndicator = this._result, this.report("Polygonal");
|
|
13110
13110
|
};
|
|
13111
13111
|
Vt.prototype.getErrorIndicator = function() {
|
|
13112
13112
|
return this._errorIndicator;
|
|
@@ -13499,7 +13499,7 @@ le.prototype.transform = function(t) {
|
|
|
13499
13499
|
return this.transformMultiLineString(t, null);
|
|
13500
13500
|
if (t instanceof Pt)
|
|
13501
13501
|
return this.transformPolygon(t, null);
|
|
13502
|
-
if (t instanceof
|
|
13502
|
+
if (t instanceof Nn)
|
|
13503
13503
|
return this.transformMultiPolygon(t, null);
|
|
13504
13504
|
if (t instanceof te)
|
|
13505
13505
|
return this.transformGeometryCollection(t, null);
|
|
@@ -14190,37 +14190,37 @@ Tn.prototype.interfaces_ = function() {
|
|
|
14190
14190
|
Tn.prototype.getClass = function() {
|
|
14191
14191
|
return Tn;
|
|
14192
14192
|
};
|
|
14193
|
-
var
|
|
14193
|
+
var Ni = function() {
|
|
14194
14194
|
this._items = new L();
|
|
14195
14195
|
};
|
|
14196
|
-
|
|
14196
|
+
Ni.prototype.visitItem = function(t) {
|
|
14197
14197
|
this._items.add(t);
|
|
14198
14198
|
};
|
|
14199
|
-
|
|
14199
|
+
Ni.prototype.getItems = function() {
|
|
14200
14200
|
return this._items;
|
|
14201
14201
|
};
|
|
14202
|
-
|
|
14202
|
+
Ni.prototype.interfaces_ = function() {
|
|
14203
14203
|
return [or];
|
|
14204
14204
|
};
|
|
14205
|
-
|
|
14206
|
-
return
|
|
14205
|
+
Ni.prototype.getClass = function() {
|
|
14206
|
+
return Ni;
|
|
14207
14207
|
};
|
|
14208
|
-
var
|
|
14208
|
+
var xi = function() {
|
|
14209
14209
|
this._index = null;
|
|
14210
14210
|
var t = arguments[0];
|
|
14211
14211
|
if (!G(t, ir))
|
|
14212
14212
|
throw new lt("Argument must be Polygonal");
|
|
14213
14213
|
this._index = new Dr(t);
|
|
14214
14214
|
}, js = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
|
|
14215
|
-
|
|
14215
|
+
xi.prototype.locate = function(t) {
|
|
14216
14216
|
var e = new nn(t), n = new Si(e);
|
|
14217
14217
|
return this._index.query(t.y, t.y, n), e.getLocation();
|
|
14218
14218
|
};
|
|
14219
|
-
|
|
14219
|
+
xi.prototype.interfaces_ = function() {
|
|
14220
14220
|
return [Ii];
|
|
14221
14221
|
};
|
|
14222
|
-
|
|
14223
|
-
return
|
|
14222
|
+
xi.prototype.getClass = function() {
|
|
14223
|
+
return xi;
|
|
14224
14224
|
};
|
|
14225
14225
|
js.SegmentVisitor.get = function() {
|
|
14226
14226
|
return Si;
|
|
@@ -14228,7 +14228,7 @@ js.SegmentVisitor.get = function() {
|
|
|
14228
14228
|
js.IntervalIndexedGeometry.get = function() {
|
|
14229
14229
|
return Dr;
|
|
14230
14230
|
};
|
|
14231
|
-
Object.defineProperties(
|
|
14231
|
+
Object.defineProperties(xi, js);
|
|
14232
14232
|
var Si = function() {
|
|
14233
14233
|
this._counter = null;
|
|
14234
14234
|
var t = arguments[0];
|
|
@@ -14263,7 +14263,7 @@ Dr.prototype.addLine = function(t) {
|
|
|
14263
14263
|
};
|
|
14264
14264
|
Dr.prototype.query = function() {
|
|
14265
14265
|
if (arguments.length === 2) {
|
|
14266
|
-
var t = arguments[0], e = arguments[1], n = new
|
|
14266
|
+
var t = arguments[0], e = arguments[1], n = new Ni();
|
|
14267
14267
|
return this._index.query(t, e, n), n.getItems();
|
|
14268
14268
|
} else if (arguments.length === 3) {
|
|
14269
14269
|
var i = arguments[0], o = arguments[1], s = arguments[2];
|
|
@@ -14298,7 +14298,7 @@ var Vi = function(r) {
|
|
|
14298
14298
|
} else if (arguments.length === 3) {
|
|
14299
14299
|
var o = arguments[0], s = arguments[1], a = arguments[2], u = new Ut(o, !0, !1);
|
|
14300
14300
|
u.setIsDoneIfProperInt(a);
|
|
14301
|
-
var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof wn || this._parentGeom instanceof Pt || this._parentGeom instanceof
|
|
14301
|
+
var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof wn || this._parentGeom instanceof Pt || this._parentGeom instanceof Nn, f = s || !c;
|
|
14302
14302
|
return l.computeIntersections(this._edges, u, f), this.addSelfIntersectionNodes(this._argIndex), u;
|
|
14303
14303
|
}
|
|
14304
14304
|
}, t.prototype.computeSplitEdges = function(n) {
|
|
@@ -14382,7 +14382,7 @@ var Vi = function(r) {
|
|
|
14382
14382
|
var n = arguments[0];
|
|
14383
14383
|
if (n.isEmpty())
|
|
14384
14384
|
return null;
|
|
14385
|
-
if (n instanceof
|
|
14385
|
+
if (n instanceof Nn && (this._useBoundaryDeterminationRule = !1), n instanceof Pt)
|
|
14386
14386
|
this.addPolygon(n);
|
|
14387
14387
|
else if (n instanceof pt)
|
|
14388
14388
|
this.addLineString(n);
|
|
@@ -14392,7 +14392,7 @@ var Vi = function(r) {
|
|
|
14392
14392
|
this.addCollection(n);
|
|
14393
14393
|
else if (n instanceof Sr)
|
|
14394
14394
|
this.addCollection(n);
|
|
14395
|
-
else if (n instanceof
|
|
14395
|
+
else if (n instanceof Nn)
|
|
14396
14396
|
this.addCollection(n);
|
|
14397
14397
|
else if (n instanceof te)
|
|
14398
14398
|
this.addCollection(n);
|
|
@@ -14406,7 +14406,7 @@ var Vi = function(r) {
|
|
|
14406
14406
|
i.add(s);
|
|
14407
14407
|
}
|
|
14408
14408
|
}, t.prototype.locate = function(n) {
|
|
14409
|
-
return G(this._parentGeom, ir) && this._parentGeom.getNumGeometries() > 50 ? (this._areaPtLocator === null && (this._areaPtLocator = new
|
|
14409
|
+
return G(this._parentGeom, ir) && this._parentGeom.getNumGeometries() > 50 ? (this._areaPtLocator === null && (this._areaPtLocator = new xi(this._parentGeom)), this._areaPtLocator.locate(n)) : this._ptLocator.locate(n, this._parentGeom);
|
|
14410
14410
|
}, t.prototype.findEdge = function() {
|
|
14411
14411
|
if (arguments.length === 1) {
|
|
14412
14412
|
var n = arguments[0];
|
|
@@ -15014,13 +15014,13 @@ zo.prototype = {
|
|
|
15014
15014
|
this.t = 0;
|
|
15015
15015
|
},
|
|
15016
15016
|
add: function(r) {
|
|
15017
|
-
La(
|
|
15017
|
+
La(No, r, this.t), La(this, No.s, this.s), this.s ? this.t += No.t : this.s = No.t;
|
|
15018
15018
|
},
|
|
15019
15019
|
valueOf: function() {
|
|
15020
15020
|
return this.s;
|
|
15021
15021
|
}
|
|
15022
15022
|
};
|
|
15023
|
-
var
|
|
15023
|
+
var No = new zo();
|
|
15024
15024
|
function La(r, t, e) {
|
|
15025
15025
|
var n = r.s = t + e, i = n - t, o = n - i;
|
|
15026
15026
|
r.t = t - o + (e - i);
|
|
@@ -15099,7 +15099,7 @@ function Ri(r) {
|
|
|
15099
15099
|
var t = r[0], e = r[1], n = wt(e);
|
|
15100
15100
|
return [n * wt(t), n * Lt(t), Lt(e)];
|
|
15101
15101
|
}
|
|
15102
|
-
function
|
|
15102
|
+
function xo(r, t) {
|
|
15103
15103
|
return r[0] * t[0] + r[1] * t[1] + r[2] * t[2];
|
|
15104
15104
|
}
|
|
15105
15105
|
function Uo(r, t) {
|
|
@@ -15353,7 +15353,7 @@ function zc(r, t, e, n) {
|
|
|
15353
15353
|
return f !== h ? f - h : f === 0 ? c[1] - l[1] : f === 1 ? l[0] - c[0] : f === 2 ? l[1] - c[1] : c[0] - l[0];
|
|
15354
15354
|
}
|
|
15355
15355
|
return function(l) {
|
|
15356
|
-
var c = l, f = Tu(), h, g, p, m, d, _, I, C,
|
|
15356
|
+
var c = l, f = Tu(), h, g, p, m, d, _, I, C, N, S, b, A = {
|
|
15357
15357
|
point: F,
|
|
15358
15358
|
lineStart: q,
|
|
15359
15359
|
lineEnd: rt,
|
|
@@ -15364,7 +15364,7 @@ function zc(r, t, e, n) {
|
|
|
15364
15364
|
i(Y, at) && c.point(Y, at);
|
|
15365
15365
|
}
|
|
15366
15366
|
function D() {
|
|
15367
|
-
for (var Y = 0, at = 0,
|
|
15367
|
+
for (var Y = 0, at = 0, xt = g.length; at < xt; ++at)
|
|
15368
15368
|
for (var qt = g[at], ce = 1, Br = qt.length, mn = qt[0], An, fe, et = mn[0], Rt = mn[1]; ce < Br; ++ce)
|
|
15369
15369
|
An = et, fe = Rt, mn = qt[ce], et = mn[0], Rt = mn[1], fe <= n ? Rt > n && (et - An) * (n - fe) > (Rt - fe) * (r - An) && ++Y : Rt <= n && (et - An) * (n - fe) < (Rt - fe) * (r - An) && --Y;
|
|
15370
15370
|
return Y;
|
|
@@ -15373,26 +15373,26 @@ function zc(r, t, e, n) {
|
|
|
15373
15373
|
c = f, h = [], g = [], b = !0;
|
|
15374
15374
|
}
|
|
15375
15375
|
function z() {
|
|
15376
|
-
var Y = D(), at = b && Y,
|
|
15377
|
-
(at ||
|
|
15376
|
+
var Y = D(), at = b && Y, xt = (h = Fu(h)).length;
|
|
15377
|
+
(at || xt) && (l.polygonStart(), at && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), xt && Mu(h, a, Y, o, l), l.polygonEnd()), c = l, h = g = p = null;
|
|
15378
15378
|
}
|
|
15379
15379
|
function q() {
|
|
15380
|
-
A.point = O, g && g.push(p = []), S = !0,
|
|
15380
|
+
A.point = O, g && g.push(p = []), S = !0, N = !1, I = C = NaN;
|
|
15381
15381
|
}
|
|
15382
15382
|
function rt() {
|
|
15383
|
-
h && (O(m, d), _ &&
|
|
15383
|
+
h && (O(m, d), _ && N && f.rejoin(), h.push(f.result())), A.point = F, N && c.lineEnd();
|
|
15384
15384
|
}
|
|
15385
15385
|
function O(Y, at) {
|
|
15386
|
-
var
|
|
15386
|
+
var xt = i(Y, at);
|
|
15387
15387
|
if (g && p.push([Y, at]), S)
|
|
15388
|
-
m = Y, d = at, _ =
|
|
15389
|
-
else if (
|
|
15388
|
+
m = Y, d = at, _ = xt, S = !1, xt && (c.lineStart(), c.point(Y, at));
|
|
15389
|
+
else if (xt && N)
|
|
15390
15390
|
c.point(Y, at);
|
|
15391
15391
|
else {
|
|
15392
15392
|
var qt = [I = Math.max(Lo, Math.min(qi, I)), C = Math.max(Lo, Math.min(qi, C))], ce = [Y = Math.max(Lo, Math.min(qi, Y)), at = Math.max(Lo, Math.min(qi, at))];
|
|
15393
|
-
Bc(qt, ce, r, t, e, n) ? (
|
|
15393
|
+
Bc(qt, ce, r, t, e, n) ? (N || (c.lineStart(), c.point(qt[0], qt[1])), c.point(ce[0], ce[1]), xt || c.lineEnd(), b = !1) : xt && (c.lineStart(), c.point(Y, at), b = !1);
|
|
15394
15394
|
}
|
|
15395
|
-
I = Y, C = at,
|
|
15395
|
+
I = Y, C = at, N = xt;
|
|
15396
15396
|
}
|
|
15397
15397
|
return A;
|
|
15398
15398
|
};
|
|
@@ -15403,8 +15403,8 @@ function Vc(r, t) {
|
|
|
15403
15403
|
ps.reset();
|
|
15404
15404
|
for (var a = 0, u = r.length; a < u; ++a)
|
|
15405
15405
|
if (c = (l = r[a]).length)
|
|
15406
|
-
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + ba, p = Lt(g), m = wt(g), d = 0; d < c; ++d, h = I, p =
|
|
15407
|
-
var _ = l[d], I = _[0], C = _[1] / 2 + ba,
|
|
15406
|
+
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + ba, p = Lt(g), m = wt(g), d = 0; d < c; ++d, h = I, p = N, m = S, f = _) {
|
|
15407
|
+
var _ = l[d], I = _[0], C = _[1] / 2 + ba, N = Lt(C), S = wt(C), b = I - h, A = b >= 0 ? 1 : -1, F = A * b, D = F > it, R = p * N;
|
|
15408
15408
|
if (ps.add(bi(R * A * Lt(F), m * S + R * wt(F))), o += D ? b + A * Qn : b, D ^ h >= e ^ I >= e) {
|
|
15409
15409
|
var z = Uo(Ri(f), Ri(_));
|
|
15410
15410
|
Ps(z);
|
|
@@ -15444,7 +15444,7 @@ function Bu(r, t, e, n) {
|
|
|
15444
15444
|
lineStart: _,
|
|
15445
15445
|
lineEnd: I,
|
|
15446
15446
|
polygonStart: function() {
|
|
15447
|
-
p.point = C, p.lineStart =
|
|
15447
|
+
p.point = C, p.lineStart = N, p.lineEnd = S, h = [], f = [];
|
|
15448
15448
|
},
|
|
15449
15449
|
polygonEnd: function() {
|
|
15450
15450
|
p.point = m, p.lineStart = _, p.lineEnd = I, h = Fu(h);
|
|
@@ -15474,7 +15474,7 @@ function Bu(r, t, e, n) {
|
|
|
15474
15474
|
var F = i(b, A);
|
|
15475
15475
|
l.point(F[0], F[1]);
|
|
15476
15476
|
}
|
|
15477
|
-
function
|
|
15477
|
+
function N() {
|
|
15478
15478
|
l.lineStart(), g = [];
|
|
15479
15479
|
}
|
|
15480
15480
|
function S() {
|
|
@@ -15556,14 +15556,14 @@ function jc(r, t) {
|
|
|
15556
15556
|
p = g = !1, m = 1;
|
|
15557
15557
|
},
|
|
15558
15558
|
point: function(d, _) {
|
|
15559
|
-
var I = [d, _], C,
|
|
15560
|
-
if (!f && (p = g =
|
|
15561
|
-
m = 0,
|
|
15562
|
-
else if (i && f && n ^
|
|
15559
|
+
var I = [d, _], C, N = s(d, _), S = n ? N ? 0 : l(d, _) : N ? l(d + (d < 0 ? it : -it), _) : 0;
|
|
15560
|
+
if (!f && (p = g = N) && c.lineStart(), N !== g && (C = u(f, I), (!C || Po(f, C) || Po(I, C)) && (I[0] += gt, I[1] += gt, N = s(I[0], I[1]))), N !== g)
|
|
15561
|
+
m = 0, N ? (c.lineStart(), C = u(I, f), c.point(C[0], C[1])) : (C = u(f, I), c.point(C[0], C[1]), c.lineEnd()), f = C;
|
|
15562
|
+
else if (i && f && n ^ N) {
|
|
15563
15563
|
var b;
|
|
15564
15564
|
!(S & h) && (b = u(I, f, !0)) && (m = 0, n ? (c.lineStart(), c.point(b[0][0], b[0][1]), c.point(b[1][0], b[1][1]), c.lineEnd()) : (c.point(b[1][0], b[1][1]), c.lineEnd(), c.lineStart(), c.point(b[0][0], b[0][1])));
|
|
15565
15565
|
}
|
|
15566
|
-
|
|
15566
|
+
N && (!f || !Po(f, I)) && c.point(I[0], I[1]), f = I, g = N, h = S;
|
|
15567
15567
|
},
|
|
15568
15568
|
lineEnd: function() {
|
|
15569
15569
|
g && c.lineEnd(), f = null;
|
|
@@ -15576,20 +15576,20 @@ function jc(r, t) {
|
|
|
15576
15576
|
};
|
|
15577
15577
|
}
|
|
15578
15578
|
function u(c, f, h) {
|
|
15579
|
-
var g = Ri(c), p = Ri(f), m = [1, 0, 0], d = Uo(g, p), _ =
|
|
15579
|
+
var g = Ri(c), p = Ri(f), m = [1, 0, 0], d = Uo(g, p), _ = xo(d, d), I = d[0], C = _ - I * I;
|
|
15580
15580
|
if (!C)
|
|
15581
15581
|
return !h && c;
|
|
15582
|
-
var
|
|
15582
|
+
var N = e * _ / C, S = -e * I / C, b = Uo(m, d), A = So(m, N), F = So(d, S);
|
|
15583
15583
|
gs(A, F);
|
|
15584
|
-
var D = b, R =
|
|
15584
|
+
var D = b, R = xo(A, D), z = xo(D, D), q = R * R - z * (xo(A, A) - 1);
|
|
15585
15585
|
if (!(q < 0)) {
|
|
15586
15586
|
var rt = _o(q), O = So(D, (-R - rt) / z);
|
|
15587
15587
|
if (gs(O, A), O = bs(O), !h)
|
|
15588
15588
|
return O;
|
|
15589
|
-
var Y = c[0], at = f[0],
|
|
15589
|
+
var Y = c[0], at = f[0], xt = c[1], qt = f[1], ce;
|
|
15590
15590
|
at < Y && (ce = Y, Y = at, at = ce);
|
|
15591
15591
|
var Br = at - Y, mn = Jt(Br - it) < gt, An = mn || Br < gt;
|
|
15592
|
-
if (!mn && qt <
|
|
15592
|
+
if (!mn && qt < xt && (ce = xt, xt = qt, qt = ce), An ? mn ? xt + qt > 0 ^ O[1] < (Jt(O[0] - Y) < gt ? xt : qt) : xt <= O[1] && O[1] <= qt : Br > it ^ (Y <= O[0] && O[0] <= at)) {
|
|
15593
15593
|
var fe = So(D, (-R + rt) / z);
|
|
15594
15594
|
return gs(fe, A), [O, bs(fe)];
|
|
15595
15595
|
}
|
|
@@ -15656,15 +15656,15 @@ function Zc(r, t) {
|
|
|
15656
15656
|
function e(n, i, o, s, a, u, l, c, f, h, g, p, m, d) {
|
|
15657
15657
|
var _ = l - n, I = c - i, C = _ * _ + I * I;
|
|
15658
15658
|
if (C > 4 * t && m--) {
|
|
15659
|
-
var
|
|
15660
|
-
(Y * Y / C > t || Jt((_ * rt + I * O) / C - 0.5) > 0.3 || s * h + a * g + u * p < Qc) && (e(n, i, o, s, a, u, z, q, D,
|
|
15659
|
+
var N = s + h, S = a + g, b = u + p, A = _o(N * N + S * S + b * b), F = Pi(b /= A), D = Jt(Jt(b) - 1) < gt || Jt(o - f) < gt ? (o + f) / 2 : bi(S, N), R = r(D, F), z = R[0], q = R[1], rt = z - n, O = q - i, Y = I * rt - _ * O;
|
|
15660
|
+
(Y * Y / C > t || Jt((_ * rt + I * O) / C - 0.5) > 0.3 || s * h + a * g + u * p < Qc) && (e(n, i, o, s, a, u, z, q, D, N /= A, S /= A, b, m, d), d.point(z, q), e(z, q, D, N, S, b, l, c, f, h, g, p, m, d));
|
|
15661
15661
|
}
|
|
15662
15662
|
}
|
|
15663
15663
|
return function(n) {
|
|
15664
15664
|
var i, o, s, a, u, l, c, f, h, g, p, m, d = {
|
|
15665
15665
|
point: _,
|
|
15666
15666
|
lineStart: I,
|
|
15667
|
-
lineEnd:
|
|
15667
|
+
lineEnd: N,
|
|
15668
15668
|
polygonStart: function() {
|
|
15669
15669
|
n.polygonStart(), d.lineStart = S;
|
|
15670
15670
|
},
|
|
@@ -15682,7 +15682,7 @@ function Zc(r, t) {
|
|
|
15682
15682
|
var R = Ri([F, D]), z = r(F, D);
|
|
15683
15683
|
e(f, h, c, g, p, m, f = z[0], h = z[1], c = F, g = R[0], p = R[1], m = R[2], za, n), n.point(f, h);
|
|
15684
15684
|
}
|
|
15685
|
-
function
|
|
15685
|
+
function N() {
|
|
15686
15686
|
d.point = _, n.lineEnd();
|
|
15687
15687
|
}
|
|
15688
15688
|
function S() {
|
|
@@ -15692,7 +15692,7 @@ function Zc(r, t) {
|
|
|
15692
15692
|
C(i = F, D), o = f, s = h, a = g, u = p, l = m, d.point = C;
|
|
15693
15693
|
}
|
|
15694
15694
|
function A() {
|
|
15695
|
-
e(f, h, c, g, p, m, o, s, i, a, u, l, za, n), d.lineEnd =
|
|
15695
|
+
e(f, h, c, g, p, m, o, s, i, a, u, l, za, n), d.lineEnd = N, N();
|
|
15696
15696
|
}
|
|
15697
15697
|
return d;
|
|
15698
15698
|
};
|
|
@@ -15708,7 +15708,7 @@ function tf(r) {
|
|
|
15708
15708
|
})();
|
|
15709
15709
|
}
|
|
15710
15710
|
function ef(r) {
|
|
15711
|
-
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, m = Ga, d = null, _, I, C,
|
|
15711
|
+
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, m = Ga, d = null, _, I, C, N = Ba, S = 0.5, b = Va(z, S), A, F;
|
|
15712
15712
|
function D(O) {
|
|
15713
15713
|
return O = g(O[0] * Ze, O[1] * Ze), [O[0] * e + o, s - O[1] * e];
|
|
15714
15714
|
}
|
|
@@ -15719,11 +15719,11 @@ function ef(r) {
|
|
|
15719
15719
|
return O = t(O, Y), [O[0] * e + o, s - O[1] * e];
|
|
15720
15720
|
}
|
|
15721
15721
|
D.stream = function(O) {
|
|
15722
|
-
return A && F === O ? A : A = $c(m(h, b(
|
|
15722
|
+
return A && F === O ? A : A = $c(m(h, b(N(F = O))));
|
|
15723
15723
|
}, D.clipAngle = function(O) {
|
|
15724
15724
|
return arguments.length ? (m = +O ? jc(p = O * Ze, 6 * Ze) : (p = null, Ga), rt()) : p * yr;
|
|
15725
15725
|
}, D.clipExtent = function(O) {
|
|
15726
|
-
return arguments.length ? (
|
|
15726
|
+
return arguments.length ? (N = O == null ? (d = _ = I = C = null, Ba) : zc(d = +O[0][0], _ = +O[0][1], I = +O[1][0], C = +O[1][1]), rt()) : d == null ? null : [[d, _], [I, C]];
|
|
15727
15727
|
}, D.scale = function(O) {
|
|
15728
15728
|
return arguments.length ? (e = +O, q()) : e;
|
|
15729
15729
|
}, D.translate = function(O) {
|
|
@@ -15801,14 +15801,14 @@ function sf(r, t, e) {
|
|
|
15801
15801
|
return ru(r, function(s) {
|
|
15802
15802
|
var a = Ro(s, t, n, i);
|
|
15803
15803
|
a && o.push(a);
|
|
15804
|
-
}),
|
|
15804
|
+
}), xs(o);
|
|
15805
15805
|
case "FeatureCollection":
|
|
15806
15806
|
return Ca(r, function(s) {
|
|
15807
15807
|
var a = Ro(s, t, n, i);
|
|
15808
15808
|
a && Ca(a, function(u) {
|
|
15809
15809
|
u && o.push(u);
|
|
15810
15810
|
});
|
|
15811
|
-
}),
|
|
15811
|
+
}), xs(o);
|
|
15812
15812
|
}
|
|
15813
15813
|
return Ro(r, t, n, i);
|
|
15814
15814
|
}
|
|
@@ -15819,7 +15819,7 @@ function Ro(r, t, e, n) {
|
|
|
15819
15819
|
return ru(r, function(m) {
|
|
15820
15820
|
var d = Ro(m, t, e, n);
|
|
15821
15821
|
d && s.push(d);
|
|
15822
|
-
}),
|
|
15822
|
+
}), xs(s);
|
|
15823
15823
|
}
|
|
15824
15824
|
var a = af(o), u = {
|
|
15825
15825
|
type: o.type,
|
|
@@ -15982,15 +15982,15 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15982
15982
|
setMarkers(_, I) {
|
|
15983
15983
|
if (!e)
|
|
15984
15984
|
return;
|
|
15985
|
-
function C(
|
|
15985
|
+
function C(N) {
|
|
15986
15986
|
var S;
|
|
15987
|
-
(S = r.getSource("full-geom")) == null || S.setData(
|
|
15987
|
+
(S = r.getSource("full-geom")) == null || S.setData(N);
|
|
15988
15988
|
}
|
|
15989
|
-
for (const
|
|
15990
|
-
|
|
15989
|
+
for (const N of l)
|
|
15990
|
+
N.remove();
|
|
15991
15991
|
if (l.length = 0, C(Ya), !!t) {
|
|
15992
15992
|
if (I) {
|
|
15993
|
-
let
|
|
15993
|
+
let N = !1;
|
|
15994
15994
|
if (I.geometry.type === "GeometryCollection") {
|
|
15995
15995
|
const S = I.geometry.geometries.filter(
|
|
15996
15996
|
(b) => b.type === "Polygon" || b.type === "MultiPolygon"
|
|
@@ -15999,7 +15999,7 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
15999
15999
|
let b = S.pop();
|
|
16000
16000
|
for (const A of S)
|
|
16001
16001
|
b = fc(b, A);
|
|
16002
|
-
Xa({ ...I, geometry: b }, C),
|
|
16002
|
+
Xa({ ...I, geometry: b }, C), N = !0;
|
|
16003
16003
|
} else {
|
|
16004
16004
|
const b = I.geometry.geometries.filter(
|
|
16005
16005
|
(A) => A.type === "LineString" || A.type === "MultiLineString"
|
|
@@ -16007,10 +16007,10 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16007
16007
|
b.length > 0 && (C({
|
|
16008
16008
|
...I,
|
|
16009
16009
|
geometry: { type: "GeometryCollection", geometries: b }
|
|
16010
|
-
}),
|
|
16010
|
+
}), N = !0);
|
|
16011
16011
|
}
|
|
16012
16012
|
}
|
|
16013
|
-
if (!
|
|
16013
|
+
if (!N) {
|
|
16014
16014
|
if (I.geometry.type === "Polygon" || I.geometry.type === "MultiPolygon")
|
|
16015
16015
|
Xa(I, C);
|
|
16016
16016
|
else if (I.geometry.type === "LineString" || I.geometry.type === "MultiLineString") {
|
|
@@ -16023,24 +16023,24 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16023
16023
|
);
|
|
16024
16024
|
}
|
|
16025
16025
|
if (n)
|
|
16026
|
-
for (const
|
|
16027
|
-
if (
|
|
16026
|
+
for (const N of _ ?? []) {
|
|
16027
|
+
if (N === I)
|
|
16028
16028
|
continue;
|
|
16029
|
-
const S = (typeof n == "object" ? new t.Marker(n) : m(!0)).setLngLat(
|
|
16029
|
+
const S = (typeof n == "object" ? new t.Marker(n) : m(!0)).setLngLat(N.center).setPopup(
|
|
16030
16030
|
new t.Popup({
|
|
16031
16031
|
offset: [1, -27],
|
|
16032
16032
|
closeButton: !1,
|
|
16033
16033
|
closeOnMove: !0,
|
|
16034
16034
|
className: "maptiler-gc-popup"
|
|
16035
|
-
}).setText(
|
|
16035
|
+
}).setText(N.place_name.replace(/,.*/, ""))
|
|
16036
16036
|
).addTo(r), b = S.getElement();
|
|
16037
16037
|
b.addEventListener("click", (A) => {
|
|
16038
|
-
A.stopPropagation(), a == null || a({ type: "markerClick", id:
|
|
16038
|
+
A.stopPropagation(), a == null || a({ type: "markerClick", id: N.id });
|
|
16039
16039
|
}), b.addEventListener("mouseenter", () => {
|
|
16040
|
-
a == null || a({ type: "markerMouseEnter", id:
|
|
16040
|
+
a == null || a({ type: "markerMouseEnter", id: N.id }), S.togglePopup();
|
|
16041
16041
|
}), b.addEventListener("mouseleave", () => {
|
|
16042
|
-
a == null || a({ type: "markerMouseLeave", id:
|
|
16043
|
-
}), b.classList.toggle("marker-fuzzy", !!
|
|
16042
|
+
a == null || a({ type: "markerMouseLeave", id: N.id }), S.togglePopup();
|
|
16043
|
+
}), b.classList.toggle("marker-fuzzy", !!N.matching_text), l.push(S);
|
|
16044
16044
|
}
|
|
16045
16045
|
}
|
|
16046
16046
|
},
|
|
@@ -16059,7 +16059,7 @@ class hf extends EventTarget {
|
|
|
16059
16059
|
}
|
|
16060
16060
|
onAdd(e) {
|
|
16061
16061
|
const n = document.createElement("div");
|
|
16062
|
-
n.className = "mapboxgl-ctrl-geocoder mapboxgl-ctrl maplibregl-ctrl-geocoder maplibregl-ctrl";
|
|
16062
|
+
n.className = "mapboxgl-ctrl-geocoder mapboxgl-ctrl maplibregl-ctrl-geocoder maplibregl-ctrl mapboxgl-ctrl-group";
|
|
16063
16063
|
const {
|
|
16064
16064
|
marker: i,
|
|
16065
16065
|
showResultMarkers: o,
|
|
@@ -16071,7 +16071,7 @@ class hf extends EventTarget {
|
|
|
16071
16071
|
const { primaryLanguage: g, apiKey: p } = e.getSdkConfig();
|
|
16072
16072
|
c.apiKey = p;
|
|
16073
16073
|
const m = /^([a-z]{2})($|_|-)/.exec(g);
|
|
16074
|
-
m && (c.language = m[1]);
|
|
16074
|
+
m && (c.language = m[1]), n.className += " maptiler-ctrl";
|
|
16075
16075
|
}
|
|
16076
16076
|
const h = {
|
|
16077
16077
|
mapController: lf(
|