@maptiler/geocoding-control 1.4.2-dev.3 → 2.0.0

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.
Files changed (52) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +70 -35
  2. package/leaflet-controller.d.ts +1 -1
  3. package/leaflet-controller.js +407 -398
  4. package/leaflet-controller.js.map +1 -1
  5. package/leaflet-controller.umd.js +3 -3
  6. package/leaflet-controller.umd.js.map +1 -1
  7. package/leaflet.d.ts +52 -16
  8. package/leaflet.js +654 -638
  9. package/leaflet.js.map +1 -1
  10. package/leaflet.umd.js +3 -3
  11. package/leaflet.umd.js.map +1 -1
  12. package/maplibregl-controller.d.ts +7 -7
  13. package/maplibregl-controller.js +421 -413
  14. package/maplibregl-controller.js.map +1 -1
  15. package/maplibregl-controller.umd.js +3 -3
  16. package/maplibregl-controller.umd.js.map +1 -1
  17. package/maplibregl.d.ts +29 -5
  18. package/maplibregl.js +1352 -1346
  19. package/maplibregl.js.map +1 -1
  20. package/maplibregl.umd.js +3 -3
  21. package/maplibregl.umd.js.map +1 -1
  22. package/maptilersdk.d.ts +29 -5
  23. package/maptilersdk.js +1315 -1303
  24. package/maptilersdk.js.map +1 -1
  25. package/maptilersdk.umd.js +3 -3
  26. package/maptilersdk.umd.js.map +1 -1
  27. package/openlayers.js +1 -1
  28. package/openlayers.js.map +1 -1
  29. package/openlayers.umd.js +1 -1
  30. package/openlayers.umd.js.map +1 -1
  31. package/package.json +5 -5
  32. package/react.js +1 -1
  33. package/react.js.map +1 -1
  34. package/react.umd.js +1 -1
  35. package/react.umd.js.map +1 -1
  36. package/svelte/GeocodingControl.svelte +1 -1
  37. package/svelte/MapLibreBasedGeocodingControl.d.ts +70 -35
  38. package/svelte/MapLibreBasedGeocodingControl.js +69 -66
  39. package/svelte/leaflet-controller.d.ts +1 -1
  40. package/svelte/leaflet-controller.js +47 -24
  41. package/svelte/leaflet.d.ts +52 -16
  42. package/svelte/leaflet.js +14 -2
  43. package/svelte/maplibregl-controller.d.ts +7 -7
  44. package/svelte/maplibregl-controller.js +55 -34
  45. package/svelte/maplibregl.d.ts +29 -5
  46. package/svelte/maplibregl.js +3 -8
  47. package/svelte/maptilersdk.d.ts +29 -5
  48. package/svelte/maptilersdk.js +15 -18
  49. package/vanilla.js +1 -1
  50. package/vanilla.js.map +1 -1
  51. package/vanilla.umd.js +1 -1
  52. package/vanilla.umd.js.map +1 -1
package/maplibregl.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type { Map } from "maplibre-gl";
2
2
  import * as maplibregl from "maplibre-gl";
3
- import type GeocodingControlComponent from "./GeocodingControl.svelte";
4
- import { MapLibreBasedGeocodingControl, type MapLibreBaseControlOptions, type Props } from "./MapLibreBasedGeocodingControl";
3
+ import { type MapLibreBaseControlOptions } from "./MapLibreBasedGeocodingControl";
5
4
  export { createMapLibreGlMapController } from "./maplibregl-controller";
6
5
  type Options = MapLibreBaseControlOptions & {
7
6
  /**
@@ -9,8 +8,33 @@ type Options = MapLibreBaseControlOptions & {
9
8
  */
10
9
  apiKey: string;
11
10
  };
12
- export declare class GeocodingControl extends MapLibreBasedGeocodingControl<Options> implements maplibregl.IControl {
13
- getMapLibreGl(): typeof maplibregl;
11
+ declare const Base: {
12
+ new <T extends MapLibreBaseControlOptions>(options?: T): {
13
+ "__#1@#gc"?: import("svelte").SvelteComponent;
14
+ "__#1@#options": T;
15
+ onAddInt(map: Map): HTMLElement;
16
+ setOptions(options: T): void;
17
+ setQuery(value: string, submit?: boolean): void;
18
+ clearMap(): void;
19
+ clearList(): void;
20
+ setReverseMode(value: boolean): void;
21
+ focus(): void;
22
+ blur(): void;
23
+ onRemove(): void;
24
+ _listeners: maplibregl.Listeners;
25
+ _oneTimeListeners: maplibregl.Listeners;
26
+ _eventedParent: maplibregl.Evented;
27
+ _eventedParentData: any | (() => any);
28
+ on(type: string, listener: maplibregl.Listener): any;
29
+ off(type: string, listener: maplibregl.Listener): any;
30
+ once(type: string, listener?: maplibregl.Listener): Promise<any> | any;
31
+ fire(event: {
32
+ readonly type: string;
33
+ } | string, properties?: any): any;
34
+ listens(type: string): boolean;
35
+ setEventedParent(parent?: maplibregl.Evented | null, data?: any | (() => any)): any;
36
+ };
37
+ };
38
+ export declare class GeocodingControl extends Base<Options> implements maplibregl.IControl {
14
39
  onAdd(map: Map): HTMLElement;
15
- getExtraProps(): Partial<Props<GeocodingControlComponent>>;
16
40
  }