@maptiler/geocoding-control 0.0.55 → 0.0.57

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MapTiler Geocoding control for MapLibre GL JS and Leaflet
2
2
 
3
- A geocoding control for [Maplibre GL JS](https://github.com/maplibre/maplibre-gl-js) and [Leaflet](https://github.com/maplibre/maplibre-gl-js).
3
+ A geocoding control for [Maplibre GL JS](https://github.com/maplibre/maplibre-gl-js) and [Leaflet](https://github.com/maplibre/maplibre-gl-js) which utilizes [Maptiler Cloud Geocoding API](https://www.maptiler.com/cloud/geocoding/).
4
4
 
5
5
  Component can be used as ES module or UMD module.
6
6
 
@@ -136,7 +136,7 @@ geocodingControl.addEventListener("optionsVisibilityChange", (e) => {
136
136
 
137
137
  ## Svelte component
138
138
 
139
- In addition to using the component as MapLibre GL Control it is alto possible to use it stand-alone in Svelte projects.
139
+ In addition to using the component as MapLibre GL Control it is also possible to use it stand-alone in Svelte projects.
140
140
  Component API matches API described above and options are exposed as component properties.
141
141
 
142
142
  ```svelte
package/dist/leaflet.js CHANGED
@@ -706,7 +706,7 @@ function Bl(r, t, e) {
706
706
  async function ss(N, { byId: Ft = !1, exact: Fn = !1 } = {}) {
707
707
  e(16, gr = void 0);
708
708
  const Vi = Zs(), Ge = new URLSearchParams();
709
- y && Ge.set("language", Array.isArray(y) ? y.join(",") : y), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt), Xt && Ge.set("types", Xt.join(",")), Vi || (p && Ge.set("bbox", p.map((Gr) => Gr.toFixed(6)).join(",")), Ft || (g && Ge.set("proximity", g.map((Gr) => Gr.toFixed(6)).join(",")), (Fn || !I) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut)))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
709
+ y && Ge.set("language", Array.isArray(y) ? y.join(",") : y), Xt && Ge.set("types", Xt.join(",")), Vi || (p && Ge.set("bbox", p.map((Gr) => Gr.toFixed(6)).join(",")), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt)), Ft || (g && Ge.set("proximity", g.map((Gr) => Gr.toFixed(6)).join(",")), (Fn || !I) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
710
710
  const Br = "https://api.maptiler.com/geocoding/" + encodeURIComponent(N) + ".json?" + Ge.toString();
711
711
  if (Br === Qs) {
712
712
  Ft ? (e(12, J = void 0), e(44, it = Eo[0])) : e(12, J = Eo);