@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.
Files changed (118) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +3027 -27
  2. package/icons/10pin.svg +4 -1
  3. package/icons/9pin.svg +4 -1
  4. package/icons/alcohol.svg +1 -1
  5. package/icons/alpine_hut.svg +1 -1
  6. package/icons/apartment.svg +4 -1
  7. package/icons/area.svg +1 -5
  8. package/icons/artwork.svg +4 -1
  9. package/icons/beauty.svg +14 -1
  10. package/icons/bicycle_repair_station.svg +18 -1
  11. package/icons/biergarten.svg +4 -1
  12. package/icons/books.svg +14 -1
  13. package/icons/bowl.svg +4 -1
  14. package/icons/bowling_alley.svg +4 -1
  15. package/icons/bus_station.svg +1 -1
  16. package/icons/camping.svg +1 -1
  17. package/icons/car_repair.svg +14 -1
  18. package/icons/car_wash.svg +19 -1
  19. package/icons/cave_entrance.svg +15 -1
  20. package/icons/chalet.svg +1 -1
  21. package/icons/chemist.svg +14 -1
  22. package/icons/church.svg +4 -1
  23. package/icons/community_centre.svg +20 -1
  24. package/icons/firestation.svg +4 -1
  25. package/icons/guest_house.svg +29 -8
  26. package/icons/hotel.svg +1 -1
  27. package/icons/housenumber.svg +19 -14
  28. package/icons/hut.svg +1 -4
  29. package/icons/medical_supply.svg +20 -1
  30. package/icons/memorial.svg +14 -1
  31. package/icons/motel.svg +19 -1
  32. package/icons/post.svg +1 -1
  33. package/icons/post_office.svg +1 -1
  34. package/icons/postal_code.svg +1 -23
  35. package/icons/public_bookcase.svg +14 -1
  36. package/icons/public_building.svg +4 -1
  37. package/icons/shintoist.svg +1 -1
  38. package/icons/street.svg +11 -14
  39. package/icons/vehicle_inspection.svg +18 -1
  40. package/icons/wilderness_hut.svg +1 -1
  41. package/leaflet-controller.d.ts +1 -1
  42. package/leaflet-controller.js +113 -110
  43. package/leaflet-controller.js.map +1 -1
  44. package/leaflet-controller.umd.js +2 -2
  45. package/leaflet-controller.umd.js.map +1 -1
  46. package/leaflet.d.ts +58 -5
  47. package/leaflet.js +1438 -1265
  48. package/leaflet.js.map +1 -1
  49. package/leaflet.umd.js +3 -3
  50. package/leaflet.umd.js.map +1 -1
  51. package/maplibregl-controller.d.ts +1 -1
  52. package/maplibregl-controller.js +483 -469
  53. package/maplibregl-controller.js.map +1 -1
  54. package/maplibregl-controller.umd.js +3 -3
  55. package/maplibregl-controller.umd.js.map +1 -1
  56. package/maplibregl.d.ts +2499 -13
  57. package/maplibregl.js +2435 -2139
  58. package/maplibregl.js.map +1 -1
  59. package/maplibregl.umd.js +3 -3
  60. package/maplibregl.umd.js.map +1 -1
  61. package/maptilersdk.d.ts +2499 -13
  62. package/maptilersdk.js +2432 -2139
  63. package/maptilersdk.js.map +1 -1
  64. package/maptilersdk.umd.js +3 -3
  65. package/maptilersdk.umd.js.map +1 -1
  66. package/openlayers-controller.d.ts +1 -1
  67. package/openlayers-controller.js +66 -63
  68. package/openlayers-controller.js.map +1 -1
  69. package/openlayers-controller.umd.js +2 -2
  70. package/openlayers-controller.umd.js.map +1 -1
  71. package/openlayers.d.ts +53 -1
  72. package/openlayers.js +2046 -1902
  73. package/openlayers.js.map +1 -1
  74. package/openlayers.umd.js +3 -3
  75. package/openlayers.umd.js.map +1 -1
  76. package/package.json +28 -28
  77. package/react.d.ts +31 -5
  78. package/react.js +1252 -1096
  79. package/react.js.map +1 -1
  80. package/react.umd.js +1 -1
  81. package/react.umd.js.map +1 -1
  82. package/style.css +1 -1
  83. package/svelte/FeatureItem.svelte +60 -13
  84. package/svelte/FeatureItem.svelte.d.ts +4 -4
  85. package/svelte/GeocodingControl.svelte +166 -98
  86. package/svelte/GeocodingControl.svelte.d.ts +36 -16
  87. package/svelte/MapLibreBasedGeocodingControl.d.ts +3027 -27
  88. package/svelte/MapLibreBasedGeocodingControl.js +154 -21
  89. package/svelte/leaflet-controller.d.ts +1 -1
  90. package/svelte/leaflet-controller.js +6 -3
  91. package/svelte/leaflet.d.ts +58 -5
  92. package/svelte/leaflet.js +52 -21
  93. package/svelte/maplibregl-controller.d.ts +1 -1
  94. package/svelte/maplibregl-controller.js +47 -38
  95. package/svelte/maplibregl.d.ts +2499 -13
  96. package/svelte/maplibregl.js +11 -3
  97. package/svelte/maptilersdk.d.ts +2499 -13
  98. package/svelte/maptilersdk.js +11 -3
  99. package/svelte/openlayers-controller.d.ts +1 -1
  100. package/svelte/openlayers-controller.js +7 -4
  101. package/svelte/openlayers.d.ts +53 -1
  102. package/svelte/openlayers.js +66 -48
  103. package/svelte/react.d.ts +31 -5
  104. package/svelte/react.js +21 -9
  105. package/svelte/types.d.ts +106 -35
  106. package/svelte/vanilla.d.ts +46 -2
  107. package/svelte/vanilla.js +66 -10
  108. package/types.d.ts +106 -35
  109. package/vanilla.d.ts +46 -2
  110. package/vanilla.js +1260 -1057
  111. package/vanilla.js.map +1 -1
  112. package/vanilla.umd.js +1 -1
  113. package/vanilla.umd.js.map +1 -1
  114. package/icons/aerodrome.12.svg +0 -1
  115. package/icons/bus_stop.12.svg +0 -1
  116. package/icons/elevator.12.svg +0 -1
  117. /package/icons/{helipad.16.svg → helipad.svg} +0 -0
  118. /package/icons/{traffic_light.13.svg → traffic_light.svg} +0 -0
@@ -2,7 +2,7 @@ import type { Evented, FitBoundsOptions, FlyToOptions, Map, Marker, MarkerOption
2
2
  import type { SvelteComponent } from "svelte";
3
3
  import GeocodingControlComponent from "./GeocodingControl.svelte";
4
4
  import { type FullGeometryStyle, type MapLibreGL } from "./maplibregl-controller";
5
- import type { ControlOptions, Feature } from "./types";
5
+ import type { ControlOptions, Feature, FeatureCollection } from "./types";
6
6
  export { createMapLibreGlMapController, type MapLibreGL, } from "./maplibregl-controller";
7
7
  export type MapLibreBaseControlOptions = Omit<ControlOptions, "apiKey"> & {
8
8
  /**
@@ -52,7 +52,7 @@ export type MapLibreBaseControlOptions = Omit<ControlOptions, "apiKey"> & {
52
52
  *
53
53
  * - If `false` or `null` then no full geometry is drawn.
54
54
  * - If `true` or `undefined` then default-styled full geometry is drawn.
55
- * - If an object then it must represent the style and will be used to style the full geometry.
55
+ * - If an T then it must represent the style and will be used to style the full geometry.
56
56
  *
57
57
  * Default is the default style.
58
58
  */
@@ -60,30 +60,3030 @@ export type MapLibreBaseControlOptions = Omit<ControlOptions, "apiKey"> & {
60
60
  };
61
61
  export type Props<T> = T extends SvelteComponent<infer P> ? P : never;
62
62
  type EventedConstructor = new (...args: ConstructorParameters<typeof Evented>) => Evented;
63
- export declare function crateBaseClass(Evented: EventedConstructor, maplibreGl: MapLibreGL, getExtraProps?: (map: Map, div: HTMLElement) => Partial<Props<GeocodingControlComponent>>): {
64
- new <T extends MapLibreBaseControlOptions>(options?: T): {
65
- "__#1@#gc"?: GeocodingControlComponent;
66
- "__#1@#options": T;
67
- onAddInt(map: Map): HTMLElement;
68
- setOptions(options: T): void;
69
- setQuery(value: string, submit?: boolean): void;
70
- clearMap(): void;
71
- clearList(): void;
72
- setReverseMode(value: boolean): void;
73
- focus(): void;
74
- blur(): void;
75
- onRemove(): void;
76
- _listeners: import("maplibre-gl").Listeners;
77
- _oneTimeListeners: import("maplibre-gl").Listeners;
78
- _eventedParent: Evented;
79
- _eventedParentData: any | (() => any);
80
- on(type: string, listener: import("maplibre-gl").Listener): any;
81
- off(type: string, listener: import("maplibre-gl").Listener): any;
82
- once(type: string, listener?: import("maplibre-gl").Listener): Promise<any> | any;
83
- fire(event: {
84
- readonly type: string;
85
- } | string, properties?: any): any;
86
- listens(type: string): boolean;
87
- setEventedParent(parent?: Evented | null, data?: any | (() => any)): any;
63
+ export declare function crateClasses<OPTS extends MapLibreBaseControlOptions>(Evented: EventedConstructor, maplibreGl: MapLibreGL, getExtraProps?: (map: Map, div: HTMLElement) => Partial<Props<GeocodingControlComponent>>): {
64
+ MapLibreBasedGeocodingControl: {
65
+ new (options?: OPTS): {
66
+ "__#1@#gc"?: GeocodingControlComponent;
67
+ "__#1@#options": OPTS;
68
+ onAddInt(map: Map): HTMLElement;
69
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
70
+ select: {
71
+ feature: Feature | undefined;
72
+ readonly type: "select";
73
+ readonly target: /*elided*/ any;
74
+ };
75
+ featureslisted: {
76
+ features: Feature[] | undefined;
77
+ readonly type: "featureslisted";
78
+ readonly target: /*elided*/ any;
79
+ };
80
+ featuresmarked: {
81
+ features: Feature[] | undefined;
82
+ readonly type: "featuresmarked";
83
+ readonly target: /*elided*/ any;
84
+ };
85
+ optionsvisibilitychange: {
86
+ optionsVisible: boolean;
87
+ readonly type: "optionsvisibilitychange";
88
+ readonly target: /*elided*/ any;
89
+ };
90
+ pick: {
91
+ feature: Feature | undefined;
92
+ readonly type: "pick";
93
+ readonly target: /*elided*/ any;
94
+ };
95
+ querychange: {
96
+ query: string;
97
+ readonly type: "querychange";
98
+ readonly target: /*elided*/ any;
99
+ };
100
+ response: {
101
+ url: string;
102
+ featureCollection: FeatureCollection;
103
+ readonly type: "response";
104
+ readonly target: /*elided*/ any;
105
+ };
106
+ reversetoggle: {
107
+ reverse: boolean;
108
+ readonly type: "reversetoggle";
109
+ readonly target: /*elided*/ any;
110
+ };
111
+ }[T]) => void): /*elided*/ any;
112
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
113
+ select: {
114
+ feature: Feature | undefined;
115
+ readonly type: "select";
116
+ readonly target: /*elided*/ any;
117
+ };
118
+ featureslisted: {
119
+ features: Feature[] | undefined;
120
+ readonly type: "featureslisted";
121
+ readonly target: /*elided*/ any;
122
+ };
123
+ featuresmarked: {
124
+ features: Feature[] | undefined;
125
+ readonly type: "featuresmarked";
126
+ readonly target: /*elided*/ any;
127
+ };
128
+ optionsvisibilitychange: {
129
+ optionsVisible: boolean;
130
+ readonly type: "optionsvisibilitychange";
131
+ readonly target: /*elided*/ any;
132
+ };
133
+ pick: {
134
+ feature: Feature | undefined;
135
+ readonly type: "pick";
136
+ readonly target: /*elided*/ any;
137
+ };
138
+ querychange: {
139
+ query: string;
140
+ readonly type: "querychange";
141
+ readonly target: /*elided*/ any;
142
+ };
143
+ response: {
144
+ url: string;
145
+ featureCollection: FeatureCollection;
146
+ readonly type: "response";
147
+ readonly target: /*elided*/ any;
148
+ };
149
+ reversetoggle: {
150
+ reverse: boolean;
151
+ readonly type: "reversetoggle";
152
+ readonly target: /*elided*/ any;
153
+ };
154
+ }[T]) => void): /*elided*/ any;
155
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
156
+ select: {
157
+ feature: Feature | undefined;
158
+ readonly type: "select";
159
+ readonly target: /*elided*/ any;
160
+ };
161
+ featureslisted: {
162
+ features: Feature[] | undefined;
163
+ readonly type: "featureslisted";
164
+ readonly target: /*elided*/ any;
165
+ };
166
+ featuresmarked: {
167
+ features: Feature[] | undefined;
168
+ readonly type: "featuresmarked";
169
+ readonly target: /*elided*/ any;
170
+ };
171
+ optionsvisibilitychange: {
172
+ optionsVisible: boolean;
173
+ readonly type: "optionsvisibilitychange";
174
+ readonly target: /*elided*/ any;
175
+ };
176
+ pick: {
177
+ feature: Feature | undefined;
178
+ readonly type: "pick";
179
+ readonly target: /*elided*/ any;
180
+ };
181
+ querychange: {
182
+ query: string;
183
+ readonly type: "querychange";
184
+ readonly target: /*elided*/ any;
185
+ };
186
+ response: {
187
+ url: string;
188
+ featureCollection: FeatureCollection;
189
+ readonly type: "response";
190
+ readonly target: /*elided*/ any;
191
+ };
192
+ reversetoggle: {
193
+ reverse: boolean;
194
+ readonly type: "reversetoggle";
195
+ readonly target: /*elided*/ any;
196
+ };
197
+ }[T]) => void): /*elided*/ any;
198
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
199
+ /**
200
+ * Update the control options.
201
+ *
202
+ * @param options options to update
203
+ */
204
+ setOptions(options: OPTS): void;
205
+ /**
206
+ * Set the content of search input box.
207
+ *
208
+ * @param value text to set
209
+ * @param submit perform the search
210
+ */
211
+ setQuery(value: string, submit?: boolean): void;
212
+ /**
213
+ * Clear geocoding search results from the map.
214
+ */
215
+ clearMap(): void;
216
+ /**
217
+ * Clear search result list.
218
+ */
219
+ clearList(): void;
220
+ /**
221
+ * Set reverse geocoding mode.
222
+ *
223
+ * @param reverseActive reverse geocoding active
224
+ */
225
+ setReverseMode(reverseActive: boolean): void;
226
+ /**
227
+ * Focus the search input box.
228
+ *
229
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
230
+ */
231
+ focus(options?: FocusOptions): void;
232
+ /**
233
+ * Blur the search input box.
234
+ */
235
+ blur(): void;
236
+ onRemove(): void;
237
+ _listeners: import("maplibre-gl").Listeners;
238
+ _oneTimeListeners: import("maplibre-gl").Listeners;
239
+ _eventedParent: Evented;
240
+ _eventedParentData: any | (() => any);
241
+ fire(event: {
242
+ readonly type: string;
243
+ } | string, properties?: any): /*elided*/ any;
244
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
245
+ };
246
+ };
247
+ events: {
248
+ SelectEvent: {
249
+ new (target: {
250
+ "__#1@#gc"?: GeocodingControlComponent;
251
+ "__#1@#options": OPTS;
252
+ onAddInt(map: Map): HTMLElement;
253
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
254
+ select: {
255
+ feature: Feature | undefined;
256
+ readonly type: "select";
257
+ readonly target: /*elided*/ any;
258
+ };
259
+ featureslisted: {
260
+ features: Feature[] | undefined;
261
+ readonly type: "featureslisted";
262
+ readonly target: /*elided*/ any;
263
+ };
264
+ featuresmarked: {
265
+ features: Feature[] | undefined;
266
+ readonly type: "featuresmarked";
267
+ readonly target: /*elided*/ any;
268
+ };
269
+ optionsvisibilitychange: {
270
+ optionsVisible: boolean;
271
+ readonly type: "optionsvisibilitychange";
272
+ readonly target: /*elided*/ any;
273
+ };
274
+ pick: {
275
+ feature: Feature | undefined;
276
+ readonly type: "pick";
277
+ readonly target: /*elided*/ any;
278
+ };
279
+ querychange: {
280
+ query: string;
281
+ readonly type: "querychange";
282
+ readonly target: /*elided*/ any;
283
+ };
284
+ response: {
285
+ url: string;
286
+ featureCollection: FeatureCollection;
287
+ readonly type: "response";
288
+ readonly target: /*elided*/ any;
289
+ };
290
+ reversetoggle: {
291
+ reverse: boolean;
292
+ readonly type: "reversetoggle";
293
+ readonly target: /*elided*/ any;
294
+ };
295
+ }[T]) => void): /*elided*/ any;
296
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
297
+ select: {
298
+ feature: Feature | undefined;
299
+ readonly type: "select";
300
+ readonly target: /*elided*/ any;
301
+ };
302
+ featureslisted: {
303
+ features: Feature[] | undefined;
304
+ readonly type: "featureslisted";
305
+ readonly target: /*elided*/ any;
306
+ };
307
+ featuresmarked: {
308
+ features: Feature[] | undefined;
309
+ readonly type: "featuresmarked";
310
+ readonly target: /*elided*/ any;
311
+ };
312
+ optionsvisibilitychange: {
313
+ optionsVisible: boolean;
314
+ readonly type: "optionsvisibilitychange";
315
+ readonly target: /*elided*/ any;
316
+ };
317
+ pick: {
318
+ feature: Feature | undefined;
319
+ readonly type: "pick";
320
+ readonly target: /*elided*/ any;
321
+ };
322
+ querychange: {
323
+ query: string;
324
+ readonly type: "querychange";
325
+ readonly target: /*elided*/ any;
326
+ };
327
+ response: {
328
+ url: string;
329
+ featureCollection: FeatureCollection;
330
+ readonly type: "response";
331
+ readonly target: /*elided*/ any;
332
+ };
333
+ reversetoggle: {
334
+ reverse: boolean;
335
+ readonly type: "reversetoggle";
336
+ readonly target: /*elided*/ any;
337
+ };
338
+ }[T]) => void): /*elided*/ any;
339
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
340
+ select: {
341
+ feature: Feature | undefined;
342
+ readonly type: "select";
343
+ readonly target: /*elided*/ any;
344
+ };
345
+ featureslisted: {
346
+ features: Feature[] | undefined;
347
+ readonly type: "featureslisted";
348
+ readonly target: /*elided*/ any;
349
+ };
350
+ featuresmarked: {
351
+ features: Feature[] | undefined;
352
+ readonly type: "featuresmarked";
353
+ readonly target: /*elided*/ any;
354
+ };
355
+ optionsvisibilitychange: {
356
+ optionsVisible: boolean;
357
+ readonly type: "optionsvisibilitychange";
358
+ readonly target: /*elided*/ any;
359
+ };
360
+ pick: {
361
+ feature: Feature | undefined;
362
+ readonly type: "pick";
363
+ readonly target: /*elided*/ any;
364
+ };
365
+ querychange: {
366
+ query: string;
367
+ readonly type: "querychange";
368
+ readonly target: /*elided*/ any;
369
+ };
370
+ response: {
371
+ url: string;
372
+ featureCollection: FeatureCollection;
373
+ readonly type: "response";
374
+ readonly target: /*elided*/ any;
375
+ };
376
+ reversetoggle: {
377
+ reverse: boolean;
378
+ readonly type: "reversetoggle";
379
+ readonly target: /*elided*/ any;
380
+ };
381
+ }[T]) => void): /*elided*/ any;
382
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
383
+ /**
384
+ * Update the control options.
385
+ *
386
+ * @param options options to update
387
+ */
388
+ setOptions(options: OPTS): void;
389
+ /**
390
+ * Set the content of search input box.
391
+ *
392
+ * @param value text to set
393
+ * @param submit perform the search
394
+ */
395
+ setQuery(value: string, submit?: boolean): void;
396
+ /**
397
+ * Clear geocoding search results from the map.
398
+ */
399
+ clearMap(): void;
400
+ /**
401
+ * Clear search result list.
402
+ */
403
+ clearList(): void;
404
+ /**
405
+ * Set reverse geocoding mode.
406
+ *
407
+ * @param reverseActive reverse geocoding active
408
+ */
409
+ setReverseMode(reverseActive: boolean): void;
410
+ /**
411
+ * Focus the search input box.
412
+ *
413
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
414
+ */
415
+ focus(options?: FocusOptions): void;
416
+ /**
417
+ * Blur the search input box.
418
+ */
419
+ blur(): void;
420
+ onRemove(): void;
421
+ _listeners: import("maplibre-gl").Listeners;
422
+ _oneTimeListeners: import("maplibre-gl").Listeners;
423
+ _eventedParent: Evented;
424
+ _eventedParentData: any | (() => any);
425
+ fire(event: {
426
+ readonly type: string;
427
+ } | string, properties?: any): /*elided*/ any;
428
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
429
+ }, details: {
430
+ feature: Feature | undefined;
431
+ }): {
432
+ feature: Feature | undefined;
433
+ readonly type: "select";
434
+ readonly target: {
435
+ "__#1@#gc"?: GeocodingControlComponent;
436
+ "__#1@#options": OPTS;
437
+ onAddInt(map: Map): HTMLElement;
438
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
439
+ select: /*elided*/ any;
440
+ featureslisted: {
441
+ features: Feature[] | undefined;
442
+ readonly type: "featureslisted";
443
+ readonly target: /*elided*/ any;
444
+ };
445
+ featuresmarked: {
446
+ features: Feature[] | undefined;
447
+ readonly type: "featuresmarked";
448
+ readonly target: /*elided*/ any;
449
+ };
450
+ optionsvisibilitychange: {
451
+ optionsVisible: boolean;
452
+ readonly type: "optionsvisibilitychange";
453
+ readonly target: /*elided*/ any;
454
+ };
455
+ pick: {
456
+ feature: Feature | undefined;
457
+ readonly type: "pick";
458
+ readonly target: /*elided*/ any;
459
+ };
460
+ querychange: {
461
+ query: string;
462
+ readonly type: "querychange";
463
+ readonly target: /*elided*/ any;
464
+ };
465
+ response: {
466
+ url: string;
467
+ featureCollection: FeatureCollection;
468
+ readonly type: "response";
469
+ readonly target: /*elided*/ any;
470
+ };
471
+ reversetoggle: {
472
+ reverse: boolean;
473
+ readonly type: "reversetoggle";
474
+ readonly target: /*elided*/ any;
475
+ };
476
+ }[T]) => void): /*elided*/ any;
477
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
478
+ select: /*elided*/ any;
479
+ featureslisted: {
480
+ features: Feature[] | undefined;
481
+ readonly type: "featureslisted";
482
+ readonly target: /*elided*/ any;
483
+ };
484
+ featuresmarked: {
485
+ features: Feature[] | undefined;
486
+ readonly type: "featuresmarked";
487
+ readonly target: /*elided*/ any;
488
+ };
489
+ optionsvisibilitychange: {
490
+ optionsVisible: boolean;
491
+ readonly type: "optionsvisibilitychange";
492
+ readonly target: /*elided*/ any;
493
+ };
494
+ pick: {
495
+ feature: Feature | undefined;
496
+ readonly type: "pick";
497
+ readonly target: /*elided*/ any;
498
+ };
499
+ querychange: {
500
+ query: string;
501
+ readonly type: "querychange";
502
+ readonly target: /*elided*/ any;
503
+ };
504
+ response: {
505
+ url: string;
506
+ featureCollection: FeatureCollection;
507
+ readonly type: "response";
508
+ readonly target: /*elided*/ any;
509
+ };
510
+ reversetoggle: {
511
+ reverse: boolean;
512
+ readonly type: "reversetoggle";
513
+ readonly target: /*elided*/ any;
514
+ };
515
+ }[T]) => void): /*elided*/ any;
516
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
517
+ select: /*elided*/ any;
518
+ featureslisted: {
519
+ features: Feature[] | undefined;
520
+ readonly type: "featureslisted";
521
+ readonly target: /*elided*/ any;
522
+ };
523
+ featuresmarked: {
524
+ features: Feature[] | undefined;
525
+ readonly type: "featuresmarked";
526
+ readonly target: /*elided*/ any;
527
+ };
528
+ optionsvisibilitychange: {
529
+ optionsVisible: boolean;
530
+ readonly type: "optionsvisibilitychange";
531
+ readonly target: /*elided*/ any;
532
+ };
533
+ pick: {
534
+ feature: Feature | undefined;
535
+ readonly type: "pick";
536
+ readonly target: /*elided*/ any;
537
+ };
538
+ querychange: {
539
+ query: string;
540
+ readonly type: "querychange";
541
+ readonly target: /*elided*/ any;
542
+ };
543
+ response: {
544
+ url: string;
545
+ featureCollection: FeatureCollection;
546
+ readonly type: "response";
547
+ readonly target: /*elided*/ any;
548
+ };
549
+ reversetoggle: {
550
+ reverse: boolean;
551
+ readonly type: "reversetoggle";
552
+ readonly target: /*elided*/ any;
553
+ };
554
+ }[T]) => void): /*elided*/ any;
555
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
556
+ /**
557
+ * Update the control options.
558
+ *
559
+ * @param options options to update
560
+ */
561
+ setOptions(options: OPTS): void;
562
+ /**
563
+ * Set the content of search input box.
564
+ *
565
+ * @param value text to set
566
+ * @param submit perform the search
567
+ */
568
+ setQuery(value: string, submit?: boolean): void;
569
+ /**
570
+ * Clear geocoding search results from the map.
571
+ */
572
+ clearMap(): void;
573
+ /**
574
+ * Clear search result list.
575
+ */
576
+ clearList(): void;
577
+ /**
578
+ * Set reverse geocoding mode.
579
+ *
580
+ * @param reverseActive reverse geocoding active
581
+ */
582
+ setReverseMode(reverseActive: boolean): void;
583
+ /**
584
+ * Focus the search input box.
585
+ *
586
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
587
+ */
588
+ focus(options?: FocusOptions): void;
589
+ /**
590
+ * Blur the search input box.
591
+ */
592
+ blur(): void;
593
+ onRemove(): void;
594
+ _listeners: import("maplibre-gl").Listeners;
595
+ _oneTimeListeners: import("maplibre-gl").Listeners;
596
+ _eventedParent: Evented;
597
+ _eventedParentData: any | (() => any);
598
+ fire(event: {
599
+ readonly type: string;
600
+ } | string, properties?: any): /*elided*/ any;
601
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
602
+ };
603
+ };
604
+ };
605
+ FeaturesListedEvent: {
606
+ new (target: {
607
+ "__#1@#gc"?: GeocodingControlComponent;
608
+ "__#1@#options": OPTS;
609
+ onAddInt(map: Map): HTMLElement;
610
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
611
+ select: {
612
+ feature: Feature | undefined;
613
+ readonly type: "select";
614
+ readonly target: /*elided*/ any;
615
+ };
616
+ featureslisted: {
617
+ features: Feature[] | undefined;
618
+ readonly type: "featureslisted";
619
+ readonly target: /*elided*/ any;
620
+ };
621
+ featuresmarked: {
622
+ features: Feature[] | undefined;
623
+ readonly type: "featuresmarked";
624
+ readonly target: /*elided*/ any;
625
+ };
626
+ optionsvisibilitychange: {
627
+ optionsVisible: boolean;
628
+ readonly type: "optionsvisibilitychange";
629
+ readonly target: /*elided*/ any;
630
+ };
631
+ pick: {
632
+ feature: Feature | undefined;
633
+ readonly type: "pick";
634
+ readonly target: /*elided*/ any;
635
+ };
636
+ querychange: {
637
+ query: string;
638
+ readonly type: "querychange";
639
+ readonly target: /*elided*/ any;
640
+ };
641
+ response: {
642
+ url: string;
643
+ featureCollection: FeatureCollection;
644
+ readonly type: "response";
645
+ readonly target: /*elided*/ any;
646
+ };
647
+ reversetoggle: {
648
+ reverse: boolean;
649
+ readonly type: "reversetoggle";
650
+ readonly target: /*elided*/ any;
651
+ };
652
+ }[T]) => void): /*elided*/ any;
653
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
654
+ select: {
655
+ feature: Feature | undefined;
656
+ readonly type: "select";
657
+ readonly target: /*elided*/ any;
658
+ };
659
+ featureslisted: {
660
+ features: Feature[] | undefined;
661
+ readonly type: "featureslisted";
662
+ readonly target: /*elided*/ any;
663
+ };
664
+ featuresmarked: {
665
+ features: Feature[] | undefined;
666
+ readonly type: "featuresmarked";
667
+ readonly target: /*elided*/ any;
668
+ };
669
+ optionsvisibilitychange: {
670
+ optionsVisible: boolean;
671
+ readonly type: "optionsvisibilitychange";
672
+ readonly target: /*elided*/ any;
673
+ };
674
+ pick: {
675
+ feature: Feature | undefined;
676
+ readonly type: "pick";
677
+ readonly target: /*elided*/ any;
678
+ };
679
+ querychange: {
680
+ query: string;
681
+ readonly type: "querychange";
682
+ readonly target: /*elided*/ any;
683
+ };
684
+ response: {
685
+ url: string;
686
+ featureCollection: FeatureCollection;
687
+ readonly type: "response";
688
+ readonly target: /*elided*/ any;
689
+ };
690
+ reversetoggle: {
691
+ reverse: boolean;
692
+ readonly type: "reversetoggle";
693
+ readonly target: /*elided*/ any;
694
+ };
695
+ }[T]) => void): /*elided*/ any;
696
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
697
+ select: {
698
+ feature: Feature | undefined;
699
+ readonly type: "select";
700
+ readonly target: /*elided*/ any;
701
+ };
702
+ featureslisted: {
703
+ features: Feature[] | undefined;
704
+ readonly type: "featureslisted";
705
+ readonly target: /*elided*/ any;
706
+ };
707
+ featuresmarked: {
708
+ features: Feature[] | undefined;
709
+ readonly type: "featuresmarked";
710
+ readonly target: /*elided*/ any;
711
+ };
712
+ optionsvisibilitychange: {
713
+ optionsVisible: boolean;
714
+ readonly type: "optionsvisibilitychange";
715
+ readonly target: /*elided*/ any;
716
+ };
717
+ pick: {
718
+ feature: Feature | undefined;
719
+ readonly type: "pick";
720
+ readonly target: /*elided*/ any;
721
+ };
722
+ querychange: {
723
+ query: string;
724
+ readonly type: "querychange";
725
+ readonly target: /*elided*/ any;
726
+ };
727
+ response: {
728
+ url: string;
729
+ featureCollection: FeatureCollection;
730
+ readonly type: "response";
731
+ readonly target: /*elided*/ any;
732
+ };
733
+ reversetoggle: {
734
+ reverse: boolean;
735
+ readonly type: "reversetoggle";
736
+ readonly target: /*elided*/ any;
737
+ };
738
+ }[T]) => void): /*elided*/ any;
739
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
740
+ /**
741
+ * Update the control options.
742
+ *
743
+ * @param options options to update
744
+ */
745
+ setOptions(options: OPTS): void;
746
+ /**
747
+ * Set the content of search input box.
748
+ *
749
+ * @param value text to set
750
+ * @param submit perform the search
751
+ */
752
+ setQuery(value: string, submit?: boolean): void;
753
+ /**
754
+ * Clear geocoding search results from the map.
755
+ */
756
+ clearMap(): void;
757
+ /**
758
+ * Clear search result list.
759
+ */
760
+ clearList(): void;
761
+ /**
762
+ * Set reverse geocoding mode.
763
+ *
764
+ * @param reverseActive reverse geocoding active
765
+ */
766
+ setReverseMode(reverseActive: boolean): void;
767
+ /**
768
+ * Focus the search input box.
769
+ *
770
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
771
+ */
772
+ focus(options?: FocusOptions): void;
773
+ /**
774
+ * Blur the search input box.
775
+ */
776
+ blur(): void;
777
+ onRemove(): void;
778
+ _listeners: import("maplibre-gl").Listeners;
779
+ _oneTimeListeners: import("maplibre-gl").Listeners;
780
+ _eventedParent: Evented;
781
+ _eventedParentData: any | (() => any);
782
+ fire(event: {
783
+ readonly type: string;
784
+ } | string, properties?: any): /*elided*/ any;
785
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
786
+ }, features: Feature[] | undefined): {
787
+ features: Feature[] | undefined;
788
+ readonly type: "featureslisted";
789
+ readonly target: {
790
+ "__#1@#gc"?: GeocodingControlComponent;
791
+ "__#1@#options": OPTS;
792
+ onAddInt(map: Map): HTMLElement;
793
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
794
+ select: {
795
+ feature: Feature | undefined;
796
+ readonly type: "select";
797
+ readonly target: /*elided*/ any;
798
+ };
799
+ featureslisted: /*elided*/ any;
800
+ featuresmarked: {
801
+ features: Feature[] | undefined;
802
+ readonly type: "featuresmarked";
803
+ readonly target: /*elided*/ any;
804
+ };
805
+ optionsvisibilitychange: {
806
+ optionsVisible: boolean;
807
+ readonly type: "optionsvisibilitychange";
808
+ readonly target: /*elided*/ any;
809
+ };
810
+ pick: {
811
+ feature: Feature | undefined;
812
+ readonly type: "pick";
813
+ readonly target: /*elided*/ any;
814
+ };
815
+ querychange: {
816
+ query: string;
817
+ readonly type: "querychange";
818
+ readonly target: /*elided*/ any;
819
+ };
820
+ response: {
821
+ url: string;
822
+ featureCollection: FeatureCollection;
823
+ readonly type: "response";
824
+ readonly target: /*elided*/ any;
825
+ };
826
+ reversetoggle: {
827
+ reverse: boolean;
828
+ readonly type: "reversetoggle";
829
+ readonly target: /*elided*/ any;
830
+ };
831
+ }[T]) => void): /*elided*/ any;
832
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
833
+ select: {
834
+ feature: Feature | undefined;
835
+ readonly type: "select";
836
+ readonly target: /*elided*/ any;
837
+ };
838
+ featureslisted: /*elided*/ any;
839
+ featuresmarked: {
840
+ features: Feature[] | undefined;
841
+ readonly type: "featuresmarked";
842
+ readonly target: /*elided*/ any;
843
+ };
844
+ optionsvisibilitychange: {
845
+ optionsVisible: boolean;
846
+ readonly type: "optionsvisibilitychange";
847
+ readonly target: /*elided*/ any;
848
+ };
849
+ pick: {
850
+ feature: Feature | undefined;
851
+ readonly type: "pick";
852
+ readonly target: /*elided*/ any;
853
+ };
854
+ querychange: {
855
+ query: string;
856
+ readonly type: "querychange";
857
+ readonly target: /*elided*/ any;
858
+ };
859
+ response: {
860
+ url: string;
861
+ featureCollection: FeatureCollection;
862
+ readonly type: "response";
863
+ readonly target: /*elided*/ any;
864
+ };
865
+ reversetoggle: {
866
+ reverse: boolean;
867
+ readonly type: "reversetoggle";
868
+ readonly target: /*elided*/ any;
869
+ };
870
+ }[T]) => void): /*elided*/ any;
871
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
872
+ select: {
873
+ feature: Feature | undefined;
874
+ readonly type: "select";
875
+ readonly target: /*elided*/ any;
876
+ };
877
+ featureslisted: /*elided*/ any;
878
+ featuresmarked: {
879
+ features: Feature[] | undefined;
880
+ readonly type: "featuresmarked";
881
+ readonly target: /*elided*/ any;
882
+ };
883
+ optionsvisibilitychange: {
884
+ optionsVisible: boolean;
885
+ readonly type: "optionsvisibilitychange";
886
+ readonly target: /*elided*/ any;
887
+ };
888
+ pick: {
889
+ feature: Feature | undefined;
890
+ readonly type: "pick";
891
+ readonly target: /*elided*/ any;
892
+ };
893
+ querychange: {
894
+ query: string;
895
+ readonly type: "querychange";
896
+ readonly target: /*elided*/ any;
897
+ };
898
+ response: {
899
+ url: string;
900
+ featureCollection: FeatureCollection;
901
+ readonly type: "response";
902
+ readonly target: /*elided*/ any;
903
+ };
904
+ reversetoggle: {
905
+ reverse: boolean;
906
+ readonly type: "reversetoggle";
907
+ readonly target: /*elided*/ any;
908
+ };
909
+ }[T]) => void): /*elided*/ any;
910
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
911
+ /**
912
+ * Update the control options.
913
+ *
914
+ * @param options options to update
915
+ */
916
+ setOptions(options: OPTS): void;
917
+ /**
918
+ * Set the content of search input box.
919
+ *
920
+ * @param value text to set
921
+ * @param submit perform the search
922
+ */
923
+ setQuery(value: string, submit?: boolean): void;
924
+ /**
925
+ * Clear geocoding search results from the map.
926
+ */
927
+ clearMap(): void;
928
+ /**
929
+ * Clear search result list.
930
+ */
931
+ clearList(): void;
932
+ /**
933
+ * Set reverse geocoding mode.
934
+ *
935
+ * @param reverseActive reverse geocoding active
936
+ */
937
+ setReverseMode(reverseActive: boolean): void;
938
+ /**
939
+ * Focus the search input box.
940
+ *
941
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
942
+ */
943
+ focus(options?: FocusOptions): void;
944
+ /**
945
+ * Blur the search input box.
946
+ */
947
+ blur(): void;
948
+ onRemove(): void;
949
+ _listeners: import("maplibre-gl").Listeners;
950
+ _oneTimeListeners: import("maplibre-gl").Listeners;
951
+ _eventedParent: Evented;
952
+ _eventedParentData: any | (() => any);
953
+ fire(event: {
954
+ readonly type: string;
955
+ } | string, properties?: any): /*elided*/ any;
956
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
957
+ };
958
+ };
959
+ };
960
+ FeaturesMarkedEvent: {
961
+ new (target: {
962
+ "__#1@#gc"?: GeocodingControlComponent;
963
+ "__#1@#options": OPTS;
964
+ onAddInt(map: Map): HTMLElement;
965
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
966
+ select: {
967
+ feature: Feature | undefined;
968
+ readonly type: "select";
969
+ readonly target: /*elided*/ any;
970
+ };
971
+ featureslisted: {
972
+ features: Feature[] | undefined;
973
+ readonly type: "featureslisted";
974
+ readonly target: /*elided*/ any;
975
+ };
976
+ featuresmarked: {
977
+ features: Feature[] | undefined;
978
+ readonly type: "featuresmarked";
979
+ readonly target: /*elided*/ any;
980
+ };
981
+ optionsvisibilitychange: {
982
+ optionsVisible: boolean;
983
+ readonly type: "optionsvisibilitychange";
984
+ readonly target: /*elided*/ any;
985
+ };
986
+ pick: {
987
+ feature: Feature | undefined;
988
+ readonly type: "pick";
989
+ readonly target: /*elided*/ any;
990
+ };
991
+ querychange: {
992
+ query: string;
993
+ readonly type: "querychange";
994
+ readonly target: /*elided*/ any;
995
+ };
996
+ response: {
997
+ url: string;
998
+ featureCollection: FeatureCollection;
999
+ readonly type: "response";
1000
+ readonly target: /*elided*/ any;
1001
+ };
1002
+ reversetoggle: {
1003
+ reverse: boolean;
1004
+ readonly type: "reversetoggle";
1005
+ readonly target: /*elided*/ any;
1006
+ };
1007
+ }[T]) => void): /*elided*/ any;
1008
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1009
+ select: {
1010
+ feature: Feature | undefined;
1011
+ readonly type: "select";
1012
+ readonly target: /*elided*/ any;
1013
+ };
1014
+ featureslisted: {
1015
+ features: Feature[] | undefined;
1016
+ readonly type: "featureslisted";
1017
+ readonly target: /*elided*/ any;
1018
+ };
1019
+ featuresmarked: {
1020
+ features: Feature[] | undefined;
1021
+ readonly type: "featuresmarked";
1022
+ readonly target: /*elided*/ any;
1023
+ };
1024
+ optionsvisibilitychange: {
1025
+ optionsVisible: boolean;
1026
+ readonly type: "optionsvisibilitychange";
1027
+ readonly target: /*elided*/ any;
1028
+ };
1029
+ pick: {
1030
+ feature: Feature | undefined;
1031
+ readonly type: "pick";
1032
+ readonly target: /*elided*/ any;
1033
+ };
1034
+ querychange: {
1035
+ query: string;
1036
+ readonly type: "querychange";
1037
+ readonly target: /*elided*/ any;
1038
+ };
1039
+ response: {
1040
+ url: string;
1041
+ featureCollection: FeatureCollection;
1042
+ readonly type: "response";
1043
+ readonly target: /*elided*/ any;
1044
+ };
1045
+ reversetoggle: {
1046
+ reverse: boolean;
1047
+ readonly type: "reversetoggle";
1048
+ readonly target: /*elided*/ any;
1049
+ };
1050
+ }[T]) => void): /*elided*/ any;
1051
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1052
+ select: {
1053
+ feature: Feature | undefined;
1054
+ readonly type: "select";
1055
+ readonly target: /*elided*/ any;
1056
+ };
1057
+ featureslisted: {
1058
+ features: Feature[] | undefined;
1059
+ readonly type: "featureslisted";
1060
+ readonly target: /*elided*/ any;
1061
+ };
1062
+ featuresmarked: {
1063
+ features: Feature[] | undefined;
1064
+ readonly type: "featuresmarked";
1065
+ readonly target: /*elided*/ any;
1066
+ };
1067
+ optionsvisibilitychange: {
1068
+ optionsVisible: boolean;
1069
+ readonly type: "optionsvisibilitychange";
1070
+ readonly target: /*elided*/ any;
1071
+ };
1072
+ pick: {
1073
+ feature: Feature | undefined;
1074
+ readonly type: "pick";
1075
+ readonly target: /*elided*/ any;
1076
+ };
1077
+ querychange: {
1078
+ query: string;
1079
+ readonly type: "querychange";
1080
+ readonly target: /*elided*/ any;
1081
+ };
1082
+ response: {
1083
+ url: string;
1084
+ featureCollection: FeatureCollection;
1085
+ readonly type: "response";
1086
+ readonly target: /*elided*/ any;
1087
+ };
1088
+ reversetoggle: {
1089
+ reverse: boolean;
1090
+ readonly type: "reversetoggle";
1091
+ readonly target: /*elided*/ any;
1092
+ };
1093
+ }[T]) => void): /*elided*/ any;
1094
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
1095
+ /**
1096
+ * Update the control options.
1097
+ *
1098
+ * @param options options to update
1099
+ */
1100
+ setOptions(options: OPTS): void;
1101
+ /**
1102
+ * Set the content of search input box.
1103
+ *
1104
+ * @param value text to set
1105
+ * @param submit perform the search
1106
+ */
1107
+ setQuery(value: string, submit?: boolean): void;
1108
+ /**
1109
+ * Clear geocoding search results from the map.
1110
+ */
1111
+ clearMap(): void;
1112
+ /**
1113
+ * Clear search result list.
1114
+ */
1115
+ clearList(): void;
1116
+ /**
1117
+ * Set reverse geocoding mode.
1118
+ *
1119
+ * @param reverseActive reverse geocoding active
1120
+ */
1121
+ setReverseMode(reverseActive: boolean): void;
1122
+ /**
1123
+ * Focus the search input box.
1124
+ *
1125
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
1126
+ */
1127
+ focus(options?: FocusOptions): void;
1128
+ /**
1129
+ * Blur the search input box.
1130
+ */
1131
+ blur(): void;
1132
+ onRemove(): void;
1133
+ _listeners: import("maplibre-gl").Listeners;
1134
+ _oneTimeListeners: import("maplibre-gl").Listeners;
1135
+ _eventedParent: Evented;
1136
+ _eventedParentData: any | (() => any);
1137
+ fire(event: {
1138
+ readonly type: string;
1139
+ } | string, properties?: any): /*elided*/ any;
1140
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
1141
+ }, features: Feature[] | undefined): {
1142
+ features: Feature[] | undefined;
1143
+ readonly type: "featuresmarked";
1144
+ readonly target: {
1145
+ "__#1@#gc"?: GeocodingControlComponent;
1146
+ "__#1@#options": OPTS;
1147
+ onAddInt(map: Map): HTMLElement;
1148
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1149
+ select: {
1150
+ feature: Feature | undefined;
1151
+ readonly type: "select";
1152
+ readonly target: /*elided*/ any;
1153
+ };
1154
+ featureslisted: {
1155
+ features: Feature[] | undefined;
1156
+ readonly type: "featureslisted";
1157
+ readonly target: /*elided*/ any;
1158
+ };
1159
+ featuresmarked: /*elided*/ any;
1160
+ optionsvisibilitychange: {
1161
+ optionsVisible: boolean;
1162
+ readonly type: "optionsvisibilitychange";
1163
+ readonly target: /*elided*/ any;
1164
+ };
1165
+ pick: {
1166
+ feature: Feature | undefined;
1167
+ readonly type: "pick";
1168
+ readonly target: /*elided*/ any;
1169
+ };
1170
+ querychange: {
1171
+ query: string;
1172
+ readonly type: "querychange";
1173
+ readonly target: /*elided*/ any;
1174
+ };
1175
+ response: {
1176
+ url: string;
1177
+ featureCollection: FeatureCollection;
1178
+ readonly type: "response";
1179
+ readonly target: /*elided*/ any;
1180
+ };
1181
+ reversetoggle: {
1182
+ reverse: boolean;
1183
+ readonly type: "reversetoggle";
1184
+ readonly target: /*elided*/ any;
1185
+ };
1186
+ }[T]) => void): /*elided*/ any;
1187
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1188
+ select: {
1189
+ feature: Feature | undefined;
1190
+ readonly type: "select";
1191
+ readonly target: /*elided*/ any;
1192
+ };
1193
+ featureslisted: {
1194
+ features: Feature[] | undefined;
1195
+ readonly type: "featureslisted";
1196
+ readonly target: /*elided*/ any;
1197
+ };
1198
+ featuresmarked: /*elided*/ any;
1199
+ optionsvisibilitychange: {
1200
+ optionsVisible: boolean;
1201
+ readonly type: "optionsvisibilitychange";
1202
+ readonly target: /*elided*/ any;
1203
+ };
1204
+ pick: {
1205
+ feature: Feature | undefined;
1206
+ readonly type: "pick";
1207
+ readonly target: /*elided*/ any;
1208
+ };
1209
+ querychange: {
1210
+ query: string;
1211
+ readonly type: "querychange";
1212
+ readonly target: /*elided*/ any;
1213
+ };
1214
+ response: {
1215
+ url: string;
1216
+ featureCollection: FeatureCollection;
1217
+ readonly type: "response";
1218
+ readonly target: /*elided*/ any;
1219
+ };
1220
+ reversetoggle: {
1221
+ reverse: boolean;
1222
+ readonly type: "reversetoggle";
1223
+ readonly target: /*elided*/ any;
1224
+ };
1225
+ }[T]) => void): /*elided*/ any;
1226
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1227
+ select: {
1228
+ feature: Feature | undefined;
1229
+ readonly type: "select";
1230
+ readonly target: /*elided*/ any;
1231
+ };
1232
+ featureslisted: {
1233
+ features: Feature[] | undefined;
1234
+ readonly type: "featureslisted";
1235
+ readonly target: /*elided*/ any;
1236
+ };
1237
+ featuresmarked: /*elided*/ any;
1238
+ optionsvisibilitychange: {
1239
+ optionsVisible: boolean;
1240
+ readonly type: "optionsvisibilitychange";
1241
+ readonly target: /*elided*/ any;
1242
+ };
1243
+ pick: {
1244
+ feature: Feature | undefined;
1245
+ readonly type: "pick";
1246
+ readonly target: /*elided*/ any;
1247
+ };
1248
+ querychange: {
1249
+ query: string;
1250
+ readonly type: "querychange";
1251
+ readonly target: /*elided*/ any;
1252
+ };
1253
+ response: {
1254
+ url: string;
1255
+ featureCollection: FeatureCollection;
1256
+ readonly type: "response";
1257
+ readonly target: /*elided*/ any;
1258
+ };
1259
+ reversetoggle: {
1260
+ reverse: boolean;
1261
+ readonly type: "reversetoggle";
1262
+ readonly target: /*elided*/ any;
1263
+ };
1264
+ }[T]) => void): /*elided*/ any;
1265
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
1266
+ /**
1267
+ * Update the control options.
1268
+ *
1269
+ * @param options options to update
1270
+ */
1271
+ setOptions(options: OPTS): void;
1272
+ /**
1273
+ * Set the content of search input box.
1274
+ *
1275
+ * @param value text to set
1276
+ * @param submit perform the search
1277
+ */
1278
+ setQuery(value: string, submit?: boolean): void;
1279
+ /**
1280
+ * Clear geocoding search results from the map.
1281
+ */
1282
+ clearMap(): void;
1283
+ /**
1284
+ * Clear search result list.
1285
+ */
1286
+ clearList(): void;
1287
+ /**
1288
+ * Set reverse geocoding mode.
1289
+ *
1290
+ * @param reverseActive reverse geocoding active
1291
+ */
1292
+ setReverseMode(reverseActive: boolean): void;
1293
+ /**
1294
+ * Focus the search input box.
1295
+ *
1296
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
1297
+ */
1298
+ focus(options?: FocusOptions): void;
1299
+ /**
1300
+ * Blur the search input box.
1301
+ */
1302
+ blur(): void;
1303
+ onRemove(): void;
1304
+ _listeners: import("maplibre-gl").Listeners;
1305
+ _oneTimeListeners: import("maplibre-gl").Listeners;
1306
+ _eventedParent: Evented;
1307
+ _eventedParentData: any | (() => any);
1308
+ fire(event: {
1309
+ readonly type: string;
1310
+ } | string, properties?: any): /*elided*/ any;
1311
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
1312
+ };
1313
+ };
1314
+ };
1315
+ OptionsVisibilityChangeEvent: {
1316
+ new (target: {
1317
+ "__#1@#gc"?: GeocodingControlComponent;
1318
+ "__#1@#options": OPTS;
1319
+ onAddInt(map: Map): HTMLElement;
1320
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1321
+ select: {
1322
+ feature: Feature | undefined;
1323
+ readonly type: "select";
1324
+ readonly target: /*elided*/ any;
1325
+ };
1326
+ featureslisted: {
1327
+ features: Feature[] | undefined;
1328
+ readonly type: "featureslisted";
1329
+ readonly target: /*elided*/ any;
1330
+ };
1331
+ featuresmarked: {
1332
+ features: Feature[] | undefined;
1333
+ readonly type: "featuresmarked";
1334
+ readonly target: /*elided*/ any;
1335
+ };
1336
+ optionsvisibilitychange: {
1337
+ optionsVisible: boolean;
1338
+ readonly type: "optionsvisibilitychange";
1339
+ readonly target: /*elided*/ any;
1340
+ };
1341
+ pick: {
1342
+ feature: Feature | undefined;
1343
+ readonly type: "pick";
1344
+ readonly target: /*elided*/ any;
1345
+ };
1346
+ querychange: {
1347
+ query: string;
1348
+ readonly type: "querychange";
1349
+ readonly target: /*elided*/ any;
1350
+ };
1351
+ response: {
1352
+ url: string;
1353
+ featureCollection: FeatureCollection;
1354
+ readonly type: "response";
1355
+ readonly target: /*elided*/ any;
1356
+ };
1357
+ reversetoggle: {
1358
+ reverse: boolean;
1359
+ readonly type: "reversetoggle";
1360
+ readonly target: /*elided*/ any;
1361
+ };
1362
+ }[T]) => void): /*elided*/ any;
1363
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1364
+ select: {
1365
+ feature: Feature | undefined;
1366
+ readonly type: "select";
1367
+ readonly target: /*elided*/ any;
1368
+ };
1369
+ featureslisted: {
1370
+ features: Feature[] | undefined;
1371
+ readonly type: "featureslisted";
1372
+ readonly target: /*elided*/ any;
1373
+ };
1374
+ featuresmarked: {
1375
+ features: Feature[] | undefined;
1376
+ readonly type: "featuresmarked";
1377
+ readonly target: /*elided*/ any;
1378
+ };
1379
+ optionsvisibilitychange: {
1380
+ optionsVisible: boolean;
1381
+ readonly type: "optionsvisibilitychange";
1382
+ readonly target: /*elided*/ any;
1383
+ };
1384
+ pick: {
1385
+ feature: Feature | undefined;
1386
+ readonly type: "pick";
1387
+ readonly target: /*elided*/ any;
1388
+ };
1389
+ querychange: {
1390
+ query: string;
1391
+ readonly type: "querychange";
1392
+ readonly target: /*elided*/ any;
1393
+ };
1394
+ response: {
1395
+ url: string;
1396
+ featureCollection: FeatureCollection;
1397
+ readonly type: "response";
1398
+ readonly target: /*elided*/ any;
1399
+ };
1400
+ reversetoggle: {
1401
+ reverse: boolean;
1402
+ readonly type: "reversetoggle";
1403
+ readonly target: /*elided*/ any;
1404
+ };
1405
+ }[T]) => void): /*elided*/ any;
1406
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1407
+ select: {
1408
+ feature: Feature | undefined;
1409
+ readonly type: "select";
1410
+ readonly target: /*elided*/ any;
1411
+ };
1412
+ featureslisted: {
1413
+ features: Feature[] | undefined;
1414
+ readonly type: "featureslisted";
1415
+ readonly target: /*elided*/ any;
1416
+ };
1417
+ featuresmarked: {
1418
+ features: Feature[] | undefined;
1419
+ readonly type: "featuresmarked";
1420
+ readonly target: /*elided*/ any;
1421
+ };
1422
+ optionsvisibilitychange: {
1423
+ optionsVisible: boolean;
1424
+ readonly type: "optionsvisibilitychange";
1425
+ readonly target: /*elided*/ any;
1426
+ };
1427
+ pick: {
1428
+ feature: Feature | undefined;
1429
+ readonly type: "pick";
1430
+ readonly target: /*elided*/ any;
1431
+ };
1432
+ querychange: {
1433
+ query: string;
1434
+ readonly type: "querychange";
1435
+ readonly target: /*elided*/ any;
1436
+ };
1437
+ response: {
1438
+ url: string;
1439
+ featureCollection: FeatureCollection;
1440
+ readonly type: "response";
1441
+ readonly target: /*elided*/ any;
1442
+ };
1443
+ reversetoggle: {
1444
+ reverse: boolean;
1445
+ readonly type: "reversetoggle";
1446
+ readonly target: /*elided*/ any;
1447
+ };
1448
+ }[T]) => void): /*elided*/ any;
1449
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
1450
+ /**
1451
+ * Update the control options.
1452
+ *
1453
+ * @param options options to update
1454
+ */
1455
+ setOptions(options: OPTS): void;
1456
+ /**
1457
+ * Set the content of search input box.
1458
+ *
1459
+ * @param value text to set
1460
+ * @param submit perform the search
1461
+ */
1462
+ setQuery(value: string, submit?: boolean): void;
1463
+ /**
1464
+ * Clear geocoding search results from the map.
1465
+ */
1466
+ clearMap(): void;
1467
+ /**
1468
+ * Clear search result list.
1469
+ */
1470
+ clearList(): void;
1471
+ /**
1472
+ * Set reverse geocoding mode.
1473
+ *
1474
+ * @param reverseActive reverse geocoding active
1475
+ */
1476
+ setReverseMode(reverseActive: boolean): void;
1477
+ /**
1478
+ * Focus the search input box.
1479
+ *
1480
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
1481
+ */
1482
+ focus(options?: FocusOptions): void;
1483
+ /**
1484
+ * Blur the search input box.
1485
+ */
1486
+ blur(): void;
1487
+ onRemove(): void;
1488
+ _listeners: import("maplibre-gl").Listeners;
1489
+ _oneTimeListeners: import("maplibre-gl").Listeners;
1490
+ _eventedParent: Evented;
1491
+ _eventedParentData: any | (() => any);
1492
+ fire(event: {
1493
+ readonly type: string;
1494
+ } | string, properties?: any): /*elided*/ any;
1495
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
1496
+ }, optionsVisible: boolean): {
1497
+ optionsVisible: boolean;
1498
+ readonly type: "optionsvisibilitychange";
1499
+ readonly target: {
1500
+ "__#1@#gc"?: GeocodingControlComponent;
1501
+ "__#1@#options": OPTS;
1502
+ onAddInt(map: Map): HTMLElement;
1503
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1504
+ select: {
1505
+ feature: Feature | undefined;
1506
+ readonly type: "select";
1507
+ readonly target: /*elided*/ any;
1508
+ };
1509
+ featureslisted: {
1510
+ features: Feature[] | undefined;
1511
+ readonly type: "featureslisted";
1512
+ readonly target: /*elided*/ any;
1513
+ };
1514
+ featuresmarked: {
1515
+ features: Feature[] | undefined;
1516
+ readonly type: "featuresmarked";
1517
+ readonly target: /*elided*/ any;
1518
+ };
1519
+ optionsvisibilitychange: /*elided*/ any;
1520
+ pick: {
1521
+ feature: Feature | undefined;
1522
+ readonly type: "pick";
1523
+ readonly target: /*elided*/ any;
1524
+ };
1525
+ querychange: {
1526
+ query: string;
1527
+ readonly type: "querychange";
1528
+ readonly target: /*elided*/ any;
1529
+ };
1530
+ response: {
1531
+ url: string;
1532
+ featureCollection: FeatureCollection;
1533
+ readonly type: "response";
1534
+ readonly target: /*elided*/ any;
1535
+ };
1536
+ reversetoggle: {
1537
+ reverse: boolean;
1538
+ readonly type: "reversetoggle";
1539
+ readonly target: /*elided*/ any;
1540
+ };
1541
+ }[T]) => void): /*elided*/ any;
1542
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1543
+ select: {
1544
+ feature: Feature | undefined;
1545
+ readonly type: "select";
1546
+ readonly target: /*elided*/ any;
1547
+ };
1548
+ featureslisted: {
1549
+ features: Feature[] | undefined;
1550
+ readonly type: "featureslisted";
1551
+ readonly target: /*elided*/ any;
1552
+ };
1553
+ featuresmarked: {
1554
+ features: Feature[] | undefined;
1555
+ readonly type: "featuresmarked";
1556
+ readonly target: /*elided*/ any;
1557
+ };
1558
+ optionsvisibilitychange: /*elided*/ any;
1559
+ pick: {
1560
+ feature: Feature | undefined;
1561
+ readonly type: "pick";
1562
+ readonly target: /*elided*/ any;
1563
+ };
1564
+ querychange: {
1565
+ query: string;
1566
+ readonly type: "querychange";
1567
+ readonly target: /*elided*/ any;
1568
+ };
1569
+ response: {
1570
+ url: string;
1571
+ featureCollection: FeatureCollection;
1572
+ readonly type: "response";
1573
+ readonly target: /*elided*/ any;
1574
+ };
1575
+ reversetoggle: {
1576
+ reverse: boolean;
1577
+ readonly type: "reversetoggle";
1578
+ readonly target: /*elided*/ any;
1579
+ };
1580
+ }[T]) => void): /*elided*/ any;
1581
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1582
+ select: {
1583
+ feature: Feature | undefined;
1584
+ readonly type: "select";
1585
+ readonly target: /*elided*/ any;
1586
+ };
1587
+ featureslisted: {
1588
+ features: Feature[] | undefined;
1589
+ readonly type: "featureslisted";
1590
+ readonly target: /*elided*/ any;
1591
+ };
1592
+ featuresmarked: {
1593
+ features: Feature[] | undefined;
1594
+ readonly type: "featuresmarked";
1595
+ readonly target: /*elided*/ any;
1596
+ };
1597
+ optionsvisibilitychange: /*elided*/ any;
1598
+ pick: {
1599
+ feature: Feature | undefined;
1600
+ readonly type: "pick";
1601
+ readonly target: /*elided*/ any;
1602
+ };
1603
+ querychange: {
1604
+ query: string;
1605
+ readonly type: "querychange";
1606
+ readonly target: /*elided*/ any;
1607
+ };
1608
+ response: {
1609
+ url: string;
1610
+ featureCollection: FeatureCollection;
1611
+ readonly type: "response";
1612
+ readonly target: /*elided*/ any;
1613
+ };
1614
+ reversetoggle: {
1615
+ reverse: boolean;
1616
+ readonly type: "reversetoggle";
1617
+ readonly target: /*elided*/ any;
1618
+ };
1619
+ }[T]) => void): /*elided*/ any;
1620
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
1621
+ /**
1622
+ * Update the control options.
1623
+ *
1624
+ * @param options options to update
1625
+ */
1626
+ setOptions(options: OPTS): void;
1627
+ /**
1628
+ * Set the content of search input box.
1629
+ *
1630
+ * @param value text to set
1631
+ * @param submit perform the search
1632
+ */
1633
+ setQuery(value: string, submit?: boolean): void;
1634
+ /**
1635
+ * Clear geocoding search results from the map.
1636
+ */
1637
+ clearMap(): void;
1638
+ /**
1639
+ * Clear search result list.
1640
+ */
1641
+ clearList(): void;
1642
+ /**
1643
+ * Set reverse geocoding mode.
1644
+ *
1645
+ * @param reverseActive reverse geocoding active
1646
+ */
1647
+ setReverseMode(reverseActive: boolean): void;
1648
+ /**
1649
+ * Focus the search input box.
1650
+ *
1651
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
1652
+ */
1653
+ focus(options?: FocusOptions): void;
1654
+ /**
1655
+ * Blur the search input box.
1656
+ */
1657
+ blur(): void;
1658
+ onRemove(): void;
1659
+ _listeners: import("maplibre-gl").Listeners;
1660
+ _oneTimeListeners: import("maplibre-gl").Listeners;
1661
+ _eventedParent: Evented;
1662
+ _eventedParentData: any | (() => any);
1663
+ fire(event: {
1664
+ readonly type: string;
1665
+ } | string, properties?: any): /*elided*/ any;
1666
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
1667
+ };
1668
+ };
1669
+ };
1670
+ PickEvent: {
1671
+ new (target: {
1672
+ "__#1@#gc"?: GeocodingControlComponent;
1673
+ "__#1@#options": OPTS;
1674
+ onAddInt(map: Map): HTMLElement;
1675
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1676
+ select: {
1677
+ feature: Feature | undefined;
1678
+ readonly type: "select";
1679
+ readonly target: /*elided*/ any;
1680
+ };
1681
+ featureslisted: {
1682
+ features: Feature[] | undefined;
1683
+ readonly type: "featureslisted";
1684
+ readonly target: /*elided*/ any;
1685
+ };
1686
+ featuresmarked: {
1687
+ features: Feature[] | undefined;
1688
+ readonly type: "featuresmarked";
1689
+ readonly target: /*elided*/ any;
1690
+ };
1691
+ optionsvisibilitychange: {
1692
+ optionsVisible: boolean;
1693
+ readonly type: "optionsvisibilitychange";
1694
+ readonly target: /*elided*/ any;
1695
+ };
1696
+ pick: {
1697
+ feature: Feature | undefined;
1698
+ readonly type: "pick";
1699
+ readonly target: /*elided*/ any;
1700
+ };
1701
+ querychange: {
1702
+ query: string;
1703
+ readonly type: "querychange";
1704
+ readonly target: /*elided*/ any;
1705
+ };
1706
+ response: {
1707
+ url: string;
1708
+ featureCollection: FeatureCollection;
1709
+ readonly type: "response";
1710
+ readonly target: /*elided*/ any;
1711
+ };
1712
+ reversetoggle: {
1713
+ reverse: boolean;
1714
+ readonly type: "reversetoggle";
1715
+ readonly target: /*elided*/ any;
1716
+ };
1717
+ }[T]) => void): /*elided*/ any;
1718
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1719
+ select: {
1720
+ feature: Feature | undefined;
1721
+ readonly type: "select";
1722
+ readonly target: /*elided*/ any;
1723
+ };
1724
+ featureslisted: {
1725
+ features: Feature[] | undefined;
1726
+ readonly type: "featureslisted";
1727
+ readonly target: /*elided*/ any;
1728
+ };
1729
+ featuresmarked: {
1730
+ features: Feature[] | undefined;
1731
+ readonly type: "featuresmarked";
1732
+ readonly target: /*elided*/ any;
1733
+ };
1734
+ optionsvisibilitychange: {
1735
+ optionsVisible: boolean;
1736
+ readonly type: "optionsvisibilitychange";
1737
+ readonly target: /*elided*/ any;
1738
+ };
1739
+ pick: {
1740
+ feature: Feature | undefined;
1741
+ readonly type: "pick";
1742
+ readonly target: /*elided*/ any;
1743
+ };
1744
+ querychange: {
1745
+ query: string;
1746
+ readonly type: "querychange";
1747
+ readonly target: /*elided*/ any;
1748
+ };
1749
+ response: {
1750
+ url: string;
1751
+ featureCollection: FeatureCollection;
1752
+ readonly type: "response";
1753
+ readonly target: /*elided*/ any;
1754
+ };
1755
+ reversetoggle: {
1756
+ reverse: boolean;
1757
+ readonly type: "reversetoggle";
1758
+ readonly target: /*elided*/ any;
1759
+ };
1760
+ }[T]) => void): /*elided*/ any;
1761
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1762
+ select: {
1763
+ feature: Feature | undefined;
1764
+ readonly type: "select";
1765
+ readonly target: /*elided*/ any;
1766
+ };
1767
+ featureslisted: {
1768
+ features: Feature[] | undefined;
1769
+ readonly type: "featureslisted";
1770
+ readonly target: /*elided*/ any;
1771
+ };
1772
+ featuresmarked: {
1773
+ features: Feature[] | undefined;
1774
+ readonly type: "featuresmarked";
1775
+ readonly target: /*elided*/ any;
1776
+ };
1777
+ optionsvisibilitychange: {
1778
+ optionsVisible: boolean;
1779
+ readonly type: "optionsvisibilitychange";
1780
+ readonly target: /*elided*/ any;
1781
+ };
1782
+ pick: {
1783
+ feature: Feature | undefined;
1784
+ readonly type: "pick";
1785
+ readonly target: /*elided*/ any;
1786
+ };
1787
+ querychange: {
1788
+ query: string;
1789
+ readonly type: "querychange";
1790
+ readonly target: /*elided*/ any;
1791
+ };
1792
+ response: {
1793
+ url: string;
1794
+ featureCollection: FeatureCollection;
1795
+ readonly type: "response";
1796
+ readonly target: /*elided*/ any;
1797
+ };
1798
+ reversetoggle: {
1799
+ reverse: boolean;
1800
+ readonly type: "reversetoggle";
1801
+ readonly target: /*elided*/ any;
1802
+ };
1803
+ }[T]) => void): /*elided*/ any;
1804
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
1805
+ /**
1806
+ * Update the control options.
1807
+ *
1808
+ * @param options options to update
1809
+ */
1810
+ setOptions(options: OPTS): void;
1811
+ /**
1812
+ * Set the content of search input box.
1813
+ *
1814
+ * @param value text to set
1815
+ * @param submit perform the search
1816
+ */
1817
+ setQuery(value: string, submit?: boolean): void;
1818
+ /**
1819
+ * Clear geocoding search results from the map.
1820
+ */
1821
+ clearMap(): void;
1822
+ /**
1823
+ * Clear search result list.
1824
+ */
1825
+ clearList(): void;
1826
+ /**
1827
+ * Set reverse geocoding mode.
1828
+ *
1829
+ * @param reverseActive reverse geocoding active
1830
+ */
1831
+ setReverseMode(reverseActive: boolean): void;
1832
+ /**
1833
+ * Focus the search input box.
1834
+ *
1835
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
1836
+ */
1837
+ focus(options?: FocusOptions): void;
1838
+ /**
1839
+ * Blur the search input box.
1840
+ */
1841
+ blur(): void;
1842
+ onRemove(): void;
1843
+ _listeners: import("maplibre-gl").Listeners;
1844
+ _oneTimeListeners: import("maplibre-gl").Listeners;
1845
+ _eventedParent: Evented;
1846
+ _eventedParentData: any | (() => any);
1847
+ fire(event: {
1848
+ readonly type: string;
1849
+ } | string, properties?: any): /*elided*/ any;
1850
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
1851
+ }, feature: Feature | undefined): {
1852
+ feature: Feature | undefined;
1853
+ readonly type: "pick";
1854
+ readonly target: {
1855
+ "__#1@#gc"?: GeocodingControlComponent;
1856
+ "__#1@#options": OPTS;
1857
+ onAddInt(map: Map): HTMLElement;
1858
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1859
+ select: {
1860
+ feature: Feature | undefined;
1861
+ readonly type: "select";
1862
+ readonly target: /*elided*/ any;
1863
+ };
1864
+ featureslisted: {
1865
+ features: Feature[] | undefined;
1866
+ readonly type: "featureslisted";
1867
+ readonly target: /*elided*/ any;
1868
+ };
1869
+ featuresmarked: {
1870
+ features: Feature[] | undefined;
1871
+ readonly type: "featuresmarked";
1872
+ readonly target: /*elided*/ any;
1873
+ };
1874
+ optionsvisibilitychange: {
1875
+ optionsVisible: boolean;
1876
+ readonly type: "optionsvisibilitychange";
1877
+ readonly target: /*elided*/ any;
1878
+ };
1879
+ pick: /*elided*/ any;
1880
+ querychange: {
1881
+ query: string;
1882
+ readonly type: "querychange";
1883
+ readonly target: /*elided*/ any;
1884
+ };
1885
+ response: {
1886
+ url: string;
1887
+ featureCollection: FeatureCollection;
1888
+ readonly type: "response";
1889
+ readonly target: /*elided*/ any;
1890
+ };
1891
+ reversetoggle: {
1892
+ reverse: boolean;
1893
+ readonly type: "reversetoggle";
1894
+ readonly target: /*elided*/ any;
1895
+ };
1896
+ }[T]) => void): /*elided*/ any;
1897
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1898
+ select: {
1899
+ feature: Feature | undefined;
1900
+ readonly type: "select";
1901
+ readonly target: /*elided*/ any;
1902
+ };
1903
+ featureslisted: {
1904
+ features: Feature[] | undefined;
1905
+ readonly type: "featureslisted";
1906
+ readonly target: /*elided*/ any;
1907
+ };
1908
+ featuresmarked: {
1909
+ features: Feature[] | undefined;
1910
+ readonly type: "featuresmarked";
1911
+ readonly target: /*elided*/ any;
1912
+ };
1913
+ optionsvisibilitychange: {
1914
+ optionsVisible: boolean;
1915
+ readonly type: "optionsvisibilitychange";
1916
+ readonly target: /*elided*/ any;
1917
+ };
1918
+ pick: /*elided*/ any;
1919
+ querychange: {
1920
+ query: string;
1921
+ readonly type: "querychange";
1922
+ readonly target: /*elided*/ any;
1923
+ };
1924
+ response: {
1925
+ url: string;
1926
+ featureCollection: FeatureCollection;
1927
+ readonly type: "response";
1928
+ readonly target: /*elided*/ any;
1929
+ };
1930
+ reversetoggle: {
1931
+ reverse: boolean;
1932
+ readonly type: "reversetoggle";
1933
+ readonly target: /*elided*/ any;
1934
+ };
1935
+ }[T]) => void): /*elided*/ any;
1936
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
1937
+ select: {
1938
+ feature: Feature | undefined;
1939
+ readonly type: "select";
1940
+ readonly target: /*elided*/ any;
1941
+ };
1942
+ featureslisted: {
1943
+ features: Feature[] | undefined;
1944
+ readonly type: "featureslisted";
1945
+ readonly target: /*elided*/ any;
1946
+ };
1947
+ featuresmarked: {
1948
+ features: Feature[] | undefined;
1949
+ readonly type: "featuresmarked";
1950
+ readonly target: /*elided*/ any;
1951
+ };
1952
+ optionsvisibilitychange: {
1953
+ optionsVisible: boolean;
1954
+ readonly type: "optionsvisibilitychange";
1955
+ readonly target: /*elided*/ any;
1956
+ };
1957
+ pick: /*elided*/ any;
1958
+ querychange: {
1959
+ query: string;
1960
+ readonly type: "querychange";
1961
+ readonly target: /*elided*/ any;
1962
+ };
1963
+ response: {
1964
+ url: string;
1965
+ featureCollection: FeatureCollection;
1966
+ readonly type: "response";
1967
+ readonly target: /*elided*/ any;
1968
+ };
1969
+ reversetoggle: {
1970
+ reverse: boolean;
1971
+ readonly type: "reversetoggle";
1972
+ readonly target: /*elided*/ any;
1973
+ };
1974
+ }[T]) => void): /*elided*/ any;
1975
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
1976
+ /**
1977
+ * Update the control options.
1978
+ *
1979
+ * @param options options to update
1980
+ */
1981
+ setOptions(options: OPTS): void;
1982
+ /**
1983
+ * Set the content of search input box.
1984
+ *
1985
+ * @param value text to set
1986
+ * @param submit perform the search
1987
+ */
1988
+ setQuery(value: string, submit?: boolean): void;
1989
+ /**
1990
+ * Clear geocoding search results from the map.
1991
+ */
1992
+ clearMap(): void;
1993
+ /**
1994
+ * Clear search result list.
1995
+ */
1996
+ clearList(): void;
1997
+ /**
1998
+ * Set reverse geocoding mode.
1999
+ *
2000
+ * @param reverseActive reverse geocoding active
2001
+ */
2002
+ setReverseMode(reverseActive: boolean): void;
2003
+ /**
2004
+ * Focus the search input box.
2005
+ *
2006
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
2007
+ */
2008
+ focus(options?: FocusOptions): void;
2009
+ /**
2010
+ * Blur the search input box.
2011
+ */
2012
+ blur(): void;
2013
+ onRemove(): void;
2014
+ _listeners: import("maplibre-gl").Listeners;
2015
+ _oneTimeListeners: import("maplibre-gl").Listeners;
2016
+ _eventedParent: Evented;
2017
+ _eventedParentData: any | (() => any);
2018
+ fire(event: {
2019
+ readonly type: string;
2020
+ } | string, properties?: any): /*elided*/ any;
2021
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
2022
+ };
2023
+ };
2024
+ };
2025
+ QueryChangeEvent: {
2026
+ new (target: {
2027
+ "__#1@#gc"?: GeocodingControlComponent;
2028
+ "__#1@#options": OPTS;
2029
+ onAddInt(map: Map): HTMLElement;
2030
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2031
+ select: {
2032
+ feature: Feature | undefined;
2033
+ readonly type: "select";
2034
+ readonly target: /*elided*/ any;
2035
+ };
2036
+ featureslisted: {
2037
+ features: Feature[] | undefined;
2038
+ readonly type: "featureslisted";
2039
+ readonly target: /*elided*/ any;
2040
+ };
2041
+ featuresmarked: {
2042
+ features: Feature[] | undefined;
2043
+ readonly type: "featuresmarked";
2044
+ readonly target: /*elided*/ any;
2045
+ };
2046
+ optionsvisibilitychange: {
2047
+ optionsVisible: boolean;
2048
+ readonly type: "optionsvisibilitychange";
2049
+ readonly target: /*elided*/ any;
2050
+ };
2051
+ pick: {
2052
+ feature: Feature | undefined;
2053
+ readonly type: "pick";
2054
+ readonly target: /*elided*/ any;
2055
+ };
2056
+ querychange: {
2057
+ query: string;
2058
+ readonly type: "querychange";
2059
+ readonly target: /*elided*/ any;
2060
+ };
2061
+ response: {
2062
+ url: string;
2063
+ featureCollection: FeatureCollection;
2064
+ readonly type: "response";
2065
+ readonly target: /*elided*/ any;
2066
+ };
2067
+ reversetoggle: {
2068
+ reverse: boolean;
2069
+ readonly type: "reversetoggle";
2070
+ readonly target: /*elided*/ any;
2071
+ };
2072
+ }[T]) => void): /*elided*/ any;
2073
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2074
+ select: {
2075
+ feature: Feature | undefined;
2076
+ readonly type: "select";
2077
+ readonly target: /*elided*/ any;
2078
+ };
2079
+ featureslisted: {
2080
+ features: Feature[] | undefined;
2081
+ readonly type: "featureslisted";
2082
+ readonly target: /*elided*/ any;
2083
+ };
2084
+ featuresmarked: {
2085
+ features: Feature[] | undefined;
2086
+ readonly type: "featuresmarked";
2087
+ readonly target: /*elided*/ any;
2088
+ };
2089
+ optionsvisibilitychange: {
2090
+ optionsVisible: boolean;
2091
+ readonly type: "optionsvisibilitychange";
2092
+ readonly target: /*elided*/ any;
2093
+ };
2094
+ pick: {
2095
+ feature: Feature | undefined;
2096
+ readonly type: "pick";
2097
+ readonly target: /*elided*/ any;
2098
+ };
2099
+ querychange: {
2100
+ query: string;
2101
+ readonly type: "querychange";
2102
+ readonly target: /*elided*/ any;
2103
+ };
2104
+ response: {
2105
+ url: string;
2106
+ featureCollection: FeatureCollection;
2107
+ readonly type: "response";
2108
+ readonly target: /*elided*/ any;
2109
+ };
2110
+ reversetoggle: {
2111
+ reverse: boolean;
2112
+ readonly type: "reversetoggle";
2113
+ readonly target: /*elided*/ any;
2114
+ };
2115
+ }[T]) => void): /*elided*/ any;
2116
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2117
+ select: {
2118
+ feature: Feature | undefined;
2119
+ readonly type: "select";
2120
+ readonly target: /*elided*/ any;
2121
+ };
2122
+ featureslisted: {
2123
+ features: Feature[] | undefined;
2124
+ readonly type: "featureslisted";
2125
+ readonly target: /*elided*/ any;
2126
+ };
2127
+ featuresmarked: {
2128
+ features: Feature[] | undefined;
2129
+ readonly type: "featuresmarked";
2130
+ readonly target: /*elided*/ any;
2131
+ };
2132
+ optionsvisibilitychange: {
2133
+ optionsVisible: boolean;
2134
+ readonly type: "optionsvisibilitychange";
2135
+ readonly target: /*elided*/ any;
2136
+ };
2137
+ pick: {
2138
+ feature: Feature | undefined;
2139
+ readonly type: "pick";
2140
+ readonly target: /*elided*/ any;
2141
+ };
2142
+ querychange: {
2143
+ query: string;
2144
+ readonly type: "querychange";
2145
+ readonly target: /*elided*/ any;
2146
+ };
2147
+ response: {
2148
+ url: string;
2149
+ featureCollection: FeatureCollection;
2150
+ readonly type: "response";
2151
+ readonly target: /*elided*/ any;
2152
+ };
2153
+ reversetoggle: {
2154
+ reverse: boolean;
2155
+ readonly type: "reversetoggle";
2156
+ readonly target: /*elided*/ any;
2157
+ };
2158
+ }[T]) => void): /*elided*/ any;
2159
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
2160
+ /**
2161
+ * Update the control options.
2162
+ *
2163
+ * @param options options to update
2164
+ */
2165
+ setOptions(options: OPTS): void;
2166
+ /**
2167
+ * Set the content of search input box.
2168
+ *
2169
+ * @param value text to set
2170
+ * @param submit perform the search
2171
+ */
2172
+ setQuery(value: string, submit?: boolean): void;
2173
+ /**
2174
+ * Clear geocoding search results from the map.
2175
+ */
2176
+ clearMap(): void;
2177
+ /**
2178
+ * Clear search result list.
2179
+ */
2180
+ clearList(): void;
2181
+ /**
2182
+ * Set reverse geocoding mode.
2183
+ *
2184
+ * @param reverseActive reverse geocoding active
2185
+ */
2186
+ setReverseMode(reverseActive: boolean): void;
2187
+ /**
2188
+ * Focus the search input box.
2189
+ *
2190
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
2191
+ */
2192
+ focus(options?: FocusOptions): void;
2193
+ /**
2194
+ * Blur the search input box.
2195
+ */
2196
+ blur(): void;
2197
+ onRemove(): void;
2198
+ _listeners: import("maplibre-gl").Listeners;
2199
+ _oneTimeListeners: import("maplibre-gl").Listeners;
2200
+ _eventedParent: Evented;
2201
+ _eventedParentData: any | (() => any);
2202
+ fire(event: {
2203
+ readonly type: string;
2204
+ } | string, properties?: any): /*elided*/ any;
2205
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
2206
+ }, query: string): {
2207
+ query: string;
2208
+ readonly type: "querychange";
2209
+ readonly target: {
2210
+ "__#1@#gc"?: GeocodingControlComponent;
2211
+ "__#1@#options": OPTS;
2212
+ onAddInt(map: Map): HTMLElement;
2213
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2214
+ select: {
2215
+ feature: Feature | undefined;
2216
+ readonly type: "select";
2217
+ readonly target: /*elided*/ any;
2218
+ };
2219
+ featureslisted: {
2220
+ features: Feature[] | undefined;
2221
+ readonly type: "featureslisted";
2222
+ readonly target: /*elided*/ any;
2223
+ };
2224
+ featuresmarked: {
2225
+ features: Feature[] | undefined;
2226
+ readonly type: "featuresmarked";
2227
+ readonly target: /*elided*/ any;
2228
+ };
2229
+ optionsvisibilitychange: {
2230
+ optionsVisible: boolean;
2231
+ readonly type: "optionsvisibilitychange";
2232
+ readonly target: /*elided*/ any;
2233
+ };
2234
+ pick: {
2235
+ feature: Feature | undefined;
2236
+ readonly type: "pick";
2237
+ readonly target: /*elided*/ any;
2238
+ };
2239
+ querychange: /*elided*/ any;
2240
+ response: {
2241
+ url: string;
2242
+ featureCollection: FeatureCollection;
2243
+ readonly type: "response";
2244
+ readonly target: /*elided*/ any;
2245
+ };
2246
+ reversetoggle: {
2247
+ reverse: boolean;
2248
+ readonly type: "reversetoggle";
2249
+ readonly target: /*elided*/ any;
2250
+ };
2251
+ }[T]) => void): /*elided*/ any;
2252
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2253
+ select: {
2254
+ feature: Feature | undefined;
2255
+ readonly type: "select";
2256
+ readonly target: /*elided*/ any;
2257
+ };
2258
+ featureslisted: {
2259
+ features: Feature[] | undefined;
2260
+ readonly type: "featureslisted";
2261
+ readonly target: /*elided*/ any;
2262
+ };
2263
+ featuresmarked: {
2264
+ features: Feature[] | undefined;
2265
+ readonly type: "featuresmarked";
2266
+ readonly target: /*elided*/ any;
2267
+ };
2268
+ optionsvisibilitychange: {
2269
+ optionsVisible: boolean;
2270
+ readonly type: "optionsvisibilitychange";
2271
+ readonly target: /*elided*/ any;
2272
+ };
2273
+ pick: {
2274
+ feature: Feature | undefined;
2275
+ readonly type: "pick";
2276
+ readonly target: /*elided*/ any;
2277
+ };
2278
+ querychange: /*elided*/ any;
2279
+ response: {
2280
+ url: string;
2281
+ featureCollection: FeatureCollection;
2282
+ readonly type: "response";
2283
+ readonly target: /*elided*/ any;
2284
+ };
2285
+ reversetoggle: {
2286
+ reverse: boolean;
2287
+ readonly type: "reversetoggle";
2288
+ readonly target: /*elided*/ any;
2289
+ };
2290
+ }[T]) => void): /*elided*/ any;
2291
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2292
+ select: {
2293
+ feature: Feature | undefined;
2294
+ readonly type: "select";
2295
+ readonly target: /*elided*/ any;
2296
+ };
2297
+ featureslisted: {
2298
+ features: Feature[] | undefined;
2299
+ readonly type: "featureslisted";
2300
+ readonly target: /*elided*/ any;
2301
+ };
2302
+ featuresmarked: {
2303
+ features: Feature[] | undefined;
2304
+ readonly type: "featuresmarked";
2305
+ readonly target: /*elided*/ any;
2306
+ };
2307
+ optionsvisibilitychange: {
2308
+ optionsVisible: boolean;
2309
+ readonly type: "optionsvisibilitychange";
2310
+ readonly target: /*elided*/ any;
2311
+ };
2312
+ pick: {
2313
+ feature: Feature | undefined;
2314
+ readonly type: "pick";
2315
+ readonly target: /*elided*/ any;
2316
+ };
2317
+ querychange: /*elided*/ any;
2318
+ response: {
2319
+ url: string;
2320
+ featureCollection: FeatureCollection;
2321
+ readonly type: "response";
2322
+ readonly target: /*elided*/ any;
2323
+ };
2324
+ reversetoggle: {
2325
+ reverse: boolean;
2326
+ readonly type: "reversetoggle";
2327
+ readonly target: /*elided*/ any;
2328
+ };
2329
+ }[T]) => void): /*elided*/ any;
2330
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
2331
+ /**
2332
+ * Update the control options.
2333
+ *
2334
+ * @param options options to update
2335
+ */
2336
+ setOptions(options: OPTS): void;
2337
+ /**
2338
+ * Set the content of search input box.
2339
+ *
2340
+ * @param value text to set
2341
+ * @param submit perform the search
2342
+ */
2343
+ setQuery(value: string, submit?: boolean): void;
2344
+ /**
2345
+ * Clear geocoding search results from the map.
2346
+ */
2347
+ clearMap(): void;
2348
+ /**
2349
+ * Clear search result list.
2350
+ */
2351
+ clearList(): void;
2352
+ /**
2353
+ * Set reverse geocoding mode.
2354
+ *
2355
+ * @param reverseActive reverse geocoding active
2356
+ */
2357
+ setReverseMode(reverseActive: boolean): void;
2358
+ /**
2359
+ * Focus the search input box.
2360
+ *
2361
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
2362
+ */
2363
+ focus(options?: FocusOptions): void;
2364
+ /**
2365
+ * Blur the search input box.
2366
+ */
2367
+ blur(): void;
2368
+ onRemove(): void;
2369
+ _listeners: import("maplibre-gl").Listeners;
2370
+ _oneTimeListeners: import("maplibre-gl").Listeners;
2371
+ _eventedParent: Evented;
2372
+ _eventedParentData: any | (() => any);
2373
+ fire(event: {
2374
+ readonly type: string;
2375
+ } | string, properties?: any): /*elided*/ any;
2376
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
2377
+ };
2378
+ };
2379
+ };
2380
+ ResponseEvent: {
2381
+ new (target: {
2382
+ "__#1@#gc"?: GeocodingControlComponent;
2383
+ "__#1@#options": OPTS;
2384
+ onAddInt(map: Map): HTMLElement;
2385
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2386
+ select: {
2387
+ feature: Feature | undefined;
2388
+ readonly type: "select";
2389
+ readonly target: /*elided*/ any;
2390
+ };
2391
+ featureslisted: {
2392
+ features: Feature[] | undefined;
2393
+ readonly type: "featureslisted";
2394
+ readonly target: /*elided*/ any;
2395
+ };
2396
+ featuresmarked: {
2397
+ features: Feature[] | undefined;
2398
+ readonly type: "featuresmarked";
2399
+ readonly target: /*elided*/ any;
2400
+ };
2401
+ optionsvisibilitychange: {
2402
+ optionsVisible: boolean;
2403
+ readonly type: "optionsvisibilitychange";
2404
+ readonly target: /*elided*/ any;
2405
+ };
2406
+ pick: {
2407
+ feature: Feature | undefined;
2408
+ readonly type: "pick";
2409
+ readonly target: /*elided*/ any;
2410
+ };
2411
+ querychange: {
2412
+ query: string;
2413
+ readonly type: "querychange";
2414
+ readonly target: /*elided*/ any;
2415
+ };
2416
+ response: {
2417
+ url: string;
2418
+ featureCollection: FeatureCollection;
2419
+ readonly type: "response";
2420
+ readonly target: /*elided*/ any;
2421
+ };
2422
+ reversetoggle: {
2423
+ reverse: boolean;
2424
+ readonly type: "reversetoggle";
2425
+ readonly target: /*elided*/ any;
2426
+ };
2427
+ }[T]) => void): /*elided*/ any;
2428
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2429
+ select: {
2430
+ feature: Feature | undefined;
2431
+ readonly type: "select";
2432
+ readonly target: /*elided*/ any;
2433
+ };
2434
+ featureslisted: {
2435
+ features: Feature[] | undefined;
2436
+ readonly type: "featureslisted";
2437
+ readonly target: /*elided*/ any;
2438
+ };
2439
+ featuresmarked: {
2440
+ features: Feature[] | undefined;
2441
+ readonly type: "featuresmarked";
2442
+ readonly target: /*elided*/ any;
2443
+ };
2444
+ optionsvisibilitychange: {
2445
+ optionsVisible: boolean;
2446
+ readonly type: "optionsvisibilitychange";
2447
+ readonly target: /*elided*/ any;
2448
+ };
2449
+ pick: {
2450
+ feature: Feature | undefined;
2451
+ readonly type: "pick";
2452
+ readonly target: /*elided*/ any;
2453
+ };
2454
+ querychange: {
2455
+ query: string;
2456
+ readonly type: "querychange";
2457
+ readonly target: /*elided*/ any;
2458
+ };
2459
+ response: {
2460
+ url: string;
2461
+ featureCollection: FeatureCollection;
2462
+ readonly type: "response";
2463
+ readonly target: /*elided*/ any;
2464
+ };
2465
+ reversetoggle: {
2466
+ reverse: boolean;
2467
+ readonly type: "reversetoggle";
2468
+ readonly target: /*elided*/ any;
2469
+ };
2470
+ }[T]) => void): /*elided*/ any;
2471
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2472
+ select: {
2473
+ feature: Feature | undefined;
2474
+ readonly type: "select";
2475
+ readonly target: /*elided*/ any;
2476
+ };
2477
+ featureslisted: {
2478
+ features: Feature[] | undefined;
2479
+ readonly type: "featureslisted";
2480
+ readonly target: /*elided*/ any;
2481
+ };
2482
+ featuresmarked: {
2483
+ features: Feature[] | undefined;
2484
+ readonly type: "featuresmarked";
2485
+ readonly target: /*elided*/ any;
2486
+ };
2487
+ optionsvisibilitychange: {
2488
+ optionsVisible: boolean;
2489
+ readonly type: "optionsvisibilitychange";
2490
+ readonly target: /*elided*/ any;
2491
+ };
2492
+ pick: {
2493
+ feature: Feature | undefined;
2494
+ readonly type: "pick";
2495
+ readonly target: /*elided*/ any;
2496
+ };
2497
+ querychange: {
2498
+ query: string;
2499
+ readonly type: "querychange";
2500
+ readonly target: /*elided*/ any;
2501
+ };
2502
+ response: {
2503
+ url: string;
2504
+ featureCollection: FeatureCollection;
2505
+ readonly type: "response";
2506
+ readonly target: /*elided*/ any;
2507
+ };
2508
+ reversetoggle: {
2509
+ reverse: boolean;
2510
+ readonly type: "reversetoggle";
2511
+ readonly target: /*elided*/ any;
2512
+ };
2513
+ }[T]) => void): /*elided*/ any;
2514
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
2515
+ /**
2516
+ * Update the control options.
2517
+ *
2518
+ * @param options options to update
2519
+ */
2520
+ setOptions(options: OPTS): void;
2521
+ /**
2522
+ * Set the content of search input box.
2523
+ *
2524
+ * @param value text to set
2525
+ * @param submit perform the search
2526
+ */
2527
+ setQuery(value: string, submit?: boolean): void;
2528
+ /**
2529
+ * Clear geocoding search results from the map.
2530
+ */
2531
+ clearMap(): void;
2532
+ /**
2533
+ * Clear search result list.
2534
+ */
2535
+ clearList(): void;
2536
+ /**
2537
+ * Set reverse geocoding mode.
2538
+ *
2539
+ * @param reverseActive reverse geocoding active
2540
+ */
2541
+ setReverseMode(reverseActive: boolean): void;
2542
+ /**
2543
+ * Focus the search input box.
2544
+ *
2545
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
2546
+ */
2547
+ focus(options?: FocusOptions): void;
2548
+ /**
2549
+ * Blur the search input box.
2550
+ */
2551
+ blur(): void;
2552
+ onRemove(): void;
2553
+ _listeners: import("maplibre-gl").Listeners;
2554
+ _oneTimeListeners: import("maplibre-gl").Listeners;
2555
+ _eventedParent: Evented;
2556
+ _eventedParentData: any | (() => any);
2557
+ fire(event: {
2558
+ readonly type: string;
2559
+ } | string, properties?: any): /*elided*/ any;
2560
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
2561
+ }, url: string, featureCollection: FeatureCollection): {
2562
+ url: string;
2563
+ featureCollection: FeatureCollection;
2564
+ readonly type: "response";
2565
+ readonly target: {
2566
+ "__#1@#gc"?: GeocodingControlComponent;
2567
+ "__#1@#options": OPTS;
2568
+ onAddInt(map: Map): HTMLElement;
2569
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2570
+ select: {
2571
+ feature: Feature | undefined;
2572
+ readonly type: "select";
2573
+ readonly target: /*elided*/ any;
2574
+ };
2575
+ featureslisted: {
2576
+ features: Feature[] | undefined;
2577
+ readonly type: "featureslisted";
2578
+ readonly target: /*elided*/ any;
2579
+ };
2580
+ featuresmarked: {
2581
+ features: Feature[] | undefined;
2582
+ readonly type: "featuresmarked";
2583
+ readonly target: /*elided*/ any;
2584
+ };
2585
+ optionsvisibilitychange: {
2586
+ optionsVisible: boolean;
2587
+ readonly type: "optionsvisibilitychange";
2588
+ readonly target: /*elided*/ any;
2589
+ };
2590
+ pick: {
2591
+ feature: Feature | undefined;
2592
+ readonly type: "pick";
2593
+ readonly target: /*elided*/ any;
2594
+ };
2595
+ querychange: {
2596
+ query: string;
2597
+ readonly type: "querychange";
2598
+ readonly target: /*elided*/ any;
2599
+ };
2600
+ response: /*elided*/ any;
2601
+ reversetoggle: {
2602
+ reverse: boolean;
2603
+ readonly type: "reversetoggle";
2604
+ readonly target: /*elided*/ any;
2605
+ };
2606
+ }[T]) => void): /*elided*/ any;
2607
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2608
+ select: {
2609
+ feature: Feature | undefined;
2610
+ readonly type: "select";
2611
+ readonly target: /*elided*/ any;
2612
+ };
2613
+ featureslisted: {
2614
+ features: Feature[] | undefined;
2615
+ readonly type: "featureslisted";
2616
+ readonly target: /*elided*/ any;
2617
+ };
2618
+ featuresmarked: {
2619
+ features: Feature[] | undefined;
2620
+ readonly type: "featuresmarked";
2621
+ readonly target: /*elided*/ any;
2622
+ };
2623
+ optionsvisibilitychange: {
2624
+ optionsVisible: boolean;
2625
+ readonly type: "optionsvisibilitychange";
2626
+ readonly target: /*elided*/ any;
2627
+ };
2628
+ pick: {
2629
+ feature: Feature | undefined;
2630
+ readonly type: "pick";
2631
+ readonly target: /*elided*/ any;
2632
+ };
2633
+ querychange: {
2634
+ query: string;
2635
+ readonly type: "querychange";
2636
+ readonly target: /*elided*/ any;
2637
+ };
2638
+ response: /*elided*/ any;
2639
+ reversetoggle: {
2640
+ reverse: boolean;
2641
+ readonly type: "reversetoggle";
2642
+ readonly target: /*elided*/ any;
2643
+ };
2644
+ }[T]) => void): /*elided*/ any;
2645
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2646
+ select: {
2647
+ feature: Feature | undefined;
2648
+ readonly type: "select";
2649
+ readonly target: /*elided*/ any;
2650
+ };
2651
+ featureslisted: {
2652
+ features: Feature[] | undefined;
2653
+ readonly type: "featureslisted";
2654
+ readonly target: /*elided*/ any;
2655
+ };
2656
+ featuresmarked: {
2657
+ features: Feature[] | undefined;
2658
+ readonly type: "featuresmarked";
2659
+ readonly target: /*elided*/ any;
2660
+ };
2661
+ optionsvisibilitychange: {
2662
+ optionsVisible: boolean;
2663
+ readonly type: "optionsvisibilitychange";
2664
+ readonly target: /*elided*/ any;
2665
+ };
2666
+ pick: {
2667
+ feature: Feature | undefined;
2668
+ readonly type: "pick";
2669
+ readonly target: /*elided*/ any;
2670
+ };
2671
+ querychange: {
2672
+ query: string;
2673
+ readonly type: "querychange";
2674
+ readonly target: /*elided*/ any;
2675
+ };
2676
+ response: /*elided*/ any;
2677
+ reversetoggle: {
2678
+ reverse: boolean;
2679
+ readonly type: "reversetoggle";
2680
+ readonly target: /*elided*/ any;
2681
+ };
2682
+ }[T]) => void): /*elided*/ any;
2683
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
2684
+ /**
2685
+ * Update the control options.
2686
+ *
2687
+ * @param options options to update
2688
+ */
2689
+ setOptions(options: OPTS): void;
2690
+ /**
2691
+ * Set the content of search input box.
2692
+ *
2693
+ * @param value text to set
2694
+ * @param submit perform the search
2695
+ */
2696
+ setQuery(value: string, submit?: boolean): void;
2697
+ /**
2698
+ * Clear geocoding search results from the map.
2699
+ */
2700
+ clearMap(): void;
2701
+ /**
2702
+ * Clear search result list.
2703
+ */
2704
+ clearList(): void;
2705
+ /**
2706
+ * Set reverse geocoding mode.
2707
+ *
2708
+ * @param reverseActive reverse geocoding active
2709
+ */
2710
+ setReverseMode(reverseActive: boolean): void;
2711
+ /**
2712
+ * Focus the search input box.
2713
+ *
2714
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
2715
+ */
2716
+ focus(options?: FocusOptions): void;
2717
+ /**
2718
+ * Blur the search input box.
2719
+ */
2720
+ blur(): void;
2721
+ onRemove(): void;
2722
+ _listeners: import("maplibre-gl").Listeners;
2723
+ _oneTimeListeners: import("maplibre-gl").Listeners;
2724
+ _eventedParent: Evented;
2725
+ _eventedParentData: any | (() => any);
2726
+ fire(event: {
2727
+ readonly type: string;
2728
+ } | string, properties?: any): /*elided*/ any;
2729
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
2730
+ };
2731
+ };
2732
+ };
2733
+ ReverseToggleEvent: {
2734
+ new (target: {
2735
+ "__#1@#gc"?: GeocodingControlComponent;
2736
+ "__#1@#options": OPTS;
2737
+ onAddInt(map: Map): HTMLElement;
2738
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2739
+ select: {
2740
+ feature: Feature | undefined;
2741
+ readonly type: "select";
2742
+ readonly target: /*elided*/ any;
2743
+ };
2744
+ featureslisted: {
2745
+ features: Feature[] | undefined;
2746
+ readonly type: "featureslisted";
2747
+ readonly target: /*elided*/ any;
2748
+ };
2749
+ featuresmarked: {
2750
+ features: Feature[] | undefined;
2751
+ readonly type: "featuresmarked";
2752
+ readonly target: /*elided*/ any;
2753
+ };
2754
+ optionsvisibilitychange: {
2755
+ optionsVisible: boolean;
2756
+ readonly type: "optionsvisibilitychange";
2757
+ readonly target: /*elided*/ any;
2758
+ };
2759
+ pick: {
2760
+ feature: Feature | undefined;
2761
+ readonly type: "pick";
2762
+ readonly target: /*elided*/ any;
2763
+ };
2764
+ querychange: {
2765
+ query: string;
2766
+ readonly type: "querychange";
2767
+ readonly target: /*elided*/ any;
2768
+ };
2769
+ response: {
2770
+ url: string;
2771
+ featureCollection: FeatureCollection;
2772
+ readonly type: "response";
2773
+ readonly target: /*elided*/ any;
2774
+ };
2775
+ reversetoggle: {
2776
+ reverse: boolean;
2777
+ readonly type: "reversetoggle";
2778
+ readonly target: /*elided*/ any;
2779
+ };
2780
+ }[T]) => void): /*elided*/ any;
2781
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2782
+ select: {
2783
+ feature: Feature | undefined;
2784
+ readonly type: "select";
2785
+ readonly target: /*elided*/ any;
2786
+ };
2787
+ featureslisted: {
2788
+ features: Feature[] | undefined;
2789
+ readonly type: "featureslisted";
2790
+ readonly target: /*elided*/ any;
2791
+ };
2792
+ featuresmarked: {
2793
+ features: Feature[] | undefined;
2794
+ readonly type: "featuresmarked";
2795
+ readonly target: /*elided*/ any;
2796
+ };
2797
+ optionsvisibilitychange: {
2798
+ optionsVisible: boolean;
2799
+ readonly type: "optionsvisibilitychange";
2800
+ readonly target: /*elided*/ any;
2801
+ };
2802
+ pick: {
2803
+ feature: Feature | undefined;
2804
+ readonly type: "pick";
2805
+ readonly target: /*elided*/ any;
2806
+ };
2807
+ querychange: {
2808
+ query: string;
2809
+ readonly type: "querychange";
2810
+ readonly target: /*elided*/ any;
2811
+ };
2812
+ response: {
2813
+ url: string;
2814
+ featureCollection: FeatureCollection;
2815
+ readonly type: "response";
2816
+ readonly target: /*elided*/ any;
2817
+ };
2818
+ reversetoggle: {
2819
+ reverse: boolean;
2820
+ readonly type: "reversetoggle";
2821
+ readonly target: /*elided*/ any;
2822
+ };
2823
+ }[T]) => void): /*elided*/ any;
2824
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2825
+ select: {
2826
+ feature: Feature | undefined;
2827
+ readonly type: "select";
2828
+ readonly target: /*elided*/ any;
2829
+ };
2830
+ featureslisted: {
2831
+ features: Feature[] | undefined;
2832
+ readonly type: "featureslisted";
2833
+ readonly target: /*elided*/ any;
2834
+ };
2835
+ featuresmarked: {
2836
+ features: Feature[] | undefined;
2837
+ readonly type: "featuresmarked";
2838
+ readonly target: /*elided*/ any;
2839
+ };
2840
+ optionsvisibilitychange: {
2841
+ optionsVisible: boolean;
2842
+ readonly type: "optionsvisibilitychange";
2843
+ readonly target: /*elided*/ any;
2844
+ };
2845
+ pick: {
2846
+ feature: Feature | undefined;
2847
+ readonly type: "pick";
2848
+ readonly target: /*elided*/ any;
2849
+ };
2850
+ querychange: {
2851
+ query: string;
2852
+ readonly type: "querychange";
2853
+ readonly target: /*elided*/ any;
2854
+ };
2855
+ response: {
2856
+ url: string;
2857
+ featureCollection: FeatureCollection;
2858
+ readonly type: "response";
2859
+ readonly target: /*elided*/ any;
2860
+ };
2861
+ reversetoggle: {
2862
+ reverse: boolean;
2863
+ readonly type: "reversetoggle";
2864
+ readonly target: /*elided*/ any;
2865
+ };
2866
+ }[T]) => void): /*elided*/ any;
2867
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
2868
+ /**
2869
+ * Update the control options.
2870
+ *
2871
+ * @param options options to update
2872
+ */
2873
+ setOptions(options: OPTS): void;
2874
+ /**
2875
+ * Set the content of search input box.
2876
+ *
2877
+ * @param value text to set
2878
+ * @param submit perform the search
2879
+ */
2880
+ setQuery(value: string, submit?: boolean): void;
2881
+ /**
2882
+ * Clear geocoding search results from the map.
2883
+ */
2884
+ clearMap(): void;
2885
+ /**
2886
+ * Clear search result list.
2887
+ */
2888
+ clearList(): void;
2889
+ /**
2890
+ * Set reverse geocoding mode.
2891
+ *
2892
+ * @param reverseActive reverse geocoding active
2893
+ */
2894
+ setReverseMode(reverseActive: boolean): void;
2895
+ /**
2896
+ * Focus the search input box.
2897
+ *
2898
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
2899
+ */
2900
+ focus(options?: FocusOptions): void;
2901
+ /**
2902
+ * Blur the search input box.
2903
+ */
2904
+ blur(): void;
2905
+ onRemove(): void;
2906
+ _listeners: import("maplibre-gl").Listeners;
2907
+ _oneTimeListeners: import("maplibre-gl").Listeners;
2908
+ _eventedParent: Evented;
2909
+ _eventedParentData: any | (() => any);
2910
+ fire(event: {
2911
+ readonly type: string;
2912
+ } | string, properties?: any): /*elided*/ any;
2913
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
2914
+ }, reverse: boolean): {
2915
+ reverse: boolean;
2916
+ readonly type: "reversetoggle";
2917
+ readonly target: {
2918
+ "__#1@#gc"?: GeocodingControlComponent;
2919
+ "__#1@#options": OPTS;
2920
+ onAddInt(map: Map): HTMLElement;
2921
+ on<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2922
+ select: {
2923
+ feature: Feature | undefined;
2924
+ readonly type: "select";
2925
+ readonly target: /*elided*/ any;
2926
+ };
2927
+ featureslisted: {
2928
+ features: Feature[] | undefined;
2929
+ readonly type: "featureslisted";
2930
+ readonly target: /*elided*/ any;
2931
+ };
2932
+ featuresmarked: {
2933
+ features: Feature[] | undefined;
2934
+ readonly type: "featuresmarked";
2935
+ readonly target: /*elided*/ any;
2936
+ };
2937
+ optionsvisibilitychange: {
2938
+ optionsVisible: boolean;
2939
+ readonly type: "optionsvisibilitychange";
2940
+ readonly target: /*elided*/ any;
2941
+ };
2942
+ pick: {
2943
+ feature: Feature | undefined;
2944
+ readonly type: "pick";
2945
+ readonly target: /*elided*/ any;
2946
+ };
2947
+ querychange: {
2948
+ query: string;
2949
+ readonly type: "querychange";
2950
+ readonly target: /*elided*/ any;
2951
+ };
2952
+ response: {
2953
+ url: string;
2954
+ featureCollection: FeatureCollection;
2955
+ readonly type: "response";
2956
+ readonly target: /*elided*/ any;
2957
+ };
2958
+ reversetoggle: /*elided*/ any;
2959
+ }[T]) => void): /*elided*/ any;
2960
+ once<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
2961
+ select: {
2962
+ feature: Feature | undefined;
2963
+ readonly type: "select";
2964
+ readonly target: /*elided*/ any;
2965
+ };
2966
+ featureslisted: {
2967
+ features: Feature[] | undefined;
2968
+ readonly type: "featureslisted";
2969
+ readonly target: /*elided*/ any;
2970
+ };
2971
+ featuresmarked: {
2972
+ features: Feature[] | undefined;
2973
+ readonly type: "featuresmarked";
2974
+ readonly target: /*elided*/ any;
2975
+ };
2976
+ optionsvisibilitychange: {
2977
+ optionsVisible: boolean;
2978
+ readonly type: "optionsvisibilitychange";
2979
+ readonly target: /*elided*/ any;
2980
+ };
2981
+ pick: {
2982
+ feature: Feature | undefined;
2983
+ readonly type: "pick";
2984
+ readonly target: /*elided*/ any;
2985
+ };
2986
+ querychange: {
2987
+ query: string;
2988
+ readonly type: "querychange";
2989
+ readonly target: /*elided*/ any;
2990
+ };
2991
+ response: {
2992
+ url: string;
2993
+ featureCollection: FeatureCollection;
2994
+ readonly type: "response";
2995
+ readonly target: /*elided*/ any;
2996
+ };
2997
+ reversetoggle: /*elided*/ any;
2998
+ }[T]) => void): /*elided*/ any;
2999
+ off<T extends "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle">(type: T, listener: (ev: {
3000
+ select: {
3001
+ feature: Feature | undefined;
3002
+ readonly type: "select";
3003
+ readonly target: /*elided*/ any;
3004
+ };
3005
+ featureslisted: {
3006
+ features: Feature[] | undefined;
3007
+ readonly type: "featureslisted";
3008
+ readonly target: /*elided*/ any;
3009
+ };
3010
+ featuresmarked: {
3011
+ features: Feature[] | undefined;
3012
+ readonly type: "featuresmarked";
3013
+ readonly target: /*elided*/ any;
3014
+ };
3015
+ optionsvisibilitychange: {
3016
+ optionsVisible: boolean;
3017
+ readonly type: "optionsvisibilitychange";
3018
+ readonly target: /*elided*/ any;
3019
+ };
3020
+ pick: {
3021
+ feature: Feature | undefined;
3022
+ readonly type: "pick";
3023
+ readonly target: /*elided*/ any;
3024
+ };
3025
+ querychange: {
3026
+ query: string;
3027
+ readonly type: "querychange";
3028
+ readonly target: /*elided*/ any;
3029
+ };
3030
+ response: {
3031
+ url: string;
3032
+ featureCollection: FeatureCollection;
3033
+ readonly type: "response";
3034
+ readonly target: /*elided*/ any;
3035
+ };
3036
+ reversetoggle: /*elided*/ any;
3037
+ }[T]) => void): /*elided*/ any;
3038
+ listens(type: "pick" | "response" | "select" | "featureslisted" | "featuresmarked" | "optionsvisibilitychange" | "querychange" | "reversetoggle"): boolean;
3039
+ /**
3040
+ * Update the control options.
3041
+ *
3042
+ * @param options options to update
3043
+ */
3044
+ setOptions(options: OPTS): void;
3045
+ /**
3046
+ * Set the content of search input box.
3047
+ *
3048
+ * @param value text to set
3049
+ * @param submit perform the search
3050
+ */
3051
+ setQuery(value: string, submit?: boolean): void;
3052
+ /**
3053
+ * Clear geocoding search results from the map.
3054
+ */
3055
+ clearMap(): void;
3056
+ /**
3057
+ * Clear search result list.
3058
+ */
3059
+ clearList(): void;
3060
+ /**
3061
+ * Set reverse geocoding mode.
3062
+ *
3063
+ * @param reverseActive reverse geocoding active
3064
+ */
3065
+ setReverseMode(reverseActive: boolean): void;
3066
+ /**
3067
+ * Focus the search input box.
3068
+ *
3069
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
3070
+ */
3071
+ focus(options?: FocusOptions): void;
3072
+ /**
3073
+ * Blur the search input box.
3074
+ */
3075
+ blur(): void;
3076
+ onRemove(): void;
3077
+ _listeners: import("maplibre-gl").Listeners;
3078
+ _oneTimeListeners: import("maplibre-gl").Listeners;
3079
+ _eventedParent: Evented;
3080
+ _eventedParentData: any | (() => any);
3081
+ fire(event: {
3082
+ readonly type: string;
3083
+ } | string, properties?: any): /*elided*/ any;
3084
+ setEventedParent(parent?: Evented | null, data?: any | (() => any)): /*elided*/ any;
3085
+ };
3086
+ };
3087
+ };
88
3088
  };
89
3089
  };