@performant-software/geospatial 3.1.5-beta.0 → 3.1.5

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 (739) hide show
  1. package/dist/index.cjs100.js +1 -1
  2. package/dist/index.cjs100.js.map +1 -1
  3. package/dist/index.cjs101.js +1 -1
  4. package/dist/index.cjs101.js.map +1 -1
  5. package/dist/index.cjs102.js +1 -1
  6. package/dist/index.cjs102.js.map +1 -1
  7. package/dist/index.cjs103.js +1 -1
  8. package/dist/index.cjs103.js.map +1 -1
  9. package/dist/index.cjs104.js +1 -1
  10. package/dist/index.cjs104.js.map +1 -1
  11. package/dist/index.cjs105.js +1 -1
  12. package/dist/index.cjs105.js.map +1 -1
  13. package/dist/index.cjs106.js +1 -1
  14. package/dist/index.cjs106.js.map +1 -1
  15. package/dist/index.cjs107.js +1 -1
  16. package/dist/index.cjs107.js.map +1 -1
  17. package/dist/index.cjs108.js +1 -1
  18. package/dist/index.cjs108.js.map +1 -1
  19. package/dist/index.cjs109.js +1 -1
  20. package/dist/index.cjs109.js.map +1 -1
  21. package/dist/index.cjs110.js +1 -1
  22. package/dist/index.cjs110.js.map +1 -1
  23. package/dist/index.cjs111.js +1 -1
  24. package/dist/index.cjs111.js.map +1 -1
  25. package/dist/index.cjs112.js +1 -1
  26. package/dist/index.cjs112.js.map +1 -1
  27. package/dist/index.cjs113.js +1 -1
  28. package/dist/index.cjs113.js.map +1 -1
  29. package/dist/index.cjs114.js +1 -1
  30. package/dist/index.cjs114.js.map +1 -1
  31. package/dist/index.cjs115.js +1 -1
  32. package/dist/index.cjs115.js.map +1 -1
  33. package/dist/index.cjs116.js +1 -1
  34. package/dist/index.cjs116.js.map +1 -1
  35. package/dist/index.cjs117.js +1 -1
  36. package/dist/index.cjs117.js.map +1 -1
  37. package/dist/index.cjs118.js +1 -1
  38. package/dist/index.cjs118.js.map +1 -1
  39. package/dist/index.cjs119.js +1 -1
  40. package/dist/index.cjs119.js.map +1 -1
  41. package/dist/index.cjs120.js +1 -1
  42. package/dist/index.cjs120.js.map +1 -1
  43. package/dist/index.cjs121.js +1 -1
  44. package/dist/index.cjs121.js.map +1 -1
  45. package/dist/index.cjs122.js +1 -1
  46. package/dist/index.cjs122.js.map +1 -1
  47. package/dist/index.cjs123.js +1 -1
  48. package/dist/index.cjs123.js.map +1 -1
  49. package/dist/index.cjs124.js +1 -1
  50. package/dist/index.cjs124.js.map +1 -1
  51. package/dist/index.cjs125.js +1 -1
  52. package/dist/index.cjs125.js.map +1 -1
  53. package/dist/index.cjs126.js +1 -1
  54. package/dist/index.cjs126.js.map +1 -1
  55. package/dist/index.cjs127.js +1 -1
  56. package/dist/index.cjs127.js.map +1 -1
  57. package/dist/index.cjs128.js +1 -1
  58. package/dist/index.cjs128.js.map +1 -1
  59. package/dist/index.cjs129.js +1 -1
  60. package/dist/index.cjs129.js.map +1 -1
  61. package/dist/index.cjs130.js +1 -1
  62. package/dist/index.cjs130.js.map +1 -1
  63. package/dist/index.cjs131.js +1 -1
  64. package/dist/index.cjs131.js.map +1 -1
  65. package/dist/index.cjs132.js +13 -1
  66. package/dist/index.cjs132.js.map +1 -1
  67. package/dist/index.cjs133.js +1 -1
  68. package/dist/index.cjs133.js.map +1 -1
  69. package/dist/index.cjs134.js +1 -1
  70. package/dist/index.cjs134.js.map +1 -1
  71. package/dist/index.cjs135.js +1 -1
  72. package/dist/index.cjs135.js.map +1 -1
  73. package/dist/index.cjs136.js +1 -1
  74. package/dist/index.cjs136.js.map +1 -1
  75. package/dist/index.cjs137.js +1 -1
  76. package/dist/index.cjs137.js.map +1 -1
  77. package/dist/index.cjs138.js +1 -1
  78. package/dist/index.cjs138.js.map +1 -1
  79. package/dist/index.cjs139.js +1 -1
  80. package/dist/index.cjs139.js.map +1 -1
  81. package/dist/index.cjs14.js +1 -1
  82. package/dist/index.cjs140.js +1 -13
  83. package/dist/index.cjs140.js.map +1 -1
  84. package/dist/index.cjs141.js +1 -1
  85. package/dist/index.cjs141.js.map +1 -1
  86. package/dist/index.cjs142.js +1 -1
  87. package/dist/index.cjs142.js.map +1 -1
  88. package/dist/index.cjs143.js +1 -1
  89. package/dist/index.cjs143.js.map +1 -1
  90. package/dist/index.cjs144.js +1 -1
  91. package/dist/index.cjs144.js.map +1 -1
  92. package/dist/index.cjs145.js +1 -1
  93. package/dist/index.cjs145.js.map +1 -1
  94. package/dist/index.cjs146.js +1 -1
  95. package/dist/index.cjs146.js.map +1 -1
  96. package/dist/index.cjs147.js +1 -1
  97. package/dist/index.cjs147.js.map +1 -1
  98. package/dist/index.cjs148.js +1 -1
  99. package/dist/index.cjs148.js.map +1 -1
  100. package/dist/index.cjs149.js +1 -1
  101. package/dist/index.cjs149.js.map +1 -1
  102. package/dist/index.cjs15.js +1 -1
  103. package/dist/index.cjs15.js.map +1 -1
  104. package/dist/index.cjs150.js +1 -1
  105. package/dist/index.cjs150.js.map +1 -1
  106. package/dist/index.cjs151.js +1 -1
  107. package/dist/index.cjs151.js.map +1 -1
  108. package/dist/index.cjs152.js +1 -1
  109. package/dist/index.cjs152.js.map +1 -1
  110. package/dist/index.cjs153.js +1 -1
  111. package/dist/index.cjs153.js.map +1 -1
  112. package/dist/index.cjs154.js +1 -1
  113. package/dist/index.cjs154.js.map +1 -1
  114. package/dist/index.cjs155.js +1 -1
  115. package/dist/index.cjs155.js.map +1 -1
  116. package/dist/index.cjs156.js +1 -1
  117. package/dist/index.cjs156.js.map +1 -1
  118. package/dist/index.cjs157.js +1 -1
  119. package/dist/index.cjs157.js.map +1 -1
  120. package/dist/index.cjs158.js +1 -1
  121. package/dist/index.cjs158.js.map +1 -1
  122. package/dist/index.cjs159.js +1 -1
  123. package/dist/index.cjs159.js.map +1 -1
  124. package/dist/index.cjs16.js +1 -1
  125. package/dist/index.cjs16.js.map +1 -1
  126. package/dist/index.cjs160.js +1 -1
  127. package/dist/index.cjs160.js.map +1 -1
  128. package/dist/index.cjs161.js +1 -1
  129. package/dist/index.cjs161.js.map +1 -1
  130. package/dist/index.cjs162.js +1 -1
  131. package/dist/index.cjs162.js.map +1 -1
  132. package/dist/index.cjs163.js +1 -1
  133. package/dist/index.cjs163.js.map +1 -1
  134. package/dist/index.cjs164.js +1 -1
  135. package/dist/index.cjs164.js.map +1 -1
  136. package/dist/index.cjs165.js +1 -1
  137. package/dist/index.cjs165.js.map +1 -1
  138. package/dist/index.cjs166.js +1 -1
  139. package/dist/index.cjs166.js.map +1 -1
  140. package/dist/index.cjs167.js +1 -1
  141. package/dist/index.cjs167.js.map +1 -1
  142. package/dist/index.cjs168.js +1 -1
  143. package/dist/index.cjs168.js.map +1 -1
  144. package/dist/index.cjs169.js +1 -1
  145. package/dist/index.cjs169.js.map +1 -1
  146. package/dist/index.cjs17.js +1 -1
  147. package/dist/index.cjs17.js.map +1 -1
  148. package/dist/index.cjs170.js +1 -1
  149. package/dist/index.cjs170.js.map +1 -1
  150. package/dist/index.cjs171.js +1 -1
  151. package/dist/index.cjs171.js.map +1 -1
  152. package/dist/index.cjs172.js +1 -1
  153. package/dist/index.cjs172.js.map +1 -1
  154. package/dist/index.cjs173.js +1 -1
  155. package/dist/index.cjs173.js.map +1 -1
  156. package/dist/index.cjs174.js +1 -1
  157. package/dist/index.cjs174.js.map +1 -1
  158. package/dist/index.cjs175.js +1 -1
  159. package/dist/index.cjs175.js.map +1 -1
  160. package/dist/index.cjs176.js +1 -1
  161. package/dist/index.cjs176.js.map +1 -1
  162. package/dist/index.cjs177.js +1 -1
  163. package/dist/index.cjs177.js.map +1 -1
  164. package/dist/index.cjs178.js +1 -1
  165. package/dist/index.cjs178.js.map +1 -1
  166. package/dist/index.cjs179.js +1 -1
  167. package/dist/index.cjs179.js.map +1 -1
  168. package/dist/index.cjs18.js +1 -1
  169. package/dist/index.cjs18.js.map +1 -1
  170. package/dist/index.cjs180.js +1 -1
  171. package/dist/index.cjs180.js.map +1 -1
  172. package/dist/index.cjs181.js +1 -1
  173. package/dist/index.cjs181.js.map +1 -1
  174. package/dist/index.cjs182.js +1 -1
  175. package/dist/index.cjs182.js.map +1 -1
  176. package/dist/index.cjs183.js +1 -1
  177. package/dist/index.cjs183.js.map +1 -1
  178. package/dist/index.cjs184.js +1 -1
  179. package/dist/index.cjs184.js.map +1 -1
  180. package/dist/index.cjs185.js +1 -1
  181. package/dist/index.cjs185.js.map +1 -1
  182. package/dist/index.cjs186.js +1 -1
  183. package/dist/index.cjs186.js.map +1 -1
  184. package/dist/index.cjs187.js +1 -1
  185. package/dist/index.cjs187.js.map +1 -1
  186. package/dist/index.cjs188.js +1 -1
  187. package/dist/index.cjs188.js.map +1 -1
  188. package/dist/index.cjs189.js +1 -1
  189. package/dist/index.cjs189.js.map +1 -1
  190. package/dist/index.cjs19.js +1 -1
  191. package/dist/index.cjs19.js.map +1 -1
  192. package/dist/index.cjs190.js +1 -1
  193. package/dist/index.cjs190.js.map +1 -1
  194. package/dist/index.cjs191.js +1 -1
  195. package/dist/index.cjs191.js.map +1 -1
  196. package/dist/index.cjs192.js +1 -1
  197. package/dist/index.cjs192.js.map +1 -1
  198. package/dist/index.cjs193.js +1 -1
  199. package/dist/index.cjs193.js.map +1 -1
  200. package/dist/index.cjs194.js +1 -1
  201. package/dist/index.cjs194.js.map +1 -1
  202. package/dist/index.cjs195.js +1 -1
  203. package/dist/index.cjs195.js.map +1 -1
  204. package/dist/index.cjs196.js +1 -1
  205. package/dist/index.cjs196.js.map +1 -1
  206. package/dist/index.cjs197.js +1 -1
  207. package/dist/index.cjs197.js.map +1 -1
  208. package/dist/index.cjs198.js +1 -1
  209. package/dist/index.cjs198.js.map +1 -1
  210. package/dist/index.cjs199.js +1 -1
  211. package/dist/index.cjs199.js.map +1 -1
  212. package/dist/index.cjs20.js +1 -1
  213. package/dist/index.cjs20.js.map +1 -1
  214. package/dist/index.cjs200.js +1 -1
  215. package/dist/index.cjs200.js.map +1 -1
  216. package/dist/index.cjs201.js +1 -1
  217. package/dist/index.cjs201.js.map +1 -1
  218. package/dist/index.cjs202.js +1 -1
  219. package/dist/index.cjs202.js.map +1 -1
  220. package/dist/index.cjs203.js +1 -1
  221. package/dist/index.cjs203.js.map +1 -1
  222. package/dist/index.cjs204.js +1 -1
  223. package/dist/index.cjs204.js.map +1 -1
  224. package/dist/index.cjs205.js +1 -1
  225. package/dist/index.cjs205.js.map +1 -1
  226. package/dist/index.cjs206.js +1 -1
  227. package/dist/index.cjs206.js.map +1 -1
  228. package/dist/index.cjs207.js +1 -1
  229. package/dist/index.cjs207.js.map +1 -1
  230. package/dist/index.cjs208.js +1 -1
  231. package/dist/index.cjs208.js.map +1 -1
  232. package/dist/index.cjs209.js +7 -1
  233. package/dist/index.cjs209.js.map +1 -1
  234. package/dist/index.cjs21.js +1 -1
  235. package/dist/index.cjs21.js.map +1 -1
  236. package/dist/index.cjs210.js +1 -1
  237. package/dist/index.cjs210.js.map +1 -1
  238. package/dist/index.cjs213.js +1 -1
  239. package/dist/index.cjs214.js +1 -1
  240. package/dist/index.cjs215.js +1 -1
  241. package/dist/index.cjs217.js +1 -1
  242. package/dist/index.cjs22.js +1 -1
  243. package/dist/index.cjs22.js.map +1 -1
  244. package/dist/index.cjs220.js +1 -1
  245. package/dist/index.cjs225.js +1 -1
  246. package/dist/index.cjs227.js +1 -1
  247. package/dist/index.cjs228.js +1 -1
  248. package/dist/index.cjs229.js +1 -1
  249. package/dist/index.cjs23.js +1 -1
  250. package/dist/index.cjs23.js.map +1 -1
  251. package/dist/index.cjs230.js +1 -1
  252. package/dist/index.cjs232.js +1 -1
  253. package/dist/index.cjs233.js +1 -1
  254. package/dist/index.cjs234.js +1 -1
  255. package/dist/index.cjs235.js +1 -1
  256. package/dist/index.cjs238.js +1 -7
  257. package/dist/index.cjs238.js.map +1 -1
  258. package/dist/index.cjs239.js +1 -1
  259. package/dist/index.cjs239.js.map +1 -1
  260. package/dist/index.cjs24.js +1 -1
  261. package/dist/index.cjs24.js.map +1 -1
  262. package/dist/index.cjs240.js +1 -1
  263. package/dist/index.cjs240.js.map +1 -1
  264. package/dist/index.cjs241.js +1 -1
  265. package/dist/index.cjs241.js.map +1 -1
  266. package/dist/index.cjs242.js +1 -1
  267. package/dist/index.cjs242.js.map +1 -1
  268. package/dist/index.cjs243.js +1 -1
  269. package/dist/index.cjs243.js.map +1 -1
  270. package/dist/index.cjs244.js +1 -1
  271. package/dist/index.cjs244.js.map +1 -1
  272. package/dist/index.cjs245.js +1 -1
  273. package/dist/index.cjs245.js.map +1 -1
  274. package/dist/index.cjs246.js +1 -1
  275. package/dist/index.cjs246.js.map +1 -1
  276. package/dist/index.cjs247.js +1 -1
  277. package/dist/index.cjs247.js.map +1 -1
  278. package/dist/index.cjs248.js +1 -1
  279. package/dist/index.cjs248.js.map +1 -1
  280. package/dist/index.cjs249.js +1 -1
  281. package/dist/index.cjs249.js.map +1 -1
  282. package/dist/index.cjs250.js +1 -1
  283. package/dist/index.cjs250.js.map +1 -1
  284. package/dist/index.cjs251.js +1 -1
  285. package/dist/index.cjs251.js.map +1 -1
  286. package/dist/index.cjs252.js +1 -1
  287. package/dist/index.cjs252.js.map +1 -1
  288. package/dist/index.cjs253.js +1 -1
  289. package/dist/index.cjs253.js.map +1 -1
  290. package/dist/index.cjs254.js +1 -1
  291. package/dist/index.cjs254.js.map +1 -1
  292. package/dist/index.cjs255.js +1 -1
  293. package/dist/index.cjs255.js.map +1 -1
  294. package/dist/index.cjs256.js +1 -1
  295. package/dist/index.cjs256.js.map +1 -1
  296. package/dist/index.cjs257.js +1 -1
  297. package/dist/index.cjs257.js.map +1 -1
  298. package/dist/index.cjs258.js +1 -1
  299. package/dist/index.cjs258.js.map +1 -1
  300. package/dist/index.cjs259.js +1 -1
  301. package/dist/index.cjs259.js.map +1 -1
  302. package/dist/index.cjs260.js +1 -1
  303. package/dist/index.cjs260.js.map +1 -1
  304. package/dist/index.cjs263.js +1 -1
  305. package/dist/index.cjs264.js +1 -1
  306. package/dist/index.cjs27.js +1 -1
  307. package/dist/index.cjs28.js +1 -1
  308. package/dist/index.cjs28.js.map +1 -1
  309. package/dist/index.cjs29.js +1 -1
  310. package/dist/index.cjs29.js.map +1 -1
  311. package/dist/index.cjs31.js +1 -1
  312. package/dist/index.cjs35.js +1 -1
  313. package/dist/index.cjs38.js +1 -1
  314. package/dist/index.cjs44.js +1 -1
  315. package/dist/index.cjs49.js +1 -1
  316. package/dist/index.cjs50.js +1 -1
  317. package/dist/index.cjs51.js +1 -1
  318. package/dist/index.cjs52.js +1 -1
  319. package/dist/index.cjs54.js +1 -1
  320. package/dist/index.cjs55.js +1 -1
  321. package/dist/index.cjs56.js +1 -1
  322. package/dist/index.cjs57.js +1 -1
  323. package/dist/index.cjs58.js +1 -1
  324. package/dist/index.cjs59.js +1 -1
  325. package/dist/index.cjs60.js +1 -1
  326. package/dist/index.cjs61.js +1 -1
  327. package/dist/index.cjs62.js +1 -1
  328. package/dist/index.cjs68.js +1 -1
  329. package/dist/index.cjs70.js +1 -1
  330. package/dist/index.cjs71.js +1 -1
  331. package/dist/index.cjs71.js.map +1 -1
  332. package/dist/index.cjs72.js +1 -1
  333. package/dist/index.cjs73.js +1 -9
  334. package/dist/index.cjs73.js.map +1 -1
  335. package/dist/index.cjs74.js +1 -17
  336. package/dist/index.cjs74.js.map +1 -1
  337. package/dist/index.cjs75.js +1 -1
  338. package/dist/index.cjs75.js.map +1 -1
  339. package/dist/index.cjs76.js +9 -1
  340. package/dist/index.cjs76.js.map +1 -1
  341. package/dist/index.cjs77.js +17 -1
  342. package/dist/index.cjs77.js.map +1 -1
  343. package/dist/index.cjs84.js +1 -1
  344. package/dist/index.cjs84.js.map +1 -1
  345. package/dist/index.cjs85.js +1 -1
  346. package/dist/index.cjs85.js.map +1 -1
  347. package/dist/index.cjs86.js +1 -1
  348. package/dist/index.cjs86.js.map +1 -1
  349. package/dist/index.cjs87.js +1 -1
  350. package/dist/index.cjs87.js.map +1 -1
  351. package/dist/index.cjs88.js +1 -1
  352. package/dist/index.cjs88.js.map +1 -1
  353. package/dist/index.cjs89.js +1 -1
  354. package/dist/index.cjs89.js.map +1 -1
  355. package/dist/index.cjs90.js +1 -1
  356. package/dist/index.cjs90.js.map +1 -1
  357. package/dist/index.cjs91.js +1 -1
  358. package/dist/index.cjs91.js.map +1 -1
  359. package/dist/index.cjs92.js +1 -1
  360. package/dist/index.cjs92.js.map +1 -1
  361. package/dist/index.cjs93.js +1 -1
  362. package/dist/index.cjs93.js.map +1 -1
  363. package/dist/index.cjs94.js +1 -1
  364. package/dist/index.cjs94.js.map +1 -1
  365. package/dist/index.cjs95.js +1 -1
  366. package/dist/index.cjs95.js.map +1 -1
  367. package/dist/index.cjs96.js +1 -1
  368. package/dist/index.cjs96.js.map +1 -1
  369. package/dist/index.cjs97.js +1 -1
  370. package/dist/index.cjs97.js.map +1 -1
  371. package/dist/index.cjs98.js +1 -1
  372. package/dist/index.cjs98.js.map +1 -1
  373. package/dist/index.cjs99.js +1 -1
  374. package/dist/index.cjs99.js.map +1 -1
  375. package/dist/index.es100.js +2 -1
  376. package/dist/index.es100.js.map +1 -1
  377. package/dist/index.es101.js +6 -3
  378. package/dist/index.es101.js.map +1 -1
  379. package/dist/index.es102.js +6 -3
  380. package/dist/index.es102.js.map +1 -1
  381. package/dist/index.es103.js +10 -3
  382. package/dist/index.es103.js.map +1 -1
  383. package/dist/index.es104.js +11 -3
  384. package/dist/index.es104.js.map +1 -1
  385. package/dist/index.es105.js +11 -3
  386. package/dist/index.es105.js.map +1 -1
  387. package/dist/index.es106.js +75 -3
  388. package/dist/index.es106.js.map +1 -1
  389. package/dist/index.es107.js +3 -10
  390. package/dist/index.es107.js.map +1 -1
  391. package/dist/index.es108.js +12 -4
  392. package/dist/index.es108.js.map +1 -1
  393. package/dist/index.es109.js +8 -4
  394. package/dist/index.es109.js.map +1 -1
  395. package/dist/index.es110.js +6 -5
  396. package/dist/index.es110.js.map +1 -1
  397. package/dist/index.es111.js +6 -9
  398. package/dist/index.es111.js.map +1 -1
  399. package/dist/index.es112.js +6 -10
  400. package/dist/index.es112.js.map +1 -1
  401. package/dist/index.es113.js +7 -10
  402. package/dist/index.es113.js.map +1 -1
  403. package/dist/index.es114.js +4 -75
  404. package/dist/index.es114.js.map +1 -1
  405. package/dist/index.es115.js +4 -3
  406. package/dist/index.es115.js.map +1 -1
  407. package/dist/index.es116.js +4 -12
  408. package/dist/index.es116.js.map +1 -1
  409. package/dist/index.es117.js +6 -9
  410. package/dist/index.es117.js.map +1 -1
  411. package/dist/index.es118.js +6 -6
  412. package/dist/index.es118.js.map +1 -1
  413. package/dist/index.es119.js +3 -6
  414. package/dist/index.es119.js.map +1 -1
  415. package/dist/index.es120.js +7 -6
  416. package/dist/index.es120.js.map +1 -1
  417. package/dist/index.es121.js +11 -7
  418. package/dist/index.es121.js.map +1 -1
  419. package/dist/index.es122.js +11 -4
  420. package/dist/index.es122.js.map +1 -1
  421. package/dist/index.es123.js +4 -4
  422. package/dist/index.es123.js.map +1 -1
  423. package/dist/index.es124.js +6 -4
  424. package/dist/index.es124.js.map +1 -1
  425. package/dist/index.es125.js +2 -6
  426. package/dist/index.es125.js.map +1 -1
  427. package/dist/index.es126.js +7 -6
  428. package/dist/index.es126.js.map +1 -1
  429. package/dist/index.es127.js +7 -3
  430. package/dist/index.es127.js.map +1 -1
  431. package/dist/index.es128.js +7 -7
  432. package/dist/index.es128.js.map +1 -1
  433. package/dist/index.es129.js +7 -11
  434. package/dist/index.es129.js.map +1 -1
  435. package/dist/index.es130.js +3 -10
  436. package/dist/index.es130.js.map +1 -1
  437. package/dist/index.es131.js +3 -3
  438. package/dist/index.es131.js.map +1 -1
  439. package/dist/index.es132.js +55 -4
  440. package/dist/index.es132.js.map +1 -1
  441. package/dist/index.es133.js +13 -2
  442. package/dist/index.es133.js.map +1 -1
  443. package/dist/index.es134.js +5 -7
  444. package/dist/index.es134.js.map +1 -1
  445. package/dist/index.es135.js +5 -7
  446. package/dist/index.es135.js.map +1 -1
  447. package/dist/index.es136.js +7 -6
  448. package/dist/index.es136.js.map +1 -1
  449. package/dist/index.es137.js +16 -7
  450. package/dist/index.es137.js.map +1 -1
  451. package/dist/index.es138.js +13 -3
  452. package/dist/index.es138.js.map +1 -1
  453. package/dist/index.es139.js +5 -4
  454. package/dist/index.es139.js.map +1 -1
  455. package/dist/index.es14.js +2 -2
  456. package/dist/index.es140.js +4 -55
  457. package/dist/index.es140.js.map +1 -1
  458. package/dist/index.es141.js +7 -13
  459. package/dist/index.es141.js.map +1 -1
  460. package/dist/index.es142.js +6 -5
  461. package/dist/index.es142.js.map +1 -1
  462. package/dist/index.es143.js +6 -5
  463. package/dist/index.es143.js.map +1 -1
  464. package/dist/index.es144.js +7 -8
  465. package/dist/index.es144.js.map +1 -1
  466. package/dist/index.es145.js +3 -17
  467. package/dist/index.es145.js.map +1 -1
  468. package/dist/index.es146.js +2 -13
  469. package/dist/index.es146.js.map +1 -1
  470. package/dist/index.es147.js +10 -4
  471. package/dist/index.es147.js.map +1 -1
  472. package/dist/index.es148.js +5 -6
  473. package/dist/index.es148.js.map +1 -1
  474. package/dist/index.es149.js +3 -7
  475. package/dist/index.es149.js.map +1 -1
  476. package/dist/index.es15.js +4 -4
  477. package/dist/index.es150.js +7 -6
  478. package/dist/index.es150.js.map +1 -1
  479. package/dist/index.es151.js +5 -6
  480. package/dist/index.es151.js.map +1 -1
  481. package/dist/index.es152.js +16 -7
  482. package/dist/index.es152.js.map +1 -1
  483. package/dist/index.es153.js +12 -3
  484. package/dist/index.es153.js.map +1 -1
  485. package/dist/index.es154.js +3 -3
  486. package/dist/index.es154.js.map +1 -1
  487. package/dist/index.es155.js +3 -11
  488. package/dist/index.es155.js.map +1 -1
  489. package/dist/index.es156.js +9 -5
  490. package/dist/index.es156.js.map +1 -1
  491. package/dist/index.es157.js +7 -4
  492. package/dist/index.es157.js.map +1 -1
  493. package/dist/index.es158.js +11 -7
  494. package/dist/index.es158.js.map +1 -1
  495. package/dist/index.es159.js +11 -5
  496. package/dist/index.es159.js.map +1 -1
  497. package/dist/index.es16.js +3 -3
  498. package/dist/index.es160.js +5 -15
  499. package/dist/index.es160.js.map +1 -1
  500. package/dist/index.es161.js +5 -11
  501. package/dist/index.es161.js.map +1 -1
  502. package/dist/index.es162.js +6 -3
  503. package/dist/index.es162.js.map +1 -1
  504. package/dist/index.es163.js +17 -3
  505. package/dist/index.es163.js.map +1 -1
  506. package/dist/index.es164.js +16 -8
  507. package/dist/index.es164.js.map +1 -1
  508. package/dist/index.es165.js +4 -6
  509. package/dist/index.es165.js.map +1 -1
  510. package/dist/index.es166.js +15 -10
  511. package/dist/index.es166.js.map +1 -1
  512. package/dist/index.es167.js +20 -11
  513. package/dist/index.es167.js.map +1 -1
  514. package/dist/index.es168.js +6 -7
  515. package/dist/index.es168.js.map +1 -1
  516. package/dist/index.es169.js +4 -5
  517. package/dist/index.es169.js.map +1 -1
  518. package/dist/index.es17.js +3 -3
  519. package/dist/index.es170.js +6 -6
  520. package/dist/index.es170.js.map +1 -1
  521. package/dist/index.es171.js +5 -17
  522. package/dist/index.es171.js.map +1 -1
  523. package/dist/index.es172.js +11 -16
  524. package/dist/index.es172.js.map +1 -1
  525. package/dist/index.es173.js +5 -4
  526. package/dist/index.es173.js.map +1 -1
  527. package/dist/index.es174.js +4 -16
  528. package/dist/index.es174.js.map +1 -1
  529. package/dist/index.es175.js +4 -20
  530. package/dist/index.es175.js.map +1 -1
  531. package/dist/index.es176.js +5 -6
  532. package/dist/index.es176.js.map +1 -1
  533. package/dist/index.es177.js +5 -5
  534. package/dist/index.es177.js.map +1 -1
  535. package/dist/index.es178.js +5 -6
  536. package/dist/index.es178.js.map +1 -1
  537. package/dist/index.es179.js +5 -5
  538. package/dist/index.es179.js.map +1 -1
  539. package/dist/index.es18.js +1 -1
  540. package/dist/index.es180.js +12 -11
  541. package/dist/index.es180.js.map +1 -1
  542. package/dist/index.es181.js +14 -5
  543. package/dist/index.es181.js.map +1 -1
  544. package/dist/index.es182.js +8 -4
  545. package/dist/index.es182.js.map +1 -1
  546. package/dist/index.es183.js +6 -4
  547. package/dist/index.es183.js.map +1 -1
  548. package/dist/index.es184.js +6 -4
  549. package/dist/index.es184.js.map +1 -1
  550. package/dist/index.es185.js +7 -4
  551. package/dist/index.es185.js.map +1 -1
  552. package/dist/index.es186.js +147 -4
  553. package/dist/index.es186.js.map +1 -1
  554. package/dist/index.es187.js +6 -4
  555. package/dist/index.es187.js.map +1 -1
  556. package/dist/index.es188.js +5 -13
  557. package/dist/index.es188.js.map +1 -1
  558. package/dist/index.es189.js +3 -17
  559. package/dist/index.es189.js.map +1 -1
  560. package/dist/index.es19.js +1 -1
  561. package/dist/index.es190.js +3 -11
  562. package/dist/index.es190.js.map +1 -1
  563. package/dist/index.es191.js +35 -6
  564. package/dist/index.es191.js.map +1 -1
  565. package/dist/index.es192.js +3 -9
  566. package/dist/index.es192.js.map +1 -1
  567. package/dist/index.es193.js +22 -7
  568. package/dist/index.es193.js.map +1 -1
  569. package/dist/index.es194.js +2 -150
  570. package/dist/index.es194.js.map +1 -1
  571. package/dist/index.es195.js +3 -9
  572. package/dist/index.es195.js.map +1 -1
  573. package/dist/index.es196.js +2 -7
  574. package/dist/index.es196.js.map +1 -1
  575. package/dist/index.es197.js +33 -3
  576. package/dist/index.es197.js.map +1 -1
  577. package/dist/index.es198.js +14 -2
  578. package/dist/index.es198.js.map +1 -1
  579. package/dist/index.es199.js +13 -35
  580. package/dist/index.es199.js.map +1 -1
  581. package/dist/index.es20.js +1 -1
  582. package/dist/index.es200.js +11 -3
  583. package/dist/index.es200.js.map +1 -1
  584. package/dist/index.es201.js +242 -22
  585. package/dist/index.es201.js.map +1 -1
  586. package/dist/index.es202.js +45 -2
  587. package/dist/index.es202.js.map +1 -1
  588. package/dist/index.es203.js +5 -3
  589. package/dist/index.es203.js.map +1 -1
  590. package/dist/index.es204.js +13 -2
  591. package/dist/index.es204.js.map +1 -1
  592. package/dist/index.es205.js +10 -30
  593. package/dist/index.es205.js.map +1 -1
  594. package/dist/index.es206.js +31 -13
  595. package/dist/index.es206.js.map +1 -1
  596. package/dist/index.es207.js +13 -13
  597. package/dist/index.es207.js.map +1 -1
  598. package/dist/index.es208.js +4 -8
  599. package/dist/index.es208.js.map +1 -1
  600. package/dist/index.es209.js +7506 -20
  601. package/dist/index.es209.js.map +1 -1
  602. package/dist/index.es21.js +1 -1
  603. package/dist/index.es210.js +2 -23
  604. package/dist/index.es210.js.map +1 -1
  605. package/dist/index.es213.js +1 -1
  606. package/dist/index.es214.js +1 -1
  607. package/dist/index.es215.js +1 -1
  608. package/dist/index.es217.js +1 -1
  609. package/dist/index.es22.js +1 -1
  610. package/dist/index.es220.js +1 -1
  611. package/dist/index.es225.js +1 -1
  612. package/dist/index.es227.js +1 -1
  613. package/dist/index.es228.js +5 -5
  614. package/dist/index.es229.js +1 -1
  615. package/dist/index.es23.js +1 -1
  616. package/dist/index.es230.js +1 -1
  617. package/dist/index.es232.js +1 -1
  618. package/dist/index.es233.js +1 -1
  619. package/dist/index.es234.js +1 -1
  620. package/dist/index.es235.js +1 -1
  621. package/dist/index.es238.js +24 -7506
  622. package/dist/index.es238.js.map +1 -1
  623. package/dist/index.es239.js +17 -2
  624. package/dist/index.es239.js.map +1 -1
  625. package/dist/index.es24.js +1 -1
  626. package/dist/index.es240.js +31 -3
  627. package/dist/index.es240.js.map +1 -1
  628. package/dist/index.es241.js +21 -5
  629. package/dist/index.es241.js.map +1 -1
  630. package/dist/index.es242.js +73 -23
  631. package/dist/index.es242.js.map +1 -1
  632. package/dist/index.es243.js +20 -16
  633. package/dist/index.es243.js.map +1 -1
  634. package/dist/index.es244.js +40 -30
  635. package/dist/index.es244.js.map +1 -1
  636. package/dist/index.es245.js +48 -20
  637. package/dist/index.es245.js.map +1 -1
  638. package/dist/index.es246.js +7 -74
  639. package/dist/index.es246.js.map +1 -1
  640. package/dist/index.es247.js +19 -19
  641. package/dist/index.es247.js.map +1 -1
  642. package/dist/index.es248.js +64 -39
  643. package/dist/index.es248.js.map +1 -1
  644. package/dist/index.es249.js +40 -47
  645. package/dist/index.es249.js.map +1 -1
  646. package/dist/index.es250.js +63 -7
  647. package/dist/index.es250.js.map +1 -1
  648. package/dist/index.es251.js +8 -20
  649. package/dist/index.es251.js.map +1 -1
  650. package/dist/index.es252.js +3 -65
  651. package/dist/index.es252.js.map +1 -1
  652. package/dist/index.es253.js +11 -41
  653. package/dist/index.es253.js.map +1 -1
  654. package/dist/index.es254.js +54 -58
  655. package/dist/index.es254.js.map +1 -1
  656. package/dist/index.es255.js +48 -7
  657. package/dist/index.es255.js.map +1 -1
  658. package/dist/index.es256.js +20 -3
  659. package/dist/index.es256.js.map +1 -1
  660. package/dist/index.es257.js +22 -12
  661. package/dist/index.es257.js.map +1 -1
  662. package/dist/index.es258.js +3 -60
  663. package/dist/index.es258.js.map +1 -1
  664. package/dist/index.es259.js +7 -49
  665. package/dist/index.es259.js.map +1 -1
  666. package/dist/index.es260.js +4 -6
  667. package/dist/index.es260.js.map +1 -1
  668. package/dist/index.es263.js +6 -6
  669. package/dist/index.es264.js +1 -1
  670. package/dist/index.es27.js +1 -1
  671. package/dist/index.es28.js +2 -2
  672. package/dist/index.es29.js +2 -2
  673. package/dist/index.es31.js +1 -1
  674. package/dist/index.es35.js +2 -2
  675. package/dist/index.es38.js +1 -1
  676. package/dist/index.es44.js +1 -1
  677. package/dist/index.es49.js +1 -1
  678. package/dist/index.es50.js +1 -1
  679. package/dist/index.es51.js +1 -1
  680. package/dist/index.es52.js +1 -1
  681. package/dist/index.es54.js +1 -1
  682. package/dist/index.es55.js +2 -2
  683. package/dist/index.es56.js +2 -2
  684. package/dist/index.es57.js +4 -4
  685. package/dist/index.es58.js +1 -1
  686. package/dist/index.es59.js +2 -2
  687. package/dist/index.es60.js +3 -3
  688. package/dist/index.es61.js +2 -2
  689. package/dist/index.es62.js +1 -1
  690. package/dist/index.es68.js +1 -1
  691. package/dist/index.es70.js +12 -12
  692. package/dist/index.es71.js +1992 -7
  693. package/dist/index.es71.js.map +1 -1
  694. package/dist/index.es72.js +6 -2
  695. package/dist/index.es72.js.map +1 -1
  696. package/dist/index.es73.js +2 -26
  697. package/dist/index.es73.js.map +1 -1
  698. package/dist/index.es74.js +7 -588
  699. package/dist/index.es74.js.map +1 -1
  700. package/dist/index.es75.js +2 -1993
  701. package/dist/index.es75.js.map +1 -1
  702. package/dist/index.es76.js +25 -5
  703. package/dist/index.es76.js.map +1 -1
  704. package/dist/index.es77.js +589 -2
  705. package/dist/index.es77.js.map +1 -1
  706. package/dist/index.es84.js +273 -243
  707. package/dist/index.es84.js.map +1 -1
  708. package/dist/index.es85.js +14 -42
  709. package/dist/index.es85.js.map +1 -1
  710. package/dist/index.es86.js +19 -3
  711. package/dist/index.es86.js.map +1 -1
  712. package/dist/index.es87.js +4 -10
  713. package/dist/index.es87.js.map +1 -1
  714. package/dist/index.es88.js +3 -10
  715. package/dist/index.es88.js.map +1 -1
  716. package/dist/index.es89.js +3 -30
  717. package/dist/index.es89.js.map +1 -1
  718. package/dist/index.es90.js +3 -12
  719. package/dist/index.es90.js.map +1 -1
  720. package/dist/index.es91.js +3 -4
  721. package/dist/index.es91.js.map +1 -1
  722. package/dist/index.es92.js +3 -273
  723. package/dist/index.es92.js.map +1 -1
  724. package/dist/index.es93.js +3 -15
  725. package/dist/index.es93.js.map +1 -1
  726. package/dist/index.es94.js +3 -19
  727. package/dist/index.es94.js.map +1 -1
  728. package/dist/index.es95.js +3 -5
  729. package/dist/index.es95.js.map +1 -1
  730. package/dist/index.es96.js +3 -4
  731. package/dist/index.es96.js.map +1 -1
  732. package/dist/index.es97.js +3 -4
  733. package/dist/index.es97.js.map +1 -1
  734. package/dist/index.es98.js +3 -5
  735. package/dist/index.es98.js.map +1 -1
  736. package/dist/index.es99.js +9 -3
  737. package/dist/index.es99.js.map +1 -1
  738. package/package.json +1 -1
  739. package/types/components/LocationMarker.js.flow +82 -0
@@ -1,246 +1,276 @@
1
- import { transformToViewState as d, applyViewStateToTransform as p } from "./index.es209.js";
2
- import { normalizeStyle as l } from "./index.es210.js";
3
- import { deepEqual as i } from "./index.es89.js";
4
- const u = { version: 8, sources: {}, layers: [] }, h = {
5
- mousedown: "onMouseDown",
6
- mouseup: "onMouseUp",
7
- mouseover: "onMouseOver",
8
- mousemove: "onMouseMove",
9
- click: "onClick",
10
- dblclick: "onDblClick",
11
- mouseenter: "onMouseEnter",
12
- mouseleave: "onMouseLeave",
13
- mouseout: "onMouseOut",
14
- contextmenu: "onContextMenu",
15
- touchstart: "onTouchStart",
16
- touchend: "onTouchEnd",
17
- touchmove: "onTouchMove",
18
- touchcancel: "onTouchCancel"
19
- }, m = {
20
- movestart: "onMoveStart",
21
- move: "onMove",
22
- moveend: "onMoveEnd",
23
- dragstart: "onDragStart",
24
- drag: "onDrag",
25
- dragend: "onDragEnd",
26
- zoomstart: "onZoomStart",
27
- zoom: "onZoom",
28
- zoomend: "onZoomEnd",
29
- rotatestart: "onRotateStart",
30
- rotate: "onRotate",
31
- rotateend: "onRotateEnd",
32
- pitchstart: "onPitchStart",
33
- pitch: "onPitch",
34
- pitchend: "onPitchEnd"
35
- }, f = {
36
- wheel: "onWheel",
37
- boxzoomstart: "onBoxZoomStart",
38
- boxzoomend: "onBoxZoomEnd",
39
- boxzoomcancel: "onBoxZoomCancel",
40
- resize: "onResize",
41
- load: "onLoad",
42
- render: "onRender",
43
- idle: "onIdle",
44
- remove: "onRemove",
45
- data: "onData",
46
- styledata: "onStyleData",
47
- sourcedata: "onSourceData",
48
- error: "onError"
49
- }, v = [
50
- "minZoom",
51
- "maxZoom",
52
- "minPitch",
53
- "maxPitch",
54
- "maxBounds",
55
- "projection",
56
- "renderWorldCopies"
57
- ], _ = [
58
- "scrollZoom",
59
- "boxZoom",
60
- "dragRotate",
61
- "dragPan",
62
- "keyboard",
63
- "doubleClickZoom",
64
- "touchZoomRotate",
65
- "touchPitch"
66
- ];
67
- class c {
68
- constructor(t, o, a) {
69
- this._map = null, this._internalUpdate = !1, this._hoveredFeatures = null, this._propsedCameraUpdate = null, this._styleComponents = {}, this._onEvent = (e) => {
70
- const s = this.props[f[e.type]];
71
- s ? s(e) : e.type === "error" && console.error(e.error);
72
- }, this._onCameraEvent = (e) => {
73
- if (this._internalUpdate)
74
- return;
75
- e.viewState = this._propsedCameraUpdate || d(this._map.transform);
76
- const s = this.props[m[e.type]];
77
- s && s(e);
78
- }, this._onCameraUpdate = (e) => this._internalUpdate ? e : (this._propsedCameraUpdate = d(e), p(e, this.props)), this._onPointerEvent = (e) => {
79
- (e.type === "mousemove" || e.type === "mouseout") && this._updateHover(e);
80
- const s = this.props[h[e.type]];
81
- s && (this.props.interactiveLayerIds && e.type !== "mouseover" && e.type !== "mouseout" && (e.features = this._hoveredFeatures || this._queryRenderedFeatures(e.point)), s(e), delete e.features);
82
- }, this._MapClass = t, this.props = o, this._initialize(a);
83
- }
84
- get map() {
85
- return this._map;
86
- }
87
- setProps(t) {
88
- const o = this.props;
89
- this.props = t;
90
- const a = this._updateSettings(t, o), e = this._updateSize(t), s = this._updateViewState(t);
91
- this._updateStyle(t, o), this._updateStyleComponents(t), this._updateHandlers(t, o), (a || e || s && !this._map.isMoving()) && this.redraw();
92
- }
93
- static reuse(t, o) {
94
- const a = c.savedMaps.pop();
95
- if (!a)
96
- return null;
97
- const e = a.map, s = e.getContainer();
98
- for (o.className = s.className; s.childNodes.length > 0; )
99
- o.appendChild(s.childNodes[0]);
100
- e._container = o;
101
- const n = e._resizeObserver;
102
- n && (n.disconnect(), n.observe(o)), a.setProps({ ...t, styleDiffing: !1 }), e.resize();
103
- const { initialViewState: r } = t;
104
- return r && (r.bounds ? e.fitBounds(r.bounds, { ...r.fitBoundsOptions, duration: 0 }) : a._updateViewState(r)), e.isStyleLoaded() ? e.fire("load") : e.once("style.load", () => e.fire("load")), e._update(), a;
105
- }
106
- /* eslint-disable complexity,max-statements */
107
- _initialize(t) {
108
- const { props: o } = this, { mapStyle: a = u } = o, e = {
109
- ...o,
110
- ...o.initialViewState,
111
- container: t,
112
- style: l(a)
113
- }, s = e.initialViewState || e.viewState || e;
114
- if (Object.assign(e, {
115
- center: [s.longitude || 0, s.latitude || 0],
116
- zoom: s.zoom || 0,
117
- pitch: s.pitch || 0,
118
- bearing: s.bearing || 0
119
- }), o.gl) {
120
- const r = HTMLCanvasElement.prototype.getContext;
121
- HTMLCanvasElement.prototype.getContext = () => (HTMLCanvasElement.prototype.getContext = r, o.gl);
122
- }
123
- const n = new this._MapClass(e);
124
- s.padding && n.setPadding(s.padding), o.cursor && (n.getCanvas().style.cursor = o.cursor), n.transformCameraUpdate = this._onCameraUpdate, n.on("style.load", () => {
125
- this._styleComponents = {
126
- light: n.getLight(),
127
- sky: n.getSky(),
128
- // @ts-ignore getProjection() does not exist in v4
129
- projection: n.getProjection?.(),
130
- terrain: n.getTerrain()
131
- }, this._updateStyleComponents(this.props);
132
- }), n.on("sourcedata", () => {
133
- this._updateStyleComponents(this.props);
134
- });
135
- for (const r in h)
136
- n.on(r, this._onPointerEvent);
137
- for (const r in m)
138
- n.on(r, this._onCameraEvent);
139
- for (const r in f)
140
- n.on(r, this._onEvent);
141
- this._map = n;
142
- }
143
- /* eslint-enable complexity,max-statements */
144
- recycle() {
145
- this.map.getContainer().querySelector("[mapboxgl-children]")?.remove(), c.savedMaps.push(this);
146
- }
147
- destroy() {
148
- this._map.remove();
149
- }
150
- // Force redraw the map now. Typically resize() and jumpTo() is reflected in the next
151
- // render cycle, which is managed by Mapbox's animation loop.
152
- // This removes the synchronization issue caused by requestAnimationFrame.
153
- redraw() {
154
- const t = this._map;
155
- t.style && (t._frame && (t._frame.cancel(), t._frame = null), t._render());
156
- }
157
- /* Trigger map resize if size is controlled
158
- @param {object} nextProps
159
- @returns {bool} true if size has changed
160
- */
161
- _updateSize(t) {
162
- const { viewState: o } = t;
163
- if (o) {
164
- const a = this._map;
165
- if (o.width !== a.transform.width || o.height !== a.transform.height)
166
- return a.resize(), !0;
167
- }
168
- return !1;
169
- }
170
- // Adapted from map.jumpTo
171
- /* Update camera to match props
172
- @param {object} nextProps
173
- @param {bool} triggerEvents - should fire camera events
174
- @returns {bool} true if anything is changed
175
- */
176
- _updateViewState(t) {
177
- const o = this._map, a = o.transform;
178
- if (!o.isMoving()) {
179
- const s = p(a, t);
180
- if (Object.keys(s).length > 0)
181
- return this._internalUpdate = !0, o.jumpTo(s), this._internalUpdate = !1, !0;
182
- }
183
- return !1;
184
- }
185
- /* Update camera constraints and projection settings to match props
186
- @param {object} nextProps
187
- @param {object} currProps
188
- @returns {bool} true if anything is changed
189
- */
190
- _updateSettings(t, o) {
191
- const a = this._map;
192
- let e = !1;
193
- for (const s of v)
194
- s in t && !i(t[s], o[s]) && (e = !0, a[`set${s[0].toUpperCase()}${s.slice(1)}`]?.call(a, t[s]));
195
- return e;
196
- }
197
- /* Update map style to match props */
198
- _updateStyle(t, o) {
199
- if (t.cursor !== o.cursor && (this._map.getCanvas().style.cursor = t.cursor || ""), t.mapStyle !== o.mapStyle) {
200
- const { mapStyle: a = u, styleDiffing: e = !0 } = t, s = {
201
- diff: e
202
- };
203
- "localIdeographFontFamily" in t && (s.localIdeographFontFamily = t.localIdeographFontFamily), this._map.setStyle(l(a), s);
204
- }
205
- }
206
- /* Update fog, light, projection and terrain to match props
207
- * These props are special because
208
- * 1. They can not be applied right away. Certain conditions (style loaded, source loaded, etc.) must be met
209
- * 2. They can be overwritten by mapStyle
210
- */
211
- _updateStyleComponents({ light: t, projection: o, sky: a, terrain: e }) {
212
- const s = this._map, n = this._styleComponents;
213
- s.style._loaded && (t && !i(t, n.light) && (n.light = t, s.setLight(t)), o && !i(o, n.projection) && o !== n.projection?.type && (n.projection = typeof o == "string" ? { type: o } : o, s.setProjection?.(n.projection)), a && !i(a, n.sky) && (n.sky = a, s.setSky(a)), e !== void 0 && !i(e, n.terrain) && (!e || s.getSource(e.source)) && (n.terrain = e, s.setTerrain(e)));
214
- }
215
- /* Update interaction handlers to match props */
216
- _updateHandlers(t, o) {
217
- const a = this._map;
218
- for (const e of _) {
219
- const s = t[e] ?? !0, n = o[e] ?? !0;
220
- i(s, n) || (s ? a[e].enable(s) : a[e].disable());
221
- }
222
- }
223
- _queryRenderedFeatures(t) {
224
- const o = this._map, { interactiveLayerIds: a = [] } = this.props;
225
- try {
226
- return o.queryRenderedFeatures(t, {
227
- layers: a.filter(o.getLayer.bind(o))
228
- });
229
- } catch {
230
- return [];
231
- }
232
- }
233
- _updateHover(t) {
234
- const { props: o } = this;
235
- if (o.interactiveLayerIds && (o.onMouseMove || o.onMouseEnter || o.onMouseLeave)) {
236
- const e = t.type, s = this._hoveredFeatures?.length > 0, n = this._queryRenderedFeatures(t.point), r = n.length > 0;
237
- !r && s && (t.type = "mouseleave", this._onPointerEvent(t)), this._hoveredFeatures = n, r && !s && (t.type = "mouseenter", this._onPointerEvent(t)), t.type = e;
238
- } else
239
- this._hoveredFeatures = null;
240
- }
241
- }
242
- c.savedMaps = [];
1
+ import { VERSION as r } from "./index.es36.js";
2
+ import { default as o } from "./index.es86.js";
3
+ import { default as l } from "./index.es87.js";
4
+ import { default as u } from "./index.es88.js";
5
+ import { default as m } from "./index.es89.js";
6
+ import { default as i } from "./index.es90.js";
7
+ import { default as c } from "./index.es91.js";
8
+ import { default as h } from "./index.es92.js";
9
+ import { default as b } from "./index.es93.js";
10
+ import { default as A } from "./index.es94.js";
11
+ import { default as O } from "./index.es95.js";
12
+ import { default as B } from "./index.es96.js";
13
+ import { default as S } from "./index.es97.js";
14
+ import { default as N } from "./index.es98.js";
15
+ import { default as v } from "./index.es99.js";
16
+ import { default as M } from "./index.es100.js";
17
+ import { default as W } from "./index.es37.js";
18
+ import { default as F } from "./index.es39.js";
19
+ import { default as V } from "./index.es101.js";
20
+ import { default as P } from "./index.es102.js";
21
+ import { default as U } from "./index.es103.js";
22
+ import { default as G } from "./index.es104.js";
23
+ import { default as J } from "./index.es105.js";
24
+ import { default as X } from "./index.es106.js";
25
+ import { default as Z } from "./index.es41.js";
26
+ import { default as $ } from "./index.es42.js";
27
+ import { default as te } from "./index.es43.js";
28
+ import { default as re } from "./index.es107.js";
29
+ import { default as oe } from "./index.es108.js";
30
+ import { default as le } from "./index.es109.js";
31
+ import { default as ue } from "./index.es110.js";
32
+ import { default as me } from "./index.es111.js";
33
+ import { default as ie } from "./index.es112.js";
34
+ import { default as ce, default as ye } from "./index.es113.js";
35
+ import { default as ge } from "./index.es114.js";
36
+ import { default as ke, default as Ae } from "./index.es115.js";
37
+ import { default as Oe } from "./index.es116.js";
38
+ import { default as Be } from "./index.es117.js";
39
+ import { default as Se } from "./index.es118.js";
40
+ import { default as Ne } from "./index.es119.js";
41
+ import { default as ve } from "./index.es120.js";
42
+ import { default as Me } from "./index.es121.js";
43
+ import { default as We } from "./index.es122.js";
44
+ import { default as Fe } from "./index.es123.js";
45
+ import { default as Ve } from "./index.es124.js";
46
+ import { default as Pe } from "./index.es125.js";
47
+ import { default as Ue } from "./index.es44.js";
48
+ import { default as Ge } from "./index.es126.js";
49
+ import { default as Je } from "./index.es127.js";
50
+ import { default as Xe, default as Ye } from "./index.es128.js";
51
+ import { default as _e } from "./index.es129.js";
52
+ import { default as et } from "./index.es130.js";
53
+ import { default as at } from "./index.es131.js";
54
+ import { default as ft } from "./index.es46.js";
55
+ import { default as st } from "./index.es47.js";
56
+ import { default as dt } from "./index.es48.js";
57
+ import { default as pt } from "./index.es132.js";
58
+ import { default as xt } from "./index.es133.js";
59
+ import { default as nt } from "./index.es134.js";
60
+ import { default as yt } from "./index.es135.js";
61
+ import { default as gt } from "./index.es45.js";
62
+ import { default as kt } from "./index.es49.js";
63
+ import { default as Et } from "./index.es50.js";
64
+ import { default as wt } from "./index.es51.js";
65
+ import { default as It } from "./index.es136.js";
66
+ import { default as jt } from "./index.es52.js";
67
+ import { default as qt } from "./index.es53.js";
68
+ import { default as zt } from "./index.es137.js";
69
+ import { default as Rt } from "./index.es138.js";
70
+ import { default as Dt } from "./index.es139.js";
71
+ import { default as Kt } from "./index.es140.js";
72
+ import { default as Lt } from "./index.es141.js";
73
+ import { default as Tt } from "./index.es142.js";
74
+ import { default as Ct } from "./index.es143.js";
75
+ import { default as Ht } from "./index.es54.js";
76
+ import { default as Qt } from "./index.es144.js";
77
+ import { default as Yt } from "./index.es145.js";
78
+ import { default as _t } from "./index.es146.js";
79
+ import { default as ea } from "./index.es147.js";
80
+ import { default as aa } from "./index.es148.js";
81
+ import { default as fa } from "./index.es149.js";
82
+ import { default as sa, default as la } from "./index.es150.js";
83
+ import { default as ua } from "./index.es151.js";
84
+ import { default as ma, default as xa } from "./index.es152.js";
85
+ import { default as na, default as ca } from "./index.es153.js";
86
+ import { default as ha, default as ga, default as ba } from "./index.es154.js";
87
+ import { default as Aa, default as Ea } from "./index.es155.js";
88
+ import { default as wa, default as Ba } from "./index.es156.js";
89
+ import { default as Sa } from "./index.es157.js";
90
+ import { default as Na, default as qa } from "./index.es158.js";
91
+ import { default as za, default as Ma } from "./index.es159.js";
92
+ import { default as Wa, default as Da, default as Fa } from "./index.es160.js";
93
+ import { default as Va } from "./index.es55.js";
94
+ import { default as Pa } from "./index.es161.js";
95
+ import { default as Ua } from "./index.es162.js";
96
+ import { default as Ga } from "./index.es163.js";
97
+ import { default as Ja } from "./index.es164.js";
98
+ import { default as Xa } from "./index.es165.js";
99
+ import { default as Za } from "./index.es166.js";
100
+ import { default as $a } from "./index.es167.js";
101
+ import { default as tr } from "./index.es168.js";
102
+ import { default as rr } from "./index.es169.js";
103
+ import { default as or } from "./index.es170.js";
104
+ import { default as lr } from "./index.es171.js";
105
+ import { default as ur } from "./index.es172.js";
106
+ import { default as mr } from "./index.es173.js";
107
+ import { default as ir } from "./index.es56.js";
108
+ import { default as cr } from "./index.es57.js";
109
+ import { default as hr, default as gr, default as br } from "./index.es174.js";
110
+ import { default as Ar } from "./index.es175.js";
111
+ import { default as Or } from "./index.es176.js";
112
+ import { default as Br, default as Ir, default as Sr } from "./index.es177.js";
113
+ import { default as Nr } from "./index.es178.js";
114
+ import { default as vr } from "./index.es179.js";
115
+ import { default as Mr } from "./index.es58.js";
116
+ import { default as Wr, default as Dr } from "./index.es180.js";
117
+ import { default as Kr } from "./index.es59.js";
118
+ import { default as Lr } from "./index.es181.js";
119
+ import { default as Tr } from "./index.es60.js";
120
+ import { default as Cr, default as Gr } from "./index.es182.js";
121
+ import { default as Jr } from "./index.es61.js";
122
+ import { default as Xr } from "./index.es183.js";
123
+ import { default as Zr } from "./index.es184.js";
124
+ import { default as $r } from "./index.es185.js";
125
+ import { default as tf } from "./index.es85.js";
126
+ import "./index.es62.js";
127
+ import { default as rf } from "./index.es40.js";
243
128
  export {
244
- c as default
129
+ r as VERSION,
130
+ Tt as after,
131
+ Na as all,
132
+ le as allKeys,
133
+ za as any,
134
+ ke as assign,
135
+ Ct as before,
136
+ Et as bind,
137
+ wt as bindAll,
138
+ yt as chain,
139
+ $r as chunk,
140
+ Se as clone,
141
+ na as collect,
142
+ Nr as compact,
143
+ Lt as compose,
144
+ Ve as constant,
145
+ Wa as contains,
146
+ or as countBy,
147
+ Be as create,
148
+ Rt as debounce,
149
+ rf as default,
150
+ Oe as defaults,
151
+ qt as defer,
152
+ jt as delay,
153
+ sa as detect,
154
+ Tr as difference,
155
+ Br as drop,
156
+ ma as each,
157
+ ft as escape,
158
+ qa as every,
159
+ ge as extend,
160
+ Ae as extendOwn,
161
+ wa as filter,
162
+ la as find,
163
+ Yt as findIndex,
164
+ Qt as findKey,
165
+ _t as findLastIndex,
166
+ ua as findWhere,
167
+ hr as first,
168
+ vr as flatten,
169
+ ha as foldl,
170
+ Aa as foldr,
171
+ xa as forEach,
172
+ ce as functions,
173
+ ve as get,
174
+ tr as groupBy,
175
+ Me as has,
176
+ gr as head,
177
+ Fe as identity,
178
+ Da as include,
179
+ Fa as includes,
180
+ rr as indexBy,
181
+ aa as indexOf,
182
+ Ar as initial,
183
+ ga as inject,
184
+ Lr as intersection,
185
+ ie as invert,
186
+ Va as invoke,
187
+ F as isArguments,
188
+ M as isArray,
189
+ N as isArrayBuffer,
190
+ i as isBoolean,
191
+ v as isDataView,
192
+ A as isDate,
193
+ c as isElement,
194
+ G as isEmpty,
195
+ X as isEqual,
196
+ B as isError,
197
+ V as isFinite,
198
+ W as isFunction,
199
+ Z as isMap,
200
+ J as isMatch,
201
+ P as isNaN,
202
+ u as isNull,
203
+ b as isNumber,
204
+ l as isObject,
205
+ O as isRegExp,
206
+ te as isSet,
207
+ h as isString,
208
+ S as isSymbol,
209
+ U as isTypedArray,
210
+ m as isUndefined,
211
+ $ as isWeakMap,
212
+ re as isWeakSet,
213
+ gt as iteratee,
214
+ oe as keys,
215
+ Or as last,
216
+ fa as lastIndexOf,
217
+ ca as map,
218
+ We as mapObject,
219
+ Xe as matcher,
220
+ Ye as matches,
221
+ Ga as max,
222
+ It as memoize,
223
+ ye as methods,
224
+ Ja as min,
225
+ tf as mixin,
226
+ Kt as negate,
227
+ Pe as noop,
228
+ at as now,
229
+ Xr as object,
230
+ cr as omit,
231
+ Ht as once,
232
+ me as pairs,
233
+ kt as partial,
234
+ lr as partition,
235
+ ir as pick,
236
+ Pa as pluck,
237
+ Ge as property,
238
+ Je as propertyOf,
239
+ et as random,
240
+ Zr as range,
241
+ ba as reduce,
242
+ Ea as reduceRight,
243
+ Sa as reject,
244
+ Ir as rest,
245
+ o as restArguments,
246
+ xt as result,
247
+ Za as sample,
248
+ Ba as select,
249
+ Xa as shuffle,
250
+ mr as size,
251
+ Ma as some,
252
+ $a as sortBy,
253
+ ea as sortedIndex,
254
+ Sr as tail,
255
+ br as take,
256
+ Ne as tap,
257
+ pt as template,
258
+ dt as templateSettings,
259
+ zt as throttle,
260
+ _e as times,
261
+ ur as toArray,
262
+ Ue as toPath,
263
+ Cr as transpose,
264
+ st as unescape,
265
+ Kr as union,
266
+ Wr as uniq,
267
+ Dr as unique,
268
+ nt as uniqueId,
269
+ Gr as unzip,
270
+ ue as values,
271
+ Ua as where,
272
+ Mr as without,
273
+ Dt as wrap,
274
+ Jr as zip
245
275
  };
246
276
  //# sourceMappingURL=index.es84.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es84.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/maplibre/maplibre.js"],"sourcesContent":["import { transformToViewState, applyViewStateToTransform } from \"../utils/transform.js\";\nimport { normalizeStyle } from \"../utils/style-utils.js\";\nimport { deepEqual } from \"../utils/deep-equal.js\";\nconst DEFAULT_STYLE = { version: 8, sources: {}, layers: [] };\nconst pointerEvents = {\n mousedown: 'onMouseDown',\n mouseup: 'onMouseUp',\n mouseover: 'onMouseOver',\n mousemove: 'onMouseMove',\n click: 'onClick',\n dblclick: 'onDblClick',\n mouseenter: 'onMouseEnter',\n mouseleave: 'onMouseLeave',\n mouseout: 'onMouseOut',\n contextmenu: 'onContextMenu',\n touchstart: 'onTouchStart',\n touchend: 'onTouchEnd',\n touchmove: 'onTouchMove',\n touchcancel: 'onTouchCancel'\n};\nconst cameraEvents = {\n movestart: 'onMoveStart',\n move: 'onMove',\n moveend: 'onMoveEnd',\n dragstart: 'onDragStart',\n drag: 'onDrag',\n dragend: 'onDragEnd',\n zoomstart: 'onZoomStart',\n zoom: 'onZoom',\n zoomend: 'onZoomEnd',\n rotatestart: 'onRotateStart',\n rotate: 'onRotate',\n rotateend: 'onRotateEnd',\n pitchstart: 'onPitchStart',\n pitch: 'onPitch',\n pitchend: 'onPitchEnd'\n};\nconst otherEvents = {\n wheel: 'onWheel',\n boxzoomstart: 'onBoxZoomStart',\n boxzoomend: 'onBoxZoomEnd',\n boxzoomcancel: 'onBoxZoomCancel',\n resize: 'onResize',\n load: 'onLoad',\n render: 'onRender',\n idle: 'onIdle',\n remove: 'onRemove',\n data: 'onData',\n styledata: 'onStyleData',\n sourcedata: 'onSourceData',\n error: 'onError'\n};\nconst settingNames = [\n 'minZoom',\n 'maxZoom',\n 'minPitch',\n 'maxPitch',\n 'maxBounds',\n 'projection',\n 'renderWorldCopies'\n];\nconst handlerNames = [\n 'scrollZoom',\n 'boxZoom',\n 'dragRotate',\n 'dragPan',\n 'keyboard',\n 'doubleClickZoom',\n 'touchZoomRotate',\n 'touchPitch'\n];\n/**\n * A wrapper for mapbox-gl's Map class\n */\nclass Maplibre {\n constructor(MapClass, props, container) {\n // mapboxgl.Map instance\n this._map = null;\n // Internal states\n this._internalUpdate = false;\n this._hoveredFeatures = null;\n this._propsedCameraUpdate = null;\n this._styleComponents = {};\n this._onEvent = (e) => {\n // @ts-ignore\n const cb = this.props[otherEvents[e.type]];\n if (cb) {\n cb(e);\n }\n else if (e.type === 'error') {\n console.error(e.error); // eslint-disable-line\n }\n };\n this._onCameraEvent = (e) => {\n if (this._internalUpdate) {\n return;\n }\n e.viewState = this._propsedCameraUpdate || transformToViewState(this._map.transform);\n // @ts-ignore\n const cb = this.props[cameraEvents[e.type]];\n if (cb) {\n cb(e);\n }\n };\n this._onCameraUpdate = (tr) => {\n if (this._internalUpdate) {\n return tr;\n }\n this._propsedCameraUpdate = transformToViewState(tr);\n return applyViewStateToTransform(tr, this.props);\n };\n this._onPointerEvent = (e) => {\n if (e.type === 'mousemove' || e.type === 'mouseout') {\n this._updateHover(e);\n }\n // @ts-ignore\n const cb = this.props[pointerEvents[e.type]];\n if (cb) {\n if (this.props.interactiveLayerIds && e.type !== 'mouseover' && e.type !== 'mouseout') {\n e.features = this._hoveredFeatures || this._queryRenderedFeatures(e.point);\n }\n cb(e);\n delete e.features;\n }\n };\n this._MapClass = MapClass;\n this.props = props;\n this._initialize(container);\n }\n get map() {\n return this._map;\n }\n setProps(props) {\n const oldProps = this.props;\n this.props = props;\n const settingsChanged = this._updateSettings(props, oldProps);\n const sizeChanged = this._updateSize(props);\n const viewStateChanged = this._updateViewState(props);\n this._updateStyle(props, oldProps);\n this._updateStyleComponents(props);\n this._updateHandlers(props, oldProps);\n // If 1) view state has changed to match props and\n // 2) the props change is not triggered by map events,\n // it's driven by an external state change. Redraw immediately\n if (settingsChanged || sizeChanged || (viewStateChanged && !this._map.isMoving())) {\n this.redraw();\n }\n }\n static reuse(props, container) {\n const that = Maplibre.savedMaps.pop();\n if (!that) {\n return null;\n }\n const map = that.map;\n // When reusing the saved map, we need to reparent the map(canvas) and other child nodes\n // intoto the new container from the props.\n // Step 1: reparenting child nodes from old container to new container\n const oldContainer = map.getContainer();\n container.className = oldContainer.className;\n while (oldContainer.childNodes.length > 0) {\n container.appendChild(oldContainer.childNodes[0]);\n }\n // Step 2: replace the internal container with new container from the react component\n // @ts-ignore\n map._container = container;\n // With maplibre-gl as mapLib, map uses ResizeObserver to observe when its container resizes.\n // When reusing the saved map, we need to disconnect the observer and observe the new container.\n // Step 3: telling the ResizeObserver to disconnect and observe the new container\n // @ts-ignore\n const resizeObserver = map._resizeObserver;\n if (resizeObserver) {\n resizeObserver.disconnect();\n resizeObserver.observe(container);\n }\n // Step 4: apply new props\n that.setProps({ ...props, styleDiffing: false });\n map.resize();\n const { initialViewState } = props;\n if (initialViewState) {\n if (initialViewState.bounds) {\n map.fitBounds(initialViewState.bounds, { ...initialViewState.fitBoundsOptions, duration: 0 });\n }\n else {\n that._updateViewState(initialViewState);\n }\n }\n // Simulate load event\n if (map.isStyleLoaded()) {\n map.fire('load');\n }\n else {\n map.once('style.load', () => map.fire('load'));\n }\n // Force reload\n // @ts-ignore\n map._update();\n return that;\n }\n /* eslint-disable complexity,max-statements */\n _initialize(container) {\n const { props } = this;\n const { mapStyle = DEFAULT_STYLE } = props;\n const mapOptions = {\n ...props,\n ...props.initialViewState,\n container,\n style: normalizeStyle(mapStyle)\n };\n const viewState = mapOptions.initialViewState || mapOptions.viewState || mapOptions;\n Object.assign(mapOptions, {\n center: [viewState.longitude || 0, viewState.latitude || 0],\n zoom: viewState.zoom || 0,\n pitch: viewState.pitch || 0,\n bearing: viewState.bearing || 0\n });\n if (props.gl) {\n // eslint-disable-next-line\n const getContext = HTMLCanvasElement.prototype.getContext;\n // Hijack canvas.getContext to return our own WebGLContext\n // This will be called inside the mapboxgl.Map constructor\n // @ts-expect-error\n HTMLCanvasElement.prototype.getContext = () => {\n // Unhijack immediately\n HTMLCanvasElement.prototype.getContext = getContext;\n return props.gl;\n };\n }\n const map = new this._MapClass(mapOptions);\n // Props that are not part of constructor options\n if (viewState.padding) {\n map.setPadding(viewState.padding);\n }\n if (props.cursor) {\n map.getCanvas().style.cursor = props.cursor;\n }\n // add listeners\n map.transformCameraUpdate = this._onCameraUpdate;\n map.on('style.load', () => {\n // Map style has changed, this would have wiped out all settings from props\n this._styleComponents = {\n light: map.getLight(),\n sky: map.getSky(),\n // @ts-ignore getProjection() does not exist in v4\n projection: map.getProjection?.(),\n terrain: map.getTerrain()\n };\n this._updateStyleComponents(this.props);\n });\n map.on('sourcedata', () => {\n // Some sources have loaded, we may need them to attach terrain\n this._updateStyleComponents(this.props);\n });\n for (const eventName in pointerEvents) {\n map.on(eventName, this._onPointerEvent);\n }\n for (const eventName in cameraEvents) {\n map.on(eventName, this._onCameraEvent);\n }\n for (const eventName in otherEvents) {\n map.on(eventName, this._onEvent);\n }\n this._map = map;\n }\n /* eslint-enable complexity,max-statements */\n recycle() {\n // Clean up unnecessary elements before storing for reuse.\n const container = this.map.getContainer();\n const children = container.querySelector('[mapboxgl-children]');\n children?.remove();\n Maplibre.savedMaps.push(this);\n }\n destroy() {\n this._map.remove();\n }\n // Force redraw the map now. Typically resize() and jumpTo() is reflected in the next\n // render cycle, which is managed by Mapbox's animation loop.\n // This removes the synchronization issue caused by requestAnimationFrame.\n redraw() {\n const map = this._map;\n // map._render will throw error if style does not exist\n // https://github.com/mapbox/mapbox-gl-js/blob/fb9fc316da14e99ff4368f3e4faa3888fb43c513\n // /src/ui/map.js#L1834\n if (map.style) {\n // cancel the scheduled update\n if (map._frame) {\n map._frame.cancel();\n map._frame = null;\n }\n // the order is important - render() may schedule another update\n map._render();\n }\n }\n /* Trigger map resize if size is controlled\n @param {object} nextProps\n @returns {bool} true if size has changed\n */\n _updateSize(nextProps) {\n // Check if size is controlled\n const { viewState } = nextProps;\n if (viewState) {\n const map = this._map;\n if (viewState.width !== map.transform.width || viewState.height !== map.transform.height) {\n map.resize();\n return true;\n }\n }\n return false;\n }\n // Adapted from map.jumpTo\n /* Update camera to match props\n @param {object} nextProps\n @param {bool} triggerEvents - should fire camera events\n @returns {bool} true if anything is changed\n */\n _updateViewState(nextProps) {\n const map = this._map;\n const tr = map.transform;\n const isMoving = map.isMoving();\n // Avoid manipulating the real transform when interaction/animation is ongoing\n // as it would interfere with Mapbox's handlers\n if (!isMoving) {\n const changes = applyViewStateToTransform(tr, nextProps);\n if (Object.keys(changes).length > 0) {\n this._internalUpdate = true;\n map.jumpTo(changes);\n this._internalUpdate = false;\n return true;\n }\n }\n return false;\n }\n /* Update camera constraints and projection settings to match props\n @param {object} nextProps\n @param {object} currProps\n @returns {bool} true if anything is changed\n */\n _updateSettings(nextProps, currProps) {\n const map = this._map;\n let changed = false;\n for (const propName of settingNames) {\n if (propName in nextProps && !deepEqual(nextProps[propName], currProps[propName])) {\n changed = true;\n const setter = map[`set${propName[0].toUpperCase()}${propName.slice(1)}`];\n setter?.call(map, nextProps[propName]);\n }\n }\n return changed;\n }\n /* Update map style to match props */\n _updateStyle(nextProps, currProps) {\n if (nextProps.cursor !== currProps.cursor) {\n this._map.getCanvas().style.cursor = nextProps.cursor || '';\n }\n if (nextProps.mapStyle !== currProps.mapStyle) {\n const { mapStyle = DEFAULT_STYLE, styleDiffing = true } = nextProps;\n const options = {\n diff: styleDiffing\n };\n if ('localIdeographFontFamily' in nextProps) {\n // @ts-ignore Mapbox specific prop\n options.localIdeographFontFamily = nextProps.localIdeographFontFamily;\n }\n this._map.setStyle(normalizeStyle(mapStyle), options);\n }\n }\n /* Update fog, light, projection and terrain to match props\n * These props are special because\n * 1. They can not be applied right away. Certain conditions (style loaded, source loaded, etc.) must be met\n * 2. They can be overwritten by mapStyle\n */\n _updateStyleComponents({ light, projection, sky, terrain }) {\n const map = this._map;\n const currProps = this._styleComponents;\n // We can safely manipulate map style once it's loaded\n if (map.style._loaded) {\n if (light && !deepEqual(light, currProps.light)) {\n currProps.light = light;\n map.setLight(light);\n }\n if (projection &&\n !deepEqual(projection, currProps.projection) &&\n projection !== currProps.projection?.type) {\n currProps.projection = typeof projection === 'string' ? { type: projection } : projection;\n // @ts-ignore setProjection does not exist in v4\n map.setProjection?.(currProps.projection);\n }\n if (sky && !deepEqual(sky, currProps.sky)) {\n currProps.sky = sky;\n map.setSky(sky);\n }\n if (terrain !== undefined && !deepEqual(terrain, currProps.terrain)) {\n if (!terrain || map.getSource(terrain.source)) {\n currProps.terrain = terrain;\n map.setTerrain(terrain);\n }\n }\n }\n }\n /* Update interaction handlers to match props */\n _updateHandlers(nextProps, currProps) {\n const map = this._map;\n for (const propName of handlerNames) {\n const newValue = nextProps[propName] ?? true;\n const oldValue = currProps[propName] ?? true;\n if (!deepEqual(newValue, oldValue)) {\n if (newValue) {\n map[propName].enable(newValue);\n }\n else {\n map[propName].disable();\n }\n }\n }\n }\n _queryRenderedFeatures(point) {\n const map = this._map;\n const { interactiveLayerIds = [] } = this.props;\n try {\n return map.queryRenderedFeatures(point, {\n layers: interactiveLayerIds.filter(map.getLayer.bind(map))\n });\n }\n catch {\n // May fail if style is not loaded\n return [];\n }\n }\n _updateHover(e) {\n const { props } = this;\n const shouldTrackHoveredFeatures = props.interactiveLayerIds && (props.onMouseMove || props.onMouseEnter || props.onMouseLeave);\n if (shouldTrackHoveredFeatures) {\n const eventType = e.type;\n const wasHovering = this._hoveredFeatures?.length > 0;\n const features = this._queryRenderedFeatures(e.point);\n const isHovering = features.length > 0;\n if (!isHovering && wasHovering) {\n e.type = 'mouseleave';\n this._onPointerEvent(e);\n }\n this._hoveredFeatures = features;\n if (isHovering && !wasHovering) {\n e.type = 'mouseenter';\n this._onPointerEvent(e);\n }\n e.type = eventType;\n }\n else {\n this._hoveredFeatures = null;\n }\n }\n}\nMaplibre.savedMaps = [];\nexport default Maplibre;\n//# sourceMappingURL=maplibre.js.map"],"names":["DEFAULT_STYLE","pointerEvents","cameraEvents","otherEvents","settingNames","handlerNames","Maplibre","MapClass","props","container","cb","transformToViewState","tr","applyViewStateToTransform","oldProps","settingsChanged","sizeChanged","viewStateChanged","that","map","oldContainer","resizeObserver","initialViewState","mapStyle","mapOptions","normalizeStyle","viewState","getContext","eventName","nextProps","changes","currProps","changed","propName","deepEqual","styleDiffing","options","light","projection","sky","terrain","newValue","oldValue","point","interactiveLayerIds","e","eventType","wasHovering","features","isHovering"],"mappings":";;;AAGA,MAAMA,IAAgB,EAAE,SAAS,GAAG,SAAS,CAAA,GAAI,QAAQ,GAAC,GACpDC,IAAgB;AAAA,EAClB,WAAW;AAAA,EACX,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,WAAW;AAAA,EACX,aAAa;AACjB,GACMC,IAAe;AAAA,EACjB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,WAAW;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,WAAW;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,UAAU;AACd,GACMC,IAAc;AAAA,EAChB,OAAO;AAAA,EACP,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,OAAO;AACX,GACMC,IAAe;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,GACMC,IAAe;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,46 +1,18 @@
1
- const s = [
2
- "setMaxBounds",
3
- "setMinZoom",
4
- "setMaxZoom",
5
- "setMinPitch",
6
- "setMaxPitch",
7
- "setRenderWorldCopies",
8
- "setProjection",
9
- "setStyle",
10
- "addSource",
11
- "removeSource",
12
- "addLayer",
13
- "removeLayer",
14
- "setLayerZoomRange",
15
- "setFilter",
16
- "setPaintProperty",
17
- "setLayoutProperty",
18
- "setLight",
19
- "setTerrain",
20
- "setFog",
21
- "remove"
22
- ];
23
- function i(r) {
24
- if (!r)
25
- return null;
26
- const o = r.map, t = {
27
- getMap: () => o
28
- };
29
- for (const e of n(o))
30
- !(e in t) && !s.includes(e) && (t[e] = o[e].bind(o));
31
- return t;
32
- }
33
- function n(r) {
34
- const o = /* @__PURE__ */ new Set();
35
- let t = r;
36
- for (; t; ) {
37
- for (const e of Object.getOwnPropertyNames(t))
38
- e[0] !== "_" && typeof r[e] == "function" && e !== "fire" && e !== "setEventedParent" && o.add(e);
39
- t = Object.getPrototypeOf(t);
40
- }
41
- return Array.from(o);
1
+ import r from "./index.es40.js";
2
+ import n from "./index.es152.js";
3
+ import f from "./index.es113.js";
4
+ import { push as u } from "./index.es36.js";
5
+ import m from "./index.es237.js";
6
+ function l(o) {
7
+ return n(f(o), function(t) {
8
+ var i = r[t] = o[t];
9
+ r.prototype[t] = function() {
10
+ var p = [this._wrapped];
11
+ return u.apply(p, arguments), m(this, i.apply(r, p));
12
+ };
13
+ }), r;
42
14
  }
43
15
  export {
44
- i as default
16
+ l as default
45
17
  };
46
18
  //# sourceMappingURL=index.es85.js.map