@maptiler/geocoding-control 0.0.82 → 0.0.84
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/DispatcherType.d.ts +14 -0
- package/GeocodingControl.svelte +10 -3
- package/GeocodingControl.svelte.d.ts +9 -12
- package/README.md +38 -12
- package/leaflet-controller.js +450 -450
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +5 -5
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.d.ts +2 -2
- package/leaflet.js +420 -420
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +5 -5
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +5 -3
- package/maplibregl-controller.js +450 -450
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +5 -5
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +11 -7
- package/maplibregl.js +871 -861
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +5 -5
- package/maplibregl.umd.js.map +1 -1
- package/mask.d.ts +1 -1
- package/package.json +12 -7
- package/react.d.ts +11 -18
- package/react.js +333 -333
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
package/maplibregl.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
1
|
+
import type { FillLayerSpecification, FitBoundsOptions, FlyToOptions, IControl, LineLayerSpecification, Map, MarkerOptions } from "maplibre-gl";
|
|
2
|
+
import * as maplibregl from "maplibre-gl";
|
|
3
3
|
import type { ControlOptions } from "./types";
|
|
4
4
|
export { createMaplibreglMapController } from "./maplibreglMapController";
|
|
5
|
-
type MapLibreGL = typeof maplibregl
|
|
6
|
-
type MapLibreControlOptions = ControlOptions & {
|
|
5
|
+
type MapLibreGL = Pick<typeof maplibregl, "Marker" | "Popup">;
|
|
6
|
+
type MapLibreControlOptions = Omit<ControlOptions, "apiKey"> & {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Maptiler API key. Optional if used with MapTiler SDK.
|
|
9
|
+
*/
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
/**
|
|
12
|
+
* A MapLibre GL instance to use when creating [Markers](https://maplibre.org/maplibre-gl-js-docs/api/markers/#marker).
|
|
9
13
|
* Required if `options.marker` is `true`.
|
|
10
14
|
*/
|
|
11
15
|
maplibregl?: MapLibreGL;
|
|
@@ -45,10 +49,10 @@ type MapLibreControlOptions = ControlOptions & {
|
|
|
45
49
|
};
|
|
46
50
|
export declare class GeocodingControl extends EventTarget implements IControl {
|
|
47
51
|
#private;
|
|
48
|
-
constructor(options
|
|
52
|
+
constructor(options?: MapLibreControlOptions);
|
|
49
53
|
onAdd(map: Map): HTMLDivElement;
|
|
50
54
|
setOptions(options: MapLibreControlOptions): void;
|
|
51
|
-
setQuery(value: string, submit?: boolean
|
|
55
|
+
setQuery(value: string, submit?: boolean): void;
|
|
52
56
|
setReverseMode(value: boolean): void;
|
|
53
57
|
focus(): void;
|
|
54
58
|
blur(): void;
|