@maptiler/geocoding-control 1.4.2-dev.2 → 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 (55) 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 +888 -870
  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 +1244 -1236
  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 +1194 -1180
  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 +694 -692
  28. package/openlayers.js.map +1 -1
  29. package/openlayers.umd.js +3 -3
  30. package/openlayers.umd.js.map +1 -1
  31. package/package.json +5 -5
  32. package/react.js +671 -669
  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 +4 -2
  37. package/svelte/GeocodingControl.svelte.d.ts +1 -0
  38. package/svelte/MapLibreBasedGeocodingControl.d.ts +70 -35
  39. package/svelte/MapLibreBasedGeocodingControl.js +69 -66
  40. package/svelte/leaflet-controller.d.ts +1 -1
  41. package/svelte/leaflet-controller.js +47 -24
  42. package/svelte/leaflet.d.ts +52 -16
  43. package/svelte/leaflet.js +14 -2
  44. package/svelte/maplibregl-controller.d.ts +7 -7
  45. package/svelte/maplibregl-controller.js +55 -34
  46. package/svelte/maplibregl.d.ts +29 -5
  47. package/svelte/maplibregl.js +3 -8
  48. package/svelte/maptilersdk.d.ts +29 -5
  49. package/svelte/maptilersdk.js +15 -18
  50. package/svelte/types.d.ts +6 -0
  51. package/types.d.ts +6 -0
  52. package/vanilla.js +392 -390
  53. package/vanilla.js.map +1 -1
  54. package/vanilla.umd.js +1 -1
  55. package/vanilla.umd.js.map +1 -1
@@ -1,12 +1,13 @@
1
1
  import type * as maplibregl from "maplibre-gl";
2
- import type { FillLayerSpecification, FitBoundsOptions, FlyToOptions, LineLayerSpecification, Map } from "maplibre-gl";
2
+ import type { FillLayerSpecification, FitBoundsOptions, FlyToOptions, LineLayerSpecification, Map, Marker, MarkerOptions } from "maplibre-gl";
3
3
  import type { BBox, Position } from "./types";
4
4
  import type { Feature, MapEvent } from "./types.js";
5
- type MapLibreGL = Pick<typeof maplibregl, "Marker" | "Popup">;
6
- export declare function createMapLibreGlMapController(map: Map, maplibregl?: MapLibreGL | undefined, marker?: boolean | maplibregl.MarkerOptions, showResultMarkers?: boolean | maplibregl.MarkerOptions, flyToOptions?: FlyToOptions, fitBoundsOptions?: FitBoundsOptions, fullGeometryStyle?: undefined | {
7
- fill?: Pick<FillLayerSpecification, "layout" | "paint" | "filter">;
8
- line?: Pick<LineLayerSpecification, "layout" | "paint" | "filter">;
9
- }): {
5
+ export type MapLibreGL = Pick<typeof maplibregl, "Marker" | "Popup">;
6
+ export type FullGeometryStyle = {
7
+ fill: Pick<FillLayerSpecification, "layout" | "paint" | "filter">;
8
+ line: Pick<LineLayerSpecification, "layout" | "paint" | "filter">;
9
+ };
10
+ export declare function createMapLibreGlMapController(map: Map, maplibregl?: MapLibreGL | undefined, marker?: boolean | null | MarkerOptions | ((map: Map, feature?: Feature) => Marker | undefined | null), showResultMarkers?: boolean | null | MarkerOptions | ((map: Map, feature: Feature) => Marker | undefined | null), flyToOptions?: FlyToOptions | null, fitBoundsOptions?: FitBoundsOptions | null, fullGeometryStyle?: boolean | null | FullGeometryStyle): {
10
11
  setEventHandler(handler: undefined | ((e: MapEvent) => void)): void;
11
12
  flyTo(center: Position, zoom?: number): void;
12
13
  fitBounds(bbox: BBox, padding: number, maxZoom?: number): void;
@@ -16,4 +17,3 @@ export declare function createMapLibreGlMapController(map: Map, maplibregl?: Map
16
17
  setSelectedMarker(index: number): void;
17
18
  getCenterAndZoom(): [number, number, number];
18
19
  };
19
- export {};