@maptiler/geocoding-control 1.4.2-dev.2 → 2.0.0-rc.1

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 (72) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +2971 -35
  2. package/leaflet-controller.d.ts +1 -1
  3. package/leaflet-controller.js +580 -569
  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 +74 -16
  8. package/leaflet.js +1344 -1311
  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 +683 -661
  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.js +1632 -1481
  18. package/maplibregl.js.map +1 -1
  19. package/maplibregl.umd.js +3 -3
  20. package/maplibregl.umd.js.map +1 -1
  21. package/maptilersdk.js +1642 -1488
  22. package/maptilersdk.js.map +1 -1
  23. package/maptilersdk.umd.js +3 -3
  24. package/maptilersdk.umd.js.map +1 -1
  25. package/openlayers-controller.d.ts +1 -1
  26. package/openlayers-controller.js +308 -306
  27. package/openlayers-controller.js.map +1 -1
  28. package/openlayers-controller.umd.js +3 -3
  29. package/openlayers-controller.umd.js.map +1 -1
  30. package/openlayers.d.ts +21 -0
  31. package/openlayers.js +1301 -1313
  32. package/openlayers.js.map +1 -1
  33. package/openlayers.umd.js +3 -3
  34. package/openlayers.umd.js.map +1 -1
  35. package/package.json +18 -18
  36. package/react.d.ts +4 -4
  37. package/react.js +663 -644
  38. package/react.js.map +1 -1
  39. package/react.umd.js +1 -1
  40. package/react.umd.js.map +1 -1
  41. package/style.css +1 -1
  42. package/svelte/FeatureItem.svelte.d.ts +1 -1
  43. package/svelte/GeocodingControl.svelte +64 -33
  44. package/svelte/GeocodingControl.svelte.d.ts +25 -9
  45. package/svelte/MapLibreBasedGeocodingControl.d.ts +2971 -35
  46. package/svelte/MapLibreBasedGeocodingControl.js +166 -58
  47. package/svelte/leaflet-controller.d.ts +1 -1
  48. package/svelte/leaflet-controller.js +50 -24
  49. package/svelte/leaflet.d.ts +74 -16
  50. package/svelte/leaflet.js +25 -15
  51. package/svelte/maplibregl-controller.d.ts +7 -7
  52. package/svelte/maplibregl-controller.js +96 -66
  53. package/svelte/maplibregl.js +10 -7
  54. package/svelte/maptilersdk.js +23 -18
  55. package/svelte/openlayers-controller.d.ts +1 -1
  56. package/svelte/openlayers-controller.js +4 -1
  57. package/svelte/openlayers.d.ts +21 -0
  58. package/svelte/openlayers.js +30 -45
  59. package/svelte/react.d.ts +4 -4
  60. package/svelte/types.d.ts +38 -12
  61. package/svelte/vanilla.d.ts +14 -1
  62. package/svelte/vanilla.js +31 -8
  63. package/types.d.ts +38 -12
  64. package/vanilla.d.ts +14 -1
  65. package/vanilla.js +838 -791
  66. package/vanilla.js.map +1 -1
  67. package/vanilla.umd.js +1 -1
  68. package/vanilla.umd.js.map +1 -1
  69. package/maplibregl.d.ts +0 -16
  70. package/maptilersdk.d.ts +0 -11
  71. package/svelte/maplibregl.d.ts +0 -16
  72. package/svelte/maptilersdk.d.ts +0 -11
package/maplibregl.d.ts DELETED
@@ -1,16 +0,0 @@
1
- import type { Map } from "maplibre-gl";
2
- import * as maplibregl from "maplibre-gl";
3
- import type GeocodingControlComponent from "./GeocodingControl.svelte";
4
- import { MapLibreBasedGeocodingControl, type MapLibreBaseControlOptions, type Props } from "./MapLibreBasedGeocodingControl";
5
- export { createMapLibreGlMapController } from "./maplibregl-controller";
6
- type Options = MapLibreBaseControlOptions & {
7
- /**
8
- * Maptiler API key. Optional if used with MapTiler SDK.
9
- */
10
- apiKey: string;
11
- };
12
- export declare class GeocodingControl extends MapLibreBasedGeocodingControl<Options> implements maplibregl.IControl {
13
- getMapLibreGl(): typeof maplibregl;
14
- onAdd(map: Map): HTMLElement;
15
- getExtraProps(): Partial<Props<GeocodingControlComponent>>;
16
- }
package/maptilersdk.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import * as maptilersdk from "@maptiler/sdk";
2
- import type * as maplibregl from "maplibre-gl";
3
- import type { Map } from "maplibre-gl";
4
- import type GeocodingControlComponent from "./GeocodingControl.svelte";
5
- import { MapLibreBasedGeocodingControl, type MapLibreBaseControlOptions, type Props } from "./MapLibreBasedGeocodingControl";
6
- export { createMapLibreGlMapController } from "./maplibregl-controller";
7
- export declare class GeocodingControl extends MapLibreBasedGeocodingControl<MapLibreBaseControlOptions> implements maptilersdk.IControl {
8
- getMapLibreGl(): typeof maplibregl;
9
- onAdd(map: maptilersdk.Map): HTMLElement;
10
- getExtraProps(map: Map, div: HTMLElement): Partial<Props<GeocodingControlComponent>>;
11
- }
@@ -1,16 +0,0 @@
1
- import type { Map } from "maplibre-gl";
2
- import * as maplibregl from "maplibre-gl";
3
- import type GeocodingControlComponent from "./GeocodingControl.svelte";
4
- import { MapLibreBasedGeocodingControl, type MapLibreBaseControlOptions, type Props } from "./MapLibreBasedGeocodingControl";
5
- export { createMapLibreGlMapController } from "./maplibregl-controller";
6
- type Options = MapLibreBaseControlOptions & {
7
- /**
8
- * Maptiler API key. Optional if used with MapTiler SDK.
9
- */
10
- apiKey: string;
11
- };
12
- export declare class GeocodingControl extends MapLibreBasedGeocodingControl<Options> implements maplibregl.IControl {
13
- getMapLibreGl(): typeof maplibregl;
14
- onAdd(map: Map): HTMLElement;
15
- getExtraProps(): Partial<Props<GeocodingControlComponent>>;
16
- }
@@ -1,11 +0,0 @@
1
- import * as maptilersdk from "@maptiler/sdk";
2
- import type * as maplibregl from "maplibre-gl";
3
- import type { Map } from "maplibre-gl";
4
- import type GeocodingControlComponent from "./GeocodingControl.svelte";
5
- import { MapLibreBasedGeocodingControl, type MapLibreBaseControlOptions, type Props } from "./MapLibreBasedGeocodingControl";
6
- export { createMapLibreGlMapController } from "./maplibregl-controller";
7
- export declare class GeocodingControl extends MapLibreBasedGeocodingControl<MapLibreBaseControlOptions> implements maptilersdk.IControl {
8
- getMapLibreGl(): typeof maplibregl;
9
- onAdd(map: maptilersdk.Map): HTMLElement;
10
- getExtraProps(map: Map, div: HTMLElement): Partial<Props<GeocodingControlComponent>>;
11
- }