@maptiler/geocoding-control 2.1.7 β†’ 3.0.0-rc.2

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 (338) hide show
  1. package/CODE_OF_CONDUCT.md +46 -0
  2. package/CONTRIBUTING.md +72 -0
  3. package/README.md +115 -43
  4. package/SECURITY.md +16 -0
  5. package/dist/index.js +860 -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 +1251 -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 +1275 -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 +1283 -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/base-control.d.ts +44 -0
  28. package/dist/src/controls/leaflet-control.d.ts +27 -0
  29. package/dist/src/controls/leaflet-events.d.ts +42 -0
  30. package/dist/src/controls/leaflet-options.d.ts +84 -0
  31. package/dist/src/controls/maplibregl-control.d.ts +34 -0
  32. package/dist/src/controls/maplibregl-events.d.ts +44 -0
  33. package/dist/src/controls/maplibregl-options.d.ts +104 -0
  34. package/dist/src/controls/maptilersdk-control.d.ts +7 -0
  35. package/dist/src/controls/maptilersdk-events.d.ts +2 -0
  36. package/dist/src/controls/maptilersdk-options.d.ts +10 -0
  37. package/dist/src/controls/openlayers-control.d.ts +35 -0
  38. package/dist/src/controls/openlayers-events.d.ts +43 -0
  39. package/dist/src/controls/openlayers-options.d.ts +83 -0
  40. package/dist/src/geocoder/geocoder-events.d.ts +46 -0
  41. package/dist/src/geocoder/geocoder-feature-item.d.ts +22 -0
  42. package/{svelte/types.d.ts β†’ dist/src/geocoder/geocoder-options.d.ts} +23 -143
  43. package/dist/src/geocoder/geocoder.d.ts +113 -0
  44. package/dist/src/index.d.ts +9 -0
  45. package/dist/src/leaflet.public.d.ts +7 -0
  46. package/dist/src/maplibregl.d.ts +7 -0
  47. package/dist/src/maptilersdk.d.ts +7 -0
  48. package/dist/src/openlayers.public.d.ts +7 -0
  49. package/dist/src/types.d.ts +46 -0
  50. package/dist/src/utils/geo-utils.d.ts +6 -0
  51. package/dist/src/utils/mask.d.ts +2 -0
  52. package/dist/src/utils/proximity.d.ts +2 -0
  53. package/package.json +84 -112
  54. package/MapLibreBasedGeocodingControl.d.ts +0 -3072
  55. package/geo-coordinates-parser.t.d.ts +0 -8
  56. package/geoUtils.d.ts +0 -3
  57. package/leaflet-controller.d.ts +0 -12
  58. package/leaflet-controller.js +0 -2475
  59. package/leaflet-controller.js.map +0 -1
  60. package/leaflet-controller.umd.js +0 -2
  61. package/leaflet-controller.umd.js.map +0 -1
  62. package/leaflet.d.ts +0 -131
  63. package/leaflet.js +0 -5082
  64. package/leaflet.js.map +0 -1
  65. package/leaflet.umd.js +0 -14
  66. package/leaflet.umd.js.map +0 -1
  67. package/maplibregl-controller.d.ts +0 -19
  68. package/maplibregl-controller.js +0 -2418
  69. package/maplibregl-controller.js.map +0 -1
  70. package/maplibregl-controller.umd.js +0 -2
  71. package/maplibregl-controller.umd.js.map +0 -1
  72. package/maplibregl.d.ts +0 -2509
  73. package/maplibregl.js +0 -5142
  74. package/maplibregl.js.map +0 -1
  75. package/maplibregl.umd.js +0 -14
  76. package/maplibregl.umd.js.map +0 -1
  77. package/maptilersdk.d.ts +0 -2504
  78. package/maptilersdk.js +0 -5152
  79. package/maptilersdk.js.map +0 -1
  80. package/maptilersdk.umd.js +0 -14
  81. package/maptilersdk.umd.js.map +0 -1
  82. package/mask.d.ts +0 -2
  83. package/openlayers-controller.d.ts +0 -15
  84. package/openlayers-controller.js +0 -2174
  85. package/openlayers-controller.js.map +0 -1
  86. package/openlayers-controller.umd.js +0 -2
  87. package/openlayers-controller.umd.js.map +0 -1
  88. package/openlayers.d.ts +0 -109
  89. package/openlayers.js +0 -5045
  90. package/openlayers.js.map +0 -1
  91. package/openlayers.umd.js +0 -14
  92. package/openlayers.umd.js.map +0 -1
  93. package/proximity.d.ts +0 -2
  94. package/react.d.ts +0 -45
  95. package/react.js +0 -2795
  96. package/react.js.map +0 -1
  97. package/react.umd.js +0 -14
  98. package/react.umd.js.map +0 -1
  99. package/style.css +0 -1
  100. package/svelte/ClearIcon.svelte +0 -12
  101. package/svelte/ClearIcon.svelte.d.ts +0 -25
  102. package/svelte/FailIcon.svelte +0 -12
  103. package/svelte/FailIcon.svelte.d.ts +0 -25
  104. package/svelte/FeatureItem.svelte +0 -246
  105. package/svelte/FeatureItem.svelte.d.ts +0 -26
  106. package/svelte/GeocodingControl.svelte +0 -921
  107. package/svelte/GeocodingControl.svelte.d.ts +0 -105
  108. package/svelte/LoadingIcon.svelte +0 -40
  109. package/svelte/LoadingIcon.svelte.d.ts +0 -25
  110. package/svelte/MapLibreBasedGeocodingControl.d.ts +0 -3072
  111. package/svelte/MapLibreBasedGeocodingControl.js +0 -210
  112. package/svelte/MarkerIcon.svelte +0 -71
  113. package/svelte/MarkerIcon.svelte.d.ts +0 -18
  114. package/svelte/ReverseGeocodingIcon.svelte +0 -12
  115. package/svelte/ReverseGeocodingIcon.svelte.d.ts +0 -25
  116. package/svelte/SearchIcon.svelte +0 -26
  117. package/svelte/SearchIcon.svelte.d.ts +0 -25
  118. package/svelte/geo-coordinates-parser.t.d.ts +0 -8
  119. package/svelte/geo-coordinates-parser.t.js +0 -1
  120. package/svelte/geoUtils.d.ts +0 -3
  121. package/svelte/geoUtils.js +0 -18
  122. package/svelte/info.json +0 -1
  123. package/svelte/leaflet-controller.d.ts +0 -12
  124. package/svelte/leaflet-controller.js +0 -274
  125. package/svelte/leaflet.d.ts +0 -131
  126. package/svelte/leaflet.js +0 -116
  127. package/svelte/maplibregl-controller.d.ts +0 -19
  128. package/svelte/maplibregl-controller.js +0 -279
  129. package/svelte/maplibregl.d.ts +0 -2509
  130. package/svelte/maplibregl.js +0 -17
  131. package/svelte/maptilersdk.d.ts +0 -2504
  132. package/svelte/maptilersdk.js +0 -32
  133. package/svelte/mask.d.ts +0 -2
  134. package/svelte/mask.js +0 -54
  135. package/svelte/openlayers-controller.d.ts +0 -15
  136. package/svelte/openlayers-controller.js +0 -283
  137. package/svelte/openlayers.d.ts +0 -109
  138. package/svelte/openlayers.js +0 -178
  139. package/svelte/proximity.d.ts +0 -2
  140. package/svelte/proximity.js +0 -60
  141. package/svelte/react.d.ts +0 -45
  142. package/svelte/react.js +0 -106
  143. package/svelte/types.js +0 -1
  144. package/svelte/vanilla.d.ts +0 -61
  145. package/svelte/vanilla.js +0 -101
  146. package/svelte/vite-env.d.ts +0 -2
  147. package/types.d.ts +0 -391
  148. package/vanilla.d.ts +0 -61
  149. package/vanilla.js +0 -2799
  150. package/vanilla.js.map +0 -1
  151. package/vanilla.umd.js +0 -14
  152. package/vanilla.umd.js.map +0 -1
  153. /package/{icons β†’ dist/icons}/10pin.svg +0 -0
  154. /package/{icons β†’ dist/icons}/9pin.svg +0 -0
  155. /package/{icons β†’ dist/icons}/advertising_column.svg +0 -0
  156. /package/{icons β†’ dist/icons}/aerodrome.svg +0 -0
  157. /package/{icons β†’ dist/icons}/alcohol.svg +0 -0
  158. /package/{icons β†’ dist/icons}/alpine_hut.svg +0 -0
  159. /package/{icons β†’ dist/icons}/amusement_arcade.svg +0 -0
  160. /package/{icons β†’ dist/icons}/amusement_park.svg +0 -0
  161. /package/{icons β†’ dist/icons}/apartment.svg +0 -0
  162. /package/{icons β†’ dist/icons}/archaeological_site.svg +0 -0
  163. /package/{icons β†’ dist/icons}/area.svg +0 -0
  164. /package/{icons β†’ dist/icons}/art.svg +0 -0
  165. /package/{icons β†’ dist/icons}/arts_centre.svg +0 -0
  166. /package/{icons β†’ dist/icons}/artwork.svg +0 -0
  167. /package/{icons β†’ dist/icons}/audioguide.svg +0 -0
  168. /package/{icons β†’ dist/icons}/bag.svg +0 -0
  169. /package/{icons β†’ dist/icons}/beauty.svg +0 -0
  170. /package/{icons β†’ dist/icons}/bed.svg +0 -0
  171. /package/{icons β†’ dist/icons}/bell_tower.svg +0 -0
  172. /package/{icons β†’ dist/icons}/beverages.svg +0 -0
  173. /package/{icons β†’ dist/icons}/bicycle_repair_station.svg +0 -0
  174. /package/{icons β†’ dist/icons}/biergarten.svg +0 -0
  175. /package/{icons β†’ dist/icons}/bird_hide.svg +0 -0
  176. /package/{icons β†’ dist/icons}/boat_rental.svg +0 -0
  177. /package/{icons β†’ dist/icons}/bookmaker.svg +0 -0
  178. /package/{icons β†’ dist/icons}/books.svg +0 -0
  179. /package/{icons β†’ dist/icons}/bowl.svg +0 -0
  180. /package/{icons β†’ dist/icons}/bowling_alley.svg +0 -0
  181. /package/{icons β†’ dist/icons}/bunker.svg +0 -0
  182. /package/{icons β†’ dist/icons}/bureau_de_change.svg +0 -0
  183. /package/{icons β†’ dist/icons}/bus_station.svg +0 -0
  184. /package/{icons β†’ dist/icons}/bust.svg +0 -0
  185. /package/{icons β†’ dist/icons}/camping.svg +0 -0
  186. /package/{icons β†’ dist/icons}/car_parts.svg +0 -0
  187. /package/{icons β†’ dist/icons}/car_wash.svg +0 -0
  188. /package/{icons β†’ dist/icons}/caravan_park.svg +0 -0
  189. /package/{icons β†’ dist/icons}/carpet.svg +0 -0
  190. /package/{icons β†’ dist/icons}/cattle_grid.svg +0 -0
  191. /package/{icons β†’ dist/icons}/cave_entrance.svg +0 -0
  192. /package/{icons β†’ dist/icons}/chalet.svg +0 -0
  193. /package/{icons β†’ dist/icons}/charity.svg +0 -0
  194. /package/{icons β†’ dist/icons}/chemist.svg +0 -0
  195. /package/{icons β†’ dist/icons}/chimney.svg +0 -0
  196. /package/{icons β†’ dist/icons}/church.svg +0 -0
  197. /package/{icons β†’ dist/icons}/city_gate.svg +0 -0
  198. /package/{icons β†’ dist/icons}/clinic.svg +0 -0
  199. /package/{icons β†’ dist/icons}/clothes.svg +0 -0
  200. /package/{icons β†’ dist/icons}/coffee.svg +0 -0
  201. /package/{icons β†’ dist/icons}/community_centre.svg +0 -0
  202. /package/{icons β†’ dist/icons}/computer.svg +0 -0
  203. /package/{icons β†’ dist/icons}/consulate.svg +0 -0
  204. /package/{icons β†’ dist/icons}/copyshop.svg +0 -0
  205. /package/{icons β†’ dist/icons}/cosmetics.svg +0 -0
  206. /package/{icons β†’ dist/icons}/courthouse.svg +0 -0
  207. /package/{icons β†’ dist/icons}/crane.svg +0 -0
  208. /package/{icons β†’ dist/icons}/dairy.svg +0 -0
  209. /package/{icons β†’ dist/icons}/deli.svg +0 -0
  210. /package/{icons β†’ dist/icons}/department_store.svg +0 -0
  211. /package/{icons β†’ dist/icons}/diy.svg +0 -0
  212. /package/{icons β†’ dist/icons}/electronics.svg +0 -0
  213. /package/{icons β†’ dist/icons}/embankment.svg +0 -0
  214. /package/{icons β†’ dist/icons}/embassy.svg +0 -0
  215. /package/{icons β†’ dist/icons}/excrement_bags.svg +0 -0
  216. /package/{icons β†’ dist/icons}/fabric.svg +0 -0
  217. /package/{icons β†’ dist/icons}/farmyard.svg +0 -0
  218. /package/{icons β†’ dist/icons}/ferry.svg +0 -0
  219. /package/{icons β†’ dist/icons}/firepit.svg +0 -0
  220. /package/{icons β†’ dist/icons}/firestation.svg +0 -0
  221. /package/{icons β†’ dist/icons}/fishing.svg +0 -0
  222. /package/{icons β†’ dist/icons}/fitness.svg +0 -0
  223. /package/{icons β†’ dist/icons}/ford.svg +0 -0
  224. /package/{icons β†’ dist/icons}/fort.svg +0 -0
  225. /package/{icons β†’ dist/icons}/fortress.svg +0 -0
  226. /package/{icons β†’ dist/icons}/full-height_turnstile.svg +0 -0
  227. /package/{icons β†’ dist/icons}/generator_wind.svg +0 -0
  228. /package/{icons β†’ dist/icons}/golf_pin.svg +0 -0
  229. /package/{icons β†’ dist/icons}/greengrocer.svg +0 -0
  230. /package/{icons β†’ dist/icons}/guest_house.svg +0 -0
  231. /package/{icons β†’ dist/icons}/helipad.svg +0 -0
  232. /package/{icons β†’ dist/icons}/hifi.svg +0 -0
  233. /package/{icons β†’ dist/icons}/hostel.svg +0 -0
  234. /package/{icons β†’ dist/icons}/hotel.svg +0 -0
  235. /package/{icons β†’ dist/icons}/housenumber.svg +0 -0
  236. /package/{icons β†’ dist/icons}/houseware.svg +0 -0
  237. /package/{icons β†’ dist/icons}/hunting_stand.svg +0 -0
  238. /package/{icons β†’ dist/icons}/interior_decoration.svg +0 -0
  239. /package/{icons β†’ dist/icons}/internet_cafe.svg +0 -0
  240. /package/{icons β†’ dist/icons}/kindergarten.svg +0 -0
  241. /package/{icons β†’ dist/icons}/kissing_gate.svg +0 -0
  242. /package/{icons β†’ dist/icons}/manor.svg +0 -0
  243. /package/{icons β†’ dist/icons}/map.svg +0 -0
  244. /package/{icons β†’ dist/icons}/marker_reverse.svg +0 -0
  245. /package/{icons β†’ dist/icons}/marker_selected.svg +0 -0
  246. /package/{icons β†’ dist/icons}/marker_unselected.svg +0 -0
  247. /package/{icons β†’ dist/icons}/marketplace.svg +0 -0
  248. /package/{icons β†’ dist/icons}/massage.svg +0 -0
  249. /package/{icons β†’ dist/icons}/mast.svg +0 -0
  250. /package/{icons β†’ dist/icons}/mast_communications.svg +0 -0
  251. /package/{icons β†’ dist/icons}/mast_lighting.svg +0 -0
  252. /package/{icons β†’ dist/icons}/medical_supply.svg +0 -0
  253. /package/{icons β†’ dist/icons}/memorial.svg +0 -0
  254. /package/{icons β†’ dist/icons}/miniature_golf.svg +0 -0
  255. /package/{icons β†’ dist/icons}/motel.svg +0 -0
  256. /package/{icons β†’ dist/icons}/mountain_range.svg +0 -0
  257. /package/{icons β†’ dist/icons}/multifaith.svg +0 -0
  258. /package/{icons β†’ dist/icons}/musical_instrument.svg +0 -0
  259. /package/{icons β†’ dist/icons}/newsagent.svg +0 -0
  260. /package/{icons β†’ dist/icons}/nightclub.svg +0 -0
  261. /package/{icons β†’ dist/icons}/ocean.svg +0 -0
  262. /package/{icons β†’ dist/icons}/office.svg +0 -0
  263. /package/{icons β†’ dist/icons}/outdoor_seating.svg +0 -0
  264. /package/{icons β†’ dist/icons}/palace.svg +0 -0
  265. /package/{icons β†’ dist/icons}/parcel_locker.svg +0 -0
  266. /package/{icons β†’ dist/icons}/parking_space.svg +0 -0
  267. /package/{icons β†’ dist/icons}/parking_tickets.svg +0 -0
  268. /package/{icons β†’ dist/icons}/pet.svg +0 -0
  269. /package/{icons β†’ dist/icons}/photo.svg +0 -0
  270. /package/{icons β†’ dist/icons}/picnic.svg +0 -0
  271. /package/{icons β†’ dist/icons}/plaque.svg +0 -0
  272. /package/{icons β†’ dist/icons}/poi.svg +0 -0
  273. /package/{icons β†’ dist/icons}/post_box.svg +0 -0
  274. /package/{icons β†’ dist/icons}/post_office.svg +0 -0
  275. /package/{icons β†’ dist/icons}/postal_code.svg +0 -0
  276. /package/{icons β†’ dist/icons}/pub.svg +0 -0
  277. /package/{icons β†’ dist/icons}/public_bath.svg +0 -0
  278. /package/{icons β†’ dist/icons}/public_bookcase.svg +0 -0
  279. /package/{icons β†’ dist/icons}/public_building.svg +0 -0
  280. /package/{icons β†’ dist/icons}/public_transport_tickets.svg +0 -0
  281. /package/{icons β†’ dist/icons}/reverse.svg +0 -0
  282. /package/{icons β†’ dist/icons}/river.svg +0 -0
  283. /package/{icons β†’ dist/icons}/road.svg +0 -0
  284. /package/{icons β†’ dist/icons}/saddle.svg +0 -0
  285. /package/{icons β†’ dist/icons}/sauna.svg +0 -0
  286. /package/{icons β†’ dist/icons}/sea.svg +0 -0
  287. /package/{icons β†’ dist/icons}/second_hand.svg +0 -0
  288. /package/{icons β†’ dist/icons}/shintoist.svg +0 -0
  289. /package/{icons β†’ dist/icons}/shoe.svg +0 -0
  290. /package/{icons β†’ dist/icons}/shower.svg +0 -0
  291. /package/{icons β†’ dist/icons}/shrine.svg +0 -0
  292. /package/{icons β†’ dist/icons}/sikhist.svg +0 -0
  293. /package/{icons β†’ dist/icons}/slipway.svg +0 -0
  294. /package/{icons β†’ dist/icons}/snowmobile.svg +0 -0
  295. /package/{icons β†’ dist/icons}/social_facility.svg +0 -0
  296. /package/{icons β†’ dist/icons}/sports.svg +0 -0
  297. /package/{icons β†’ dist/icons}/sprite.json +0 -0
  298. /package/{icons β†’ dist/icons}/sprite.png +0 -0
  299. /package/{icons β†’ dist/icons}/sprite@2x.json +0 -0
  300. /package/{icons β†’ dist/icons}/sprite@2x.png +0 -0
  301. /package/{icons β†’ dist/icons}/stationery.svg +0 -0
  302. /package/{icons β†’ dist/icons}/stile.svg +0 -0
  303. /package/{icons β†’ dist/icons}/stone.svg +0 -0
  304. /package/{icons β†’ dist/icons}/storage_tank.svg +0 -0
  305. /package/{icons β†’ dist/icons}/stream.svg +0 -0
  306. /package/{icons β†’ dist/icons}/street.svg +0 -0
  307. /package/{icons β†’ dist/icons}/supermarket.svg +0 -0
  308. /package/{icons β†’ dist/icons}/tea.svg +0 -0
  309. /package/{icons β†’ dist/icons}/telescope_dish.svg +0 -0
  310. /package/{icons β†’ dist/icons}/telescope_dome.svg +0 -0
  311. /package/{icons β†’ dist/icons}/ticket.svg +0 -0
  312. /package/{icons β†’ dist/icons}/tobacco.svg +0 -0
  313. /package/{icons β†’ dist/icons}/tower_cantilever_communication.svg +0 -0
  314. /package/{icons β†’ dist/icons}/tower_cooling.svg +0 -0
  315. /package/{icons β†’ dist/icons}/tower_dish.svg +0 -0
  316. /package/{icons β†’ dist/icons}/tower_dome.svg +0 -0
  317. /package/{icons β†’ dist/icons}/tower_generic.svg +0 -0
  318. /package/{icons β†’ dist/icons}/tower_lattice.svg +0 -0
  319. /package/{icons β†’ dist/icons}/tower_lattice_communication.svg +0 -0
  320. /package/{icons β†’ dist/icons}/tower_lattice_lighting.svg +0 -0
  321. /package/{icons β†’ dist/icons}/tower_lighting.svg +0 -0
  322. /package/{icons β†’ dist/icons}/townhall.svg +0 -0
  323. /package/{icons β†’ dist/icons}/toys.svg +0 -0
  324. /package/{icons β†’ dist/icons}/trade.svg +0 -0
  325. /package/{icons β†’ dist/icons}/traffic_light.svg +0 -0
  326. /package/{icons β†’ dist/icons}/train_station.svg +0 -0
  327. /package/{icons β†’ dist/icons}/travel_agency.svg +0 -0
  328. /package/{icons β†’ dist/icons}/tyres.svg +0 -0
  329. /package/{icons β†’ dist/icons}/university.svg +0 -0
  330. /package/{icons β†’ dist/icons}/variety_store.svg +0 -0
  331. /package/{icons β†’ dist/icons}/vehicle_inspection.svg +0 -0
  332. /package/{icons β†’ dist/icons}/vending_machine.svg +0 -0
  333. /package/{icons β†’ dist/icons}/video.svg +0 -0
  334. /package/{icons β†’ dist/icons}/video_games.svg +0 -0
  335. /package/{icons β†’ dist/icons}/waste_disposal.svg +0 -0
  336. /package/{icons β†’ dist/icons}/water_well.svg +0 -0
  337. /package/{icons β†’ dist/icons}/waterfall.svg +0 -0
  338. /package/{icons β†’ dist/icons}/wilderness_hut.svg +0 -0
package/leaflet.d.ts DELETED
@@ -1,131 +0,0 @@
1
- import * as L from "leaflet";
2
- import type { ControlOptions, DispatcherType, Feature } from "./types";
3
- export { createLeafletMapController } from "./leaflet-controller";
4
- type LeafletControlOptions = ControlOptions & L.ControlOptions & {
5
- /**
6
- * Marker to be added to the map at the location of the user-selected result using a default set of Marker options.
7
- *
8
- * - If `true` or `undefined` then a default marker will be used.\
9
- * - If the value is [MarkerOptions](https://leafletjs.com/reference.html#marker-option) then the marker will be constructed using these options.
10
- * - If the value is a function then it can create and configure custom [Marker](https://leafletjs.com/reference.html#marker),
11
- * add it to the [Map](https://leafletjs.com/reference.html#map) and return it.
12
- * Function accepts [Map](https://leafletjs.com/reference.html#map) and `Feature` as parameters.
13
- * Feature is `undefined` for the reverse location marker.
14
- * - If `false` or `null` then no marker will be added to the map.
15
- *
16
- * Default value is `true`.
17
- */
18
- marker?: null | boolean | L.MarkerOptions | ((map: L.Map, feature?: Feature) => L.Marker | undefined | null);
19
- /**
20
- * Marker be added to the map at the location the geocoding results.
21
- *
22
- * - If `true` or `undefined` then a default marker will be used.
23
- * - If the value is [MarkerOptions](https://leafletjs.com/reference.html#marker-option) then the marker will be constructed using these options.
24
- * - If the value is a function then it can create and configure custom [Marker](https://leafletjs.com/reference.html#marker),
25
- * add it to the [Map](https://leafletjs.com/reference.html#map) and return it.
26
- * In this case the default pop-up won't be added to the marker.
27
- * Function accepts [Map](https://leafletjs.com/reference.html#map) and `Feature` as parameters.
28
- * - If `false` or `null` then no marker will be added to the map.
29
- *
30
- * Default value is `true`.
31
- */
32
- showResultMarkers?: null | boolean | L.MarkerOptions | ((map: L.Map, feature: Feature) => L.Marker | undefined | null);
33
- /**
34
- * Animation to selected feature on the map.
35
- *
36
- * - If `false` or `null` then animating the map to a selected result is disabled.
37
- * - If `true` or `undefined` then animating the map will use the default animation parameters.
38
- * - If an [ZoomPanOptions](https://leafletjs.com/reference.html#zoom/pan-options)
39
- * ` & `[FitBoundsOptions](https://leafletjs.com/reference.html#fitbounds-options) then it will be passed as options
40
- * to the map [flyTo](https://leafletjs.com/reference.html#map-flyto)
41
- * or [fitBounds](https://leafletjs.com/reference.html#map-fitbounds) method providing control over the animation of the transition.
42
- *
43
- * Default value is `true`.
44
- */
45
- flyTo?: null | boolean | (L.ZoomPanOptions & L.FitBoundsOptions);
46
- /**
47
- * Style for the full feature geometry.
48
- *
49
- * - If `false` or `null` then no full geometry is drawn.
50
- * - If `true` or `undefined` then default-styled full geometry is drawn.
51
- * - If an [PathOptions](https://leafletjs.com/reference.html#path-option) then it will be used to style the full geometry.
52
- * - If a function accepting a `Feature` and returning [PathOptions](https://leafletjs.com/reference.html#path-option)
53
- * then it must teturn the style and will be used to style the full geometry.
54
- */
55
- fullGeometryStyle?: null | boolean | L.PathOptions | L.StyleFunction;
56
- };
57
- type LeafletEvent<T> = {
58
- type: T;
59
- target: GeocodingControl;
60
- sourceTarget: GeocodingControl;
61
- };
62
- type CustomEventMap = {
63
- [T in keyof DispatcherType]: DispatcherType[T] & LeafletEvent<T>;
64
- };
65
- /**
66
- * Leaflet mixins https://leafletjs.com/reference.html#class
67
- * for TypeScript https://www.typescriptlang.org/docs/handbook/mixins.html
68
- * @internal
69
- */
70
- declare class EventedControl extends L.Control {
71
- }
72
- interface EventedControl extends L.Control {
73
- on<T extends keyof CustomEventMap>(type: T, fn: (event: CustomEventMap[T]) => void, context?: unknown): this;
74
- addEventListener<T extends keyof CustomEventMap>(type: T, fn: (event: CustomEventMap[T]) => void, context?: unknown): this;
75
- once<T extends keyof CustomEventMap>(type: T, fn: (event: CustomEventMap[T]) => void, context?: unknown): this;
76
- addOneTimeEventListener<T extends keyof CustomEventMap>(type: T, fn: (event: CustomEventMap[T]) => void, context?: unknown): this;
77
- off<T extends keyof CustomEventMap>(type?: T, fn?: (event: CustomEventMap[T]) => void, context?: unknown): this;
78
- off(eventMap?: {
79
- [T in keyof CustomEventMap]?: (event: CustomEventMap[T]) => void;
80
- }): this;
81
- removeEventListener<T extends keyof CustomEventMap>(type?: T, fn?: (event: CustomEventMap[T]) => void, context?: unknown): this;
82
- listens<T extends keyof CustomEventMap>(type: T, fn: (event: CustomEventMap[T]) => void, context?: unknown, propagate?: boolean): boolean;
83
- fire(type: string, data?: unknown, propagate?: boolean): this;
84
- addEventParent(obj: L.Evented): this;
85
- removeEventParent(obj: L.Evented): this;
86
- fireEvent(type: string, data?: unknown, propagate?: boolean): this;
87
- hasEventListeners<T extends keyof CustomEventMap>(type: T): boolean;
88
- }
89
- export declare class GeocodingControl extends EventedControl {
90
- #private;
91
- constructor(options: LeafletControlOptions);
92
- onAdd(map: L.Map): HTMLDivElement;
93
- /**
94
- * Update the control options.
95
- *
96
- * @param options options to update
97
- */
98
- setOptions(options: LeafletControlOptions): void;
99
- /**
100
- * Set the content of search input box.
101
- *
102
- * @param value text to set
103
- * @param submit perform the search
104
- */
105
- setQuery(value: string, submit?: boolean): void;
106
- /**
107
- * Clear geocoding search results from the map.
108
- */
109
- clearMap(): void;
110
- /**
111
- * Clear search result list.
112
- */
113
- clearList(): void;
114
- /**
115
- * Set reverse geocoding mode.
116
- *
117
- * @param reverseActive reverse geocoding active
118
- */
119
- setReverseMode(reverseActive: boolean): void;
120
- /**
121
- * Focus the search input box.
122
- *
123
- * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
124
- */
125
- focus(options?: FocusOptions): void;
126
- /**
127
- * Blur the search input box.
128
- */
129
- blur(): void;
130
- onRemove(): void;
131
- }