@maptiler/geocoding-control 0.0.94 → 0.0.95

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.
@@ -36,14 +36,11 @@ export let trackProximity = true;
36
36
  export let types = undefined;
37
37
  export let zoom = 16;
38
38
  export let maxZoom = 18;
39
- export let apiUrl = import.meta.env.VITE_API_URL;
39
+ export let apiUrl = "https://api.maptiler.com/geocoding";
40
40
  export let fetchParameters = {};
41
- export let iconsBaseUrl = import.meta.env.VITE_FLAVOUR
42
- ? "https://cdn.maptiler.com/maptiler-geocoding-control/v" +
43
- "0.0.92" +
44
- // TODO sync it import.meta.env.VITE_LIB_VERSION +
45
- "/icons/"
46
- : "icons/";
41
+ export let iconsBaseUrl = "https://cdn.maptiler.com/maptiler-geocoding-control/v" +
42
+ "0.0.95" +
43
+ "/icons/";
47
44
  export function focus() {
48
45
  input.focus();
49
46
  }
@@ -1,6 +1,6 @@
1
1
  import type * as maplibregl from "maplibre-gl";
2
2
  import type { FillLayerSpecification, FitBoundsOptions, FlyToOptions, IControl, LineLayerSpecification, Map, MarkerOptions } from "maplibre-gl";
3
- import type { SvelteComponentTyped } from "svelte";
3
+ import type { SvelteComponent } from "svelte";
4
4
  import GeocodingControlComponent from "./GeocodingControl.svelte";
5
5
  import type { ControlOptions } from "./types";
6
6
  export { createMapLibreGlMapController } from "./maplibregl-controller";
@@ -39,7 +39,7 @@ export type MapLibreBaseControlOptions = Omit<ControlOptions, "apiKey"> & {
39
39
  line: Pick<LineLayerSpecification, "layout" | "paint" | "filter">;
40
40
  };
41
41
  };
42
- export type Props<T> = T extends SvelteComponentTyped<infer P, any, any> ? P : never;
42
+ export type Props<T> = T extends SvelteComponent<infer P, any, any> ? P : never;
43
43
  export declare abstract class MapLibreBasedGeocodingControl<T extends MapLibreBaseControlOptions> extends EventTarget implements IControl {
44
44
  #private;
45
45
  constructor(options: T);
package/README.md CHANGED
@@ -163,8 +163,6 @@ geocodingControl.addEventListener("optionsVisibilityChange", (e) => {
163
163
 
164
164
  ## POI icons and bundlers
165
165
 
166
- (Skip if the component is used within Svelte webapp.)
167
-
168
166
  POI icons are served from CDN per default.
169
167
  If there is an requirement to serve them from a different location and the control is used in the application which is build with Web Application bundler (like Webpack, Vite) then it is necessary to do some extra cponfiguration.
170
168
  Icons are bundled in the library and you can find them in `node_modules/@maptiler/geocoding-control/icons`.
package/leaflet.js CHANGED
@@ -1420,9 +1420,7 @@ function Ea(r) {
1420
1420
  return t[2] < t[0] && (t[2] += 360), t;
1421
1421
  }
1422
1422
  function hc(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: y = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: _ = !0 } = t, { language: C = void 0 } = t, { limit: L = void 0 } = t, { mapController: N = void 0 } = t, { minLength: x = 2 } = t, { noResultsMessage: D = "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 = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: T = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: ir = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: ze = {} } = t, {
1424
- iconsBaseUrl: Bn = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.92/icons/"
1425
- } = t;
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: y = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: _ = !0 } = t, { language: C = void 0 } = t, { limit: L = void 0 } = t, { mapController: N = void 0 } = t, { minLength: x = 2 } = t, { noResultsMessage: D = "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 = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: T = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: ir = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: ze = {} } = t, { iconsBaseUrl: Bn = "https://cdn.maptiler.com/maptiler-geocoding-control/v0.0.95/icons/" } = t;
1426
1424
  function In() {
1427
1425
  kn.focus();
1428
1426
  }