@performant-software/geospatial 3.1.7-beta.1 → 3.1.7-beta.3

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 (474) hide show
  1. package/dist/index.cjs100.js +1 -1
  2. package/dist/index.cjs103.js +1 -1
  3. package/dist/index.cjs104.js +1 -1
  4. package/dist/index.cjs106.js +1 -1
  5. package/dist/index.cjs107.js +1 -1
  6. package/dist/index.cjs108.js +1 -1
  7. package/dist/index.cjs109.js +1 -1
  8. package/dist/index.cjs114.js +1 -1
  9. package/dist/index.cjs115.js +1 -1
  10. package/dist/index.cjs116.js +1 -1
  11. package/dist/index.cjs117.js +1 -1
  12. package/dist/index.cjs120.js +1 -1
  13. package/dist/index.cjs121.js +1 -1
  14. package/dist/index.cjs122.js +1 -1
  15. package/dist/index.cjs126.js +1 -1
  16. package/dist/index.cjs129.js +1 -1
  17. package/dist/index.cjs133.js +1 -1
  18. package/dist/index.cjs136.js +1 -1
  19. package/dist/index.cjs14.js +1 -1
  20. package/dist/index.cjs144.js +1 -1
  21. package/dist/index.cjs145.js +1 -1
  22. package/dist/index.cjs146.js +1 -1
  23. package/dist/index.cjs147.js +1 -1
  24. package/dist/index.cjs148.js +1 -1
  25. package/dist/index.cjs149.js +1 -1
  26. package/dist/index.cjs15.js +1 -1
  27. package/dist/index.cjs150.js +1 -1
  28. package/dist/index.cjs152.js +1 -1
  29. package/dist/index.cjs153.js +1 -1
  30. package/dist/index.cjs154.js +1 -1
  31. package/dist/index.cjs155.js +1 -1
  32. package/dist/index.cjs156.js +1 -1
  33. package/dist/index.cjs157.js +1 -1
  34. package/dist/index.cjs158.js +1 -1
  35. package/dist/index.cjs159.js +1 -1
  36. package/dist/index.cjs16.js +1 -1
  37. package/dist/index.cjs160.js +1 -1
  38. package/dist/index.cjs163.js +1 -1
  39. package/dist/index.cjs164.js +1 -1
  40. package/dist/index.cjs166.js +1 -1
  41. package/dist/index.cjs167.js +1 -1
  42. package/dist/index.cjs168.js +1 -1
  43. package/dist/index.cjs169.js +1 -1
  44. package/dist/index.cjs17.js +1 -1
  45. package/dist/index.cjs170.js +1 -1
  46. package/dist/index.cjs171.js +1 -1
  47. package/dist/index.cjs172.js +1 -1
  48. package/dist/index.cjs173.js +1 -1
  49. package/dist/index.cjs179.js +1 -1
  50. package/dist/index.cjs18.js +1 -1
  51. package/dist/index.cjs180.js +1 -1
  52. package/dist/index.cjs181.js +1 -1
  53. package/dist/index.cjs182.js +1 -1
  54. package/dist/index.cjs183.js +1 -1
  55. package/dist/index.cjs186.js +1 -1
  56. package/dist/index.cjs186.js.map +1 -1
  57. package/dist/index.cjs187.js +1 -1
  58. package/dist/index.cjs187.js.map +1 -1
  59. package/dist/index.cjs188.js +1 -1
  60. package/dist/index.cjs188.js.map +1 -1
  61. package/dist/index.cjs189.js +1 -1
  62. package/dist/index.cjs189.js.map +1 -1
  63. package/dist/index.cjs19.js +1 -1
  64. package/dist/index.cjs190.js +1 -1
  65. package/dist/index.cjs190.js.map +1 -1
  66. package/dist/index.cjs191.js +1 -1
  67. package/dist/index.cjs191.js.map +1 -1
  68. package/dist/index.cjs192.js +1 -1
  69. package/dist/index.cjs192.js.map +1 -1
  70. package/dist/index.cjs193.js +1 -1
  71. package/dist/index.cjs193.js.map +1 -1
  72. package/dist/index.cjs194.js +1 -1
  73. package/dist/index.cjs194.js.map +1 -1
  74. package/dist/index.cjs195.js +1 -1
  75. package/dist/index.cjs195.js.map +1 -1
  76. package/dist/index.cjs196.js +1 -1
  77. package/dist/index.cjs196.js.map +1 -1
  78. package/dist/index.cjs197.js +1 -1
  79. package/dist/index.cjs197.js.map +1 -1
  80. package/dist/index.cjs198.js +1 -1
  81. package/dist/index.cjs198.js.map +1 -1
  82. package/dist/index.cjs199.js +1 -1
  83. package/dist/index.cjs199.js.map +1 -1
  84. package/dist/index.cjs20.js +1 -1
  85. package/dist/index.cjs200.js +1 -1
  86. package/dist/index.cjs200.js.map +1 -1
  87. package/dist/index.cjs201.js +1 -1
  88. package/dist/index.cjs201.js.map +1 -1
  89. package/dist/index.cjs202.js +1 -1
  90. package/dist/index.cjs202.js.map +1 -1
  91. package/dist/index.cjs203.js +1 -1
  92. package/dist/index.cjs203.js.map +1 -1
  93. package/dist/index.cjs204.js +1 -1
  94. package/dist/index.cjs204.js.map +1 -1
  95. package/dist/index.cjs205.js +1 -1
  96. package/dist/index.cjs205.js.map +1 -1
  97. package/dist/index.cjs206.js +1 -1
  98. package/dist/index.cjs206.js.map +1 -1
  99. package/dist/index.cjs207.js +1 -1
  100. package/dist/index.cjs207.js.map +1 -1
  101. package/dist/index.cjs208.js +1 -1
  102. package/dist/index.cjs208.js.map +1 -1
  103. package/dist/index.cjs209.js +1 -1
  104. package/dist/index.cjs209.js.map +1 -1
  105. package/dist/index.cjs21.js +1 -1
  106. package/dist/index.cjs210.js +1 -1
  107. package/dist/index.cjs210.js.map +1 -1
  108. package/dist/index.cjs211.js +1 -1
  109. package/dist/index.cjs211.js.map +1 -1
  110. package/dist/index.cjs212.js +1 -1
  111. package/dist/index.cjs212.js.map +1 -1
  112. package/dist/index.cjs213.js +1 -1
  113. package/dist/index.cjs213.js.map +1 -1
  114. package/dist/index.cjs214.js +1 -1
  115. package/dist/index.cjs214.js.map +1 -1
  116. package/dist/index.cjs215.js +1 -1
  117. package/dist/index.cjs215.js.map +1 -1
  118. package/dist/index.cjs216.js +1 -1
  119. package/dist/index.cjs216.js.map +1 -1
  120. package/dist/index.cjs217.js +1 -1
  121. package/dist/index.cjs217.js.map +1 -1
  122. package/dist/index.cjs218.js +1 -1
  123. package/dist/index.cjs218.js.map +1 -1
  124. package/dist/index.cjs219.js +1 -1
  125. package/dist/index.cjs219.js.map +1 -1
  126. package/dist/index.cjs22.js +1 -1
  127. package/dist/index.cjs220.js +1 -1
  128. package/dist/index.cjs220.js.map +1 -1
  129. package/dist/index.cjs221.js +1 -1
  130. package/dist/index.cjs221.js.map +1 -1
  131. package/dist/index.cjs222.js +1 -1
  132. package/dist/index.cjs222.js.map +1 -1
  133. package/dist/index.cjs223.js +1 -1
  134. package/dist/index.cjs223.js.map +1 -1
  135. package/dist/index.cjs224.js +1 -1
  136. package/dist/index.cjs224.js.map +1 -1
  137. package/dist/index.cjs225.js +1 -1
  138. package/dist/index.cjs225.js.map +1 -1
  139. package/dist/index.cjs226.js +1 -1
  140. package/dist/index.cjs226.js.map +1 -1
  141. package/dist/index.cjs227.js +1 -1
  142. package/dist/index.cjs227.js.map +1 -1
  143. package/dist/index.cjs228.js +1 -1
  144. package/dist/index.cjs228.js.map +1 -1
  145. package/dist/index.cjs229.js +1 -1
  146. package/dist/index.cjs229.js.map +1 -1
  147. package/dist/index.cjs23.js +1 -1
  148. package/dist/index.cjs230.js +1 -1
  149. package/dist/index.cjs230.js.map +1 -1
  150. package/dist/index.cjs231.js +1 -1
  151. package/dist/index.cjs231.js.map +1 -1
  152. package/dist/index.cjs232.js +1 -1
  153. package/dist/index.cjs232.js.map +1 -1
  154. package/dist/index.cjs233.js +1 -1
  155. package/dist/index.cjs233.js.map +1 -1
  156. package/dist/index.cjs234.js +1 -1
  157. package/dist/index.cjs234.js.map +1 -1
  158. package/dist/index.cjs235.js +1 -1
  159. package/dist/index.cjs235.js.map +1 -1
  160. package/dist/index.cjs236.js +7 -1
  161. package/dist/index.cjs236.js.map +1 -1
  162. package/dist/index.cjs237.js +1 -1
  163. package/dist/index.cjs237.js.map +1 -1
  164. package/dist/index.cjs238.js +1 -7
  165. package/dist/index.cjs238.js.map +1 -1
  166. package/dist/index.cjs239.js +1 -1
  167. package/dist/index.cjs239.js.map +1 -1
  168. package/dist/index.cjs24.js +1 -1
  169. package/dist/index.cjs240.js +1 -1
  170. package/dist/index.cjs241.js +1 -1
  171. package/dist/index.cjs241.js.map +1 -1
  172. package/dist/index.cjs242.js +1 -1
  173. package/dist/index.cjs242.js.map +1 -1
  174. package/dist/index.cjs244.js +1 -1
  175. package/dist/index.cjs247.js +1 -1
  176. package/dist/index.cjs253.js +1 -1
  177. package/dist/index.cjs259.js +1 -1
  178. package/dist/index.cjs264.js +1 -1
  179. package/dist/index.cjs27.js +1 -1
  180. package/dist/index.cjs28.js +1 -1
  181. package/dist/index.cjs29.js +1 -1
  182. package/dist/index.cjs31.js +1 -1
  183. package/dist/index.cjs33.js +1 -1
  184. package/dist/index.cjs34.js +1 -1
  185. package/dist/index.cjs37.js +1 -1
  186. package/dist/index.cjs39.js +1 -1
  187. package/dist/index.cjs41.js +1 -1
  188. package/dist/index.cjs42.js +1 -1
  189. package/dist/index.cjs43.js +1 -1
  190. package/dist/index.cjs45.js +1 -1
  191. package/dist/index.cjs46.js +1 -1
  192. package/dist/index.cjs47.js +1 -1
  193. package/dist/index.cjs49.js +1 -1
  194. package/dist/index.cjs50.js +1 -1
  195. package/dist/index.cjs51.js +1 -1
  196. package/dist/index.cjs55.js +1 -1
  197. package/dist/index.cjs56.js +1 -1
  198. package/dist/index.cjs57.js +1 -1
  199. package/dist/index.cjs59.js +1 -1
  200. package/dist/index.cjs60.js +1 -1
  201. package/dist/index.cjs62.js +1 -1
  202. package/dist/index.cjs68.js +1 -1
  203. package/dist/index.cjs70.js +1 -1
  204. package/dist/index.cjs71.js +1 -1
  205. package/dist/index.cjs71.js.map +1 -1
  206. package/dist/index.cjs72.js +1 -1
  207. package/dist/index.cjs73.js +9 -1
  208. package/dist/index.cjs73.js.map +1 -1
  209. package/dist/index.cjs74.js +17 -1
  210. package/dist/index.cjs74.js.map +1 -1
  211. package/dist/index.cjs75.js +743 -1
  212. package/dist/index.cjs75.js.map +1 -1
  213. package/dist/index.cjs76.js +1 -9
  214. package/dist/index.cjs76.js.map +1 -1
  215. package/dist/index.cjs77.js +1 -17
  216. package/dist/index.cjs77.js.map +1 -1
  217. package/dist/index.cjs78.js +1 -1
  218. package/dist/index.cjs78.js.map +1 -1
  219. package/dist/index.cjs79.js +1 -1
  220. package/dist/index.cjs79.js.map +1 -1
  221. package/dist/index.cjs8.js +1 -1
  222. package/dist/index.cjs8.js.map +1 -1
  223. package/dist/index.cjs80.js +1 -743
  224. package/dist/index.cjs80.js.map +1 -1
  225. package/dist/index.cjs81.js +1 -1
  226. package/dist/index.cjs81.js.map +1 -1
  227. package/dist/index.cjs85.js +1 -1
  228. package/dist/index.cjs92.js +1 -1
  229. package/dist/index.cjs93.js +1 -1
  230. package/dist/index.cjs94.js +1 -1
  231. package/dist/index.cjs95.js +1 -1
  232. package/dist/index.cjs96.js +1 -1
  233. package/dist/index.cjs97.js +1 -1
  234. package/dist/index.cjs98.js +1 -1
  235. package/dist/index.cjs99.js +1 -1
  236. package/dist/index.es100.js +1 -1
  237. package/dist/index.es103.js +1 -1
  238. package/dist/index.es104.js +1 -1
  239. package/dist/index.es106.js +3 -3
  240. package/dist/index.es107.js +1 -1
  241. package/dist/index.es108.js +2 -2
  242. package/dist/index.es109.js +1 -1
  243. package/dist/index.es114.js +1 -1
  244. package/dist/index.es115.js +1 -1
  245. package/dist/index.es116.js +1 -1
  246. package/dist/index.es117.js +1 -1
  247. package/dist/index.es120.js +2 -2
  248. package/dist/index.es121.js +2 -2
  249. package/dist/index.es122.js +1 -1
  250. package/dist/index.es126.js +2 -2
  251. package/dist/index.es129.js +1 -1
  252. package/dist/index.es133.js +1 -1
  253. package/dist/index.es136.js +1 -1
  254. package/dist/index.es14.js +2 -2
  255. package/dist/index.es144.js +1 -1
  256. package/dist/index.es145.js +1 -1
  257. package/dist/index.es146.js +1 -1
  258. package/dist/index.es147.js +2 -2
  259. package/dist/index.es148.js +1 -1
  260. package/dist/index.es149.js +1 -1
  261. package/dist/index.es15.js +4 -4
  262. package/dist/index.es150.js +1 -1
  263. package/dist/index.es152.js +2 -2
  264. package/dist/index.es153.js +2 -2
  265. package/dist/index.es154.js +1 -1
  266. package/dist/index.es155.js +1 -1
  267. package/dist/index.es156.js +1 -1
  268. package/dist/index.es157.js +1 -1
  269. package/dist/index.es158.js +2 -2
  270. package/dist/index.es159.js +2 -2
  271. package/dist/index.es16.js +3 -3
  272. package/dist/index.es160.js +1 -1
  273. package/dist/index.es163.js +2 -2
  274. package/dist/index.es164.js +2 -2
  275. package/dist/index.es166.js +2 -2
  276. package/dist/index.es167.js +1 -1
  277. package/dist/index.es168.js +2 -2
  278. package/dist/index.es169.js +1 -1
  279. package/dist/index.es17.js +3 -3
  280. package/dist/index.es170.js +2 -2
  281. package/dist/index.es171.js +1 -1
  282. package/dist/index.es172.js +1 -1
  283. package/dist/index.es173.js +1 -1
  284. package/dist/index.es179.js +1 -1
  285. package/dist/index.es18.js +1 -1
  286. package/dist/index.es180.js +2 -2
  287. package/dist/index.es181.js +1 -1
  288. package/dist/index.es182.js +1 -1
  289. package/dist/index.es183.js +1 -1
  290. package/dist/index.es186.js +144 -239
  291. package/dist/index.es186.js.map +1 -1
  292. package/dist/index.es187.js +6 -42
  293. package/dist/index.es187.js.map +1 -1
  294. package/dist/index.es188.js +5 -3
  295. package/dist/index.es188.js.map +1 -1
  296. package/dist/index.es189.js +3 -13
  297. package/dist/index.es189.js.map +1 -1
  298. package/dist/index.es19.js +1 -1
  299. package/dist/index.es190.js +3 -13
  300. package/dist/index.es190.js.map +1 -1
  301. package/dist/index.es191.js +33 -28
  302. package/dist/index.es191.js.map +1 -1
  303. package/dist/index.es192.js +3 -16
  304. package/dist/index.es192.js.map +1 -1
  305. package/dist/index.es193.js +22 -4
  306. package/dist/index.es193.js.map +1 -1
  307. package/dist/index.es194.js +2 -150
  308. package/dist/index.es194.js.map +1 -1
  309. package/dist/index.es195.js +3 -9
  310. package/dist/index.es195.js.map +1 -1
  311. package/dist/index.es196.js +2 -7
  312. package/dist/index.es196.js.map +1 -1
  313. package/dist/index.es197.js +33 -3
  314. package/dist/index.es197.js.map +1 -1
  315. package/dist/index.es198.js +14 -2
  316. package/dist/index.es198.js.map +1 -1
  317. package/dist/index.es199.js +13 -35
  318. package/dist/index.es199.js.map +1 -1
  319. package/dist/index.es20.js +1 -1
  320. package/dist/index.es200.js +11 -3
  321. package/dist/index.es200.js.map +1 -1
  322. package/dist/index.es201.js +7 -22
  323. package/dist/index.es201.js.map +1 -1
  324. package/dist/index.es202.js +7 -2
  325. package/dist/index.es202.js.map +1 -1
  326. package/dist/index.es203.js +6 -3
  327. package/dist/index.es203.js.map +1 -1
  328. package/dist/index.es204.js +5 -2
  329. package/dist/index.es204.js.map +1 -1
  330. package/dist/index.es205.js +3 -31
  331. package/dist/index.es205.js.map +1 -1
  332. package/dist/index.es206.js +9 -13
  333. package/dist/index.es206.js.map +1 -1
  334. package/dist/index.es207.js +18 -13
  335. package/dist/index.es207.js.map +1 -1
  336. package/dist/index.es208.js +20 -8
  337. package/dist/index.es208.js.map +1 -1
  338. package/dist/index.es209.js +11 -6
  339. package/dist/index.es209.js.map +1 -1
  340. package/dist/index.es21.js +1 -1
  341. package/dist/index.es210.js +14 -4
  342. package/dist/index.es210.js.map +1 -1
  343. package/dist/index.es211.js +6 -4
  344. package/dist/index.es211.js.map +1 -1
  345. package/dist/index.es212.js +8 -3
  346. package/dist/index.es212.js.map +1 -1
  347. package/dist/index.es213.js +7 -3
  348. package/dist/index.es213.js.map +1 -1
  349. package/dist/index.es214.js +21 -8
  350. package/dist/index.es214.js.map +1 -1
  351. package/dist/index.es215.js +8 -17
  352. package/dist/index.es215.js.map +1 -1
  353. package/dist/index.es216.js +9 -21
  354. package/dist/index.es216.js.map +1 -1
  355. package/dist/index.es217.js +4 -13
  356. package/dist/index.es217.js.map +1 -1
  357. package/dist/index.es218.js +10 -14
  358. package/dist/index.es218.js.map +1 -1
  359. package/dist/index.es219.js +7 -5
  360. package/dist/index.es219.js.map +1 -1
  361. package/dist/index.es22.js +1 -1
  362. package/dist/index.es220.js +19 -6
  363. package/dist/index.es220.js.map +1 -1
  364. package/dist/index.es221.js +10 -6
  365. package/dist/index.es221.js.map +1 -1
  366. package/dist/index.es222.js +16 -20
  367. package/dist/index.es222.js.map +1 -1
  368. package/dist/index.es223.js +4 -10
  369. package/dist/index.es223.js.map +1 -1
  370. package/dist/index.es224.js +18 -9
  371. package/dist/index.es224.js.map +1 -1
  372. package/dist/index.es225.js +12 -4
  373. package/dist/index.es225.js.map +1 -1
  374. package/dist/index.es226.js +3 -10
  375. package/dist/index.es226.js.map +1 -1
  376. package/dist/index.es227.js +4 -7
  377. package/dist/index.es227.js.map +1 -1
  378. package/dist/index.es228.js +242 -20
  379. package/dist/index.es228.js.map +1 -1
  380. package/dist/index.es229.js +41 -9
  381. package/dist/index.es229.js.map +1 -1
  382. package/dist/index.es23.js +1 -1
  383. package/dist/index.es230.js +3 -18
  384. package/dist/index.es230.js.map +1 -1
  385. package/dist/index.es231.js +10 -3
  386. package/dist/index.es231.js.map +1 -1
  387. package/dist/index.es232.js +10 -17
  388. package/dist/index.es232.js.map +1 -1
  389. package/dist/index.es233.js +30 -11
  390. package/dist/index.es233.js.map +1 -1
  391. package/dist/index.es234.js +13 -3
  392. package/dist/index.es234.js.map +1 -1
  393. package/dist/index.es235.js +4 -4
  394. package/dist/index.es235.js.map +1 -1
  395. package/dist/index.es236.js +7506 -20
  396. package/dist/index.es236.js.map +1 -1
  397. package/dist/index.es237.js +2 -23
  398. package/dist/index.es237.js.map +1 -1
  399. package/dist/index.es238.js +7 -7506
  400. package/dist/index.es238.js.map +1 -1
  401. package/dist/index.es239.js +6 -2
  402. package/dist/index.es239.js.map +1 -1
  403. package/dist/index.es24.js +1 -1
  404. package/dist/index.es240.js +1 -1
  405. package/dist/index.es241.js +19 -6
  406. package/dist/index.es241.js.map +1 -1
  407. package/dist/index.es242.js +22 -5
  408. package/dist/index.es242.js.map +1 -1
  409. package/dist/index.es244.js +1 -1
  410. package/dist/index.es247.js +1 -1
  411. package/dist/index.es253.js +2 -2
  412. package/dist/index.es259.js +1 -1
  413. package/dist/index.es264.js +2 -2
  414. package/dist/index.es27.js +1 -1
  415. package/dist/index.es28.js +2 -2
  416. package/dist/index.es29.js +2 -2
  417. package/dist/index.es31.js +2 -2
  418. package/dist/index.es33.js +2 -2
  419. package/dist/index.es34.js +2 -2
  420. package/dist/index.es37.js +1 -1
  421. package/dist/index.es39.js +2 -2
  422. package/dist/index.es41.js +2 -2
  423. package/dist/index.es42.js +2 -2
  424. package/dist/index.es43.js +2 -2
  425. package/dist/index.es45.js +1 -1
  426. package/dist/index.es46.js +2 -2
  427. package/dist/index.es47.js +2 -2
  428. package/dist/index.es49.js +1 -1
  429. package/dist/index.es50.js +1 -1
  430. package/dist/index.es51.js +1 -1
  431. package/dist/index.es55.js +2 -2
  432. package/dist/index.es56.js +3 -3
  433. package/dist/index.es57.js +1 -1
  434. package/dist/index.es59.js +1 -1
  435. package/dist/index.es60.js +1 -1
  436. package/dist/index.es62.js +1 -1
  437. package/dist/index.es68.js +1 -1
  438. package/dist/index.es70.js +12 -12
  439. package/dist/index.es71.js +7 -1992
  440. package/dist/index.es71.js.map +1 -1
  441. package/dist/index.es72.js +2 -6
  442. package/dist/index.es72.js.map +1 -1
  443. package/dist/index.es73.js +26 -2
  444. package/dist/index.es73.js.map +1 -1
  445. package/dist/index.es74.js +588 -7
  446. package/dist/index.es74.js.map +1 -1
  447. package/dist/index.es75.js +21352 -2
  448. package/dist/index.es75.js.map +1 -1
  449. package/dist/index.es76.js +2 -26
  450. package/dist/index.es76.js.map +1 -1
  451. package/dist/index.es77.js +1960 -556
  452. package/dist/index.es77.js.map +1 -1
  453. package/dist/index.es78.js +5 -105
  454. package/dist/index.es78.js.map +1 -1
  455. package/dist/index.es79.js +2 -10
  456. package/dist/index.es79.js.map +1 -1
  457. package/dist/index.es8.js +25 -23
  458. package/dist/index.es8.js.map +1 -1
  459. package/dist/index.es80.js +104 -21350
  460. package/dist/index.es80.js.map +1 -1
  461. package/dist/index.es81.js +10 -2
  462. package/dist/index.es81.js.map +1 -1
  463. package/dist/index.es85.js +1 -1
  464. package/dist/index.es92.js +1 -1
  465. package/dist/index.es93.js +1 -1
  466. package/dist/index.es94.js +1 -1
  467. package/dist/index.es95.js +1 -1
  468. package/dist/index.es96.js +1 -1
  469. package/dist/index.es97.js +1 -1
  470. package/dist/index.es98.js +1 -1
  471. package/dist/index.es99.js +1 -1
  472. package/package.json +1 -1
  473. package/src/components/MapDraw.js +4 -2
  474. package/types/components/MapDraw.js.flow +4 -2
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),s=require("./index.cjs79.js");var O=["attr","size","title"];function v(t,e){if(t==null)return{};var r=y(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function y(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?m(Object(r),!0).forEach(function(n){j(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function j(t,e,r){return e=P(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(t){var e=h(t,"string");return typeof e=="symbol"?e:e+""}function h(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function b(t){return t&&t.map((e,r)=>c.createElement(e.tag,u({key:r},e.attr),b(e.child)))}function w(t){return e=>c.createElement(p,l({attr:u({},t.attr)},e),b(t.child))}function p(t){var e=r=>{var{attr:n,size:i,title:o}=t,g=v(t,O),f=i||r.size||"1em",a;return r.className&&(a=r.className),t.className&&(a=(a?a+" ":"")+t.className),c.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,g,{className:a,style:u(u({color:t.color||r.color},r.style),t.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),o&&c.createElement("title",null,o),t.children)};return s.IconContext!==void 0?c.createElement(s.IconContext.Consumer,null,r=>e(r)):e(s.DefaultContext)}exports.GenIcon=w;exports.IconBase=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=l;
2
2
  //# sourceMappingURL=index.cjs78.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs78.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","_extends","i","ownKeys","e","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","_toPrimitive","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","svgProps","computedSize","className","IconContext","DefaultContext"],"mappings":"uIAAA,IAAIA,EAAY,CAAC,OAAQ,OAAQ,OAAO,EACxC,SAASC,EAAyBC,EAAQC,EAAU,CAAE,GAAID,GAAU,KAAM,MAAO,CAAA,EAAI,IAAIE,EAASC,EAA8BH,EAAQC,CAAQ,EAAOG,EAAK,EAAG,GAAI,OAAO,sBAAuB,CAAE,IAAIC,EAAmB,OAAO,sBAAsBL,CAAM,EAAG,IAAK,EAAI,EAAG,EAAIK,EAAiB,OAAQ,IAAOD,EAAMC,EAAiB,CAAC,EAAO,EAAAJ,EAAS,QAAQG,CAAG,GAAK,IAAkB,OAAO,UAAU,qBAAqB,KAAKJ,EAAQI,CAAG,IAAaF,EAAOE,CAAG,EAAIJ,EAAOI,CAAG,EAAK,CAAE,OAAOF,CAAQ,CAC3e,SAASC,EAA8BH,EAAQC,EAAU,CAAE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ASD,EAAO,CAC9B,IAAIE,EAAOC,GAAQ,CACjB,GAAI,CACA,KAAAC,EACA,KAAAC,EACA,MAAAC,CACR,EAAUN,EACJO,EAAWjC,EAAyB0B,EAAO3B,CAAS,EAClDmC,EAAeH,GAAQF,EAAK,MAAQ,MACpCM,EACJ,OAAIN,EAAK,YAAWM,EAAYN,EAAK,WACjCH,EAAM,YAAWS,GAAaA,EAAYA,EAAY,IAAM,IAAMT,EAAM,WACxDH,EAAM,cAAc,MAAOhB,EAAS,CACtD,OAAQ,eACR,KAAM,eACN,YAAa,GACnB,EAAOsB,EAAK,KAAMC,EAAMG,EAAU,CAC5B,UAAWE,EACX,MAAOrB,EAAcA,EAAc,CACjC,MAAOY,EAAM,OAASG,EAAK,KACnC,EAASA,EAAK,KAAK,EAAGH,EAAM,KAAK,EAC3B,OAAQQ,EACR,MAAOA,EACP,MAAO,4BACb,CAAK,EAAGF,GAAsBT,EAAM,cAAc,QAAS,KAAMS,CAAK,EAAGN,EAAM,QAAQ,CACrF,EACA,OAAOU,EAAAA,cAAgB,OAAyBb,EAAM,cAAca,EAAAA,YAAY,SAAU,KAAMP,GAAQD,EAAKC,CAAI,CAAC,EAAID,EAAKS,EAAAA,cAAc,CAC3I","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs78.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var t={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=e.createContext&&e.createContext(t);exports.DefaultContext=t;exports.IconContext=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
2
2
  //# sourceMappingURL=index.cjs79.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs79.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":"yGACU,IAACA,EAAiB,CAC1B,MAAO,OACP,KAAM,OACN,UAAW,OACX,MAAO,OACP,KAAM,MACR,EACWC,EAAcC,EAAM,eAA8BA,EAAM,cAAcF,CAAc","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs79.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";const i=require("./index.cjs27.js"),a=require("./index.cjs14.js"),x=require("./index.cjs31.js"),o=require("react"),C=require("./index.cjs15.js");require("./index.cjs16.js");require("./index.cjs17.js");require("./index.cjs18.js");const R=require("./index.cjs19.js");require("./index.cjs20.js");const b=require("./index.cjs21.js");require("./index.cjs22.js");require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs26.js");const D=require("./index.cjs35.js");require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");require("./index.cjs50.js");require("./index.cjs51.js");require("./index.cjs52.js");require("./index.cjs53.js");require("./index.cjs54.js");require("./index.cjs55.js");require("./index.cjs56.js");require("./index.cjs57.js");require("./index.cjs58.js");require("./index.cjs59.js");require("./index.cjs60.js");require("./index.cjs61.js");require("./index.cjs62.js");const h=require("./index.cjs2.js"),E=require("./index.cjs4.js"),G=require("./index.cjs12.js");;/* empty css */;/* empty css */const j=require("./index.cjs66.js");a.constants.classes.CONTROL_BASE="maplibregl-ctrl";a.constants.classes.CONTROL_PREFIX="maplibregl-ctrl-";a.constants.classes.CONTROL_GROUP="maplibregl-ctrl-group";const v=2,S=1e3,u={geometryCollection:"GeometryCollection",point:"Point",polygon:["Polygon","MultiPolygon"]},q=e=>{const[c,d]=o.useState(!1),t=o.useRef(),s=o.useRef(),g=o.useCallback(r=>{if(!r)return!1;const{geometry:{type:l}}=r;return e.geocoding==="point"&&l===u.point||e.geocoding==="polygon"&&u.polygon.includes(l)},[e.geocoding]),n=o.useCallback(()=>{console.log("fired callback"),console.log(t.current.getAll()),e.onChange(t.current.getAll())},[e.onChange]),f=o.useCallback(({detail:r})=>{g(r)?(console.log("valid"),console.log(r),console.log("before add"),console.log(t.current.getAll()),t.current.add(r.geometry),console.log("after add"),console.log(t.current.getAll()),n(),e.onGeocodingSelection&&e.onGeocodingSelection(r)):(console.log("invalid"),console.log(r))},[g,n,e.onGeocodingSelection]),m=o.useMemo(()=>`${e.mapStyle}?key=${e.apiKey}`,[e.apiKey,e.mapStyle]),y=o.useMemo(()=>({height:500,width:"100%",...e.style||{}}),[e.style]);return o.useEffect(()=>{if(c&&e.data){const r=G.getBoundingBox(e.data,e.buffer);r&&s.current.fitBounds(r,{duration:e.zoomDuration}),e.data.type===u.geometryCollection?D.each(e.data.geometries,l=>{t.current.add(j.feature(l))}):t.current.add(e.data)}},[c,e.data]),i.jsxRuntimeExports.jsxs(C.Map,{attributionControl:!1,cooperativeGestures:e.cooperativeGestures,mapLib:x.default,maxPitch:e.maxPitch,onLoad:()=>d(!0),preserveDrawingBuffer:e.preserveDrawingBuffer,ref:s,style:y,mapStyle:m,children:[i.jsxRuntimeExports.jsx(h,{ref:t,controls:{line_string:!0,point:!0,polygon:!0,trash:!0},displayControlsDefault:!1,onCreate:n,onUpdate:n,onDelete:n,position:"bottom-left"}),e.geocoding&&i.jsxRuntimeExports.jsx(E,{apiKey:e.apiKey,marker:!1,pickedResultStyle:e.geocoding==="polygon"?"full-geometry":"marker-only",position:"top-left",onSelection:f,showResultMarkers:!1},e.geocoding),e.navigation&&i.jsxRuntimeExports.jsx(b.NavigationControl,{}),e.fullscreen&&i.jsxRuntimeExports.jsx(R.FullscreenControl,{}),e.children]})};q.defaultProps={buffer:v,cooperativeGestures:!0,preserveDrawingBuffer:!1,zoomDuration:S};module.exports=q;
1
+ "use strict";const l=require("./index.cjs27.js"),a=require("./index.cjs14.js"),x=require("./index.cjs31.js"),o=require("react"),C=require("./index.cjs15.js");require("./index.cjs16.js");require("./index.cjs17.js");require("./index.cjs18.js");const R=require("./index.cjs19.js");require("./index.cjs20.js");const b=require("./index.cjs21.js");require("./index.cjs22.js");require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs26.js");const D=require("./index.cjs35.js");require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");require("./index.cjs50.js");require("./index.cjs51.js");require("./index.cjs52.js");require("./index.cjs53.js");require("./index.cjs54.js");require("./index.cjs55.js");require("./index.cjs56.js");require("./index.cjs57.js");require("./index.cjs58.js");require("./index.cjs59.js");require("./index.cjs60.js");require("./index.cjs61.js");require("./index.cjs62.js");const h=require("./index.cjs2.js"),E=require("./index.cjs4.js"),G=require("./index.cjs12.js");;/* empty css */;/* empty css */const j=require("./index.cjs66.js");a.constants.classes.CONTROL_BASE="maplibregl-ctrl";a.constants.classes.CONTROL_PREFIX="maplibregl-ctrl-";a.constants.classes.CONTROL_GROUP="maplibregl-ctrl-group";const S=2,v=1e3,u={geometryCollection:"GeometryCollection",point:"Point",polygon:["Polygon","MultiPolygon"]},d=e=>{const[c,q]=o.useState(!1),t=o.useRef(),s=o.useRef(),g=o.useCallback(n=>{if(!n)return!1;const{geometry:{type:r}}=n;return e.geocoding==="point"&&r===u.point||e.geocoding==="polygon"&&u.polygon.includes(r)},[e.geocoding]),i=o.useCallback(()=>{console.log("fired callback"),console.log(t.current.getAll()),e.onChange(t.current.getAll())},[e.onChange]),f=o.useCallback(n=>{console.log(n);const{detail:r}=n;g(r)?(console.log("valid"),console.log(r),console.log("before add"),console.log(t.current.getAll()),t.current.add(r.geometry),console.log("after add"),console.log(t.current.getAll()),i(),e.onGeocodingSelection&&e.onGeocodingSelection(r)):(console.log("invalid"),console.log(r))},[g,i,e.onGeocodingSelection]),m=o.useMemo(()=>`${e.mapStyle}?key=${e.apiKey}`,[e.apiKey,e.mapStyle]),y=o.useMemo(()=>({height:500,width:"100%",...e.style||{}}),[e.style]);return o.useEffect(()=>{if(c&&e.data){const n=G.getBoundingBox(e.data,e.buffer);n&&s.current.fitBounds(n,{duration:e.zoomDuration}),e.data.type===u.geometryCollection?D.each(e.data.geometries,r=>{t.current.add(j.feature(r))}):t.current.add(e.data)}},[c,e.data]),l.jsxRuntimeExports.jsxs(C.Map,{attributionControl:!1,cooperativeGestures:e.cooperativeGestures,mapLib:x.default,maxPitch:e.maxPitch,onLoad:()=>q(!0),preserveDrawingBuffer:e.preserveDrawingBuffer,ref:s,style:y,mapStyle:m,children:[l.jsxRuntimeExports.jsx(h,{ref:t,controls:{line_string:!0,point:!0,polygon:!0,trash:!0},displayControlsDefault:!1,onCreate:i,onUpdate:i,onDelete:i,position:"bottom-left"}),e.geocoding&&l.jsxRuntimeExports.jsx(E,{apiKey:e.apiKey,marker:!1,pickedResultStyle:e.geocoding==="polygon"?"full-geometry":"marker-only",position:"top-left",onSelection:f,showResultMarkers:!1},e.geocoding),e.navigation&&l.jsxRuntimeExports.jsx(b.NavigationControl,{}),e.fullscreen&&l.jsxRuntimeExports.jsx(R.FullscreenControl,{}),e.children]})};d.defaultProps={buffer:S,cooperativeGestures:!0,preserveDrawingBuffer:!1,zoomDuration:v};module.exports=d;
2
2
  //# sourceMappingURL=index.cjs8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs8.js","sources":["../src/components/MapDraw.js"],"sourcesContent":["// @flow\n\nimport MapboxDraw from '@mapbox/mapbox-gl-draw';\nimport { feature, type FeatureCollection, type GeometryCollection } from '@turf/turf';\nimport maplibregl from 'maplibre-gl';\nimport React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n type Node\n} from 'react';\nimport Map, {\n FullscreenControl,\n type MapboxMap,\n NavigationControl\n} from 'react-map-gl/maplibre';\nimport _ from 'underscore';\nimport DrawControl from './DrawControl';\nimport GeocodingControl from './GeocodingControl';\nimport MapUtils from '../utils/Map';\n\nimport '@maptiler/geocoding-control/style.css';\nimport './MapDraw.css';\n\n// Override the MapboxDraw components to use MapLibre styles\nMapboxDraw.constants.classes.CONTROL_BASE = 'maplibregl-ctrl';\nMapboxDraw.constants.classes.CONTROL_PREFIX = 'maplibregl-ctrl-';\nMapboxDraw.constants.classes.CONTROL_GROUP = 'maplibregl-ctrl-group';\n\ntype Props = {\n /**\n * MapTiler API key.\n */\n apiKey?: string,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer?: number,\n\n /**\n * Additional child nodes to render.\n */\n children?: Node,\n\n /**\n * If `true`, the map will require CTRL + scroll to zoom.\n */\n cooperativeGestures?: boolean,\n\n /**\n * GeoJSON structured data to be displayed on the map.\n */\n data: GeometryCollection | FeatureCollection,\n\n /**\n * If `true`, a control will be rendered to put the map in full screen mode.\n */\n fullscreen?: boolean,\n\n /**\n * Controls the type of GeoJSON data returned from the MapTiler Geocoding API.\n */\n geocoding?: undefined | 'point' | 'polygon',\n\n /**\n * URL of the map style to render. This URL should contain any necessary API keys.\n */\n mapStyle: string,\n\n /**\n * The maximum pitch of the map (0-85).\n */\n maxPitch?: number,\n\n /**\n * If `true`, the navigation controls will display.\n */\n navigation?: boolean,\n\n /**\n * Callback fired when the map geometries are changed.\n *\n * @param features\n */\n onChange: (features: Array<any>) => void,\n\n /**\n * Callback fired when an item is selected from the geocoding dropdown.\n */\n onGeocodingSelection?: (data: any) => void,\n\n /**\n * If `true`, the map's canvas can be exported to a PNG using `map.getCanvas().toDataURL()`.\n */\n preserveDrawingBuffer?: boolean,\n\n /**\n * Map style object.\n */\n style?: any,\n\n /**\n * The time in milliseconds to zoom into the location.\n */\n zoomDuration?: number\n};\n\nconst DEFAULT_BUFFER = 2;\nconst DEFAULT_ZOOM_DELAY = 1000;\n\nconst GeometryTypes = {\n geometryCollection: 'GeometryCollection',\n point: 'Point',\n polygon: ['Polygon', 'MultiPolygon']\n};\n\n/**\n * This component renders a map with controls for drawing one or more geometries. Geometries can be a point (lat/long),\n * a line, or a polygon.\n */\nconst MapDraw = (props: Props) => {\n const [loaded, setLoaded] = useState(false);\n\n const drawRef = useRef<MapboxDraw>();\n const mapRef = useRef<MapboxMap>();\n\n /**\n * Returns true if the passed geometry type is valid. MapTiler fires the onSelection callback twice: Once after\n * selecting the record from the list (with a point geometry), and once after making a call to the server for the\n * full record (polygon geometry). We should on fire the onGeocodingSelection callback and add the geometry to the\n * map once.\n *\n * @type {function({geometry: {type: *}}): *}\n */\n const isValid = useCallback((detail) => {\n if (!detail) {\n return false;\n }\n\n const { geometry: { type } } = detail;\n\n return (props.geocoding === 'point' && type === GeometryTypes.point)\n || (props.geocoding === 'polygon' && GeometryTypes.polygon.includes(type));\n }, [props.geocoding]);\n\n /**\n * Calls the onChange prop with all of the geometries in the current drawer.\n *\n * @type {(function(): void)|*}\n */\n const onChange = useCallback(() => {\n console.log(\"fired callback\");\n console.log(drawRef.current.getAll());\n props.onChange(drawRef.current.getAll());\n }, [props.onChange]);\n\n /**\n * Adds the selected geometry to the map.\n *\n * @type {(function({detail: *}): void)|*}\n */\n const onSelection = useCallback(({ detail }) => {\n if (isValid(detail)) {\n console.log(\"valid\");\n console.log(detail);\n // Add the geometry to the map\n console.log(\"before add\");\n console.log(drawRef.current.getAll());\n drawRef.current.add(detail.geometry);\n console.log(\"after add\");\n console.log(drawRef.current.getAll());\n\n // Trigger the onChange prop\n onChange();\n\n // Call the onGeocoding selection callback\n if (props.onGeocodingSelection) {\n props.onGeocodingSelection(detail);\n }\n } else {\n console.log(\"invalid\");\n console.log(detail);\n }\n }, [isValid, onChange, props.onGeocodingSelection]);\n\n /**\n * Sets the map style URL.\n *\n * @type {string}\n */\n const mapStyleUrl = useMemo(() => `${props.mapStyle}?key=${props.apiKey}`, [props.apiKey, props.mapStyle]);\n\n /**\n * Sets the element map style.\n *\n * @type {{width: string, height: number}}\n */\n const style = useMemo(() => ({ height: 500, width: '100%', ...(props.style || {}) }), [props.style]);\n\n /**\n * Updates the map bounding box and drawer when the geometry is changed.\n */\n useEffect(() => {\n if (loaded && props.data) {\n // Sets the bounding box for the current geometry\n const bbox = MapUtils.getBoundingBox(props.data, props.buffer);\n\n if (bbox) {\n mapRef.current.fitBounds(bbox, { duration: props.zoomDuration });\n }\n\n // Handle special cases for geometry collection (not supported by mabox-gl-draw) and point\n if (props.data.type === GeometryTypes.geometryCollection) {\n _.each(props.data.geometries, (geometry) => {\n drawRef.current.add(feature(geometry));\n });\n } else {\n drawRef.current.add(props.data);\n }\n }\n }, [loaded, props.data]);\n\n return (\n <Map\n attributionControl={false}\n cooperativeGestures={props.cooperativeGestures}\n mapLib={maplibregl}\n maxPitch={props.maxPitch}\n onLoad={() => setLoaded(true)}\n preserveDrawingBuffer={props.preserveDrawingBuffer}\n ref={mapRef}\n style={style}\n mapStyle={mapStyleUrl}\n >\n <DrawControl\n ref={drawRef}\n controls={{\n line_string: true,\n point: true,\n polygon: true,\n trash: true\n }}\n displayControlsDefault={false}\n onCreate={onChange}\n onUpdate={onChange}\n onDelete={onChange}\n position='bottom-left'\n />\n { props.geocoding && (\n <GeocodingControl\n apiKey={props.apiKey}\n key={props.geocoding}\n marker={false}\n pickedResultStyle={props.geocoding === 'polygon' ? 'full-geometry' : 'marker-only'}\n position='top-left'\n onSelection={onSelection}\n showResultMarkers={false}\n />\n )}\n { props.navigation && (\n <NavigationControl />\n )}\n { props.fullscreen && (\n <FullscreenControl />\n )}\n { props.children }\n </Map>\n );\n};\n\nMapDraw.defaultProps = {\n buffer: DEFAULT_BUFFER,\n cooperativeGestures: true,\n preserveDrawingBuffer: false,\n zoomDuration: DEFAULT_ZOOM_DELAY\n};\n\nexport default MapDraw;\n"],"names":["MapboxDraw","DEFAULT_BUFFER","DEFAULT_ZOOM_DELAY","GeometryTypes","MapDraw","props","loaded","setLoaded","useState","drawRef","useRef","mapRef","isValid","useCallback","detail","type","onChange","onSelection","mapStyleUrl","useMemo","style","useEffect","bbox","MapUtils","_","geometry","feature","jsxs","Map","maplibregl","jsx","DrawControl","GeocodingControl","NavigationControl","FullscreenControl"],"mappings":"w5CA2BAA,EAAW,UAAU,QAAQ,aAAe,kBAC5CA,EAAW,UAAU,QAAQ,eAAiB,mBAC9CA,EAAW,UAAU,QAAQ,cAAgB,wBAiF7C,MAAMC,EAAiB,EACjBC,EAAqB,IAErBC,EAAgB,CACpB,mBAAoB,qBACpB,MAAO,QACP,QAAS,CAAC,UAAW,cAAc,CACrC,EAMMC,EAAWC,GAAiB,CAChC,KAAM,CAACC,EAAQC,CAAS,EAAIC,EAAAA,SAAS,EAAK,EAEpCC,EAAUC,EAAAA,OAAA,EACVC,EAASD,EAAAA,OAAA,EAUTE,EAAUC,cAAaC,GAAW,CACtC,GAAI,CAACA,EACH,MAAO,GAGT,KAAM,CAAE,SAAU,CAAE,KAAAC,CAAA,GAAWD,EAE/B,OAAQT,EAAM,YAAc,SAAWU,IAASZ,EAAc,OACxDE,EAAM,YAAc,WAAaF,EAAc,QAAQ,SAASY,CAAI,CAC5E,EAAG,CAACV,EAAM,SAAS,CAAC,EAOdW,EAAWH,EAAAA,YAAY,IAAM,CACjC,QAAQ,IAAI,gBAAgB,EAC5B,QAAQ,IAAIJ,EAAQ,QAAQ,OAAA,CAAQ,EACpCJ,EAAM,SAASI,EAAQ,QAAQ,OAAA,CAAQ,CACzC,EAAG,CAACJ,EAAM,QAAQ,CAAC,EAObY,EAAcJ,EAAAA,YAAY,CAAC,CAAE,OAAAC,KAAa,CAC1CF,EAAQE,CAAM,GAChB,QAAQ,IAAI,OAAO,EACnB,QAAQ,IAAIA,CAAM,EAElB,QAAQ,I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AS,EACA,SAAUF,EAEV,SAAA,CAAAY,EAAAA,kBAAAA,IAACC,EAAA,CACC,IAAKtB,EACL,SAAU,CACR,YAAa,GACb,MAAO,GACP,QAAS,GACT,MAAO,EAAA,EAET,uBAAwB,GACxB,SAAUO,EACV,SAAUA,EACV,SAAUA,EACV,SAAS,aAAA,CAAA,EAETX,EAAM,WACNyB,EAAAA,kBAAAA,IAACE,EAAA,CACC,OAAQ3B,EAAM,OAEd,OAAQ,GACR,kBAAmBA,EAAM,YAAc,UAAY,gBAAkB,cACrE,SAAS,WACT,YAAAY,EACA,kBAAmB,EAAA,EALdZ,EAAM,SAAA,EAQbA,EAAM,YACNyB,wBAACG,EAAAA,kBAAA,CAAA,CAAkB,EAEnB5B,EAAM,YACNyB,wBAACI,EAAAA,kBAAA,CAAA,CAAkB,EAEnB7B,EAAM,QAAA,CAAA,CAAA,CAGd,EAEAD,EAAQ,aAAe,CACrB,OAAQH,EACR,oBAAqB,GACrB,sBAAuB,GACvB,aAAcC,CAChB"}
1
+ {"version":3,"file":"index.cjs8.js","sources":["../src/components/MapDraw.js"],"sourcesContent":["// @flow\n\nimport MapboxDraw from '@mapbox/mapbox-gl-draw';\nimport { feature, type FeatureCollection, type GeometryCollection } from '@turf/turf';\nimport maplibregl from 'maplibre-gl';\nimport React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n type Node\n} from 'react';\nimport Map, {\n FullscreenControl,\n type MapboxMap,\n NavigationControl\n} from 'react-map-gl/maplibre';\nimport _ from 'underscore';\nimport DrawControl from './DrawControl';\nimport GeocodingControl from './GeocodingControl';\nimport MapUtils from '../utils/Map';\n\nimport '@maptiler/geocoding-control/style.css';\nimport './MapDraw.css';\n\n// Override the MapboxDraw components to use MapLibre styles\nMapboxDraw.constants.classes.CONTROL_BASE = 'maplibregl-ctrl';\nMapboxDraw.constants.classes.CONTROL_PREFIX = 'maplibregl-ctrl-';\nMapboxDraw.constants.classes.CONTROL_GROUP = 'maplibregl-ctrl-group';\n\ntype Props = {\n /**\n * MapTiler API key.\n */\n apiKey?: string,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer?: number,\n\n /**\n * Additional child nodes to render.\n */\n children?: Node,\n\n /**\n * If `true`, the map will require CTRL + scroll to zoom.\n */\n cooperativeGestures?: boolean,\n\n /**\n * GeoJSON structured data to be displayed on the map.\n */\n data: GeometryCollection | FeatureCollection,\n\n /**\n * If `true`, a control will be rendered to put the map in full screen mode.\n */\n fullscreen?: boolean,\n\n /**\n * Controls the type of GeoJSON data returned from the MapTiler Geocoding API.\n */\n geocoding?: undefined | 'point' | 'polygon',\n\n /**\n * URL of the map style to render. This URL should contain any necessary API keys.\n */\n mapStyle: string,\n\n /**\n * The maximum pitch of the map (0-85).\n */\n maxPitch?: number,\n\n /**\n * If `true`, the navigation controls will display.\n */\n navigation?: boolean,\n\n /**\n * Callback fired when the map geometries are changed.\n *\n * @param features\n */\n onChange: (features: Array<any>) => void,\n\n /**\n * Callback fired when an item is selected from the geocoding dropdown.\n */\n onGeocodingSelection?: (data: any) => void,\n\n /**\n * If `true`, the map's canvas can be exported to a PNG using `map.getCanvas().toDataURL()`.\n */\n preserveDrawingBuffer?: boolean,\n\n /**\n * Map style object.\n */\n style?: any,\n\n /**\n * The time in milliseconds to zoom into the location.\n */\n zoomDuration?: number\n};\n\nconst DEFAULT_BUFFER = 2;\nconst DEFAULT_ZOOM_DELAY = 1000;\n\nconst GeometryTypes = {\n geometryCollection: 'GeometryCollection',\n point: 'Point',\n polygon: ['Polygon', 'MultiPolygon']\n};\n\n/**\n * This component renders a map with controls for drawing one or more geometries. Geometries can be a point (lat/long),\n * a line, or a polygon.\n */\nconst MapDraw = (props: Props) => {\n const [loaded, setLoaded] = useState(false);\n\n const drawRef = useRef<MapboxDraw>();\n const mapRef = useRef<MapboxMap>();\n\n /**\n * Returns true if the passed geometry type is valid. MapTiler fires the onSelection callback twice: Once after\n * selecting the record from the list (with a point geometry), and once after making a call to the server for the\n * full record (polygon geometry). We should on fire the onGeocodingSelection callback and add the geometry to the\n * map once.\n *\n * @type {function({geometry: {type: *}}): *}\n */\n const isValid = useCallback((detail) => {\n if (!detail) {\n return false;\n }\n\n const { geometry: { type } } = detail;\n\n return (props.geocoding === 'point' && type === GeometryTypes.point)\n || (props.geocoding === 'polygon' && GeometryTypes.polygon.includes(type));\n }, [props.geocoding]);\n\n /**\n * Calls the onChange prop with all of the geometries in the current drawer.\n *\n * @type {(function(): void)|*}\n */\n const onChange = useCallback(() => {\n console.log(\"fired callback\");\n console.log(drawRef.current.getAll());\n props.onChange(drawRef.current.getAll());\n }, [props.onChange]);\n\n /**\n * Adds the selected geometry to the map.\n *\n * @type {(function(evt: *): void)|*}\n */\n const onSelection = useCallback((evt) => {\n console.log(evt);\n const { detail } = evt;\n if (isValid(detail)) {\n console.log(\"valid\");\n console.log(detail);\n // Add the geometry to the map\n console.log(\"before add\");\n console.log(drawRef.current.getAll());\n drawRef.current.add(detail.geometry);\n console.log(\"after add\");\n console.log(drawRef.current.getAll());\n\n // Trigger the onChange prop\n onChange();\n\n // Call the onGeocoding selection callback\n if (props.onGeocodingSelection) {\n props.onGeocodingSelection(detail);\n }\n } else {\n console.log(\"invalid\");\n console.log(detail);\n }\n }, [isValid, onChange, props.onGeocodingSelection]);\n\n /**\n * Sets the map style URL.\n *\n * @type {string}\n */\n const mapStyleUrl = useMemo(() => `${props.mapStyle}?key=${props.apiKey}`, [props.apiKey, props.mapStyle]);\n\n /**\n * Sets the element map style.\n *\n * @type {{width: string, height: number}}\n */\n const style = useMemo(() => ({ height: 500, width: '100%', ...(props.style || {}) }), [props.style]);\n\n /**\n * Updates the map bounding box and drawer when the geometry is changed.\n */\n useEffect(() => {\n if (loaded && props.data) {\n // Sets the bounding box for the current geometry\n const bbox = MapUtils.getBoundingBox(props.data, props.buffer);\n\n if (bbox) {\n mapRef.current.fitBounds(bbox, { duration: props.zoomDuration });\n }\n\n // Handle special cases for geometry collection (not supported by mabox-gl-draw) and point\n if (props.data.type === GeometryTypes.geometryCollection) {\n _.each(props.data.geometries, (geometry) => {\n drawRef.current.add(feature(geometry));\n });\n } else {\n drawRef.current.add(props.data);\n }\n }\n }, [loaded, props.data]);\n\n return (\n <Map\n attributionControl={false}\n cooperativeGestures={props.cooperativeGestures}\n mapLib={maplibregl}\n maxPitch={props.maxPitch}\n onLoad={() => setLoaded(true)}\n preserveDrawingBuffer={props.preserveDrawingBuffer}\n ref={mapRef}\n style={style}\n mapStyle={mapStyleUrl}\n >\n <DrawControl\n ref={drawRef}\n controls={{\n line_string: true,\n point: true,\n polygon: true,\n trash: true\n }}\n displayControlsDefault={false}\n onCreate={onChange}\n onUpdate={onChange}\n onDelete={onChange}\n position='bottom-left'\n />\n { props.geocoding && (\n <GeocodingControl\n apiKey={props.apiKey}\n key={props.geocoding}\n marker={false}\n pickedResultStyle={props.geocoding === 'polygon' ? 'full-geometry' : 'marker-only'}\n position='top-left'\n onSelection={onSelection}\n showResultMarkers={false}\n />\n )}\n { props.navigation && (\n <NavigationControl />\n )}\n { props.fullscreen && (\n <FullscreenControl />\n )}\n { props.children }\n </Map>\n );\n};\n\nMapDraw.defaultProps = {\n buffer: DEFAULT_BUFFER,\n cooperativeGestures: true,\n preserveDrawingBuffer: false,\n zoomDuration: DEFAULT_ZOOM_DELAY\n};\n\nexport default MapDraw;\n"],"names":["MapboxDraw","DEFAULT_BUFFER","DEFAULT_ZOOM_DELAY","GeometryTypes","MapDraw","props","loaded","setLoaded","useState","drawRef","useRef","mapRef","isValid","useCallback","detail","type","onChange","onSelection","evt","mapStyleUrl","useMemo","style","useEffect","bbox","MapUtils","_","geometry","feature","jsxs","Map","maplibregl","jsx","DrawControl","GeocodingControl","NavigationControl","FullscreenControl"],"mappings":"w5CA2BAA,EAAW,UAAU,QAAQ,aAAe,kBAC5CA,EAAW,UAAU,QAAQ,eAAiB,mBAC9CA,EAAW,UAAU,QAAQ,cAAgB,wBAiF7C,MAAMC,EAAiB,EACjBC,EAAqB,IAErBC,E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