@maptiler/geocoding-control 0.0.100-rc.2 → 1.0.0-rc.2
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 +2 -2
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +1 -1
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +2 -2
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +1 -1
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +2 -2
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +1 -1
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +2 -2
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +1 -1
- package/openlayers.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +94 -94
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +5 -3
- package/svelte/GeocodingControl.svelte.d.ts +2 -2
- package/svelte/types.d.ts +5 -3
- package/types.d.ts +5 -3
- package/vanilla.js +2 -2
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/leaflet.js
CHANGED
|
@@ -1420,7 +1420,7 @@ function La(r) {
|
|
|
1420
1420
|
return t[2] < t[0] && (t[2] += 360), t;
|
|
1421
1421
|
}
|
|
1422
1422
|
function Ic(r, t, e) {
|
|
1423
|
-
let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: v = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: I = !0 } = t, { fuzzyMatch: _ = !0 } = t, { language: C = void 0 } = t, { limit: x = void 0 } = t, { mapController: N = void 0 } = t, { minLength: L = 2 } = t, { noResultsMessage: M = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: w =
|
|
1423
|
+
let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: v = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: I = !0 } = t, { fuzzyMatch: _ = !0 } = t, { language: C = void 0 } = t, { limit: x = void 0 } = t, { mapController: N = void 0 } = t, { minLength: L = 2 } = t, { noResultsMessage: M = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: w = [{ type: "server-geolocation" }] } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: D = "ifNeeded" } = t, { showResultsWhileTyping: H = !0 } = t, { types: rt = void 0 } = t, { zoom: wt = 16 } = t, { maxZoom: Bt = 18 } = t, { apiUrl: ge = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: or = {} } = t, { iconsBaseUrl: $e = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.0.0-rc.2/icons/" } = t;
|
|
1424
1424
|
const kn = (S) => {
|
|
1425
1425
|
};
|
|
1426
1426
|
function Nn() {
|
|
@@ -1458,7 +1458,7 @@ function Ic(r, t, e) {
|
|
|
1458
1458
|
e(18, Qr = xr);
|
|
1459
1459
|
try {
|
|
1460
1460
|
const tn = fa(), Oe = new URLSearchParams();
|
|
1461
|
-
if (C != null && Oe.set("language", Array.isArray(C) ? C.join(",") : C), rt && Oe.set("types", rt.join(",")), u && Oe.set("bbox", u.map((Es) => Es.toFixed(6)).join(",")), h && Oe.set("country", Array.isArray(h) ? h.join(",") : h), !Gt && !tn) {
|
|
1461
|
+
if (C != null && Oe.set("language", Array.isArray(C) ? C.join(",") : C ?? ""), rt && Oe.set("types", rt.join(",")), u && Oe.set("bbox", u.map((Es) => Es.toFixed(6)).join(",")), h && Oe.set("country", Array.isArray(h) ? h.join(",") : h), !Gt && !tn) {
|
|
1462
1462
|
async function Es() {
|
|
1463
1463
|
const _i = N == null ? void 0 : N.getCenterAndZoom();
|
|
1464
1464
|
for (const Ve of w ?? [])
|