@maptiler/geocoding-control 2.1.7 → 3.0.0-rc.1

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