@maptiler/geocoding-control 2.0.0 → 2.1.0-rc1
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 +3027 -27
- package/icons/10pin.svg +4 -1
- package/icons/9pin.svg +4 -1
- package/icons/alcohol.svg +1 -1
- package/icons/alpine_hut.svg +1 -1
- package/icons/apartment.svg +4 -1
- package/icons/area.svg +1 -5
- package/icons/artwork.svg +4 -1
- package/icons/beauty.svg +14 -1
- package/icons/bicycle_repair_station.svg +18 -1
- package/icons/biergarten.svg +4 -1
- package/icons/books.svg +14 -1
- package/icons/bowl.svg +4 -1
- package/icons/bowling_alley.svg +4 -1
- package/icons/bus_station.svg +1 -1
- package/icons/camping.svg +1 -1
- package/icons/car_repair.svg +14 -1
- package/icons/car_wash.svg +19 -1
- package/icons/cave_entrance.svg +15 -1
- package/icons/chalet.svg +1 -1
- package/icons/chemist.svg +14 -1
- package/icons/church.svg +4 -1
- package/icons/community_centre.svg +20 -1
- package/icons/firestation.svg +4 -1
- package/icons/guest_house.svg +29 -8
- package/icons/hotel.svg +1 -1
- package/icons/housenumber.svg +19 -14
- package/icons/hut.svg +1 -4
- package/icons/medical_supply.svg +20 -1
- package/icons/memorial.svg +14 -1
- package/icons/motel.svg +19 -1
- package/icons/post.svg +1 -1
- package/icons/post_office.svg +1 -1
- package/icons/postal_code.svg +1 -23
- package/icons/public_bookcase.svg +14 -1
- package/icons/public_building.svg +4 -1
- package/icons/shintoist.svg +1 -1
- package/icons/street.svg +11 -14
- package/icons/vehicle_inspection.svg +18 -1
- package/icons/wilderness_hut.svg +1 -1
- package/leaflet-controller.d.ts +1 -1
- package/leaflet-controller.js +113 -110
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +2 -2
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.d.ts +58 -5
- package/leaflet.js +1438 -1265
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +1 -1
- package/maplibregl-controller.js +483 -469
- 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 +2499 -13
- package/maplibregl.js +2435 -2139
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +2499 -13
- package/maptilersdk.js +2432 -2139
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers-controller.d.ts +1 -1
- package/openlayers-controller.js +66 -63
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +2 -2
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.d.ts +53 -1
- package/openlayers.js +2046 -1902
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +28 -28
- package/react.d.ts +31 -5
- package/react.js +1252 -1096
- 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/svelte/FeatureItem.svelte +60 -13
- package/svelte/FeatureItem.svelte.d.ts +4 -4
- package/svelte/GeocodingControl.svelte +166 -98
- package/svelte/GeocodingControl.svelte.d.ts +36 -16
- package/svelte/MapLibreBasedGeocodingControl.d.ts +3027 -27
- package/svelte/MapLibreBasedGeocodingControl.js +154 -21
- package/svelte/leaflet-controller.d.ts +1 -1
- package/svelte/leaflet-controller.js +6 -3
- package/svelte/leaflet.d.ts +58 -5
- package/svelte/leaflet.js +52 -21
- package/svelte/maplibregl-controller.d.ts +1 -1
- package/svelte/maplibregl-controller.js +47 -38
- package/svelte/maplibregl.d.ts +2499 -13
- package/svelte/maplibregl.js +11 -3
- package/svelte/maptilersdk.d.ts +2499 -13
- package/svelte/maptilersdk.js +11 -3
- package/svelte/openlayers-controller.d.ts +1 -1
- package/svelte/openlayers-controller.js +7 -4
- package/svelte/openlayers.d.ts +53 -1
- package/svelte/openlayers.js +66 -48
- package/svelte/react.d.ts +31 -5
- package/svelte/react.js +21 -9
- package/svelte/types.d.ts +106 -35
- package/svelte/vanilla.d.ts +46 -2
- package/svelte/vanilla.js +66 -10
- package/types.d.ts +106 -35
- package/vanilla.d.ts +46 -2
- package/vanilla.js +1260 -1057
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
- package/icons/aerodrome.12.svg +0 -1
- package/icons/bus_stop.12.svg +0 -1
- package/icons/elevator.12.svg +0 -1
- /package/icons/{helipad.16.svg → helipad.svg} +0 -0
- /package/icons/{traffic_light.13.svg → traffic_light.svg} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type { BBox, Feature, FeatureCollection, MapController, ProximityRule } from "./types";
|
|
2
|
+
import type { BBox, EnableReverse, Feature, FeatureCollection, MapController, PickedResultStyle, ProximityRule, ShowPlaceType } from "./types";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
ZOOM_DEFAULTS?: Record<string, number>;
|
|
@@ -8,10 +8,12 @@ declare const __propDef: {
|
|
|
8
8
|
bbox?: BBox | undefined;
|
|
9
9
|
clearButtonTitle?: string;
|
|
10
10
|
clearOnBlur?: boolean;
|
|
11
|
+
clearListOnPick?: boolean;
|
|
12
|
+
keepListOpen?: boolean;
|
|
11
13
|
collapsed?: boolean;
|
|
12
14
|
country?: string | string[] | undefined;
|
|
13
15
|
debounceSearch?: number;
|
|
14
|
-
enableReverse?:
|
|
16
|
+
enableReverse?: EnableReverse;
|
|
15
17
|
errorMessage?: string;
|
|
16
18
|
filter?: (feature: Feature) => boolean;
|
|
17
19
|
flyTo?: boolean;
|
|
@@ -26,8 +28,8 @@ declare const __propDef: {
|
|
|
26
28
|
reverseActive?: boolean;
|
|
27
29
|
reverseButtonTitle?: string;
|
|
28
30
|
searchValue?: string;
|
|
29
|
-
|
|
30
|
-
showPlaceType?:
|
|
31
|
+
pickedResultStyle?: PickedResultStyle;
|
|
32
|
+
showPlaceType?: ShowPlaceType;
|
|
31
33
|
showResultsWhileTyping?: boolean;
|
|
32
34
|
selectFirst?: boolean;
|
|
33
35
|
flyToSelected?: boolean;
|
|
@@ -35,30 +37,48 @@ declare const __propDef: {
|
|
|
35
37
|
types?: string[] | undefined;
|
|
36
38
|
exhaustiveReverseGeocoding?: boolean;
|
|
37
39
|
excludeTypes?: boolean;
|
|
38
|
-
zoom?:
|
|
39
|
-
maxZoom?: number | undefined;
|
|
40
|
+
zoom?: Record<string, number>;
|
|
40
41
|
apiUrl?: string;
|
|
41
42
|
fetchParameters?: RequestInit;
|
|
42
43
|
iconsBaseUrl?: string;
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated use `adjustUrl`
|
|
46
|
+
*/ adjustUrlQuery?: (sp: URLSearchParams) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Adjust geocoding URL before the fetch.
|
|
49
|
+
*/ adjustUrl?: (url: URL) => void;
|
|
50
|
+
focus?: (options?: FocusOptions) => void;
|
|
45
51
|
blur?: () => void;
|
|
46
52
|
setQuery?: (value: string, submit?: boolean, reverse?: boolean) => void;
|
|
47
53
|
clearList?: () => void;
|
|
48
54
|
clearMap?: () => void;
|
|
49
55
|
};
|
|
50
56
|
events: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
featureslisted: CustomEvent<{
|
|
58
|
+
features: Feature[] | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
featuresmarked: CustomEvent<{
|
|
61
|
+
features: Feature[] | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
optionsvisibilitychange: CustomEvent<{
|
|
64
|
+
optionsVisible: boolean;
|
|
65
|
+
}>;
|
|
66
|
+
pick: CustomEvent<{
|
|
67
|
+
feature: Feature | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
querychange: CustomEvent<{
|
|
70
|
+
query: string;
|
|
71
|
+
}>;
|
|
56
72
|
response: CustomEvent<{
|
|
57
73
|
url: string;
|
|
58
74
|
featureCollection: FeatureCollection;
|
|
59
75
|
}>;
|
|
60
|
-
|
|
61
|
-
|
|
76
|
+
reversetoggle: CustomEvent<{
|
|
77
|
+
reverse: boolean;
|
|
78
|
+
}>;
|
|
79
|
+
select: CustomEvent<{
|
|
80
|
+
feature: Feature | undefined;
|
|
81
|
+
}>;
|
|
62
82
|
} & {
|
|
63
83
|
[evt: string]: CustomEvent<any>;
|
|
64
84
|
};
|
|
@@ -73,7 +93,7 @@ export type GeocodingControlEvents = typeof __propDef.events;
|
|
|
73
93
|
export type GeocodingControlSlots = typeof __propDef.slots;
|
|
74
94
|
export default class GeocodingControl extends SvelteComponent<GeocodingControlProps, GeocodingControlEvents, GeocodingControlSlots> {
|
|
75
95
|
get ZOOM_DEFAULTS(): Record<string, number>;
|
|
76
|
-
get focus(): () => void;
|
|
96
|
+
get focus(): (options?: FocusOptions) => void;
|
|
77
97
|
get blur(): () => void;
|
|
78
98
|
get setQuery(): (value: string, submit?: boolean, reverse?: boolean) => void;
|
|
79
99
|
get clearList(): () => void;
|