@maptiler/geocoding-control 2.0.0 → 2.1.0-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +3027 -27
  2. package/icons/10pin.svg +4 -1
  3. package/icons/9pin.svg +4 -1
  4. package/icons/alcohol.svg +1 -1
  5. package/icons/alpine_hut.svg +1 -1
  6. package/icons/apartment.svg +4 -1
  7. package/icons/area.svg +1 -5
  8. package/icons/artwork.svg +4 -1
  9. package/icons/beauty.svg +14 -1
  10. package/icons/bicycle_repair_station.svg +18 -1
  11. package/icons/biergarten.svg +4 -1
  12. package/icons/books.svg +14 -1
  13. package/icons/bowl.svg +4 -1
  14. package/icons/bowling_alley.svg +4 -1
  15. package/icons/bus_station.svg +1 -1
  16. package/icons/camping.svg +1 -1
  17. package/icons/car_repair.svg +14 -1
  18. package/icons/car_wash.svg +19 -1
  19. package/icons/cave_entrance.svg +15 -1
  20. package/icons/chalet.svg +1 -1
  21. package/icons/chemist.svg +14 -1
  22. package/icons/church.svg +4 -1
  23. package/icons/community_centre.svg +20 -1
  24. package/icons/firestation.svg +4 -1
  25. package/icons/guest_house.svg +29 -8
  26. package/icons/hotel.svg +1 -1
  27. package/icons/housenumber.svg +19 -14
  28. package/icons/hut.svg +1 -4
  29. package/icons/medical_supply.svg +20 -1
  30. package/icons/memorial.svg +14 -1
  31. package/icons/motel.svg +19 -1
  32. package/icons/post.svg +1 -1
  33. package/icons/post_office.svg +1 -1
  34. package/icons/postal_code.svg +1 -23
  35. package/icons/public_bookcase.svg +14 -1
  36. package/icons/public_building.svg +4 -1
  37. package/icons/shintoist.svg +1 -1
  38. package/icons/street.svg +11 -14
  39. package/icons/vehicle_inspection.svg +18 -1
  40. package/icons/wilderness_hut.svg +1 -1
  41. package/leaflet-controller.d.ts +1 -1
  42. package/leaflet-controller.js +113 -110
  43. package/leaflet-controller.js.map +1 -1
  44. package/leaflet-controller.umd.js +2 -2
  45. package/leaflet-controller.umd.js.map +1 -1
  46. package/leaflet.d.ts +58 -5
  47. package/leaflet.js +1438 -1265
  48. package/leaflet.js.map +1 -1
  49. package/leaflet.umd.js +3 -3
  50. package/leaflet.umd.js.map +1 -1
  51. package/maplibregl-controller.d.ts +1 -1
  52. package/maplibregl-controller.js +483 -469
  53. package/maplibregl-controller.js.map +1 -1
  54. package/maplibregl-controller.umd.js +3 -3
  55. package/maplibregl-controller.umd.js.map +1 -1
  56. package/maplibregl.d.ts +2499 -13
  57. package/maplibregl.js +2435 -2139
  58. package/maplibregl.js.map +1 -1
  59. package/maplibregl.umd.js +3 -3
  60. package/maplibregl.umd.js.map +1 -1
  61. package/maptilersdk.d.ts +2499 -13
  62. package/maptilersdk.js +2432 -2139
  63. package/maptilersdk.js.map +1 -1
  64. package/maptilersdk.umd.js +3 -3
  65. package/maptilersdk.umd.js.map +1 -1
  66. package/openlayers-controller.d.ts +1 -1
  67. package/openlayers-controller.js +66 -63
  68. package/openlayers-controller.js.map +1 -1
  69. package/openlayers-controller.umd.js +2 -2
  70. package/openlayers-controller.umd.js.map +1 -1
  71. package/openlayers.d.ts +53 -1
  72. package/openlayers.js +2046 -1902
  73. package/openlayers.js.map +1 -1
  74. package/openlayers.umd.js +3 -3
  75. package/openlayers.umd.js.map +1 -1
  76. package/package.json +28 -28
  77. package/react.d.ts +31 -5
  78. package/react.js +1252 -1096
  79. package/react.js.map +1 -1
  80. package/react.umd.js +1 -1
  81. package/react.umd.js.map +1 -1
  82. package/style.css +1 -1
  83. package/svelte/FeatureItem.svelte +60 -13
  84. package/svelte/FeatureItem.svelte.d.ts +4 -4
  85. package/svelte/GeocodingControl.svelte +166 -98
  86. package/svelte/GeocodingControl.svelte.d.ts +36 -16
  87. package/svelte/MapLibreBasedGeocodingControl.d.ts +3027 -27
  88. package/svelte/MapLibreBasedGeocodingControl.js +154 -21
  89. package/svelte/leaflet-controller.d.ts +1 -1
  90. package/svelte/leaflet-controller.js +6 -3
  91. package/svelte/leaflet.d.ts +58 -5
  92. package/svelte/leaflet.js +52 -21
  93. package/svelte/maplibregl-controller.d.ts +1 -1
  94. package/svelte/maplibregl-controller.js +47 -38
  95. package/svelte/maplibregl.d.ts +2499 -13
  96. package/svelte/maplibregl.js +11 -3
  97. package/svelte/maptilersdk.d.ts +2499 -13
  98. package/svelte/maptilersdk.js +11 -3
  99. package/svelte/openlayers-controller.d.ts +1 -1
  100. package/svelte/openlayers-controller.js +7 -4
  101. package/svelte/openlayers.d.ts +53 -1
  102. package/svelte/openlayers.js +66 -48
  103. package/svelte/react.d.ts +31 -5
  104. package/svelte/react.js +21 -9
  105. package/svelte/types.d.ts +106 -35
  106. package/svelte/vanilla.d.ts +46 -2
  107. package/svelte/vanilla.js +66 -10
  108. package/types.d.ts +106 -35
  109. package/vanilla.d.ts +46 -2
  110. package/vanilla.js +1260 -1057
  111. package/vanilla.js.map +1 -1
  112. package/vanilla.umd.js +1 -1
  113. package/vanilla.umd.js.map +1 -1
  114. package/icons/aerodrome.12.svg +0 -1
  115. package/icons/bus_stop.12.svg +0 -1
  116. package/icons/elevator.12.svg +0 -1
  117. /package/icons/{helipad.16.svg → helipad.svg} +0 -0
  118. /package/icons/{traffic_light.13.svg → traffic_light.svg} +0 -0
package/icons/street.svg CHANGED
@@ -1,15 +1,12 @@
1
- <svg width="22.000002" height="12.000003" viewBox="0 0 5.8208338 3.1750009"
2
- xmlns="http://www.w3.org/2000/svg">
3
- <g stroke="#000" stroke-linecap="round" stroke-linejoin="round">
4
- <path
5
- d="M.66145834.13229167.13229167.66145834V2.5135417l.52916667.5291667H5.1593751l.5291666-.5291667V.66145834L5.1593751.13229167Z"
6
- fill="none" stroke-width=".264584" paint-order="stroke markers fill" />
7
- <g aria-label="Main"
8
- style="line-height:2.5ex;-inkscape-font-specification:&quot;Noto Sans, Normal&quot;"
9
- font-size="1.85208" font-family="Noto Sans" letter-spacing="0" word-spacing="0"
10
- stroke-width=".079375">
11
- <path
12
- d="m1.4880197 2.2607315-.4352388-1.1594021h-.0074084q.0055563.0574145.0092604.1555747.0037042.0963082.0037042.2018767v.8019507H.90461447V.93834635h.24632663l.4074576 1.08346675h.0074083L1.9806729.93834635h.2444746V2.2607315h-.1648351v-.8130632q0-.0963081.0037041-.1907642.0055563-.0944561.0092604-.1537226h-.0074083l-.440795 1.15755ZM2.9381975 1.2513479q.1815039 0 .2685516.0796394.0870478.0796394.0870478.253735v.6760092h-.1185331l-.0314854-.1407581h-.0074083q-.0648228.0814915-.1370539.1203852-.0703791.0388937-.1963205.0388937-.1352018 0-.2241017-.0703791-.0888998-.0722311-.0888998-.2241017 0-.1481664.116681-.2278058.1166811-.0814915.3593035-.0888998l.1685393-.0055563v-.0592665q0-.1240894-.0537103-.1722435-.0537103-.0481541-.1518706-.0481541-.0777873 0-.1481664.0240771-.070379.0222249-.1314976.0518582l-.0500062-.1222373q.0648228-.0351895.1537226-.0592665.0888999-.0259291.185208-.0259291Zm.0481541.5296948q-.185208.0074084-.2574391.0592666-.070379.0518582-.070379.1463143 0 .0833436.0500061.1222373.0518583.0388937.1314977.0388937.1259414 0 .209285-.068527.0833436-.070379.0833436-.2148413v-.0888998ZM3.6845873.89574851q.0370416 0 .0648228.02592912.0296333.02407704.0296333.07778736 0 .05185821-.0296333.07778731-.0277812.0259292-.0648228.0259292-.0407458 0-.068527-.0259292-.0277812-.0259291-.0277812-.07778731 0-.05371032.0277812-.07778736.0277812-.02592912.068527-.02592912Zm.0796394.37226809v.9927149h-.162983v-.9927149ZM4.556916 1.2494958q.1777997 0 .2685516.0870477.0907519.0851957.0907519.277812v.646376h-.161131V1.625468q0-.2389183-.2222495-.2389183-.1648352 0-.2278059.092604-.0629707.092604-.0629707.2666995v.5148783h-.162983v-.9927149h.1314976l.0240771.1352018h.0092604q.0481541-.0777873.1333497-.1148289.0851957-.0388937.1796518-.0388937Z" />
13
- </g>
14
- </g>
1
+ <svg width="16" height="13" viewBox="0 0 16 13" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_1_3955)">
3
+ <path d="M0 13.0015L3.93975 -0.0078125H4.57535L4.51265 0.23333C4.47343 0.388694 4.13176 1.72471 3.65008 3.60822C3.2095 5.33099 2.65178 7.51179 2.10122 9.66615L1.24947 12.9951L0 13.0015Z" fill="black"/>
4
+ <path d="M13.0968 6.5406C12.1855 2.98288 11.4402 0.0516161 11.4402 0.0297385C11.4402 0.00165689 11.5216 -0.0078125 11.7471 -0.0078125H12.0571L16 13.0043L14.7504 13.0075L13.0968 6.5406Z" fill="black"/>
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8 2.21798C6.60779 2.21798 5.47792 3.35872 5.47792 4.76494C5.47792 6.17116 8 10.7838 8 10.7838C8 10.7838 10.5221 6.17285 10.5221 4.76669C10.5221 2.64402 8.84069 2.1831 8 2.21798ZM8 6.14657C8.79488 6.14657 9.43925 5.5022 9.43925 4.70732C9.43925 3.91244 8.79488 3.26807 8 3.26807C7.20512 3.26807 6.56074 3.91244 6.56074 4.70732C6.56074 5.5022 7.20512 6.14657 8 6.14657Z" fill="black"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_1_3955">
9
+ <rect width="16" height="13.0155" fill="white" transform="translate(0 -0.0078125)"/>
10
+ </clipPath>
11
+ </defs>
15
12
  </svg>
@@ -1 +1,18 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path d="M2.5 0a.499.499 0 1 0 0 1h4a.499.499 0 1 0 0-1h-4ZM11 0 9.545 3.637 9 2H8l1 3h1l2-5h-1ZM2.5 2a.499.499 0 1 0 0 1h4a.499.499 0 1 0 0-1h-4Zm0 2a.499.499 0 1 0 0 1h4a.499.499 0 1 0 0-1h-4ZM4 6 3 9c-.473 0-1 .384-1 1v3h1s0 1 1 1 1-1 1-1h4s0 1 1 1 1-1 1-1h1v-3c0-.52-.455-1-1-1l-1-3H4Zm1 1h4l.625 2h-5.25L5 7Zm-1 3.25a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5Zm6 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5Z"/></svg>
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ width="14"
4
+ height="14"
5
+ version="1.1"
6
+ id="svg1"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:svg="http://www.w3.org/2000/svg">
9
+ <defs
10
+ id="defs1" />
11
+ <path
12
+ d="M 11.717393,10.169401 10.794749,9.3123695 9.9762734,7.6754194 A 0.78127178,0.78127178 0 0 0 9.3066124,7.3033852 H 4.6933884 A 0.78127178,0.78127178 0 0 0 4.0237268,7.6754194 L 3.2052516,9.3123695 2.2826068,10.169401 a 0.37203418,0.37203418 0 0 0 -0.1190509,0.273276 v 3.185289 A 0.37203418,0.37203418 0 0 0 2.5355901,14 H 4.0237268 C 4.1725405,14 4.395761,13.851186 4.395761,13.702373 v -0.446442 h 5.2084784 v 0.372035 C 9.6042394,13.77678 9.7530534,14 9.9018674,14 H 11.46441 a 0.37203418,0.37203418 0 0 0 0.372034,-0.372034 v -3.185965 a 0.37203418,0.37203418 0 0 0 -0.119051,-0.2726 z M 4.7677952,8.0474535 H 9.2322054 L 9.9762734,9.53559 H 4.0237268 Z m 0.3720342,3.4227135 c 0,0.148814 -0.2232206,0.297628 -0.3720342,0.297628 H 3.2052516 c -0.1488136,0 -0.2976273,-0.223221 -0.2976273,-0.372035 v -0.818474 c 0.074407,-0.223221 0.2232205,-0.372035 0.446441,-0.297628 l 1.4881367,0.297628 c 0.1488137,0 0.2976274,0.22322 0.2976274,0.372034 z m 5.9525466,-0.07441 c 0,0.148814 -0.148814,0.372034 -0.297627,0.372034 H 9.2322054 c -0.148814,0 -0.3720344,-0.148813 -0.3720344,-0.297627 v -0.520848 c 0,-0.148814 0.1488137,-0.372034 0.2976274,-0.372034 l 1.4881376,-0.297627 c 0.22322,-0.07441 0.372034,0.07441 0.44644,0.297627 z"
13
+ id="path1-4"
14
+ style="stroke-width:0.676426" />
15
+ <path
16
+ d="m 2.5,0 c -0.6666664,0 -0.6666664,1 0,1 h 4 C 7.1666664,1 7.1666664,0 6.5,0 Z M 11,0 9.545,3.637 9,2 H 8 l 1,3 h 1 L 12,0 Z M 2.5,2 c -0.6666664,0 -0.6666664,1 0,1 h 4 c 0.6666664,0 0.6666664,-1 0,-1 z m 0,2 c -0.6666664,0 -0.6666664,1 0,1 h 4 c 0.6666664,0 0.6666664,-1 0,-1 z"
17
+ id="path1" />
18
+ </svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path d="M8 0v2l-1-.5L0 5v2l1.5-.65V14H3V5.7L7 4l1 .426V9H4.5c.025 1.652-.034 3.39 0 5h5c.018-2.953.006-5.95 0-8.938L11 5.7V14h1.5V6.35L14 7V5L9.5 2.75c-.002-.919 0-1.834 0-2.75H8ZM7 11s1 0 1 1v1H6v-1c0-1 1-1 1-1Z"/></svg>
1
+ <svg fill="none" height="13" viewBox="0 0 13 13" width="13" xmlns="http://www.w3.org/2000/svg"><g fill="#000"><path d="m12.9322 5.77624-2.93248-2.74625-3.31792-2.760499c-.09451-.099003-.25238-.103859-.35296-.010857l-.011.010857-6.2502689 5.482269c-.0944175.09946-.0892565.25562.0115222.3488.0454687.04204.1052097.06581.1675107.06666l1.753526.02467h10.74897c.1381.00046.2504-.10966.2509-.24595.0002-.06298-.0242-.12375-.0678-.1697z"/><path d="m9.00458 1.18863c0-.549605.44554-.995149.99515-.995149.54957 0 .99517.445543.99517.995149v2.81137l-1.99032-.7613z"/><path clip-rule="evenodd" d="m1.1535 8.19189c0-.55228.44772-1 1-1h9c.5523 0 1 .44772 1 1 0 .55229-.4477 1-1 1h-2.15347c0-.55228-.44771-1-1-1h-1c-.55228 0-1 .44772-1 1h-3.84653c-.55228 0-1-.44771-1-1zm4.84653 2.00001h-3.84653c-.55228 0-1 .4477-1 1s.44772 1 1 1h3.84653zm3 2h2.15347c.5523 0 1-.4477 1-1s-.4477-1-1-1h-2.15347z" fill-rule="evenodd"/></g></svg>
@@ -6,7 +6,7 @@ export declare function createLeafletMapController(map: L.Map, marker?: boolean
6
6
  fitBounds(bbox: BBox, padding: number, maxZoom?: number): void;
7
7
  indicateReverse(reverse: boolean): void;
8
8
  setReverseMarker(coordinates?: Position): void;
9
- setMarkers(markedFeatures: Feature[] | undefined, picked: Feature | undefined): void;
9
+ setFeatures(markedFeatures: Feature[] | undefined, picked: Feature | undefined, showPolygonMarker: boolean): void;
10
10
  setSelectedMarker(index: number): void;
11
11
  getCenterAndZoom(): [number, number, number];
12
12
  };
@@ -35,26 +35,26 @@ function Ut(r, t, e = {}) {
35
35
  }
36
36
  function Yt(r, t, e) {
37
37
  if (r !== null)
38
- for (var n, i, o, u, l, c, f, p = 0, s = 0, a, h = r.type, g = h === "FeatureCollection", y = h === "Feature", x = g ? r.features.length : 1, d = 0; d < x; d++) {
39
- f = g ? r.features[d].geometry : y ? r.geometry : r, a = f ? f.type === "GeometryCollection" : !1, l = a ? f.geometries.length : 1;
38
+ for (var n, i, o, u, l, c, f, p = 0, s = 0, a, h = r.type, g = h === "FeatureCollection", d = h === "Feature", w = g ? r.features.length : 1, y = 0; y < w; y++) {
39
+ f = g ? r.features[y].geometry : d ? r.geometry : r, a = f ? f.type === "GeometryCollection" : !1, l = a ? f.geometries.length : 1;
40
40
  for (var v = 0; v < l; v++) {
41
- var m = 0, w = 0;
41
+ var x = 0, m = 0;
42
42
  if (u = a ? f.geometries[v] : f, u !== null) {
43
43
  c = u.coordinates;
44
- var E = u.type;
45
- switch (p = 0, E) {
44
+ var b = u.type;
45
+ switch (p = 0, b) {
46
46
  case null:
47
47
  break;
48
48
  case "Point":
49
49
  if (t(
50
50
  c,
51
51
  s,
52
- d,
53
- m,
54
- w
52
+ y,
53
+ x,
54
+ m
55
55
  ) === !1)
56
56
  return !1;
57
- s++, m++;
57
+ s++, x++;
58
58
  break;
59
59
  case "LineString":
60
60
  case "MultiPoint":
@@ -62,14 +62,14 @@ function Yt(r, t, e) {
62
62
  if (t(
63
63
  c[n],
64
64
  s,
65
- d,
66
- m,
67
- w
65
+ y,
66
+ x,
67
+ m
68
68
  ) === !1)
69
69
  return !1;
70
- s++, E === "MultiPoint" && m++;
70
+ s++, b === "MultiPoint" && x++;
71
71
  }
72
- E === "LineString" && m++;
72
+ b === "LineString" && x++;
73
73
  break;
74
74
  case "Polygon":
75
75
  case "MultiLineString":
@@ -78,34 +78,34 @@ function Yt(r, t, e) {
78
78
  if (t(
79
79
  c[n][i],
80
80
  s,
81
- d,
82
- m,
83
- w
81
+ y,
82
+ x,
83
+ m
84
84
  ) === !1)
85
85
  return !1;
86
86
  s++;
87
87
  }
88
- E === "MultiLineString" && m++, E === "Polygon" && w++;
88
+ b === "MultiLineString" && x++, b === "Polygon" && m++;
89
89
  }
90
- E === "Polygon" && m++;
90
+ b === "Polygon" && x++;
91
91
  break;
92
92
  case "MultiPolygon":
93
93
  for (n = 0; n < c.length; n++) {
94
- for (w = 0, i = 0; i < c[n].length; i++) {
94
+ for (m = 0, i = 0; i < c[n].length; i++) {
95
95
  for (o = 0; o < c[n][i].length - p; o++) {
96
96
  if (t(
97
97
  c[n][i][o],
98
98
  s,
99
- d,
100
- m,
101
- w
99
+ y,
100
+ x,
101
+ m
102
102
  ) === !1)
103
103
  return !1;
104
104
  s++;
105
105
  }
106
- w++;
106
+ m++;
107
107
  }
108
- m++;
108
+ x++;
109
109
  }
110
110
  break;
111
111
  case "GeometryCollection":
@@ -121,8 +121,8 @@ function Yt(r, t, e) {
121
121
  }
122
122
  }
123
123
  function vt(r, t) {
124
- var e, n, i, o, u, l, c, f, p, s, a = 0, h = r.type === "FeatureCollection", g = r.type === "Feature", y = h ? r.features.length : 1;
125
- for (e = 0; e < y; e++) {
124
+ var e, n, i, o, u, l, c, f, p, s, a = 0, h = r.type === "FeatureCollection", g = r.type === "Feature", d = h ? r.features.length : 1;
125
+ for (e = 0; e < d; e++) {
126
126
  for (l = h ? r.features[e].geometry : g ? r.geometry : r, f = h ? r.features[e].properties : g ? r.properties : {}, p = h ? r.features[e].bbox : g ? r.bbox : void 0, s = h ? r.features[e].id : g ? r.id : void 0, c = l ? l.type === "GeometryCollection" : !1, u = c ? l.geometries.length : 1, i = 0; i < u; i++) {
127
127
  if (o = c ? l.geometries[i] : l, o === null) {
128
128
  if (t(
@@ -405,7 +405,7 @@ function ot(r, t, e, n) {
405
405
  var o = n(r, e.key);
406
406
  return o < 0 ? (i.left = e.left, i.right = e, e.left = null) : o >= 0 && (i.right = e.right, i.left = e, e.right = null), i;
407
407
  }
408
- function bt(r, t, e) {
408
+ function Et(r, t, e) {
409
409
  var n = null, i = null;
410
410
  if (t) {
411
411
  t = B(r, t, e);
@@ -591,10 +591,10 @@ var wt = (
591
591
  return e.push(n);
592
592
  }, t), e.join("");
593
593
  }, r.prototype.update = function(t, e, n) {
594
- var i = this._comparator, o = bt(t, this._root, i), u = o.left, l = o.right;
594
+ var i = this._comparator, o = Et(t, this._root, i), u = o.left, l = o.right;
595
595
  i(t, e) < 0 ? l = ot(e, n, l, i) : u = ot(e, n, u, i), this._root = pe(u, l, i);
596
596
  }, r.prototype.split = function(t) {
597
- return bt(t, this._root, this._comparator);
597
+ return Et(t, this._root, this._comparator);
598
598
  }, r.prototype[Symbol.iterator] = function() {
599
599
  var t, e, n;
600
600
  return he(this, function(i) {
@@ -691,24 +691,24 @@ function ve(r, t) {
691
691
  function K(r) {
692
692
  return new Float64Array(r);
693
693
  }
694
- const me = (3 + 16 * O) * O, we = (2 + 12 * O) * O, Ee = (9 + 64 * O) * O * O, q = K(4), _t = K(8), St = K(12), Pt = K(16), P = K(4);
695
- function be(r, t, e, n, i, o, u) {
696
- let l, c, f, p, s, a, h, g, y, x, d, v, m, w, E, b, M, _;
694
+ const me = (3 + 16 * O) * O, we = (2 + 12 * O) * O, be = (9 + 64 * O) * O * O, q = K(4), _t = K(8), St = K(12), Pt = K(16), P = K(4);
695
+ function Ee(r, t, e, n, i, o, u) {
696
+ let l, c, f, p, s, a, h, g, d, w, y, v, x, m, b, E, M, _;
697
697
  const C = r - i, R = e - i, I = t - o, $ = n - o;
698
- w = C * $, a = S * C, h = a - (a - C), g = C - h, a = S * $, y = a - (a - $), x = $ - y, E = g * x - (w - h * y - g * y - h * x), b = I * R, a = S * I, h = a - (a - I), g = I - h, a = S * R, y = a - (a - R), x = R - y, M = g * x - (b - h * y - g * y - h * x), d = E - M, s = E - d, q[0] = E - (d + s) + (s - M), v = w + d, s = v - w, m = w - (v - s) + (d - s), d = m - b, s = m - d, q[1] = m - (d + s) + (s - b), _ = v + d, s = _ - v, q[2] = v - (_ - s) + (d - s), q[3] = _;
698
+ m = C * $, a = S * C, h = a - (a - C), g = C - h, a = S * $, d = a - (a - $), w = $ - d, b = g * w - (m - h * d - g * d - h * w), E = I * R, a = S * I, h = a - (a - I), g = I - h, a = S * R, d = a - (a - R), w = R - d, M = g * w - (E - h * d - g * d - h * w), y = b - M, s = b - y, q[0] = b - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - E, s = x - y, q[1] = x - (y + s) + (s - E), _ = v + y, s = _ - v, q[2] = v - (_ - s) + (y - s), q[3] = _;
699
699
  let A = ve(4, q), D = we * u;
700
- if (A >= D || -A >= D || (s = r - C, l = r - (C + s) + (s - i), s = e - R, f = e - (R + s) + (s - i), s = t - I, c = t - (I + s) + (s - o), s = n - $, p = n - ($ + s) + (s - o), l === 0 && c === 0 && f === 0 && p === 0) || (D = Ee * u + xe * Math.abs(A), A += C * p + $ * l - (I * f + R * c), A >= D || -A >= D)) return A;
701
- w = l * $, a = S * l, h = a - (a - l), g = l - h, a = S * $, y = a - (a - $), x = $ - y, E = g * x - (w - h * y - g * y - h * x), b = c * R, a = S * c, h = a - (a - c), g = c - h, a = S * R, y = a - (a - R), x = R - y, M = g * x - (b - h * y - g * y - h * x), d = E - M, s = E - d, P[0] = E - (d + s) + (s - M), v = w + d, s = v - w, m = w - (v - s) + (d - s), d = m - b, s = m - d, P[1] = m - (d + s) + (s - b), _ = v + d, s = _ - v, P[2] = v - (_ - s) + (d - s), P[3] = _;
700
+ if (A >= D || -A >= D || (s = r - C, l = r - (C + s) + (s - i), s = e - R, f = e - (R + s) + (s - i), s = t - I, c = t - (I + s) + (s - o), s = n - $, p = n - ($ + s) + (s - o), l === 0 && c === 0 && f === 0 && p === 0) || (D = be * u + xe * Math.abs(A), A += C * p + $ * l - (I * f + R * c), A >= D || -A >= D)) return A;
701
+ m = l * $, a = S * l, h = a - (a - l), g = l - h, a = S * $, d = a - (a - $), w = $ - d, b = g * w - (m - h * d - g * d - h * w), E = c * R, a = S * c, h = a - (a - c), g = c - h, a = S * R, d = a - (a - R), w = R - d, M = g * w - (E - h * d - g * d - h * w), y = b - M, s = b - y, P[0] = b - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - E, s = x - y, P[1] = x - (y + s) + (s - E), _ = v + y, s = _ - v, P[2] = v - (_ - s) + (y - s), P[3] = _;
702
702
  const ee = st(4, q, 4, P, _t);
703
- w = C * p, a = S * C, h = a - (a - C), g = C - h, a = S * p, y = a - (a - p), x = p - y, E = g * x - (w - h * y - g * y - h * x), b = I * f, a = S * I, h = a - (a - I), g = I - h, a = S * f, y = a - (a - f), x = f - y, M = g * x - (b - h * y - g * y - h * x), d = E - M, s = E - d, P[0] = E - (d + s) + (s - M), v = w + d, s = v - w, m = w - (v - s) + (d - s), d = m - b, s = m - d, P[1] = m - (d + s) + (s - b), _ = v + d, s = _ - v, P[2] = v - (_ - s) + (d - s), P[3] = _;
703
+ m = C * p, a = S * C, h = a - (a - C), g = C - h, a = S * p, d = a - (a - p), w = p - d, b = g * w - (m - h * d - g * d - h * w), E = I * f, a = S * I, h = a - (a - I), g = I - h, a = S * f, d = a - (a - f), w = f - d, M = g * w - (E - h * d - g * d - h * w), y = b - M, s = b - y, P[0] = b - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - E, s = x - y, P[1] = x - (y + s) + (s - E), _ = v + y, s = _ - v, P[2] = v - (_ - s) + (y - s), P[3] = _;
704
704
  const ne = st(ee, _t, 4, P, St);
705
- w = l * p, a = S * l, h = a - (a - l), g = l - h, a = S * p, y = a - (a - p), x = p - y, E = g * x - (w - h * y - g * y - h * x), b = c * f, a = S * c, h = a - (a - c), g = c - h, a = S * f, y = a - (a - f), x = f - y, M = g * x - (b - h * y - g * y - h * x), d = E - M, s = E - d, P[0] = E - (d + s) + (s - M), v = w + d, s = v - w, m = w - (v - s) + (d - s), d = m - b, s = m - d, P[1] = m - (d + s) + (s - b), _ = v + d, s = _ - v, P[2] = v - (_ - s) + (d - s), P[3] = _;
705
+ m = l * p, a = S * l, h = a - (a - l), g = l - h, a = S * p, d = a - (a - p), w = p - d, b = g * w - (m - h * d - g * d - h * w), E = c * f, a = S * c, h = a - (a - c), g = c - h, a = S * f, d = a - (a - f), w = f - d, M = g * w - (E - h * d - g * d - h * w), y = b - M, s = b - y, P[0] = b - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - E, s = x - y, P[1] = x - (y + s) + (s - E), _ = v + y, s = _ - v, P[2] = v - (_ - s) + (y - s), P[3] = _;
706
706
  const re = st(ne, St, 4, P, Pt);
707
707
  return Pt[re - 1];
708
708
  }
709
709
  function _e(r, t, e, n, i, o) {
710
710
  const u = (t - o) * (e - i), l = (r - i) * (n - o), c = u - l, f = Math.abs(u + l);
711
- return Math.abs(c) >= me * f ? c : -be(r, t, e, n, i, o, f);
711
+ return Math.abs(c) >= me * f ? c : -Ee(r, t, e, n, i, o, f);
712
712
  }
713
713
  const j = (r, t) => r.ll.x <= t.x && t.x <= r.ur.x && r.ll.y <= t.y && t.y <= r.ur.y, pt = (r, t) => {
714
714
  if (t.ur.x < r.ll.x || r.ur.x < t.ll.x || t.ur.y < r.ll.y || r.ur.y < t.ll.y) return null;
@@ -1277,22 +1277,22 @@ class nt {
1277
1277
  for (; ; ) {
1278
1278
  const a = l.getAvailableLinkedEvents();
1279
1279
  if (a.length === 0) {
1280
- const y = f[0].point, x = f[f.length - 1].point;
1281
- throw new Error(`Unable to complete output ring starting at [${y.x}, ${y.y}]. Last matching segment found ends at [${x.x}, ${x.y}].`);
1280
+ const d = f[0].point, w = f[f.length - 1].point;
1281
+ throw new Error(`Unable to complete output ring starting at [${d.x}, ${d.y}]. Last matching segment found ends at [${w.x}, ${w.y}].`);
1282
1282
  }
1283
1283
  if (a.length === 1) {
1284
1284
  c = a[0].otherSE;
1285
1285
  break;
1286
1286
  }
1287
1287
  let h = null;
1288
- for (let y = 0, x = s.length; y < x; y++)
1289
- if (s[y].point === l.point) {
1290
- h = y;
1288
+ for (let d = 0, w = s.length; d < w; d++)
1289
+ if (s[d].point === l.point) {
1290
+ h = d;
1291
1291
  break;
1292
1292
  }
1293
1293
  if (h !== null) {
1294
- const y = s.splice(h)[0], x = f.splice(y.index);
1295
- x.unshift(x[0].otherSE), e.push(new nt(x.reverse()));
1294
+ const d = s.splice(h)[0], w = f.splice(d.index);
1295
+ w.unshift(w[0].otherSE), e.push(new nt(w.reverse()));
1296
1296
  continue;
1297
1297
  }
1298
1298
  s.push({
@@ -1486,13 +1486,13 @@ class Oe {
1486
1486
  if (k.type === "intersection")
1487
1487
  for (let s = 0, a = i.length; s < a; s++) {
1488
1488
  const h = i[s];
1489
- for (let g = s + 1, y = i.length; g < y; g++)
1489
+ for (let g = s + 1, d = i.length; g < d; g++)
1490
1490
  if (pt(h.bbox, i[g].bbox) === null) return [];
1491
1491
  }
1492
1492
  const o = new wt(L.compare);
1493
1493
  for (let s = 0, a = i.length; s < a; s++) {
1494
1494
  const h = i[s].getSweepEvents();
1495
- for (let g = 0, y = h.length; g < y; g++)
1495
+ for (let g = 0, d = h.length; g < d; g++)
1496
1496
  if (o.insert(h[g]), o.size > Ot)
1497
1497
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).");
1498
1498
  }
@@ -1510,8 +1510,8 @@ class Oe {
1510
1510
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");
1511
1511
  const a = u.process(s);
1512
1512
  for (let h = 0, g = a.length; h < g; h++) {
1513
- const y = a[h];
1514
- y.consumedBy === void 0 && o.insert(y);
1513
+ const d = a[h];
1514
+ d.consumedBy === void 0 && o.insert(d);
1515
1515
  }
1516
1516
  l = o.size, c = o.pop();
1517
1517
  }
@@ -1598,9 +1598,9 @@ function Ye(r) {
1598
1598
  function H(r, t, e) {
1599
1599
  r.classList.toggle(t, !!e);
1600
1600
  }
1601
- let Et;
1601
+ let bt;
1602
1602
  function X(r) {
1603
- Et = r;
1603
+ bt = r;
1604
1604
  }
1605
1605
  const U = [], Gt = [];
1606
1606
  let Y = [];
@@ -1617,7 +1617,7 @@ let Q = 0;
1617
1617
  function te() {
1618
1618
  if (Q !== 0)
1619
1619
  return;
1620
- const r = Et;
1620
+ const r = bt;
1621
1621
  do {
1622
1622
  try {
1623
1623
  for (; Q < U.length; ) {
@@ -1668,7 +1668,7 @@ function He(r, t) {
1668
1668
  r.$$.dirty[0] === -1 && (U.push(r), je(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
1669
1669
  }
1670
1670
  function tn(r, t, e, n, i, o, u = null, l = [-1]) {
1671
- const c = Et;
1671
+ const c = bt;
1672
1672
  X(r);
1673
1673
  const f = r.$$ = {
1674
1674
  fragment: null,
@@ -1892,11 +1892,11 @@ function an(r, t = !0, e = !0, n = {}, i = {}, o = Tt) {
1892
1892
  });
1893
1893
  };
1894
1894
  function a(h, g = !1) {
1895
- const y = document.createElement("div");
1896
- return new sn({ props: { displayIn: "leaflet" }, target: y }), new T.Marker(h, {
1895
+ const d = document.createElement("div");
1896
+ return new sn({ props: { displayIn: "leaflet" }, target: d }), new T.Marker(h, {
1897
1897
  interactive: g,
1898
1898
  icon: new T.DivIcon({
1899
- html: y,
1899
+ html: d,
1900
1900
  className: "",
1901
1901
  iconAnchor: [12, 26],
1902
1902
  iconSize: [25, 30],
@@ -1911,7 +1911,7 @@ function an(r, t = !0, e = !0, n = {}, i = {}, o = Tt) {
1911
1911
  flyTo(h, g) {
1912
1912
  r.flyTo([h[1], h[0]], g, { duration: 2, ...n });
1913
1913
  },
1914
- fitBounds(h, g, y) {
1914
+ fitBounds(h, g, d) {
1915
1915
  r.flyToBounds(
1916
1916
  [
1917
1917
  [h[1], h[0]],
@@ -1920,7 +1920,7 @@ function an(r, t = !0, e = !0, n = {}, i = {}, o = Tt) {
1920
1920
  {
1921
1921
  padding: [g, g],
1922
1922
  duration: 2,
1923
- ...y ? { maxZoom: y } : {},
1923
+ ...d ? { maxZoom: d } : {},
1924
1924
  ...i
1925
1925
  }
1926
1926
  );
@@ -1929,102 +1929,105 @@ function an(r, t = !0, e = !0, n = {}, i = {}, o = Tt) {
1929
1929
  r.getContainer().style.cursor = h ? "crosshair" : "";
1930
1930
  },
1931
1931
  setReverseMarker(h) {
1932
- var y;
1932
+ var d;
1933
1933
  if (!t)
1934
1934
  return;
1935
1935
  const g = h && [h[1], h[0]];
1936
- f ? g ? f.setLatLng(g) : (f.remove(), f = void 0) : g && (t instanceof Function ? f = t(r) ?? void 0 : (f = (typeof t == "object" ? new T.Marker(g, t) : a(g)).addTo(r), (y = f.getElement()) == null || y.classList.add("marker-reverse")));
1936
+ f ? g ? f.setLatLng(g) : (f.remove(), f = void 0) : g && (t instanceof Function ? f = t(r) ?? void 0 : (f = (typeof t == "object" ? new T.Marker(g, t) : a(g)).addTo(r), (d = f.getElement()) == null || d.classList.add("marker-reverse")));
1937
1937
  },
1938
- setMarkers(h, g) {
1939
- function y(x) {
1940
- p.clearLayers(), x && p.addData(x);
1938
+ setFeatures(h, g, d) {
1939
+ function w(y) {
1940
+ p.clearLayers(), y && p.addData(y);
1941
1941
  }
1942
- for (const x of l)
1943
- x.remove();
1944
- if (l.length = 0, y(), g) {
1945
- let x = !1;
1942
+ for (const y of l)
1943
+ y.remove();
1944
+ l.length = 0, w();
1945
+ t: if (g) {
1946
+ let y = !1;
1946
1947
  if (g.geometry.type === "GeometryCollection") {
1947
- const d = g.geometry.geometries.filter(
1948
- (v) => v.type === "Polygon" || v.type === "MultiPolygon"
1948
+ const v = g.geometry.geometries.filter(
1949
+ (x) => x.type === "Polygon" || x.type === "MultiPolygon"
1949
1950
  );
1950
- t: if (d.length > 0) {
1951
- const v = Jt(
1952
- Z(d.map((m) => V(m)))
1951
+ e: if (v.length > 0) {
1952
+ const x = Jt(
1953
+ Z(v.map((m) => V(m)))
1953
1954
  );
1954
- if (!v)
1955
- break t;
1955
+ if (!x)
1956
+ break e;
1956
1957
  Ft(
1957
1958
  {
1958
1959
  ...g,
1959
- geometry: v.geometry
1960
+ geometry: x.geometry
1960
1961
  },
1961
- y
1962
- ), x = !0;
1962
+ w
1963
+ ), y = !0;
1963
1964
  } else {
1964
- const v = g.geometry.geometries.filter(
1965
+ const x = g.geometry.geometries.filter(
1965
1966
  (m) => m.type === "LineString" || m.type === "MultiLineString"
1966
1967
  );
1967
- v.length > 0 && (y({
1968
+ x.length > 0 && (w({
1968
1969
  ...g,
1969
- geometry: { type: "GeometryCollection", geometries: v }
1970
- }), x = !0);
1970
+ geometry: { type: "GeometryCollection", geometries: x }
1971
+ }), y = !0);
1971
1972
  }
1972
1973
  }
1973
- if (!x) {
1974
+ if (!y) {
1974
1975
  if (g.geometry.type === "Polygon" || g.geometry.type === "MultiPolygon")
1975
- Ft(g, (d) => {
1976
- if (!d)
1976
+ Ft(g, (v) => {
1977
+ if (!v)
1977
1978
  return;
1978
- const v = [...d.features], m = gt(ut(g)), w = m[2] - m[0];
1979
- m[0] - w / 4 < -180 && v.push(...qt(d, -360).features), m[2] + w / 4 > 180 && v.push(...qt(d, 360).features), y(Z(v));
1979
+ const x = [...v.features], m = gt(ut(g)), b = m[2] - m[0];
1980
+ m[0] - b / 4 < -180 && x.push(...qt(v, -360).features), m[2] + b / 4 > 180 && x.push(...qt(v, 360).features), w(Z(x));
1980
1981
  });
1981
1982
  else if (g.geometry.type === "LineString" || g.geometry.type === "MultiLineString") {
1982
- y(g);
1983
- return;
1983
+ w(g);
1984
+ break t;
1984
1985
  }
1985
1986
  }
1987
+ if (!d && g.geometry.type !== "Point")
1988
+ break t;
1986
1989
  if (t instanceof Function) {
1987
- const d = t(r, g);
1988
- d && l.push(d.addTo(r));
1990
+ const v = t(r, g);
1991
+ v && l.push(v.addTo(r));
1989
1992
  } else if (t) {
1990
- const d = [g.center[1], g.center[0]];
1993
+ const v = [g.center[1], g.center[0]];
1991
1994
  l.push(
1992
- typeof t == "object" ? new T.Marker(d, t) : a(d).addTo(r)
1995
+ typeof t == "object" ? new T.Marker(v, t) : a(v).addTo(r)
1993
1996
  );
1994
1997
  }
1995
1998
  }
1996
1999
  if (e)
1997
- for (const x of h ?? []) {
1998
- if (x === g)
2000
+ for (const y of h ?? []) {
2001
+ if (y === g)
1999
2002
  continue;
2000
- const d = [
2001
- x.center[1],
2002
- x.center[0]
2003
+ const v = [
2004
+ y.center[1],
2005
+ y.center[0]
2003
2006
  ];
2004
- let v;
2007
+ let x;
2005
2008
  if (e instanceof Function) {
2006
- if (v = e(r, x), !v)
2009
+ if (x = e(r, y), !x)
2007
2010
  continue;
2008
2011
  } else
2009
- v = (typeof e == "object" ? new T.Marker(d, e) : a(d, !0)).addTo(r).bindTooltip(
2010
- x.place_type[0] === "reverse" ? x.place_name : x.place_name.replace(/,.*/, ""),
2012
+ x = (typeof e == "object" ? new T.Marker(v, e) : a(v, !0)).addTo(r).bindTooltip(
2013
+ y.place_type[0] === "reverse" ? y.place_name : y.place_name.replace(/,.*/, ""),
2011
2014
  {
2012
2015
  direction: "top"
2013
2016
  }
2014
2017
  );
2015
- const m = v.getElement();
2016
- m && (m.addEventListener("click", (w) => {
2017
- w.stopPropagation(), u == null || u({ type: "markerClick", id: x.id });
2018
+ const m = x.getElement();
2019
+ m && (m.addEventListener("click", (b) => {
2020
+ b.stopPropagation(), u == null || u({ type: "markerClick", id: y.id });
2018
2021
  }), m.addEventListener("mouseenter", () => {
2019
- u == null || u({ type: "markerMouseEnter", id: x.id });
2022
+ u == null || u({ type: "markerMouseEnter", id: y.id });
2020
2023
  }), m.addEventListener("mouseleave", () => {
2021
- u == null || u({ type: "markerMouseLeave", id: x.id });
2022
- }), m.classList.toggle("marker-fuzzy", !!x.matching_text)), l.push(v);
2024
+ u == null || u({ type: "markerMouseLeave", id: y.id });
2025
+ }), m.classList.toggle("marker-fuzzy", !!y.matching_text)), l.push(x);
2023
2026
  }
2024
2027
  },
2025
2028
  setSelectedMarker(h) {
2026
- var g, y;
2027
- c && ((g = c.getElement()) == null || g.classList.toggle("marker-selected", !1)), c = h > -1 ? l[h] : void 0, (y = c == null ? void 0 : c.getElement()) == null || y.classList.toggle("marker-selected", !0);
2029
+ var g, d;
2030
+ c && ((g = c.getElement()) == null || g.classList.toggle("marker-selected", !1)), c = h > -1 ? l[h] : void 0, (d = c == null ? void 0 : c.getElement()) == null || d.classList.toggle("marker-selected", !0);
2028
2031
  },
2029
2032
  getCenterAndZoom() {
2030
2033
  const h = r.getCenter();