@maptiler/geocoding-control 3.0.0-rc.7 → 3.0.0-rc.8
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/check-version.js +69 -0
- package/dist/check-version.d.ts +1 -0
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/leaflet.public.js +9 -9
- package/dist/leaflet.public.js.map +1 -1
- package/dist/leaflet.public.umd.js +3 -3
- package/dist/leaflet.public.umd.js.map +1 -1
- package/dist/maplibregl.js +67 -67
- package/dist/maplibregl.js.map +1 -1
- package/dist/maplibregl.umd.js +4 -4
- package/dist/maplibregl.umd.js.map +1 -1
- package/dist/maptilersdk.js +102 -102
- package/dist/maptilersdk.js.map +1 -1
- package/dist/maptilersdk.umd.js +4 -4
- package/dist/maptilersdk.umd.js.map +1 -1
- package/dist/openlayers.public.js +11 -10
- package/dist/openlayers.public.js.map +1 -1
- package/dist/openlayers.public.umd.js +4 -4
- package/dist/openlayers.public.umd.js.map +1 -1
- package/dist/src/components/clear-icon.d.ts +1 -0
- package/dist/src/components/fail-icon.d.ts +1 -0
- package/dist/src/components/loading-icon.d.ts +1 -0
- package/dist/src/components/marker.d.ts +1 -0
- package/dist/src/components/reverse-geocoding-icon.d.ts +1 -0
- package/dist/src/components/search-icon.d.ts +1 -0
- package/dist/src/controls/maplibregl-control.d.ts +2 -7
- package/dist/src/controls/maplibregl-events.d.ts +2 -3
- package/dist/src/controls/maplibregl-options.d.ts +1 -9
- package/dist/src/geocoder/geocoder-feature-item.d.ts +1 -0
- package/dist/src/geocoder/geocoder.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/leaflet.public.d.ts +1 -0
- package/dist/src/maplibregl.d.ts +1 -0
- package/dist/src/maptilersdk.d.ts +1 -0
- package/dist/src/openlayers.public.d.ts +1 -0
- package/package.json +20 -10
package/dist/maptilersdk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css as I, LitElement as F, svg as z, html as m, unsafeCSS as
|
|
1
|
+
import { css as I, LitElement as F, svg as z, html as m, unsafeCSS as ce, nothing as J } from "lit";
|
|
2
2
|
import { customElement as O, property as p, state as b, query as De } from "lit/decorators.js";
|
|
3
3
|
import { convert as Ve } from "geo-coordinates-parser";
|
|
4
4
|
import { classMap as A } from "lit/directives/class-map.js";
|
|
@@ -8,7 +8,7 @@ import { styleMap as Ne } from "lit/directives/style-map.js";
|
|
|
8
8
|
import { config as Ze } from "@maptiler/sdk";
|
|
9
9
|
import { featureCollection as D, polygon as Ke, feature as Qe } from "@turf/helpers";
|
|
10
10
|
import _e from "@turf/union";
|
|
11
|
-
import
|
|
11
|
+
import H from "maplibre-gl";
|
|
12
12
|
import be from "@turf/bbox";
|
|
13
13
|
import Ye from "@turf/difference";
|
|
14
14
|
import He from "@turf/flatten";
|
|
@@ -17,7 +17,7 @@ var Je = Object.getOwnPropertyDescriptor, Xe = (t, e, i, a) => {
|
|
|
17
17
|
(r = t[o]) && (s = r(s) || s);
|
|
18
18
|
return s;
|
|
19
19
|
};
|
|
20
|
-
let
|
|
20
|
+
let X = class extends F {
|
|
21
21
|
render() {
|
|
22
22
|
return z`
|
|
23
23
|
<svg viewBox="0 0 14 14" width="13" height="13">
|
|
@@ -28,21 +28,21 @@ let J = class extends F {
|
|
|
28
28
|
`;
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
X.styles = I`
|
|
32
32
|
svg {
|
|
33
33
|
display: block;
|
|
34
34
|
fill: var(--color-icon-button);
|
|
35
35
|
}
|
|
36
36
|
`;
|
|
37
|
-
|
|
37
|
+
X = Xe([
|
|
38
38
|
O("maptiler-geocode-clear-icon")
|
|
39
|
-
],
|
|
39
|
+
], X);
|
|
40
40
|
var et = Object.getOwnPropertyDescriptor, tt = (t, e, i, a) => {
|
|
41
41
|
for (var s = a > 1 ? void 0 : a ? et(e, i) : e, o = t.length - 1, r; o >= 0; o--)
|
|
42
42
|
(r = t[o]) && (s = r(s) || s);
|
|
43
43
|
return s;
|
|
44
44
|
};
|
|
45
|
-
let
|
|
45
|
+
let ee = class extends F {
|
|
46
46
|
render() {
|
|
47
47
|
return z`
|
|
48
48
|
<svg viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -53,21 +53,21 @@ let X = class extends F {
|
|
|
53
53
|
`;
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
ee.styles = I`
|
|
57
57
|
svg {
|
|
58
58
|
display: block;
|
|
59
59
|
fill: #e15042;
|
|
60
60
|
}
|
|
61
61
|
`;
|
|
62
|
-
|
|
62
|
+
ee = tt([
|
|
63
63
|
O("maptiler-geocode-fail-icon")
|
|
64
|
-
],
|
|
64
|
+
], ee);
|
|
65
65
|
var it = Object.getOwnPropertyDescriptor, st = (t, e, i, a) => {
|
|
66
66
|
for (var s = a > 1 ? void 0 : a ? it(e, i) : e, o = t.length - 1, r; o >= 0; o--)
|
|
67
67
|
(r = t[o]) && (s = r(s) || s);
|
|
68
68
|
return s;
|
|
69
69
|
};
|
|
70
|
-
let
|
|
70
|
+
let te = class extends F {
|
|
71
71
|
render() {
|
|
72
72
|
return m`
|
|
73
73
|
<div>
|
|
@@ -79,7 +79,7 @@ let ee = class extends F {
|
|
|
79
79
|
`;
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
te.styles = I`
|
|
83
83
|
div {
|
|
84
84
|
position: absolute;
|
|
85
85
|
left: 50%;
|
|
@@ -106,15 +106,15 @@ ee.styles = I`
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
`;
|
|
109
|
-
|
|
109
|
+
te = st([
|
|
110
110
|
O("maptiler-geocode-loading-icon")
|
|
111
|
-
],
|
|
111
|
+
], te);
|
|
112
112
|
var rt = Object.getOwnPropertyDescriptor, ot = (t, e, i, a) => {
|
|
113
113
|
for (var s = a > 1 ? void 0 : a ? rt(e, i) : e, o = t.length - 1, r; o >= 0; o--)
|
|
114
114
|
(r = t[o]) && (s = r(s) || s);
|
|
115
115
|
return s;
|
|
116
116
|
};
|
|
117
|
-
let
|
|
117
|
+
let ie = class extends F {
|
|
118
118
|
render() {
|
|
119
119
|
return z`
|
|
120
120
|
<svg viewBox="0 0 60.006 21.412" width="14" height="20">
|
|
@@ -125,21 +125,21 @@ let te = class extends F {
|
|
|
125
125
|
`;
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
|
-
|
|
128
|
+
ie.styles = I`
|
|
129
129
|
svg {
|
|
130
130
|
display: block;
|
|
131
131
|
fill: var(--color-icon-button);
|
|
132
132
|
}
|
|
133
133
|
`;
|
|
134
|
-
|
|
134
|
+
ie = ot([
|
|
135
135
|
O("maptiler-geocode-reverse-geocoding-icon")
|
|
136
|
-
],
|
|
136
|
+
], ie);
|
|
137
137
|
var at = Object.getOwnPropertyDescriptor, lt = (t, e, i, a) => {
|
|
138
138
|
for (var s = a > 1 ? void 0 : a ? at(e, i) : e, o = t.length - 1, r; o >= 0; o--)
|
|
139
139
|
(r = t[o]) && (s = r(s) || s);
|
|
140
140
|
return s;
|
|
141
141
|
};
|
|
142
|
-
let
|
|
142
|
+
let se = class extends F {
|
|
143
143
|
render() {
|
|
144
144
|
return z`
|
|
145
145
|
<svg
|
|
@@ -154,7 +154,7 @@ let ie = class extends F {
|
|
|
154
154
|
`;
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
se.styles = I`
|
|
158
158
|
circle {
|
|
159
159
|
stroke-width: 1.875;
|
|
160
160
|
fill: none;
|
|
@@ -170,9 +170,9 @@ ie.styles = I`
|
|
|
170
170
|
stroke: var(--color-icon-button);
|
|
171
171
|
}
|
|
172
172
|
`;
|
|
173
|
-
|
|
173
|
+
se = lt([
|
|
174
174
|
O("maptiler-geocode-search-icon")
|
|
175
|
-
],
|
|
175
|
+
], se);
|
|
176
176
|
function nt(t, e, i) {
|
|
177
177
|
const a = e[1], s = e[0], o = a - s;
|
|
178
178
|
return t === a && i ? t : ((t - s) % o + o) % o + s;
|
|
@@ -230,9 +230,9 @@ var pt = Object.defineProperty, dt = Object.getOwnPropertyDescriptor, $e = (t) =
|
|
|
230
230
|
for (var s = a > 1 ? void 0 : a ? dt(e, i) : e, o = t.length - 1, r; o >= 0; o--)
|
|
231
231
|
(r = t[o]) && (s = (a ? r(e, i, s) : r(s)) || s);
|
|
232
232
|
return a && s && pt(e, i, s), s;
|
|
233
|
-
}, Ie = (t, e, i) => e.has(t) || $e("Cannot " + i), f = (t, e, i) => (Ie(t, e, "read from private field"), i ? i.call(t) : e.get(t)), ut = (t, e, i) => e.has(t) ? $e("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), C = (t, e, i) => (Ie(t, e, "access private method"), i), d, q, G, g, Fe, Oe, he,
|
|
233
|
+
}, Ie = (t, e, i) => e.has(t) || $e("Cannot " + i), f = (t, e, i) => (Ie(t, e, "read from private field"), i ? i.call(t) : e.get(t)), ut = (t, e, i) => e.has(t) ? $e("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), C = (t, e, i) => (Ie(t, e, "access private method"), i), d, q, G, g, Fe, Oe, he, re;
|
|
234
234
|
const Me = typeof devicePixelRatio > "u" || devicePixelRatio > 1.25, Te = Me ? "@2x" : "", S = Me ? 2 : 1;
|
|
235
|
-
let T, Se,
|
|
235
|
+
let T, Se, k = class extends F {
|
|
236
236
|
constructor() {
|
|
237
237
|
super(...arguments), ut(this, d), this.itemStyle = "default", this.showPlaceType = "if-needed", this.missingIconsCache = /* @__PURE__ */ new Set(), this.iconsBaseUrl = "", this.index = 0;
|
|
238
238
|
}
|
|
@@ -267,7 +267,7 @@ let T, Se, w = class extends F {
|
|
|
267
267
|
<span>
|
|
268
268
|
<span class="primary"> ${f(this, d, G) ? this.feature?.place_name : this.feature?.place_name.replace(/,.*/, "")} </span>
|
|
269
269
|
|
|
270
|
-
${this.showPlaceType === "always" || this.showPlaceType !== "never" && !this.feature?.address && !this.feature?.id.startsWith("road.") && !this.feature?.id.startsWith("address.") && !this.feature?.id.startsWith("postal_code.") && (!this.feature?.id.startsWith("poi.") || !this.imageUrl) && !f(this, d, G) ? m` <span class="secondary"> ${f(this, d, g)} </span> ` :
|
|
270
|
+
${this.showPlaceType === "always" || this.showPlaceType !== "never" && !this.feature?.address && !this.feature?.id.startsWith("road.") && !this.feature?.id.startsWith("address.") && !this.feature?.id.startsWith("postal_code.") && (!this.feature?.id.startsWith("poi.") || !this.imageUrl) && !f(this, d, G) ? m` <span class="secondary"> ${f(this, d, g)} </span> ` : J}
|
|
271
271
|
</span>
|
|
272
272
|
|
|
273
273
|
<span class="line2"> ${f(this, d, G) ? this.feature?.text : this.feature?.place_name.replace(/[^,]*,?s*/, "")} </span>
|
|
@@ -297,50 +297,50 @@ Oe = function() {
|
|
|
297
297
|
this.imageUrl && this.missingIconsCache.add(this.imageUrl), C(this, d, he).call(this);
|
|
298
298
|
};
|
|
299
299
|
he = function() {
|
|
300
|
-
T !== void 0 ? C(this, d,
|
|
301
|
-
C(this, d,
|
|
300
|
+
T !== void 0 ? C(this, d, re).call(this) : (C(this, d, Fe).call(this), Se?.then(() => {
|
|
301
|
+
C(this, d, re).call(this);
|
|
302
302
|
}));
|
|
303
303
|
};
|
|
304
|
-
|
|
304
|
+
re = function() {
|
|
305
305
|
do {
|
|
306
306
|
if (this.index--, this.category = f(this, d, q)?.[this.index], this.spriteIcon = this.category ? T?.icons[this.category] : void 0, this.spriteIcon)
|
|
307
307
|
break;
|
|
308
308
|
this.imageUrl = this.category ? this.iconsBaseUrl + this.category.replace(/ /g, "_") + ".svg" : void 0;
|
|
309
309
|
} while (this.index > -1 && (!this.imageUrl || this.missingIconsCache.has(this.imageUrl)));
|
|
310
310
|
};
|
|
311
|
-
|
|
312
|
-
${
|
|
311
|
+
k.styles = I`
|
|
312
|
+
${ce(ht)}
|
|
313
313
|
`;
|
|
314
314
|
_([
|
|
315
315
|
p({ type: Object })
|
|
316
|
-
],
|
|
316
|
+
], k.prototype, "feature", 2);
|
|
317
317
|
_([
|
|
318
318
|
p({ type: String })
|
|
319
|
-
],
|
|
319
|
+
], k.prototype, "itemStyle", 2);
|
|
320
320
|
_([
|
|
321
321
|
p({ type: String })
|
|
322
|
-
],
|
|
322
|
+
], k.prototype, "showPlaceType", 2);
|
|
323
323
|
_([
|
|
324
324
|
p({ attribute: !1 })
|
|
325
|
-
],
|
|
325
|
+
], k.prototype, "missingIconsCache", 2);
|
|
326
326
|
_([
|
|
327
327
|
p({ type: String })
|
|
328
|
-
],
|
|
328
|
+
], k.prototype, "iconsBaseUrl", 2);
|
|
329
329
|
_([
|
|
330
330
|
b()
|
|
331
|
-
],
|
|
331
|
+
], k.prototype, "category", 2);
|
|
332
332
|
_([
|
|
333
333
|
b()
|
|
334
|
-
],
|
|
334
|
+
], k.prototype, "imageUrl", 2);
|
|
335
335
|
_([
|
|
336
336
|
b()
|
|
337
|
-
],
|
|
337
|
+
], k.prototype, "spriteIcon", 2);
|
|
338
338
|
_([
|
|
339
339
|
b()
|
|
340
|
-
],
|
|
341
|
-
|
|
340
|
+
], k.prototype, "index", 2);
|
|
341
|
+
k = _([
|
|
342
342
|
O("maptiler-geocoder-feature-item")
|
|
343
|
-
],
|
|
343
|
+
], k);
|
|
344
344
|
const ft = "form{font-family:Open Sans,Ubuntu,Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;background-color:#fff;z-index:10;border-radius:4px;margin:0;transition:max-width .25s;box-shadow:0 2px 5px #33335926;--color-text: #444952;--color-icon-button: #444952;pointer-events:all}form,form *,form *:after,form *:before{box-sizing:border-box}form.can-collapse{max-width:29px}form.can-collapse input::placeholder{transition:opacity .25s;opacity:0}form{width:270px;max-width:270px}form:focus-within,form:hover{width:270px;max-width:270px}form input::placeholder,form:focus-within input::placeholder,form:hover input::placeholder{opacity:1}input{font:inherit;font-size:14px;flex-grow:1;min-height:29px;background-color:transparent;color:#444952;white-space:nowrap;overflow:hidden;border:0;margin:0;padding:0}input:focus{color:#444952;outline:0;outline:none;box-shadow:none}ul,div.error,div.no-results{background-color:#fff;border-radius:4px;left:0;list-style:none;margin:0;padding:0;position:absolute;width:100%;top:calc(100% + 6px);overflow:hidden}ul{font-size:14px;line-height:16px;box-shadow:0 5px 10px #33335926}div.error,div.no-results{font:inherit;line-height:18px;font-size:12px;display:flex;gap:16px}div.error{padding:16px;font-weight:600;color:#e25041;background-color:#fbeae8}div.error div{flex-grow:1}div.error maptiler-geocode-fail-icon{flex-shrink:0;width:20px;height:20px}div.error button{flex-shrink:0}div.error button maptiler-geocode-clear-icon{--color-icon-button: #e25041}div.error button:hover maptiler-geocode-clear-icon,div.error button:active maptiler-geocode-clear-icon{--color-icon-button: inherit}div.no-results{padding:14px 24px 14px 16px;font-weight:400;color:#6b7c93;box-shadow:0 5px 10px #33335926}div.no-results maptiler-geocode-fail-icon{margin-top:4px;flex-shrink:0;width:20px;height:20px}ul.options.open-on-top{top:auto;bottom:calc(100% + 6px)}button{padding:0;margin:0;border:0;background-color:transparent;height:auto;width:auto}button:hover{background-color:transparent}button:hover,button:active{--color-icon-button: #2b8bfb}.input-group{display:flex;align-items:stretch;gap:7px;padding-inline:8px;border-radius:4px;overflow:hidden}.input-group:focus-within{outline:#2b8bfb solid 2px}.search-button{flex-shrink:0}.clear-button-container{display:flex;display:none;position:relative;align-items:stretch}.clear-button-container.displayable{display:flex;flex-shrink:0}:host(.maptiler-geocoder):not(:empty){box-shadow:none}:host(.maptiler-geocoder) .input-group{border:white solid 2px}:host(.maptiler-geocoder) .input-group:focus-within{border:#2b8bfb solid 2px;outline:0;outline:none}:host(.maptiler-geocoder) form.can-collapse{max-width:33px}:host(.maptiler-geocoder) form,:host(.maptiler-geocoder) form:focus-within,:host(.maptiler-geocoder) form:hover{width:270px;max-width:270px}:host(.leaflet-geocoder) .input-group{border:white solid 1px}:host(.leaflet-geocoder) form.can-collapse{max-width:30px}";
|
|
345
345
|
var mt = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, Ce = (t) => {
|
|
346
346
|
throw TypeError(t);
|
|
@@ -348,13 +348,13 @@ var mt = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, Ce = (t) =
|
|
|
348
348
|
for (var s = a > 1 ? void 0 : a ? gt(e, i) : e, o = t.length - 1, r; o >= 0; o--)
|
|
349
349
|
(r = t[o]) && (s = (a ? r(e, i, s) : r(s)) || s);
|
|
350
350
|
return a && s && mt(e, i, s), s;
|
|
351
|
-
}, pe = (t, e, i) => e.has(t) || Ce("Cannot " + i),
|
|
351
|
+
}, pe = (t, e, i) => e.has(t) || Ce("Cannot " + i), w = (t, e, i) => (pe(t, e, "read from private field"), i ? i.call(t) : e.get(t)), U = (t, e, i) => e.has(t) ? Ce("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), oe = (t, e, i, a) => (pe(t, e, "write to private field"), e.set(t, i), i), h = (t, e, i) => (pe(t, e, "access private method"), i), N, B, ae, R, l, Z, Ee, de, x, ue, K, fe, me, $, ge, Q, Pe, le, Ue, Ge, Be, Re, ze, je, Ae;
|
|
352
352
|
let n = class extends F {
|
|
353
353
|
constructor() {
|
|
354
|
-
super(...arguments), U(this, l), this.clearListOnPick = !1, this.clearOnBlur = !1, this.collapsed = !1, this.excludeTypes = !1, this.exhaustiveReverseGeocoding = !1, this.fetchFullGeometryOnPick = !1, this.keepListOpen = !1, this.openListOnTop = !1, this.reverseActive = !1, this.searchValue = "", this.selectedItemIndex = -1, this.cachedFeatures = [], this.lastSearchUrl = "", this.focused = !1, this.isFeatureListVisible = !1, this.isFeatureListInteractedWith = !1, U(this, N, !1), U(this, B), U(this,
|
|
354
|
+
super(...arguments), U(this, l), this.clearListOnPick = !1, this.clearOnBlur = !1, this.collapsed = !1, this.excludeTypes = !1, this.exhaustiveReverseGeocoding = !1, this.fetchFullGeometryOnPick = !1, this.keepListOpen = !1, this.openListOnTop = !1, this.reverseActive = !1, this.searchValue = "", this.selectedItemIndex = -1, this.cachedFeatures = [], this.lastSearchUrl = "", this.focused = !1, this.isFeatureListVisible = !1, this.isFeatureListInteractedWith = !1, U(this, N, !1), U(this, B), U(this, ae, /* @__PURE__ */ new Set()), U(this, R);
|
|
355
355
|
}
|
|
356
356
|
firstUpdated() {
|
|
357
|
-
|
|
357
|
+
oe(this, N, !0);
|
|
358
358
|
}
|
|
359
359
|
/**
|
|
360
360
|
* Set the options of this instance.
|
|
@@ -381,7 +381,7 @@ let n = class extends F {
|
|
|
381
381
|
* @param value text to set and submit
|
|
382
382
|
*/
|
|
383
383
|
submitQuery(t) {
|
|
384
|
-
h(this, l, ge).call(this, t);
|
|
384
|
+
h(this, l, ge).call(this, t, { external: !0 });
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
387
387
|
* Clear search result list.
|
|
@@ -411,14 +411,14 @@ let n = class extends F {
|
|
|
411
411
|
}
|
|
412
412
|
/** @internal */
|
|
413
413
|
handleMapChange(t) {
|
|
414
|
-
|
|
414
|
+
oe(this, R, t);
|
|
415
415
|
}
|
|
416
416
|
/** @internal */
|
|
417
417
|
handleMapClick(t) {
|
|
418
418
|
this.reverseActive && h(this, l, Pe).call(this, t);
|
|
419
419
|
}
|
|
420
420
|
willUpdate(t) {
|
|
421
|
-
t.has("error") && this.error && console.error("[MapTilerGeocodingControl] Error:", this.error), t.has("enableReverse") && (this.reverseActive = this.enableReverse === "always"), ["picked"].some((e) => t.has(e)) && this.picked && (this.clearListOnPick && h(this, l, $).call(this), this.selectedItemIndex = -1), ["searchValue", "minLength"].some((e) => t.has(e)) &&
|
|
421
|
+
t.has("error") && this.error && console.error("[MapTilerGeocodingControl] Error:", this.error), t.has("enableReverse") && (this.reverseActive = this.enableReverse === "always"), ["picked"].some((e) => t.has(e)) && this.picked && (this.clearListOnPick && h(this, l, $).call(this), this.selectedItemIndex = -1), ["searchValue", "minLength"].some((e) => t.has(e)) && w(this, l, de) && (h(this, l, $).call(this), this.error = void 0), ["focused", "listIsInteractedWith"].some((e) => t.has(e)) && this.clearOnBlur && !this.focused && !this.isFeatureListInteractedWith && (this.searchValue = ""), ["selectFirst", "listFeatures", "selectedItemIndex", "picked"].some((e) => t.has(e)) && this.selectFirst !== !1 && this.listFeatures?.length && this.selectedItemIndex == -1 && !this.picked && (this.selectedItemIndex = 0), ["listFeatures", "selectedItemIndex"].some((e) => t.has(e)) && h(this, l, x).call(this, "select", { feature: w(this, l, Z) }), ["picked"].some((e) => t.has(e)) && this.picked && this.picked.id !== t.get("picked")?.id && (this.fetchFullGeometryOnPick && !this.picked.address && this.picked.geometry.type === "Point" && this.picked.place_type[0] !== "reverse" ? h(this, l, Q).call(this, this.picked.id, { byId: !0 }) : Promise.resolve()).then(
|
|
422
422
|
() => {
|
|
423
423
|
h(this, l, x).call(this, "pick", { feature: this.picked });
|
|
424
424
|
},
|
|
@@ -446,7 +446,7 @@ let n = class extends F {
|
|
|
446
446
|
@focus=${() => this.focused = !0}
|
|
447
447
|
@blur=${() => this.focused = !1}
|
|
448
448
|
@click=${() => this.focused = !0}
|
|
449
|
-
@keydown=${h(this, l,
|
|
449
|
+
@keydown=${h(this, l, le)}
|
|
450
450
|
@input=${h(this, l, Ue)}
|
|
451
451
|
@change=${() => this.picked = void 0}
|
|
452
452
|
placeholder=${this.placeholder ?? "Search"}
|
|
@@ -454,7 +454,7 @@ let n = class extends F {
|
|
|
454
454
|
/>
|
|
455
455
|
|
|
456
456
|
<div class="clear-button-container ${A({ displayable: this.searchValue !== "" })}">
|
|
457
|
-
${
|
|
457
|
+
${w(this, l, Ee) ? m`<maptiler-geocode-loading-icon></maptiler-geocode-loading-icon>` : m`
|
|
458
458
|
<button type="button" @click=${h(this, l, Ae)} title=${this.clearButtonTitle ?? "clear"}>
|
|
459
459
|
<maptiler-geocode-clear-icon></maptiler-geocode-clear-icon>
|
|
460
460
|
</button>
|
|
@@ -470,7 +470,7 @@ let n = class extends F {
|
|
|
470
470
|
>
|
|
471
471
|
<maptiler-geocode-reverse-geocoding-icon></maptiler-geocode-reverse-geocoding-icon>
|
|
472
472
|
</button>
|
|
473
|
-
` :
|
|
473
|
+
` : J}
|
|
474
474
|
|
|
475
475
|
<!-- <slot /> -->
|
|
476
476
|
</div>
|
|
@@ -485,7 +485,7 @@ let n = class extends F {
|
|
|
485
485
|
<maptiler-geocode-clear-icon></maptiler-geocode-clear-icon>
|
|
486
486
|
</button>
|
|
487
487
|
</div>
|
|
488
|
-
` : !this.focused && !this.isFeatureListInteractedWith && !this.keepListOpen || this.listFeatures === void 0 ?
|
|
488
|
+
` : !this.focused && !this.isFeatureListInteractedWith && !this.keepListOpen || this.listFeatures === void 0 ? J : this.listFeatures.length === 0 ? m`
|
|
489
489
|
<div class="no-results">
|
|
490
490
|
<maptiler-geocode-fail-icon></maptiler-geocode-fail-icon>
|
|
491
491
|
|
|
@@ -499,7 +499,7 @@ let n = class extends F {
|
|
|
499
499
|
@pointerleave=${h(this, l, Re)}
|
|
500
500
|
@pointerdown=${h(this, l, ze)}
|
|
501
501
|
@pointerup=${h(this, l, je)}
|
|
502
|
-
@keydown=${h(this, l,
|
|
502
|
+
@keydown=${h(this, l, le)}
|
|
503
503
|
role="listbox"
|
|
504
504
|
>
|
|
505
505
|
${qe(
|
|
@@ -516,8 +516,8 @@ let n = class extends F {
|
|
|
516
516
|
@select=${() => {
|
|
517
517
|
h(this, l, Ge).call(this, t);
|
|
518
518
|
}}
|
|
519
|
-
.missingIconsCache=${
|
|
520
|
-
.iconsBaseUrl=${this.iconsBaseUrl ?? "https://cdn.maptiler.com/maptiler-geocoding-control/v3.0.0-rc.
|
|
519
|
+
.missingIconsCache=${w(this, ae)}
|
|
520
|
+
.iconsBaseUrl=${this.iconsBaseUrl ?? "https://cdn.maptiler.com/maptiler-geocoding-control/v3.0.0-rc.8/icons/"}
|
|
521
521
|
/>
|
|
522
522
|
`
|
|
523
523
|
)}
|
|
@@ -529,7 +529,7 @@ let n = class extends F {
|
|
|
529
529
|
};
|
|
530
530
|
N = /* @__PURE__ */ new WeakMap();
|
|
531
531
|
B = /* @__PURE__ */ new WeakMap();
|
|
532
|
-
|
|
532
|
+
ae = /* @__PURE__ */ new WeakMap();
|
|
533
533
|
R = /* @__PURE__ */ new WeakMap();
|
|
534
534
|
l = /* @__PURE__ */ new WeakSet();
|
|
535
535
|
Z = function() {
|
|
@@ -542,7 +542,7 @@ de = function() {
|
|
|
542
542
|
return this.searchValue.length < (this.minLength ?? 2);
|
|
543
543
|
};
|
|
544
544
|
x = function(t, ...[e]) {
|
|
545
|
-
|
|
545
|
+
w(this, N) && this.dispatchEvent(
|
|
546
546
|
new CustomEvent(t, {
|
|
547
547
|
bubbles: !0,
|
|
548
548
|
composed: !0,
|
|
@@ -550,10 +550,10 @@ x = function(t, ...[e]) {
|
|
|
550
550
|
})
|
|
551
551
|
);
|
|
552
552
|
};
|
|
553
|
-
ue = function(t) {
|
|
554
|
-
t?.preventDefault(), this.focused = !1, clearTimeout(
|
|
553
|
+
ue = function(t, { external: e = !1 } = {}) {
|
|
554
|
+
t?.preventDefault(), this.focused = !1, clearTimeout(w(this, B)), this.selectedItemIndex > -1 && this.listFeatures ? (this.picked = this.listFeatures[this.selectedItemIndex], this.searchValue = this.picked.place_type[0] === "reverse" ? this.picked.place_name : this.picked.place_name.replace(/,.*/, ""), this.error = void 0, this.selectedItemIndex = -1) : this.searchValue && h(this, l, Q).call(this, this.searchValue, { exact: !0, external: e }).then(() => {
|
|
555
555
|
this.picked = void 0;
|
|
556
|
-
}).catch((
|
|
556
|
+
}).catch((i) => this.error = i);
|
|
557
557
|
};
|
|
558
558
|
K = function(t) {
|
|
559
559
|
try {
|
|
@@ -569,10 +569,10 @@ fe = function() {
|
|
|
569
569
|
};
|
|
570
570
|
me = function(t, { external: e = !1 } = {}) {
|
|
571
571
|
if (this.searchValue = t, h(this, l, x).call(this, "querychange", { query: this.searchValue, reverseCoords: h(this, l, K).call(this, t) }), this.error = void 0, this.picked = void 0, this.showResultsWhileTyping !== !1) {
|
|
572
|
-
if (clearTimeout(
|
|
572
|
+
if (clearTimeout(w(this, B)), w(this, l, de))
|
|
573
573
|
return;
|
|
574
574
|
const i = this.searchValue;
|
|
575
|
-
|
|
575
|
+
oe(this, B, window.setTimeout(() => {
|
|
576
576
|
h(this, l, Q).call(this, i, { external: e }).catch((a) => this.error = a);
|
|
577
577
|
}, this.debounceSearch ?? 200));
|
|
578
578
|
} else
|
|
@@ -581,8 +581,8 @@ me = function(t, { external: e = !1 } = {}) {
|
|
|
581
581
|
$ = function() {
|
|
582
582
|
this.listFeatures !== void 0 && (this.listFeatures = void 0, h(this, l, x).call(this, "featuresclear"));
|
|
583
583
|
};
|
|
584
|
-
ge = function(t) {
|
|
585
|
-
this.searchValue = t, h(this, l, x).call(this, "querychange", { query: this.searchValue, reverseCoords: h(this, l, K).call(this, t) }), this.selectedItemIndex = -1, h(this, l, ue).call(this);
|
|
584
|
+
ge = function(t, { external: e = !1 } = {}) {
|
|
585
|
+
this.searchValue = t, h(this, l, x).call(this, "querychange", { query: this.searchValue, reverseCoords: h(this, l, K).call(this, t) }), this.selectedItemIndex = -1, h(this, l, ue).call(this, void 0, { external: e });
|
|
586
586
|
};
|
|
587
587
|
Q = async function(t, { byId: e = !1, exact: i = !1, external: a = !1 } = {}) {
|
|
588
588
|
this.error = void 0, this.abortController?.abort();
|
|
@@ -591,21 +591,21 @@ Q = async function(t, { byId: e = !1, exact: i = !1, external: a = !1 } = {}) {
|
|
|
591
591
|
try {
|
|
592
592
|
const o = this.apiUrl ?? "https://api.maptiler.com/geocoding", r = h(this, l, K).call(this, t), u = new URL(o + "/" + encodeURIComponent(r ? `${r.decimalLongitude},${r.decimalLatitude}` : t) + ".json"), y = u.searchParams;
|
|
593
593
|
this.language !== void 0 && y.set("language", Array.isArray(this.language) ? this.language.join(",") : this.language ?? "");
|
|
594
|
-
const [M] =
|
|
594
|
+
const [M] = w(this, R) ?? [void 0];
|
|
595
595
|
let L = (!r || this.reverseGeocodingTypes === void 0 ? this.types : this.reverseGeocodingTypes)?.map(
|
|
596
596
|
(v) => typeof v == "string" ? v : M === void 0 || (v[0] ?? 0) <= M && M < (v[1] ?? 1 / 0) ? v[2] : void 0
|
|
597
597
|
).filter((v) => v !== void 0);
|
|
598
598
|
L && (L = [...new Set(L)], y.set("types", L.join(",")));
|
|
599
599
|
const ye = !r || this.reverseGeocodingExcludeTypes === void 0 ? this.excludeTypes : this.reverseGeocodingExcludeTypes;
|
|
600
600
|
if (ye && y.set("excludeTypes", String(ye)), this.bbox && y.set("bbox", this.bbox.map((v) => v.toFixed(6)).join(",")), this.country && y.set("country", Array.isArray(this.country) ? this.country.join(",") : this.country), this.worldview && y.set("worldview", this.worldview), !e && !r) {
|
|
601
|
-
const v = this.proximity ?? [{ type: "server-geolocation" }], xe = await ct(
|
|
601
|
+
const v = this.proximity ?? [{ type: "server-geolocation" }], xe = await ct(w(this, R), v, s);
|
|
602
602
|
xe && y.set("proximity", xe), (i || this.showResultsWhileTyping === !1) && y.set("autocomplete", "false"), y.set("fuzzyMatch", String(this.fuzzyMatch !== !1));
|
|
603
603
|
}
|
|
604
604
|
const ve = this.limit ?? 5, Y = this.reverseGeocodingLimit ?? ve;
|
|
605
605
|
Y > 1 && L?.length !== 1 && console.warn("[MapTilerGeocodingControl] Warning: For reverse geocoding when limit > 1 then types must contain single value."), r ? (Y === 1 || this.exhaustiveReverseGeocoding || L?.length === 1) && y.set("limit", String(Y)) : y.set("limit", String(ve)), this.apiKey && y.set("key", this.apiKey), this.adjustUrl?.(u);
|
|
606
606
|
const We = u.searchParams.get("types") === "" && u.searchParams.get("excludeTypes") !== "true", j = u.toString();
|
|
607
607
|
if (j === this.lastSearchUrl) {
|
|
608
|
-
e ? (this.clearListOnPick && h(this, l, $).call(this), this.picked = this.cachedFeatures[0]) : (this.listFeatures = this.cachedFeatures, h(this, l, x).call(this, "featureslisted", { features: this.listFeatures, external: a }), this.listFeatures[this.selectedItemIndex]?.id !==
|
|
608
|
+
e ? (this.clearListOnPick && h(this, l, $).call(this), this.picked = this.cachedFeatures[0]) : (this.listFeatures = this.cachedFeatures, h(this, l, x).call(this, "featureslisted", { features: this.listFeatures, external: a }), this.listFeatures[this.selectedItemIndex]?.id !== w(this, l, Z)?.id && (this.selectedItemIndex = -1));
|
|
609
609
|
return;
|
|
610
610
|
}
|
|
611
611
|
h(this, l, x).call(this, "request", { urlObj: u }), this.lastSearchUrl = j;
|
|
@@ -626,8 +626,8 @@ Q = async function(t, { byId: e = !1, exact: i = !1, external: a = !1 } = {}) {
|
|
|
626
626
|
properties: {},
|
|
627
627
|
/* eslint-disable @typescript-eslint/restrict-template-expressions */
|
|
628
628
|
id: `reverse_${r.decimalLongitude}_${r.decimalLatitude}`,
|
|
629
|
-
|
|
630
|
-
|
|
629
|
+
place_name: `${r.decimalLatitude}, ${r.decimalLongitude}`,
|
|
630
|
+
text: r.toCoordinateFormat("DMS"),
|
|
631
631
|
/* eslint-enable @typescript-eslint/restrict-template-expressions */
|
|
632
632
|
place_type: ["reverse"],
|
|
633
633
|
place_type_name: ["reverse"],
|
|
@@ -637,7 +637,7 @@ Q = async function(t, { byId: e = !1, exact: i = !1, external: a = !1 } = {}) {
|
|
|
637
637
|
type: "Point",
|
|
638
638
|
coordinates: [r.decimalLongitude, r.decimalLatitude]
|
|
639
639
|
}
|
|
640
|
-
}), h(this, l, x).call(this, "featureslisted", { features: this.listFeatures, external: a }), this.cachedFeatures = this.listFeatures, this.listFeatures[this.selectedItemIndex]?.id !==
|
|
640
|
+
}), h(this, l, x).call(this, "featureslisted", { features: this.listFeatures, external: a }), this.cachedFeatures = this.listFeatures, this.listFeatures[this.selectedItemIndex]?.id !== w(this, l, Z)?.id && (this.selectedItemIndex = -1), r && this.input.focus());
|
|
641
641
|
} catch (o) {
|
|
642
642
|
if (o && typeof o == "object" && "name" in o && o.name === "AbortError")
|
|
643
643
|
return;
|
|
@@ -649,7 +649,7 @@ Q = async function(t, { byId: e = !1, exact: i = !1, external: a = !1 } = {}) {
|
|
|
649
649
|
Pe = function(t) {
|
|
650
650
|
this.reverseActive = this.enableReverse === "always", h(this, l, $).call(this), this.picked = void 0, h(this, l, ge).call(this, `${t[1].toFixed(6)}, ${nt(t[0], [-180, 180], !0).toFixed(6)}`), h(this, l, fe).call(this);
|
|
651
651
|
};
|
|
652
|
-
|
|
652
|
+
le = function(t) {
|
|
653
653
|
if (!this.listFeatures)
|
|
654
654
|
return;
|
|
655
655
|
const e = t.key === "ArrowDown" ? 1 : t.key === "ArrowUp" ? -1 : 0;
|
|
@@ -679,7 +679,7 @@ Ae = function() {
|
|
|
679
679
|
this.searchValue = "", h(this, l, x).call(this, "queryclear"), this.picked = void 0, this.input.focus();
|
|
680
680
|
};
|
|
681
681
|
n.styles = I`
|
|
682
|
-
${
|
|
682
|
+
${ce(ft)}
|
|
683
683
|
`;
|
|
684
684
|
c([
|
|
685
685
|
p({ attribute: !1 })
|
|
@@ -875,7 +875,7 @@ var xt = Object.getOwnPropertyDescriptor, bt = (t, e, i, a) => {
|
|
|
875
875
|
(r = t[o]) && (s = r(s) || s);
|
|
876
876
|
return s;
|
|
877
877
|
};
|
|
878
|
-
let
|
|
878
|
+
let ne = class extends F {
|
|
879
879
|
render() {
|
|
880
880
|
return z`
|
|
881
881
|
<svg
|
|
@@ -891,14 +891,14 @@ let le = class extends F {
|
|
|
891
891
|
`;
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
|
-
|
|
895
|
-
${
|
|
894
|
+
ne.styles = I`
|
|
895
|
+
${ce(vt)}
|
|
896
896
|
`;
|
|
897
|
-
|
|
897
|
+
ne = bt([
|
|
898
898
|
O("maptiler-geocode-marker")
|
|
899
|
-
],
|
|
900
|
-
const
|
|
901
|
-
function
|
|
899
|
+
], ne);
|
|
900
|
+
const wt = "@maptiler/geocoding-control", kt = "3.0.0-rc.8";
|
|
901
|
+
function we(t) {
|
|
902
902
|
const e = Ye(
|
|
903
903
|
D([
|
|
904
904
|
Ke([
|
|
@@ -974,8 +974,8 @@ const Lt = {
|
|
|
974
974
|
},
|
|
975
975
|
filter: ["!", ["has", "isMask"]]
|
|
976
976
|
}
|
|
977
|
-
}, W = "mtlr-gc-full-geom",
|
|
978
|
-
class
|
|
977
|
+
}, W = "mtlr-gc-full-geom", ke = "mtlr-gc-full-geom-fill", Le = "mtlr-gc-full-geom-line";
|
|
978
|
+
class $t extends H.Evented {
|
|
979
979
|
#e = {};
|
|
980
980
|
#t;
|
|
981
981
|
#i;
|
|
@@ -984,7 +984,7 @@ class Ot extends $t {
|
|
|
984
984
|
}
|
|
985
985
|
/** @internal Not to be called directly */
|
|
986
986
|
onAdd(e) {
|
|
987
|
-
this.#t = e, this.#i = e._container.ownerDocument.createElement("maptiler-geocoder"), this.#i.classList.add("maplibregl-geocoder"), this.#v(), this.#
|
|
987
|
+
this.#t = e, this.#i = e._container.ownerDocument.createElement("maptiler-geocoder"), this.#i.classList.add("maplibregl-geocoder"), this.#v(), this.#k();
|
|
988
988
|
const i = e._container.ownerDocument.createElement("div");
|
|
989
989
|
return i.classList.add("maplibregl-ctrl-geocoder", "maplibregl-ctrl", "maplibregl-ctrl-group"), i.style.position = "relative", i.style.zIndex = "3", i.appendChild(this.#i), setTimeout(() => this.#i?.setOptions({ openListOnTop: i.matches(".maplibregl-ctrl-bottom-left *, .maplibregl-ctrl-bottom-right *") })), i;
|
|
990
990
|
}
|
|
@@ -1038,10 +1038,10 @@ class Ot extends $t {
|
|
|
1038
1038
|
},
|
|
1039
1039
|
querychange: (e) => {
|
|
1040
1040
|
const i = e.detail.reverseCoords;
|
|
1041
|
-
this.#
|
|
1041
|
+
this.#w(i ? [i.decimalLongitude, i.decimalLatitude] : void 0), this.#s("querychange", e.detail);
|
|
1042
1042
|
},
|
|
1043
1043
|
queryclear: () => {
|
|
1044
|
-
this.#
|
|
1044
|
+
this.#w(void 0), this.#s("queryclear");
|
|
1045
1045
|
},
|
|
1046
1046
|
request: (e) => {
|
|
1047
1047
|
this.#s("request", e.detail);
|
|
@@ -1094,7 +1094,7 @@ class Ot extends $t {
|
|
|
1094
1094
|
#v() {
|
|
1095
1095
|
this.#i && (this.#i.setOptions(this.#e), this.#i.fetchFullGeometryOnPick = this.#e.pickedResultStyle !== "marker-only");
|
|
1096
1096
|
}
|
|
1097
|
-
#
|
|
1097
|
+
#k() {
|
|
1098
1098
|
if (!(!this.#i || !this.#t)) {
|
|
1099
1099
|
for (const [e, i] of Object.entries(this.#g))
|
|
1100
1100
|
this.#i.addEventListener(e, i);
|
|
@@ -1155,7 +1155,7 @@ class Ot extends $t {
|
|
|
1155
1155
|
{ padding: i, ...a ? { maxZoom: a } : {}, ...this.#F }
|
|
1156
1156
|
);
|
|
1157
1157
|
}
|
|
1158
|
-
#
|
|
1158
|
+
#w(e) {
|
|
1159
1159
|
if (!(this.#e.marker === !1 || this.#e.marker === null || !this.#t)) {
|
|
1160
1160
|
if (!e) {
|
|
1161
1161
|
this.#r?.remove(), this.#r = void 0;
|
|
@@ -1182,7 +1182,7 @@ class Ot extends $t {
|
|
|
1182
1182
|
if (s.length > 0) {
|
|
1183
1183
|
const o = _e(D(s.map((r) => Qe(r))));
|
|
1184
1184
|
if (o) {
|
|
1185
|
-
const r =
|
|
1185
|
+
const r = we({ ...i, geometry: o.geometry });
|
|
1186
1186
|
r && this.#n(r);
|
|
1187
1187
|
}
|
|
1188
1188
|
} else {
|
|
@@ -1195,7 +1195,7 @@ class Ot extends $t {
|
|
|
1195
1195
|
});
|
|
1196
1196
|
}
|
|
1197
1197
|
} else if (i?.geometry.type.endsWith("Polygon")) {
|
|
1198
|
-
const s =
|
|
1198
|
+
const s = we(i);
|
|
1199
1199
|
s && this.#n(s), this.#e.pickedResultStyle === "full-geometry-including-polygon-center-marker" && a();
|
|
1200
1200
|
} else i?.geometry.type.endsWith("LineString") ? this.#n(i) : i?.geometry.type.endsWith("Point") && a();
|
|
1201
1201
|
if (this.#e.showResultMarkers !== !1 && this.#e.showResultMarkers !== null)
|
|
@@ -1208,7 +1208,7 @@ class Ot extends $t {
|
|
|
1208
1208
|
continue;
|
|
1209
1209
|
} else
|
|
1210
1210
|
o = this.#f(this.#e.showResultMarkers).setLngLat(s.center).setPopup(
|
|
1211
|
-
new
|
|
1211
|
+
new H.Popup({
|
|
1212
1212
|
offset: [1, -27],
|
|
1213
1213
|
closeButton: !1,
|
|
1214
1214
|
closeOnMove: !0,
|
|
@@ -1239,9 +1239,9 @@ class Ot extends $t {
|
|
|
1239
1239
|
!e?.fill && !e?.line || !i && !this.#a || (i ? i.setData(this.#a ?? D([])) : this.#a && this.#t.addSource(W, {
|
|
1240
1240
|
type: "geojson",
|
|
1241
1241
|
data: this.#a
|
|
1242
|
-
}), !this.#t.getLayer(
|
|
1242
|
+
}), !this.#t.getLayer(ke) && e.fill && this.#t.addLayer({
|
|
1243
1243
|
...e.fill,
|
|
1244
|
-
id:
|
|
1244
|
+
id: ke,
|
|
1245
1245
|
type: "fill",
|
|
1246
1246
|
source: W
|
|
1247
1247
|
}), !this.#t.getLayer(Le) && e.line && this.#t.addLayer({
|
|
@@ -1255,7 +1255,7 @@ class Ot extends $t {
|
|
|
1255
1255
|
this.#a = e, this.#u();
|
|
1256
1256
|
}
|
|
1257
1257
|
#f(e) {
|
|
1258
|
-
return typeof e != "object" && (e = { element: this.#t?._container.ownerDocument.createElement("maptiler-geocode-marker"), offset: [1, -13] }), new
|
|
1258
|
+
return typeof e != "object" && (e = { element: this.#t?._container.ownerDocument.createElement("maptiler-geocode-marker"), offset: [1, -13] }), new H.Marker(e);
|
|
1259
1259
|
}
|
|
1260
1260
|
#M() {
|
|
1261
1261
|
const { fullGeometryStyle: e } = this.#e;
|
|
@@ -1264,14 +1264,14 @@ class Ot extends $t {
|
|
|
1264
1264
|
return e;
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
class
|
|
1267
|
+
class jt extends $t {
|
|
1268
1268
|
#e;
|
|
1269
1269
|
constructor(e = {}) {
|
|
1270
1270
|
super(e);
|
|
1271
1271
|
}
|
|
1272
1272
|
/** @internal Not to be called directly */
|
|
1273
1273
|
onAdd(e) {
|
|
1274
|
-
this.#e = e, e.telemetry.registerModule(
|
|
1274
|
+
this.#e = e, e.telemetry.registerModule(wt, kt);
|
|
1275
1275
|
const i = this.getOptions(), { primaryLanguage: a, apiKey: s } = e.getSdkConfig();
|
|
1276
1276
|
if (i.apiKey === void 0 && this.setOptions({ apiKey: s }), i.language === void 0) {
|
|
1277
1277
|
const r = a.code?.match(/^([a-z]{2,3})($|_|-)/);
|
|
@@ -1298,16 +1298,16 @@ class Dt extends Ot {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
export {
|
|
1300
1300
|
_t as DEFAULT_GEOMETRY_STYLE,
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1301
|
+
jt as GeocodingControl,
|
|
1302
|
+
X as MaptilerGeocodeClearIconElement,
|
|
1303
|
+
ee as MaptilerGeocodeFailIconElement,
|
|
1304
|
+
te as MaptilerGeocodeLoadingIconElement,
|
|
1305
|
+
ne as MaptilerGeocodeMarkerElement,
|
|
1306
|
+
ie as MaptilerGeocodeReverseGeocodingIconElement,
|
|
1307
|
+
se as MaptilerGeocodeSearchIconElement,
|
|
1308
1308
|
n as MaptilerGeocoderElement,
|
|
1309
|
-
|
|
1310
|
-
|
|
1309
|
+
jt as MaptilerGeocodingControl,
|
|
1310
|
+
ke as RESULT_LAYER_FILL,
|
|
1311
1311
|
Le as RESULT_LAYER_LINE,
|
|
1312
1312
|
W as RESULT_SOURCE,
|
|
1313
1313
|
Lt as ZOOM_DEFAULTS
|