@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.
- package/MapLibreBasedGeocodingControl.d.ts +70 -35
- package/leaflet-controller.d.ts +1 -1
- package/leaflet-controller.js +407 -398
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +3 -3
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.d.ts +52 -16
- package/leaflet.js +888 -870
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +7 -7
- package/maplibregl-controller.js +421 -413
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +3 -3
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +29 -5
- package/maplibregl.js +1244 -1236
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +29 -5
- package/maptilersdk.js +1194 -1180
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +694 -692
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +5 -5
- package/react.js +671 -669
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +4 -2
- package/svelte/GeocodingControl.svelte.d.ts +1 -0
- package/svelte/MapLibreBasedGeocodingControl.d.ts +70 -35
- package/svelte/MapLibreBasedGeocodingControl.js +69 -66
- package/svelte/leaflet-controller.d.ts +1 -1
- package/svelte/leaflet-controller.js +47 -24
- package/svelte/leaflet.d.ts +52 -16
- package/svelte/leaflet.js +14 -2
- package/svelte/maplibregl-controller.d.ts +7 -7
- package/svelte/maplibregl-controller.js +55 -34
- package/svelte/maplibregl.d.ts +29 -5
- package/svelte/maplibregl.js +3 -8
- package/svelte/maptilersdk.d.ts +29 -5
- package/svelte/maptilersdk.js +15 -18
- package/svelte/types.d.ts +6 -0
- package/types.d.ts +6 -0
- package/vanilla.js +392 -390
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- 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
|
|
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
|
-
|
|
13
|
-
|
|
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
|
}
|