@maptiler/geocoding-control 2.0.0-rc.5 → 2.0.0-rc.6
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/leaflet.js +293 -293
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +2 -2
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +129 -129
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +2 -2
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +129 -129
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +2 -2
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +178 -178
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +1 -1
- package/react.umd.js +1 -1
- package/svelte/GeocodingControl.svelte +1 -1
- package/svelte/MapLibreBasedGeocodingControl.js +2 -2
- package/svelte/leaflet.js +2 -2
- package/svelte/openlayers.js +2 -2
- package/vanilla.js +1 -1
- package/vanilla.umd.js +1 -1
package/openlayers.js
CHANGED
|
@@ -4,7 +4,7 @@ var Vt = (n) => {
|
|
|
4
4
|
};
|
|
5
5
|
var mn = (n, e, t) => e in n ? gn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
6
6
|
var re = (n, e, t) => mn(n, typeof e != "symbol" ? e + "" : e, t), Zt = (n, e, t) => e.has(n) || Vt("Cannot " + t);
|
|
7
|
-
var
|
|
7
|
+
var G = (n, e, t) => (Zt(n, e, "read from private field"), t ? t.call(n) : e.get(n)), tt = (n, e, t) => e.has(n) ? Vt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), it = (n, e, t, i) => (Zt(n, e, "write to private field"), i ? i.call(n, t) : e.set(n, t), t);
|
|
8
8
|
import { Control as yn } from "ol/control";
|
|
9
9
|
import Me from "ol/events/Event";
|
|
10
10
|
import { Feature as fe } from "ol";
|
|
@@ -17,7 +17,7 @@ import En from "ol/style/Icon";
|
|
|
17
17
|
import ei from "ol/style/Stroke";
|
|
18
18
|
import Ln from "ol/style/Style";
|
|
19
19
|
import Sn from "ol/style/Text";
|
|
20
|
-
function
|
|
20
|
+
function j() {
|
|
21
21
|
}
|
|
22
22
|
function xn(n, e) {
|
|
23
23
|
for (const t in e) n[t] = e[t];
|
|
@@ -32,7 +32,7 @@ function Wi(n) {
|
|
|
32
32
|
function ti() {
|
|
33
33
|
return /* @__PURE__ */ Object.create(null);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function pe(n) {
|
|
36
36
|
n.forEach(Wi);
|
|
37
37
|
}
|
|
38
38
|
function Ai(n) {
|
|
@@ -93,7 +93,7 @@ function ii(n) {
|
|
|
93
93
|
function T(n, e) {
|
|
94
94
|
n.appendChild(e);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function q(n, e, t) {
|
|
97
97
|
n.insertBefore(e, t || null);
|
|
98
98
|
}
|
|
99
99
|
function B(n) {
|
|
@@ -102,7 +102,7 @@ function B(n) {
|
|
|
102
102
|
function W(n) {
|
|
103
103
|
return document.createElement(n);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function he(n) {
|
|
106
106
|
return document.createElementNS("http://www.w3.org/2000/svg", n);
|
|
107
107
|
}
|
|
108
108
|
function Le(n) {
|
|
@@ -128,7 +128,7 @@ function p(n, e, t) {
|
|
|
128
128
|
function In(n) {
|
|
129
129
|
return Array.from(n.childNodes);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Qe(n, e) {
|
|
132
132
|
e = "" + e, n.data !== e && (n.data = /** @type {string} */
|
|
133
133
|
e);
|
|
134
134
|
}
|
|
@@ -141,13 +141,13 @@ function we(n, e, t) {
|
|
|
141
141
|
function On(n, e, { bubbles: t = !1, cancelable: i = !1 } = {}) {
|
|
142
142
|
return new CustomEvent(n, { detail: e, bubbles: t, cancelable: i });
|
|
143
143
|
}
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
|
|
144
|
+
let Ve;
|
|
145
|
+
function qe(n) {
|
|
146
|
+
Ve = n;
|
|
147
147
|
}
|
|
148
148
|
function Bi() {
|
|
149
|
-
if (!
|
|
150
|
-
return
|
|
149
|
+
if (!Ve) throw new Error("Function called outside component initialization");
|
|
150
|
+
return Ve;
|
|
151
151
|
}
|
|
152
152
|
function Wn(n) {
|
|
153
153
|
Bi().$$.on_destroy.push(n);
|
|
@@ -189,17 +189,17 @@ let We = 0;
|
|
|
189
189
|
function Fi() {
|
|
190
190
|
if (We !== 0)
|
|
191
191
|
return;
|
|
192
|
-
const n =
|
|
192
|
+
const n = Ve;
|
|
193
193
|
do {
|
|
194
194
|
try {
|
|
195
195
|
for (; We < ze.length; ) {
|
|
196
196
|
const e = ze[We];
|
|
197
|
-
We++,
|
|
197
|
+
We++, qe(e), Fn(e.$$);
|
|
198
198
|
}
|
|
199
199
|
} catch (e) {
|
|
200
200
|
throw ze.length = 0, We = 0, e;
|
|
201
201
|
}
|
|
202
|
-
for (
|
|
202
|
+
for (qe(null), ze.length = 0, We = 0; Nt.length; ) Nt.pop()();
|
|
203
203
|
for (let e = 0; e < Be.length; e += 1) {
|
|
204
204
|
const t = Be[e];
|
|
205
205
|
Mt.has(t) || (Mt.add(t), t());
|
|
@@ -208,11 +208,11 @@ function Fi() {
|
|
|
208
208
|
} while (ze.length);
|
|
209
209
|
for (; oi.length; )
|
|
210
210
|
oi.pop()();
|
|
211
|
-
Pt = !1, Mt.clear(),
|
|
211
|
+
Pt = !1, Mt.clear(), qe(n);
|
|
212
212
|
}
|
|
213
213
|
function Fn(n) {
|
|
214
214
|
if (n.fragment !== null) {
|
|
215
|
-
n.update(),
|
|
215
|
+
n.update(), pe(n.before_update);
|
|
216
216
|
const e = n.dirty;
|
|
217
217
|
n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(Rt);
|
|
218
218
|
}
|
|
@@ -232,7 +232,7 @@ function st() {
|
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
function lt() {
|
|
235
|
-
Ne.r ||
|
|
235
|
+
Ne.r || pe(Ne.c), Ne = Ne.p;
|
|
236
236
|
}
|
|
237
237
|
function Q(n, e) {
|
|
238
238
|
n && n.i && (ot.delete(n), n.i(e));
|
|
@@ -276,34 +276,34 @@ function Gn(n, e, t, i, r, o, l, s, c, u, d, a) {
|
|
|
276
276
|
m.has(x.key) || c(x, l);
|
|
277
277
|
}
|
|
278
278
|
for (; h; ) S(y[h - 1]);
|
|
279
|
-
return
|
|
279
|
+
return pe(L), y;
|
|
280
280
|
}
|
|
281
281
|
function Se(n) {
|
|
282
282
|
n && n.c();
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function me(n, e, t) {
|
|
285
285
|
const { fragment: i, after_update: r } = n.$$;
|
|
286
286
|
i && i.m(e, t), Rt(() => {
|
|
287
287
|
const o = n.$$.on_mount.map(Wi).filter(Ai);
|
|
288
|
-
n.$$.on_destroy ? n.$$.on_destroy.push(...o) :
|
|
288
|
+
n.$$.on_destroy ? n.$$.on_destroy.push(...o) : pe(o), n.$$.on_mount = [];
|
|
289
289
|
}), r.forEach(Rt);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function ye(n, e) {
|
|
292
292
|
const t = n.$$;
|
|
293
|
-
t.fragment !== null && (Dn(t.after_update),
|
|
293
|
+
t.fragment !== null && (Dn(t.after_update), pe(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
294
294
|
}
|
|
295
295
|
function jn(n, e) {
|
|
296
296
|
n.$$.dirty[0] === -1 && (ze.push(n), Bn(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
297
297
|
}
|
|
298
298
|
function Re(n, e, t, i, r, o, l = null, s = [-1]) {
|
|
299
|
-
const c =
|
|
300
|
-
|
|
299
|
+
const c = Ve;
|
|
300
|
+
qe(n);
|
|
301
301
|
const u = n.$$ = {
|
|
302
302
|
fragment: null,
|
|
303
303
|
ctx: [],
|
|
304
304
|
// state
|
|
305
305
|
props: o,
|
|
306
|
-
update:
|
|
306
|
+
update: j,
|
|
307
307
|
not_equal: r,
|
|
308
308
|
bound: ti(),
|
|
309
309
|
// lifecycle
|
|
@@ -324,15 +324,15 @@ function Re(n, e, t, i, r, o, l = null, s = [-1]) {
|
|
|
324
324
|
if (u.ctx = t ? t(n, e.props || {}, (a, f, ...h) => {
|
|
325
325
|
const v = h.length ? h[0] : f;
|
|
326
326
|
return u.ctx && r(u.ctx[a], u.ctx[a] = v) && (!u.skip_bound && u.bound[a] && u.bound[a](v), d && jn(n, a)), f;
|
|
327
|
-
}) : [], u.update(), d = !0,
|
|
327
|
+
}) : [], u.update(), d = !0, pe(u.before_update), u.fragment = i ? i(u.ctx) : !1, e.target) {
|
|
328
328
|
if (e.hydrate) {
|
|
329
329
|
const a = In(e.target);
|
|
330
330
|
u.fragment && u.fragment.l(a), a.forEach(B);
|
|
331
331
|
} else
|
|
332
332
|
u.fragment && u.fragment.c();
|
|
333
|
-
e.intro && Q(n.$$.fragment),
|
|
333
|
+
e.intro && Q(n.$$.fragment), me(n, e.target, e.anchor), Fi();
|
|
334
334
|
}
|
|
335
|
-
|
|
335
|
+
qe(c);
|
|
336
336
|
}
|
|
337
337
|
class Te {
|
|
338
338
|
constructor() {
|
|
@@ -355,7 +355,7 @@ class Te {
|
|
|
355
355
|
}
|
|
356
356
|
/** @returns {void} */
|
|
357
357
|
$destroy() {
|
|
358
|
-
|
|
358
|
+
ye(this, 1), this.$destroy = j;
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
361
361
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -365,7 +365,7 @@ class Te {
|
|
|
365
365
|
*/
|
|
366
366
|
$on(e, t) {
|
|
367
367
|
if (!Ai(t))
|
|
368
|
-
return
|
|
368
|
+
return j;
|
|
369
369
|
const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
370
370
|
return i.push(t), () => {
|
|
371
371
|
const r = i.indexOf(t);
|
|
@@ -386,14 +386,14 @@ function Qn(n) {
|
|
|
386
386
|
let e, t;
|
|
387
387
|
return {
|
|
388
388
|
c() {
|
|
389
|
-
e =
|
|
389
|
+
e = he("svg"), t = he("path"), p(t, "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"), p(e, "viewBox", "0 0 14 14"), p(e, "width", "13"), p(e, "height", "13"), p(e, "class", "svelte-en2qvf");
|
|
390
390
|
},
|
|
391
391
|
m(i, r) {
|
|
392
|
-
|
|
392
|
+
q(i, e, r), T(e, t);
|
|
393
393
|
},
|
|
394
|
-
p:
|
|
395
|
-
i:
|
|
396
|
-
o:
|
|
394
|
+
p: j,
|
|
395
|
+
i: j,
|
|
396
|
+
o: j,
|
|
397
397
|
d(i) {
|
|
398
398
|
i && B(e);
|
|
399
399
|
}
|
|
@@ -408,14 +408,14 @@ function Vn(n) {
|
|
|
408
408
|
let e, t;
|
|
409
409
|
return {
|
|
410
410
|
c() {
|
|
411
|
-
e =
|
|
411
|
+
e = he("svg"), t = he("path"), p(t, "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"), p(e, "viewBox", "0 0 30 30"), p(e, "fill", "none"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "class", "svelte-d2loi5");
|
|
412
412
|
},
|
|
413
413
|
m(i, r) {
|
|
414
|
-
|
|
414
|
+
q(i, e, r), T(e, t);
|
|
415
415
|
},
|
|
416
|
-
p:
|
|
417
|
-
i:
|
|
418
|
-
o:
|
|
416
|
+
p: j,
|
|
417
|
+
i: j,
|
|
418
|
+
o: j,
|
|
419
419
|
d(i) {
|
|
420
420
|
i && B(e);
|
|
421
421
|
}
|
|
@@ -439,7 +439,7 @@ function Zn(n) {
|
|
|
439
439
|
), p(e, "class", "svelte-ltkwvy");
|
|
440
440
|
},
|
|
441
441
|
m(i, r) {
|
|
442
|
-
|
|
442
|
+
q(i, e, r);
|
|
443
443
|
},
|
|
444
444
|
p(i, r) {
|
|
445
445
|
r & /*iconsBaseUrl*/
|
|
@@ -470,7 +470,7 @@ function Hn(n) {
|
|
|
470
470
|
), p(e, "class", "svelte-ltkwvy");
|
|
471
471
|
},
|
|
472
472
|
m(i, r) {
|
|
473
|
-
|
|
473
|
+
q(i, e, r);
|
|
474
474
|
},
|
|
475
475
|
p(i, r) {
|
|
476
476
|
r & /*iconsBaseUrl*/
|
|
@@ -501,7 +501,7 @@ function Yn(n) {
|
|
|
501
501
|
), p(e, "class", "svelte-ltkwvy");
|
|
502
502
|
},
|
|
503
503
|
m(i, r) {
|
|
504
|
-
|
|
504
|
+
q(i, e, r);
|
|
505
505
|
},
|
|
506
506
|
p(i, r) {
|
|
507
507
|
r & /*iconsBaseUrl*/
|
|
@@ -532,7 +532,7 @@ function Xn(n) {
|
|
|
532
532
|
), p(e, "class", "svelte-ltkwvy");
|
|
533
533
|
},
|
|
534
534
|
m(i, r) {
|
|
535
|
-
|
|
535
|
+
q(i, e, r);
|
|
536
536
|
},
|
|
537
537
|
p(i, r) {
|
|
538
538
|
r & /*iconsBaseUrl*/
|
|
@@ -563,7 +563,7 @@ function Kn(n) {
|
|
|
563
563
|
), p(e, "class", "svelte-ltkwvy");
|
|
564
564
|
},
|
|
565
565
|
m(i, r) {
|
|
566
|
-
|
|
566
|
+
q(i, e, r);
|
|
567
567
|
},
|
|
568
568
|
p(i, r) {
|
|
569
569
|
r & /*iconsBaseUrl*/
|
|
@@ -594,7 +594,7 @@ function Jn(n) {
|
|
|
594
594
|
), p(e, "class", "svelte-ltkwvy");
|
|
595
595
|
},
|
|
596
596
|
m(i, r) {
|
|
597
|
-
|
|
597
|
+
q(i, e, r);
|
|
598
598
|
},
|
|
599
599
|
p(i, r) {
|
|
600
600
|
r & /*iconsBaseUrl*/
|
|
@@ -625,7 +625,7 @@ function $n(n) {
|
|
|
625
625
|
), p(e, "class", "svelte-ltkwvy");
|
|
626
626
|
},
|
|
627
627
|
m(i, r) {
|
|
628
|
-
|
|
628
|
+
q(i, e, r);
|
|
629
629
|
},
|
|
630
630
|
p(i, r) {
|
|
631
631
|
r & /*iconsBaseUrl*/
|
|
@@ -656,7 +656,7 @@ function er(n) {
|
|
|
656
656
|
), p(e, "class", "svelte-ltkwvy");
|
|
657
657
|
},
|
|
658
658
|
m(o, l) {
|
|
659
|
-
|
|
659
|
+
q(o, e, l), i || (r = ee(
|
|
660
660
|
e,
|
|
661
661
|
"error",
|
|
662
662
|
/*error_handler*/
|
|
@@ -689,11 +689,11 @@ function li(n) {
|
|
|
689
689
|
), p(e, "class", "secondary svelte-ltkwvy");
|
|
690
690
|
},
|
|
691
691
|
m(i, r) {
|
|
692
|
-
|
|
692
|
+
q(i, e, r), T(e, t);
|
|
693
693
|
},
|
|
694
694
|
p(i, r) {
|
|
695
695
|
r & /*placeType*/
|
|
696
|
-
64 &&
|
|
696
|
+
64 && Qe(
|
|
697
697
|
t,
|
|
698
698
|
/*placeType*/
|
|
699
699
|
i[6]
|
|
@@ -766,7 +766,7 @@ function tr(n) {
|
|
|
766
766
|
);
|
|
767
767
|
},
|
|
768
768
|
m(w, C) {
|
|
769
|
-
|
|
769
|
+
q(w, e, C), S.m(e, null), T(e, l), T(e, s), T(s, c), T(c, u), T(u, a), T(c, f), x && x.m(c, null), T(s, v), T(s, b), T(b, m), E || (L = [
|
|
770
770
|
ee(
|
|
771
771
|
e,
|
|
772
772
|
"mouseenter",
|
|
@@ -790,7 +790,7 @@ function tr(n) {
|
|
|
790
790
|
) : (
|
|
791
791
|
/*feature*/
|
|
792
792
|
w[0].place_name.replace(/,.*/, "")
|
|
793
|
-
)) + "") &&
|
|
793
|
+
)) + "") && Qe(a, d), C & /*showPlaceType, feature, imageUrl*/
|
|
794
794
|
37 && (h = /*showPlaceType*/
|
|
795
795
|
w[2] === "always" || /*showPlaceType*/
|
|
796
796
|
w[2] !== "never" && !/*feature*/
|
|
@@ -805,7 +805,7 @@ function tr(n) {
|
|
|
805
805
|
(w[7] ? "" : (
|
|
806
806
|
/*feature*/
|
|
807
807
|
w[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
808
|
-
)) + "") &&
|
|
808
|
+
)) + "") && Qe(m, y), C & /*selected*/
|
|
809
809
|
2 && p(
|
|
810
810
|
e,
|
|
811
811
|
"data-selected",
|
|
@@ -819,10 +819,10 @@ function tr(n) {
|
|
|
819
819
|
w[1]
|
|
820
820
|
);
|
|
821
821
|
},
|
|
822
|
-
i:
|
|
823
|
-
o:
|
|
822
|
+
i: j,
|
|
823
|
+
o: j,
|
|
824
824
|
d(w) {
|
|
825
|
-
w && B(e), S.d(), x && x.d(), E = !1,
|
|
825
|
+
w && B(e), S.d(), x && x.d(), E = !1, pe(L);
|
|
826
826
|
}
|
|
827
827
|
};
|
|
828
828
|
}
|
|
@@ -888,11 +888,11 @@ function rr(n) {
|
|
|
888
888
|
e = W("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', p(e, "class", "svelte-7cmwmc");
|
|
889
889
|
},
|
|
890
890
|
m(t, i) {
|
|
891
|
-
|
|
891
|
+
q(t, e, i);
|
|
892
892
|
},
|
|
893
|
-
p:
|
|
894
|
-
i:
|
|
895
|
-
o:
|
|
893
|
+
p: j,
|
|
894
|
+
i: j,
|
|
895
|
+
o: j,
|
|
896
896
|
d(t) {
|
|
897
897
|
t && B(e);
|
|
898
898
|
}
|
|
@@ -907,14 +907,14 @@ function sr(n) {
|
|
|
907
907
|
let e, t;
|
|
908
908
|
return {
|
|
909
909
|
c() {
|
|
910
|
-
e =
|
|
910
|
+
e = he("svg"), t = he("path"), p(t, "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"), p(e, "viewBox", "0 0 60.006 21.412"), p(e, "width", "14"), p(e, "height", "20"), p(e, "class", "svelte-en2qvf");
|
|
911
911
|
},
|
|
912
912
|
m(i, r) {
|
|
913
|
-
|
|
913
|
+
q(i, e, r), T(e, t);
|
|
914
914
|
},
|
|
915
|
-
p:
|
|
916
|
-
i:
|
|
917
|
-
o:
|
|
915
|
+
p: j,
|
|
916
|
+
i: j,
|
|
917
|
+
o: j,
|
|
918
918
|
d(i) {
|
|
919
919
|
i && B(e);
|
|
920
920
|
}
|
|
@@ -929,14 +929,14 @@ function ur(n) {
|
|
|
929
929
|
let e, t, i;
|
|
930
930
|
return {
|
|
931
931
|
c() {
|
|
932
|
-
e =
|
|
932
|
+
e = he("svg"), t = he("circle"), i = he("path"), p(t, "cx", "4.789"), p(t, "cy", "4.787"), p(t, "r", "3.85"), p(t, "class", "svelte-1aq105l"), p(i, "d", "M12.063 12.063 7.635 7.635"), p(i, "class", "svelte-1aq105l"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "width", "13"), p(e, "height", "13"), p(e, "viewBox", "0 0 13 13"), p(e, "class", "svelte-1aq105l");
|
|
933
933
|
},
|
|
934
934
|
m(r, o) {
|
|
935
|
-
|
|
935
|
+
q(r, e, o), T(e, t), T(e, i);
|
|
936
936
|
},
|
|
937
|
-
p:
|
|
938
|
-
i:
|
|
939
|
-
o:
|
|
937
|
+
p: j,
|
|
938
|
+
i: j,
|
|
939
|
+
o: j,
|
|
940
940
|
d(r) {
|
|
941
941
|
r && B(e);
|
|
942
942
|
}
|
|
@@ -955,7 +955,7 @@ function at(n) {
|
|
|
955
955
|
const e = [...n];
|
|
956
956
|
return e[2] < e[0] && (Math.abs((e[0] + e[2] + 360) / 2) > Math.abs((e[0] - 360 + e[2]) / 2) ? e[0] -= 360 : e[2] += 360), e;
|
|
957
957
|
}
|
|
958
|
-
let
|
|
958
|
+
let Ue;
|
|
959
959
|
async function fr(n, e, t) {
|
|
960
960
|
const i = n == null ? void 0 : n.getCenterAndZoom();
|
|
961
961
|
for (const r of e ?? [])
|
|
@@ -963,10 +963,10 @@ async function fr(n, e, t) {
|
|
|
963
963
|
if (r.type === "fixed")
|
|
964
964
|
return r.coordinates.join(",");
|
|
965
965
|
e: if (r.type === "client-geolocation") {
|
|
966
|
-
if (
|
|
967
|
-
if (!
|
|
966
|
+
if (Ue && r.cachedLocationExpiry && Ue.time + r.cachedLocationExpiry > Date.now()) {
|
|
967
|
+
if (!Ue.coords)
|
|
968
968
|
break e;
|
|
969
|
-
return
|
|
969
|
+
return Ue.coords;
|
|
970
970
|
}
|
|
971
971
|
let o;
|
|
972
972
|
try {
|
|
@@ -987,7 +987,7 @@ async function fr(n, e, t) {
|
|
|
987
987
|
}), o;
|
|
988
988
|
} catch {
|
|
989
989
|
} finally {
|
|
990
|
-
r.cachedLocationExpiry && (
|
|
990
|
+
r.cachedLocationExpiry && (Ue = {
|
|
991
991
|
time: Date.now(),
|
|
992
992
|
coords: o
|
|
993
993
|
});
|
|
@@ -1034,12 +1034,12 @@ function Bt(n, e) {
|
|
|
1034
1034
|
if (dr.test(n))
|
|
1035
1035
|
throw new Error("invalid coordinate value");
|
|
1036
1036
|
if (ui.test(n))
|
|
1037
|
-
if (s = ui.exec(n), c =
|
|
1037
|
+
if (s = ui.exec(n), c = Ge(s), c)
|
|
1038
1038
|
t = Math.abs(s[1]) + s[2] / 60, Number(s[1]) < 0 && (t *= -1), i = Math.abs(s[3]) + s[4] / 60, Number(s[3]) < 0 && (i *= -1), l = "DM";
|
|
1039
1039
|
else
|
|
1040
1040
|
throw new Error("invalid coordinate format");
|
|
1041
1041
|
else if (ai.test(n))
|
|
1042
|
-
if (s = ai.exec(n), c =
|
|
1042
|
+
if (s = ai.exec(n), c = Ge(s), c) {
|
|
1043
1043
|
if (t = s[2], i = s[6], t.includes(",") && (t = t.replace(",", ".")), i.includes(",") && (i = i.replace(",", ".")), l = "DD", Number(Math.round(t)) == Number(t))
|
|
1044
1044
|
throw new Error("integer only coordinate provided");
|
|
1045
1045
|
if (Number(Math.round(i)) == Number(i))
|
|
@@ -1048,17 +1048,17 @@ function Bt(n, e) {
|
|
|
1048
1048
|
} else
|
|
1049
1049
|
throw new Error("invalid decimal coordinate format");
|
|
1050
1050
|
else if (ci.test(n))
|
|
1051
|
-
if (s = ci.exec(n), c =
|
|
1051
|
+
if (s = ci.exec(n), c = Ge(s), c)
|
|
1052
1052
|
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), i = Math.abs(parseInt(s[9])), s[11] && (i += s[11] / 60), s[13] && (i += s[13].replace(",", ".") / 3600), parseInt(s[9]) < 0 && (i = -1 * i), s[1] ? (r = s[1], o = s[8]) : s[7] && (r = s[7], o = s[14]);
|
|
1053
1053
|
else
|
|
1054
1054
|
throw new Error("invalid DMS coordinates format");
|
|
1055
1055
|
else if (fi.test(n))
|
|
1056
|
-
if (s = fi.exec(n), c =
|
|
1056
|
+
if (s = fi.exec(n), c = Ge(s), c)
|
|
1057
1057
|
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6] / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), i = Math.abs(parseInt(s[10])), s[12] && (i += s[12] / 60), s[14] && (i += s[14] / 3600), parseInt(s[10]) < 0 && (i = -1 * i), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
|
|
1058
1058
|
else
|
|
1059
1059
|
throw new Error("invalid DMS coordinates format");
|
|
1060
1060
|
else if (di.test(n)) {
|
|
1061
|
-
if (s = di.exec(n), c =
|
|
1061
|
+
if (s = di.exec(n), c = Ge(s), s.filter((u) => u).length <= 5)
|
|
1062
1062
|
throw new Error("invalid coordinates format");
|
|
1063
1063
|
if (c)
|
|
1064
1064
|
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4].replace(",", ".") / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), i = Math.abs(parseInt(s[10])), s[12] && (i += s[12].replace(",", ".") / 60), s[14] && (i += s[14].replace(",", ".") / 3600), parseInt(s[10]) < 0 && (i = -1 * i), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
|
|
@@ -1118,7 +1118,7 @@ function Bt(n, e) {
|
|
|
1118
1118
|
} else
|
|
1119
1119
|
throw new Error("coordinates pattern match failed");
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1121
|
+
function Ge(n) {
|
|
1122
1122
|
if (!isNaN(n[0]))
|
|
1123
1123
|
return !1;
|
|
1124
1124
|
const e = [...n];
|
|
@@ -1542,7 +1542,7 @@ function yi(n) {
|
|
|
1542
1542
|
Se(e.$$.fragment);
|
|
1543
1543
|
},
|
|
1544
1544
|
m(i, r) {
|
|
1545
|
-
|
|
1545
|
+
me(e, i, r), t = !0;
|
|
1546
1546
|
},
|
|
1547
1547
|
i(i) {
|
|
1548
1548
|
t || (Q(e.$$.fragment, i), t = !0);
|
|
@@ -1551,7 +1551,7 @@ function yi(n) {
|
|
|
1551
1551
|
X(e.$$.fragment, i), t = !1;
|
|
1552
1552
|
},
|
|
1553
1553
|
d(i) {
|
|
1554
|
-
|
|
1554
|
+
ye(e, i);
|
|
1555
1555
|
}
|
|
1556
1556
|
};
|
|
1557
1557
|
}
|
|
@@ -1572,7 +1572,7 @@ function pi(n) {
|
|
|
1572
1572
|
);
|
|
1573
1573
|
},
|
|
1574
1574
|
m(l, s) {
|
|
1575
|
-
|
|
1575
|
+
q(l, e, s), me(t, e, null), i = !0, r || (o = ee(
|
|
1576
1576
|
e,
|
|
1577
1577
|
"click",
|
|
1578
1578
|
/*click_handler_2*/
|
|
@@ -1601,7 +1601,7 @@ function pi(n) {
|
|
|
1601
1601
|
X(t.$$.fragment, l), i = !1;
|
|
1602
1602
|
},
|
|
1603
1603
|
d(l) {
|
|
1604
|
-
l && B(e),
|
|
1604
|
+
l && B(e), ye(t), r = !1, o();
|
|
1605
1605
|
}
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
@@ -1628,7 +1628,7 @@ function Lr(n) {
|
|
|
1628
1628
|
p(e, "class", "options svelte-bz0zu3");
|
|
1629
1629
|
},
|
|
1630
1630
|
m(u, d) {
|
|
1631
|
-
|
|
1631
|
+
q(u, e, d);
|
|
1632
1632
|
for (let a = 0; a < t.length; a += 1)
|
|
1633
1633
|
t[a] && t[a].m(e, null);
|
|
1634
1634
|
r = !0, o || (l = [
|
|
@@ -1669,7 +1669,7 @@ function Lr(n) {
|
|
|
1669
1669
|
u && B(e);
|
|
1670
1670
|
for (let d = 0; d < t.length; d += 1)
|
|
1671
1671
|
t[d].d();
|
|
1672
|
-
o = !1,
|
|
1672
|
+
o = !1, pe(l);
|
|
1673
1673
|
}
|
|
1674
1674
|
};
|
|
1675
1675
|
}
|
|
@@ -1683,11 +1683,11 @@ function Sr(n) {
|
|
|
1683
1683
|
), p(r, "class", "svelte-bz0zu3"), p(e, "class", "no-results svelte-bz0zu3");
|
|
1684
1684
|
},
|
|
1685
1685
|
m(s, c) {
|
|
1686
|
-
|
|
1686
|
+
q(s, e, c), me(t, e, null), T(e, i), T(e, r), T(r, o), l = !0;
|
|
1687
1687
|
},
|
|
1688
1688
|
p(s, c) {
|
|
1689
1689
|
(!l || c[0] & /*noResultsMessage*/
|
|
1690
|
-
128) &&
|
|
1690
|
+
128) && Qe(
|
|
1691
1691
|
o,
|
|
1692
1692
|
/*noResultsMessage*/
|
|
1693
1693
|
s[7]
|
|
@@ -1700,7 +1700,7 @@ function Sr(n) {
|
|
|
1700
1700
|
X(t.$$.fragment, s), l = !1;
|
|
1701
1701
|
},
|
|
1702
1702
|
d(s) {
|
|
1703
|
-
s && B(e),
|
|
1703
|
+
s && B(e), ye(t);
|
|
1704
1704
|
}
|
|
1705
1705
|
};
|
|
1706
1706
|
}
|
|
@@ -1711,11 +1711,11 @@ function xr(n) {
|
|
|
1711
1711
|
t = Le(e);
|
|
1712
1712
|
},
|
|
1713
1713
|
m(i, r) {
|
|
1714
|
-
|
|
1714
|
+
q(i, t, r);
|
|
1715
1715
|
},
|
|
1716
|
-
p:
|
|
1717
|
-
i:
|
|
1718
|
-
o:
|
|
1716
|
+
p: j,
|
|
1717
|
+
i: j,
|
|
1718
|
+
o: j,
|
|
1719
1719
|
d(i) {
|
|
1720
1720
|
i && B(t);
|
|
1721
1721
|
}
|
|
@@ -1731,7 +1731,7 @@ function Mr(n) {
|
|
|
1731
1731
|
), l = ne(), s = W("button"), Se(c.$$.fragment), p(r, "class", "svelte-bz0zu3"), p(s, "class", "svelte-bz0zu3"), p(e, "class", "error svelte-bz0zu3");
|
|
1732
1732
|
},
|
|
1733
1733
|
m(f, h) {
|
|
1734
|
-
|
|
1734
|
+
q(f, e, h), me(t, e, null), T(e, i), T(e, r), T(r, o), T(e, l), T(e, s), me(c, s, null), u = !0, d || (a = ee(
|
|
1735
1735
|
s,
|
|
1736
1736
|
"click",
|
|
1737
1737
|
/*click_handler_3*/
|
|
@@ -1740,7 +1740,7 @@ function Mr(n) {
|
|
|
1740
1740
|
},
|
|
1741
1741
|
p(f, h) {
|
|
1742
1742
|
(!u || h[0] & /*errorMessage*/
|
|
1743
|
-
64) &&
|
|
1743
|
+
64) && Qe(
|
|
1744
1744
|
o,
|
|
1745
1745
|
/*errorMessage*/
|
|
1746
1746
|
f[6]
|
|
@@ -1753,7 +1753,7 @@ function Mr(n) {
|
|
|
1753
1753
|
X(t.$$.fragment, f), X(c.$$.fragment, f), u = !1;
|
|
1754
1754
|
},
|
|
1755
1755
|
d(f) {
|
|
1756
|
-
f && B(e),
|
|
1756
|
+
f && B(e), ye(t), ye(c), d = !1, a();
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
@@ -1808,7 +1808,7 @@ function vi(n, e) {
|
|
|
1808
1808
|
t = Rn(), Se(i.$$.fragment), this.first = t;
|
|
1809
1809
|
},
|
|
1810
1810
|
m(s, c) {
|
|
1811
|
-
|
|
1811
|
+
q(s, t, c), me(i, s, c), r = !0;
|
|
1812
1812
|
},
|
|
1813
1813
|
p(s, c) {
|
|
1814
1814
|
e = s;
|
|
@@ -1831,7 +1831,7 @@ function vi(n, e) {
|
|
|
1831
1831
|
X(i.$$.fragment, s), r = !1;
|
|
1832
1832
|
},
|
|
1833
1833
|
d(s) {
|
|
1834
|
-
s && B(t),
|
|
1834
|
+
s && B(t), ye(i, s);
|
|
1835
1835
|
}
|
|
1836
1836
|
};
|
|
1837
1837
|
}
|
|
@@ -1906,11 +1906,11 @@ function kr(n) {
|
|
|
1906
1906
|
);
|
|
1907
1907
|
},
|
|
1908
1908
|
m(k, D) {
|
|
1909
|
-
|
|
1909
|
+
q(k, e, D), q(k, t, D), T(t, i), T(i, r), me(o, r, null), T(i, l), T(i, s), n[62](s), ni(
|
|
1910
1910
|
s,
|
|
1911
1911
|
/*searchValue*/
|
|
1912
1912
|
n[1]
|
|
1913
|
-
), T(i, c), T(i, u), T(u, d),
|
|
1913
|
+
), T(i, c), T(i, u), T(u, d), me(a, d, null), T(u, f), x && x.m(u, null), T(i, h), w && w.m(i, null), T(i, v), I && I.m(i, null), T(t, b), ~y && F[y].m(t, null), L = !0, _ || (M = [
|
|
1914
1914
|
ee(
|
|
1915
1915
|
r,
|
|
1916
1916
|
"click",
|
|
@@ -2040,7 +2040,7 @@ function kr(n) {
|
|
|
2040
2040
|
X(S), X(o.$$.fragment, k), X(a.$$.fragment, k), X(x), X(w), X(I, k), X(m), L = !1;
|
|
2041
2041
|
},
|
|
2042
2042
|
d(k) {
|
|
2043
|
-
k && (B(e), B(t)),
|
|
2043
|
+
k && (B(e), B(t)), ye(o), n[62](null), ye(a), x && x.d(), w && w.d(), I && I.d(k), ~y && F[y].d(), _ = !1, pe(M);
|
|
2044
2044
|
}
|
|
2045
2045
|
};
|
|
2046
2046
|
}
|
|
@@ -2070,7 +2070,7 @@ function Cr(n, e, t) {
|
|
|
2070
2070
|
"poi.restaurant": 18,
|
|
2071
2071
|
"poi.aerodrome": 13
|
|
2072
2072
|
};
|
|
2073
|
-
let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: u = void 0 } = e, { clearButtonTitle: d = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: h = void 0 } = e, { debounceSearch: v = 200 } = e, { enableReverse: b = "never" } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: m = () => !0 } = e, { flyTo: E = !0 } = e, { fuzzyMatch: L = !0 } = e, { language: _ = void 0 } = e, { limit: M = void 0 } = e, { mapController: S = void 0 } = e, { minLength: x = 2 } = e, { noResultsMessage: w = "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!" } = e, { placeholder: C = "Search" } = e, { proximity: I = [{ type: "server-geolocation" }] } = e, { reverseActive: A = b === "always" } = e, { reverseButtonTitle: F = "toggle reverse geocoding" } = e, { searchValue: O = "" } = e, { pickedResultStyle: k = "full-geometry" } = e, { showPlaceType: D = "if-needed" } = e, { showResultsWhileTyping: te = !0 } = e, { selectFirst: se = !0 } = e, { flyToSelected: ht = !1 } = e, { markerOnSelected:
|
|
2073
|
+
let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: u = void 0 } = e, { clearButtonTitle: d = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: h = void 0 } = e, { debounceSearch: v = 200 } = e, { enableReverse: b = "never" } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: m = () => !0 } = e, { flyTo: E = !0 } = e, { fuzzyMatch: L = !0 } = e, { language: _ = void 0 } = e, { limit: M = void 0 } = e, { mapController: S = void 0 } = e, { minLength: x = 2 } = e, { noResultsMessage: w = "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!" } = e, { placeholder: C = "Search" } = e, { proximity: I = [{ type: "server-geolocation" }] } = e, { reverseActive: A = b === "always" } = e, { reverseButtonTitle: F = "toggle reverse geocoding" } = e, { searchValue: O = "" } = e, { pickedResultStyle: k = "full-geometry" } = e, { showPlaceType: D = "if-needed" } = e, { showResultsWhileTyping: te = !0 } = e, { selectFirst: se = !0 } = e, { flyToSelected: ht = !1 } = e, { markerOnSelected: Ye = !0 } = e, { types: ke = void 0 } = e, { exhaustiveReverseGeocoding: gt = !1 } = e, { excludeTypes: Xe = !1 } = e, { zoom: Ke = l } = e, { apiUrl: mt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: yt = {} } = e, { iconsBaseUrl: Gt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.6/icons/" } = e, { adjustUrlQuery: pt = () => {
|
|
2074
2074
|
} } = e;
|
|
2075
2075
|
function Vi() {
|
|
2076
2076
|
ue.focus();
|
|
@@ -2089,8 +2089,8 @@ function Cr(n, e, t) {
|
|
|
2089
2089
|
function Yi() {
|
|
2090
2090
|
t(55, V = []), t(56, N = void 0);
|
|
2091
2091
|
}
|
|
2092
|
-
let Ie = !1, R, V, N, qt = "", ue, z = -1, ae,
|
|
2093
|
-
const Xi = /* @__PURE__ */ new Set(),
|
|
2092
|
+
let Ie = !1, R, V, N, qt = "", ue, z = -1, ae, Je = [], Ce, Oe, $e, vt;
|
|
2093
|
+
const Xi = /* @__PURE__ */ new Set(), ve = An();
|
|
2094
2094
|
Wn(() => {
|
|
2095
2095
|
S && (S.setEventHandler(void 0), S.indicateReverse(!1), S.setSelectedMarker(-1), S.setMarkers(void 0, void 0));
|
|
2096
2096
|
});
|
|
@@ -2117,14 +2117,14 @@ function Cr(n, e, t) {
|
|
|
2117
2117
|
t(19, Ce = ie);
|
|
2118
2118
|
try {
|
|
2119
2119
|
const P = bt(g), Z = new URLSearchParams();
|
|
2120
|
-
if (_ !== void 0 && Z.set("language", Array.isArray(_) ? _.join(",") : _ ?? ""), ke && Z.set("types", ke.join(",")),
|
|
2121
|
-
const
|
|
2122
|
-
|
|
2120
|
+
if (_ !== void 0 && Z.set("language", Array.isArray(_) ? _.join(",") : _ ?? ""), ke && Z.set("types", ke.join(",")), Xe && Z.set("excludeTypes", String(Xe)), u && Z.set("bbox", u.map((et) => et.toFixed(6)).join(",")), h && Z.set("country", Array.isArray(h) ? h.join(",") : h), !U && !P) {
|
|
2121
|
+
const et = await fr(S, I, ie);
|
|
2122
|
+
et && Z.set("proximity", et), (H || !te) && Z.set("autocomplete", "false"), Z.set("fuzzyMatch", String(L));
|
|
2123
2123
|
}
|
|
2124
2124
|
M !== void 0 && (gt || !P || (ke == null ? void 0 : ke.length) === 1) && Z.set("limit", String(M)), Z.set("key", c), pt(Z);
|
|
2125
2125
|
const ce = mt + "/" + encodeURIComponent(P ? P.decimalLongitude + "," + P.decimalLatitude : g) + ".json?" + Z.toString();
|
|
2126
2126
|
if (ce === qt) {
|
|
2127
|
-
U ? (t(14, R = void 0), t(56, N =
|
|
2127
|
+
U ? (t(14, R = void 0), t(56, N = Je[0])) : t(14, R = Je);
|
|
2128
2128
|
return;
|
|
2129
2129
|
}
|
|
2130
2130
|
qt = ce;
|
|
@@ -2132,7 +2132,7 @@ function Cr(n, e, t) {
|
|
|
2132
2132
|
if (!Lt.ok)
|
|
2133
2133
|
throw new Error(await Lt.text());
|
|
2134
2134
|
const St = await Lt.json();
|
|
2135
|
-
|
|
2135
|
+
ve("response", { url: ce, featureCollection: St }), U ? (t(14, R = void 0), t(56, N = St.features[0]), Je = [N]) : (t(14, R = St.features.filter(m)), P && R.unshift({
|
|
2136
2136
|
type: "Feature",
|
|
2137
2137
|
properties: {},
|
|
2138
2138
|
id: "reverse_" + P.decimalLongitude + "_" + P.decimalLatitude,
|
|
@@ -2150,7 +2150,7 @@ function Cr(n, e, t) {
|
|
|
2150
2150
|
type: "Point",
|
|
2151
2151
|
coordinates: [P.decimalLongitude, P.decimalLatitude]
|
|
2152
2152
|
}
|
|
2153
|
-
}),
|
|
2153
|
+
}), Je = R, P && ue.focus());
|
|
2154
2154
|
} catch (P) {
|
|
2155
2155
|
if (P && typeof P == "object" && "name" in P && P.name === "AbortError")
|
|
2156
2156
|
return;
|
|
@@ -2180,11 +2180,11 @@ function Cr(n, e, t) {
|
|
|
2180
2180
|
const U = g.id.replace(/\..*/, "");
|
|
2181
2181
|
return (Array.isArray((H = g.properties) == null ? void 0 : H.categories) ? g.properties.categories.reduce(
|
|
2182
2182
|
(ie, P) => {
|
|
2183
|
-
const Z =
|
|
2183
|
+
const Z = Ke[U + "." + P];
|
|
2184
2184
|
return ie === void 0 ? Z : Z === void 0 ? ie : Math.max(ie, Z);
|
|
2185
2185
|
},
|
|
2186
2186
|
void 0
|
|
2187
|
-
) : void 0) ??
|
|
2187
|
+
) : void 0) ?? Ke[U];
|
|
2188
2188
|
}
|
|
2189
2189
|
function Ji(g) {
|
|
2190
2190
|
t(0, A = b === "always"), t(14, R = void 0), t(56, N = void 0), t(15, z = -1), jt(g[1].toFixed(6) + ", " + cr(g[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
@@ -2228,12 +2228,12 @@ function Cr(n, e, t) {
|
|
|
2228
2228
|
}, hn = () => {
|
|
2229
2229
|
};
|
|
2230
2230
|
return n.$$set = (g) => {
|
|
2231
|
-
"class" in g && t(2, s = g.class), "apiKey" in g && t(26, c = g.apiKey), "bbox" in g && t(27, u = g.bbox), "clearButtonTitle" in g && t(3, d = g.clearButtonTitle), "clearOnBlur" in g && t(28, a = g.clearOnBlur), "collapsed" in g && t(4, f = g.collapsed), "country" in g && t(29, h = g.country), "debounceSearch" in g && t(30, v = g.debounceSearch), "enableReverse" in g && t(5, b = g.enableReverse), "errorMessage" in g && t(6, y = g.errorMessage), "filter" in g && t(31, m = g.filter), "flyTo" in g && t(32, E = g.flyTo), "fuzzyMatch" in g && t(33, L = g.fuzzyMatch), "language" in g && t(34, _ = g.language), "limit" in g && t(35, M = g.limit), "mapController" in g && t(36, S = g.mapController), "minLength" in g && t(37, x = g.minLength), "noResultsMessage" in g && t(7, w = g.noResultsMessage), "placeholder" in g && t(8, C = g.placeholder), "proximity" in g && t(38, I = g.proximity), "reverseActive" in g && t(0, A = g.reverseActive), "reverseButtonTitle" in g && t(9, F = g.reverseButtonTitle), "searchValue" in g && t(1, O = g.searchValue), "pickedResultStyle" in g && t(39, k = g.pickedResultStyle), "showPlaceType" in g && t(10, D = g.showPlaceType), "showResultsWhileTyping" in g && t(40, te = g.showResultsWhileTyping), "selectFirst" in g && t(11, se = g.selectFirst), "flyToSelected" in g && t(41, ht = g.flyToSelected), "markerOnSelected" in g && t(42,
|
|
2231
|
+
"class" in g && t(2, s = g.class), "apiKey" in g && t(26, c = g.apiKey), "bbox" in g && t(27, u = g.bbox), "clearButtonTitle" in g && t(3, d = g.clearButtonTitle), "clearOnBlur" in g && t(28, a = g.clearOnBlur), "collapsed" in g && t(4, f = g.collapsed), "country" in g && t(29, h = g.country), "debounceSearch" in g && t(30, v = g.debounceSearch), "enableReverse" in g && t(5, b = g.enableReverse), "errorMessage" in g && t(6, y = g.errorMessage), "filter" in g && t(31, m = g.filter), "flyTo" in g && t(32, E = g.flyTo), "fuzzyMatch" in g && t(33, L = g.fuzzyMatch), "language" in g && t(34, _ = g.language), "limit" in g && t(35, M = g.limit), "mapController" in g && t(36, S = g.mapController), "minLength" in g && t(37, x = g.minLength), "noResultsMessage" in g && t(7, w = g.noResultsMessage), "placeholder" in g && t(8, C = g.placeholder), "proximity" in g && t(38, I = g.proximity), "reverseActive" in g && t(0, A = g.reverseActive), "reverseButtonTitle" in g && t(9, F = g.reverseButtonTitle), "searchValue" in g && t(1, O = g.searchValue), "pickedResultStyle" in g && t(39, k = g.pickedResultStyle), "showPlaceType" in g && t(10, D = g.showPlaceType), "showResultsWhileTyping" in g && t(40, te = g.showResultsWhileTyping), "selectFirst" in g && t(11, se = g.selectFirst), "flyToSelected" in g && t(41, ht = g.flyToSelected), "markerOnSelected" in g && t(42, Ye = g.markerOnSelected), "types" in g && t(43, ke = g.types), "exhaustiveReverseGeocoding" in g && t(44, gt = g.exhaustiveReverseGeocoding), "excludeTypes" in g && t(45, Xe = g.excludeTypes), "zoom" in g && t(46, Ke = g.zoom), "apiUrl" in g && t(47, mt = g.apiUrl), "fetchParameters" in g && t(48, yt = g.fetchParameters), "iconsBaseUrl" in g && t(12, Gt = g.iconsBaseUrl), "adjustUrlQuery" in g && t(49, pt = g.adjustUrlQuery), "$$scope" in g && t(59, o = g.$$scope);
|
|
2232
2232
|
}, n.$$.update = () => {
|
|
2233
2233
|
if (n.$$.dirty[0] & /*enableReverse*/
|
|
2234
2234
|
32 && t(0, A = b === "always"), n.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
2235
2235
|
268443648 && setTimeout(() => {
|
|
2236
|
-
t(16,
|
|
2236
|
+
t(16, $e = Ie), a && !Ie && t(1, O = "");
|
|
2237
2237
|
}), n.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2238
2238
|
16386 | n.$$.dirty[1] & /*minLength*/
|
|
2239
2239
|
64 && O.length < x && (t(56, N = void 0), t(14, R = void 0), t(18, ae = void 0), t(55, V = R)), n.$$.dirty[1] & /*pickedResultStyle, picked*/
|
|
@@ -2256,7 +2256,7 @@ function Cr(n, e, t) {
|
|
|
2256
2256
|
}
|
|
2257
2257
|
break;
|
|
2258
2258
|
case "markerMouseEnter":
|
|
2259
|
-
V && t(15, z =
|
|
2259
|
+
V && t(15, z = $e ? (R == null ? void 0 : R.findIndex((U) => U.id === g.id)) ?? -1 : -1);
|
|
2260
2260
|
break;
|
|
2261
2261
|
case "markerMouseLeave":
|
|
2262
2262
|
V && t(15, z = -1);
|
|
@@ -2265,8 +2265,8 @@ function Cr(n, e, t) {
|
|
|
2265
2265
|
}), n.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2266
2266
|
49152 && t(58, i = R == null ? void 0 : R[z]), n.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
|
|
2267
2267
|
134218786 && S && i && E && ht && S.flyTo(i.center, De(i)), n.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2268
|
-
2080 && (
|
|
2269
|
-
150997024 && S &&
|
|
2268
|
+
2080 && (Ye || S == null || S.setMarkers(void 0, void 0)), n.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
|
|
2269
|
+
150997024 && S && Ye && !V && (S.setMarkers(i ? [i] : void 0, void 0), S.setSelectedMarker(i ? 0 : -1)), n.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
2270
2270
|
50331680 && S && S.setMarkers(V, N), n.$$.dirty[0] & /*selectedItemIndex*/
|
|
2271
2271
|
32768 | n.$$.dirty[1] & /*markedFeatures, mapController*/
|
|
2272
2272
|
16777248 && V && S && S.setSelectedMarker(z), n.$$.dirty[0] & /*searchValue*/
|
|
@@ -2276,15 +2276,15 @@ function Cr(n, e, t) {
|
|
|
2276
2276
|
S.setReverseMarker(g ? [g.decimalLongitude, g.decimalLatitude] : void 0);
|
|
2277
2277
|
}
|
|
2278
2278
|
n.$$.dirty[1] & /*selected*/
|
|
2279
|
-
134217728 &&
|
|
2280
|
-
33554432 &&
|
|
2281
|
-
81920 &&
|
|
2282
|
-
optionsVisible:
|
|
2279
|
+
134217728 && ve("select", { feature: i }), n.$$.dirty[1] & /*picked*/
|
|
2280
|
+
33554432 && ve("pick", { feature: N }), n.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
2281
|
+
81920 && ve("optionsvisibilitychange", {
|
|
2282
|
+
optionsVisible: $e && !!R
|
|
2283
2283
|
}), n.$$.dirty[0] & /*listFeatures*/
|
|
2284
|
-
16384 &&
|
|
2285
|
-
16777216 &&
|
|
2286
|
-
1 &&
|
|
2287
|
-
2 &&
|
|
2284
|
+
16384 && ve("featureslisted", { features: R }), n.$$.dirty[1] & /*markedFeatures*/
|
|
2285
|
+
16777216 && ve("featuresmarked", { features: V }), n.$$.dirty[0] & /*reverseActive*/
|
|
2286
|
+
1 && ve("reversetoggle", { reverse: A }), n.$$.dirty[0] & /*searchValue*/
|
|
2287
|
+
2 && ve("querychange", { query: O }), n.$$.dirty[0] & /*reverseActive*/
|
|
2288
2288
|
1 | n.$$.dirty[1] & /*mapController*/
|
|
2289
2289
|
32 && S && S.indicateReverse(A);
|
|
2290
2290
|
}, [
|
|
@@ -2304,7 +2304,7 @@ function Cr(n, e, t) {
|
|
|
2304
2304
|
Ie,
|
|
2305
2305
|
R,
|
|
2306
2306
|
z,
|
|
2307
|
-
|
|
2307
|
+
$e,
|
|
2308
2308
|
ue,
|
|
2309
2309
|
ae,
|
|
2310
2310
|
Ce,
|
|
@@ -2330,11 +2330,11 @@ function Cr(n, e, t) {
|
|
|
2330
2330
|
k,
|
|
2331
2331
|
te,
|
|
2332
2332
|
ht,
|
|
2333
|
-
|
|
2333
|
+
Ye,
|
|
2334
2334
|
ke,
|
|
2335
2335
|
gt,
|
|
2336
|
+
Xe,
|
|
2336
2337
|
Ke,
|
|
2337
|
-
Je,
|
|
2338
2338
|
mt,
|
|
2339
2339
|
yt,
|
|
2340
2340
|
pt,
|
|
@@ -2748,7 +2748,7 @@ var xe = (
|
|
|
2748
2748
|
function Ir(n, e) {
|
|
2749
2749
|
return n > e ? 1 : n < e ? -1 : 0;
|
|
2750
2750
|
}
|
|
2751
|
-
function
|
|
2751
|
+
function be(n, e, t) {
|
|
2752
2752
|
for (var i = new xe(null, null), r = i, o = i; ; ) {
|
|
2753
2753
|
var l = t(n, e.key);
|
|
2754
2754
|
if (l < 0) {
|
|
@@ -2778,21 +2778,21 @@ function kt(n, e, t, i) {
|
|
|
2778
2778
|
var r = new xe(n, e);
|
|
2779
2779
|
if (t === null)
|
|
2780
2780
|
return r.left = r.right = null, r;
|
|
2781
|
-
t =
|
|
2781
|
+
t = be(n, t, i);
|
|
2782
2782
|
var o = i(n, t.key);
|
|
2783
2783
|
return o < 0 ? (r.left = t.left, r.right = t, t.left = null) : o >= 0 && (r.right = t.right, r.left = t, t.right = null), r;
|
|
2784
2784
|
}
|
|
2785
2785
|
function wi(n, e, t) {
|
|
2786
2786
|
var i = null, r = null;
|
|
2787
2787
|
if (e) {
|
|
2788
|
-
e =
|
|
2788
|
+
e = be(n, e, t);
|
|
2789
2789
|
var o = t(e.key, n);
|
|
2790
2790
|
o === 0 ? (i = e.left, r = e.right) : o < 0 ? (r = e.right, e.right = null, i = e) : (i = e.left, e.left = null, r = e);
|
|
2791
2791
|
}
|
|
2792
2792
|
return { left: i, right: r };
|
|
2793
2793
|
}
|
|
2794
2794
|
function Or(n, e, t) {
|
|
2795
|
-
return e === null ? n : (n === null || (e =
|
|
2795
|
+
return e === null ? n : (n === null || (e = be(n.key, e, t), e.left = n), e);
|
|
2796
2796
|
}
|
|
2797
2797
|
function It(n, e, t, i, r) {
|
|
2798
2798
|
if (n) {
|
|
@@ -2813,7 +2813,7 @@ var Ut = (
|
|
|
2813
2813
|
}, n.prototype.add = function(e, t) {
|
|
2814
2814
|
var i = new xe(e, t);
|
|
2815
2815
|
this._root === null && (i.left = i.right = null, this._size++, this._root = i);
|
|
2816
|
-
var r = this._comparator, o =
|
|
2816
|
+
var r = this._comparator, o = be(e, this._root, r), l = r(e, o.key);
|
|
2817
2817
|
return l === 0 ? this._root = o : (l < 0 ? (i.left = o.left, i.right = o, o.left = null) : l > 0 && (i.right = o.right, i.left = o, o.right = null), this._size++, this._root = i), this._root;
|
|
2818
2818
|
}, n.prototype.remove = function(e) {
|
|
2819
2819
|
this._root = this._remove(e, this._root, this._comparator);
|
|
@@ -2821,15 +2821,15 @@ var Ut = (
|
|
|
2821
2821
|
var r;
|
|
2822
2822
|
if (t === null)
|
|
2823
2823
|
return null;
|
|
2824
|
-
t =
|
|
2824
|
+
t = be(e, t, i);
|
|
2825
2825
|
var o = i(e, t.key);
|
|
2826
|
-
return o === 0 ? (t.left === null ? r = t.right : (r =
|
|
2826
|
+
return o === 0 ? (t.left === null ? r = t.right : (r = be(e, t.left, i), r.right = t.right), this._size--, r) : t;
|
|
2827
2827
|
}, n.prototype.pop = function() {
|
|
2828
2828
|
var e = this._root;
|
|
2829
2829
|
if (e) {
|
|
2830
2830
|
for (; e.left; )
|
|
2831
2831
|
e = e.left;
|
|
2832
|
-
return this._root =
|
|
2832
|
+
return this._root = be(e.key, this._root, this._comparator), this._root = this._remove(e.key, this._root, this._comparator), { key: e.key, data: e.data };
|
|
2833
2833
|
}
|
|
2834
2834
|
return null;
|
|
2835
2835
|
}, n.prototype.findStatic = function(e) {
|
|
@@ -2841,7 +2841,7 @@ var Ut = (
|
|
|
2841
2841
|
}
|
|
2842
2842
|
return null;
|
|
2843
2843
|
}, n.prototype.find = function(e) {
|
|
2844
|
-
return this._root && (this._root =
|
|
2844
|
+
return this._root && (this._root = be(e, this._root, this._comparator), this._comparator(e, this._root.key) !== 0) ? null : this._root;
|
|
2845
2845
|
}, n.prototype.contains = function(e) {
|
|
2846
2846
|
for (var t = this._root, i = this._comparator; t; ) {
|
|
2847
2847
|
var r = i(e, t.key);
|
|
@@ -3046,7 +3046,7 @@ function At(n, e, t, i, r) {
|
|
|
3046
3046
|
At(n, e, t, s, r), At(n, e, s + 1, i, r);
|
|
3047
3047
|
}
|
|
3048
3048
|
}
|
|
3049
|
-
const
|
|
3049
|
+
const ge = 11102230246251565e-32, K = 134217729, Br = (3 + 8 * ge) * ge;
|
|
3050
3050
|
function Ct(n, e, t, i, r) {
|
|
3051
3051
|
let o, l, s, c, u = e[0], d = i[0], a = 0, f = 0;
|
|
3052
3052
|
d > u == d > -u ? (o = u, u = e[++a]) : (o = d, d = i[++f]);
|
|
@@ -3065,10 +3065,10 @@ function Fr(n, e) {
|
|
|
3065
3065
|
for (let i = 1; i < n; i++) t += e[i];
|
|
3066
3066
|
return t;
|
|
3067
3067
|
}
|
|
3068
|
-
function
|
|
3068
|
+
function He(n) {
|
|
3069
3069
|
return new Float64Array(n);
|
|
3070
3070
|
}
|
|
3071
|
-
const Dr = (3 + 16 *
|
|
3071
|
+
const Dr = (3 + 16 * ge) * ge, Ur = (2 + 12 * ge) * ge, Gr = (9 + 64 * ge) * ge * ge, Ae = He(4), _i = He(8), Ei = He(12), Li = He(16), $ = He(4);
|
|
3072
3072
|
function jr(n, e, t, i, r, o, l) {
|
|
3073
3073
|
let s, c, u, d, a, f, h, v, b, y, m, E, L, _, M, S, x, w;
|
|
3074
3074
|
const C = n - r, I = t - r, A = e - o, F = i - o;
|
|
@@ -3087,7 +3087,7 @@ function qr(n, e, t, i, r, o) {
|
|
|
3087
3087
|
const l = (e - o) * (t - r), s = (n - r) * (i - o), c = l - s, u = Math.abs(l + s);
|
|
3088
3088
|
return Math.abs(c) >= Dr * u ? c : -jr(n, e, t, i, r, o, u);
|
|
3089
3089
|
}
|
|
3090
|
-
const
|
|
3090
|
+
const je = (n, e) => n.ll.x <= e.x && e.x <= n.ur.x && n.ll.y <= e.y && e.y <= n.ur.y, zt = (n, e) => {
|
|
3091
3091
|
if (e.ur.x < n.ll.x || n.ur.x < e.ll.x || e.ur.y < n.ll.y || n.ur.y < e.ll.y) return null;
|
|
3092
3092
|
const t = n.ll.x < e.ll.x ? e.ll.x : n.ll.x, i = n.ur.x < e.ur.x ? n.ur.x : e.ur.x, r = n.ll.y < e.ll.y ? e.ll.y : n.ll.y, o = n.ur.y < e.ur.y ? n.ur.y : e.ur.y;
|
|
3093
3093
|
return {
|
|
@@ -3142,7 +3142,7 @@ class xi {
|
|
|
3142
3142
|
return r !== null && Si(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
|
|
3143
3143
|
}
|
|
3144
3144
|
}
|
|
3145
|
-
const
|
|
3145
|
+
const Ze = new Vr(), ut = (n, e) => n.x * e.y - n.y * e.x, qi = (n, e) => n.x * e.x + n.y * e.y, Mi = (n, e, t) => {
|
|
3146
3146
|
const i = qr(n.x, n.y, e.x, e.y, t.x, t.y);
|
|
3147
3147
|
return i > 0 ? -1 : i < 0 ? 1 : 0;
|
|
3148
3148
|
}, ft = (n) => Math.sqrt(qi(n, n)), Zr = (n, e, t) => {
|
|
@@ -3400,7 +3400,7 @@ class Ee {
|
|
|
3400
3400
|
getIntersection(e) {
|
|
3401
3401
|
const t = this.bbox(), i = e.bbox(), r = zt(t, i);
|
|
3402
3402
|
if (r === null) return null;
|
|
3403
|
-
const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u =
|
|
3403
|
+
const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u = je(t, s) && this.comparePoint(s) === 0, d = je(i, o) && e.comparePoint(o) === 0, a = je(t, c) && this.comparePoint(c) === 0, f = je(i, l) && e.comparePoint(l) === 0;
|
|
3404
3404
|
if (d && u)
|
|
3405
3405
|
return f && !a ? l : !f && a ? c : null;
|
|
3406
3406
|
if (d)
|
|
@@ -3411,7 +3411,7 @@ class Ee {
|
|
|
3411
3411
|
if (f) return l;
|
|
3412
3412
|
if (a) return c;
|
|
3413
3413
|
const h = Yr(o, this.vector(), s, e.vector());
|
|
3414
|
-
return h === null || !
|
|
3414
|
+
return h === null || !je(r, h) ? null : Ze.round(h.x, h.y);
|
|
3415
3415
|
}
|
|
3416
3416
|
/**
|
|
3417
3417
|
* Split the given segment into multiple segments on the given points.
|
|
@@ -3547,7 +3547,7 @@ class Ni {
|
|
|
3547
3547
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
3548
3548
|
if (this.poly = t, this.isExterior = i, this.segments = [], typeof e[0][0] != "number" || typeof e[0][1] != "number")
|
|
3549
3549
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
3550
|
-
const r =
|
|
3550
|
+
const r = Ze.round(e[0][0], e[0][1]);
|
|
3551
3551
|
this.bbox = {
|
|
3552
3552
|
ll: {
|
|
3553
3553
|
x: r.x,
|
|
@@ -3562,7 +3562,7 @@ class Ni {
|
|
|
3562
3562
|
for (let l = 1, s = e.length; l < s; l++) {
|
|
3563
3563
|
if (typeof e[l][0] != "number" || typeof e[l][1] != "number")
|
|
3564
3564
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
3565
|
-
let c =
|
|
3565
|
+
let c = Ze.round(e[l][0], e[l][1]);
|
|
3566
3566
|
c.x === o.x && c.y === o.y || (this.segments.push(Ee.fromRing(o, c, this)), c.x < this.bbox.ll.x && (this.bbox.ll.x = c.x), c.y < this.bbox.ll.y && (this.bbox.ll.y = c.y), c.x > this.bbox.ur.x && (this.bbox.ur.x = c.x), c.y > this.bbox.ur.y && (this.bbox.ur.y = c.y), o = c);
|
|
3567
3567
|
}
|
|
3568
3568
|
(r.x !== o.x || r.y !== o.y) && this.segments.push(Ee.fromRing(o, r, this));
|
|
@@ -3850,7 +3850,7 @@ class $r {
|
|
|
3850
3850
|
const Ti = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, eo = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
|
|
3851
3851
|
class to {
|
|
3852
3852
|
run(e, t, i) {
|
|
3853
|
-
le.type = e,
|
|
3853
|
+
le.type = e, Ze.reset();
|
|
3854
3854
|
const r = [new Pi(t, !0)];
|
|
3855
3855
|
for (let a = 0, f = i.length; a < f; a++)
|
|
3856
3856
|
r.push(new Pi(i[a], !1));
|
|
@@ -3892,7 +3892,7 @@ class to {
|
|
|
3892
3892
|
}
|
|
3893
3893
|
s = o.size, c = o.pop();
|
|
3894
3894
|
}
|
|
3895
|
-
|
|
3895
|
+
Ze.reset();
|
|
3896
3896
|
const u = dt.factory(l.segments);
|
|
3897
3897
|
return new Jr(u).getGeom();
|
|
3898
3898
|
}
|
|
@@ -4176,7 +4176,7 @@ function go(n, e = {}, t = {}, i = ho, r = !1) {
|
|
|
4176
4176
|
}
|
|
4177
4177
|
};
|
|
4178
4178
|
}
|
|
4179
|
-
var Y,
|
|
4179
|
+
var Y, de, Fe;
|
|
4180
4180
|
class zo extends yn {
|
|
4181
4181
|
constructor(t) {
|
|
4182
4182
|
const i = document.createElement("div");
|
|
@@ -4185,37 +4185,37 @@ class zo extends yn {
|
|
|
4185
4185
|
element: i,
|
|
4186
4186
|
target: t.target
|
|
4187
4187
|
});
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4188
|
+
tt(this, Y);
|
|
4189
|
+
tt(this, de);
|
|
4190
|
+
tt(this, Fe);
|
|
4191
4191
|
const { flyTo: r, fullGeometryStyle: o, ...l } = t;
|
|
4192
|
-
|
|
4192
|
+
it(this, Y, new Nr({
|
|
4193
4193
|
target: i,
|
|
4194
4194
|
props: {
|
|
4195
4195
|
flyTo: r === void 0 ? !0 : !!r,
|
|
4196
4196
|
...l
|
|
4197
4197
|
}
|
|
4198
|
-
})),
|
|
4198
|
+
})), G(this, Y).$on("select", (s) => {
|
|
4199
4199
|
this.dispatchEvent(new mo(s.detail.feature));
|
|
4200
|
-
}),
|
|
4200
|
+
}), G(this, Y).$on("pick", (s) => {
|
|
4201
4201
|
this.dispatchEvent(new bo(s.detail.feature));
|
|
4202
|
-
}),
|
|
4202
|
+
}), G(this, Y).$on("featureslisted", (s) => {
|
|
4203
4203
|
this.dispatchEvent(new yo(s.detail.features));
|
|
4204
|
-
}),
|
|
4204
|
+
}), G(this, Y).$on("featuresmarked", (s) => {
|
|
4205
4205
|
this.dispatchEvent(new po(s.detail.features));
|
|
4206
|
-
}),
|
|
4206
|
+
}), G(this, Y).$on("response", (s) => {
|
|
4207
4207
|
this.dispatchEvent(
|
|
4208
4208
|
new _o(s.detail.url, s.detail.featureCollection)
|
|
4209
4209
|
);
|
|
4210
|
-
}),
|
|
4210
|
+
}), G(this, Y).$on("optionsvisibilitychange", (s) => {
|
|
4211
4211
|
this.dispatchEvent(
|
|
4212
4212
|
new vo(s.detail.optionsVisible)
|
|
4213
4213
|
);
|
|
4214
|
-
}),
|
|
4214
|
+
}), G(this, Y).$on("reversetoggle", (s) => {
|
|
4215
4215
|
this.dispatchEvent(new Eo(s.detail.reverse));
|
|
4216
|
-
}),
|
|
4216
|
+
}), G(this, Y).$on("querychange", (s) => {
|
|
4217
4217
|
this.dispatchEvent(new wo(s.detail.query));
|
|
4218
|
-
}),
|
|
4218
|
+
}), it(this, de, t);
|
|
4219
4219
|
}
|
|
4220
4220
|
setMap(t) {
|
|
4221
4221
|
var i;
|
|
@@ -4225,54 +4225,54 @@ class zo extends yn {
|
|
|
4225
4225
|
// showResultMarkers,
|
|
4226
4226
|
flyTo: r,
|
|
4227
4227
|
fullGeometryStyle: o
|
|
4228
|
-
} =
|
|
4229
|
-
|
|
4228
|
+
} = G(this, de);
|
|
4229
|
+
it(this, Fe, go(
|
|
4230
4230
|
t,
|
|
4231
4231
|
typeof r == "boolean" ? void 0 : r,
|
|
4232
4232
|
typeof r == "boolean" ? void 0 : r,
|
|
4233
4233
|
// marker,
|
|
4234
4234
|
// showResultMarkers,
|
|
4235
4235
|
o,
|
|
4236
|
-
|
|
4237
|
-
)), (i =
|
|
4236
|
+
G(this, de).pickedResultStyle === "full-geometry-including-polygon-center-marker"
|
|
4237
|
+
)), (i = G(this, Y)) == null || i.$set({ mapController: G(this, Fe) });
|
|
4238
4238
|
}
|
|
4239
4239
|
}
|
|
4240
4240
|
setOptions(t) {
|
|
4241
4241
|
var l, s;
|
|
4242
|
-
|
|
4243
|
-
const { flyTo: i, fullGeometryStyle: r, ...o } =
|
|
4244
|
-
(l =
|
|
4242
|
+
Object.assign(G(this, de), t);
|
|
4243
|
+
const { flyTo: i, fullGeometryStyle: r, ...o } = G(this, de);
|
|
4244
|
+
(l = G(this, Y)) == null || l.$set({
|
|
4245
4245
|
...o,
|
|
4246
4246
|
flyTo: i === void 0 ? !0 : !!i
|
|
4247
|
-
}), (s =
|
|
4248
|
-
|
|
4247
|
+
}), (s = G(this, Fe)) == null || s.setShowPolygonMarker(
|
|
4248
|
+
G(this, de).pickedResultStyle === "full-geometry-including-polygon-center-marker"
|
|
4249
4249
|
);
|
|
4250
4250
|
}
|
|
4251
4251
|
setQuery(t, i = !0) {
|
|
4252
4252
|
var r;
|
|
4253
|
-
(r =
|
|
4253
|
+
(r = G(this, Y)) == null || r.setQuery(t, i);
|
|
4254
4254
|
}
|
|
4255
4255
|
clearMap() {
|
|
4256
4256
|
var t;
|
|
4257
|
-
(t =
|
|
4257
|
+
(t = G(this, Y)) == null || t.clearMap();
|
|
4258
4258
|
}
|
|
4259
4259
|
clearList() {
|
|
4260
4260
|
var t;
|
|
4261
|
-
(t =
|
|
4261
|
+
(t = G(this, Y)) == null || t.clearList();
|
|
4262
4262
|
}
|
|
4263
4263
|
focus() {
|
|
4264
4264
|
var t;
|
|
4265
|
-
(t =
|
|
4265
|
+
(t = G(this, Y)) == null || t.focus();
|
|
4266
4266
|
}
|
|
4267
4267
|
blur() {
|
|
4268
4268
|
var t;
|
|
4269
|
-
(t =
|
|
4269
|
+
(t = G(this, Y)) == null || t.blur();
|
|
4270
4270
|
}
|
|
4271
4271
|
// onRemove() {
|
|
4272
4272
|
// this.#gc?.$destroy();
|
|
4273
4273
|
// }
|
|
4274
4274
|
}
|
|
4275
|
-
Y = new WeakMap(),
|
|
4275
|
+
Y = new WeakMap(), de = new WeakMap(), Fe = new WeakMap();
|
|
4276
4276
|
class mo extends Me {
|
|
4277
4277
|
constructor(t) {
|
|
4278
4278
|
super("select");
|