@performant-software/geospatial 2.1.0-beta.3 → 2.1.0-beta.31

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 (298) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.cjs10.js +1 -1
  3. package/dist/index.cjs10.js.map +1 -1
  4. package/dist/index.cjs103.js +1 -1
  5. package/dist/index.cjs11.js +1 -1
  6. package/dist/index.cjs11.js.map +1 -1
  7. package/dist/index.cjs12.js +1 -1
  8. package/dist/index.cjs12.js.map +1 -1
  9. package/dist/index.cjs122.js +1 -1
  10. package/dist/index.cjs123.js +1 -1
  11. package/dist/index.cjs125.js +1 -1
  12. package/dist/index.cjs129.js +1 -1
  13. package/dist/index.cjs13.js +1 -1
  14. package/dist/index.cjs13.js.map +1 -1
  15. package/dist/index.cjs14.js +1 -1
  16. package/dist/index.cjs14.js.map +1 -1
  17. package/dist/index.cjs15.js +1 -1
  18. package/dist/index.cjs15.js.map +1 -1
  19. package/dist/index.cjs16.js +1 -1
  20. package/dist/index.cjs16.js.map +1 -1
  21. package/dist/index.cjs162.js +1 -1
  22. package/dist/index.cjs165.js +1 -1
  23. package/dist/index.cjs167.js +1 -1
  24. package/dist/index.cjs17.js +1 -1
  25. package/dist/index.cjs17.js.map +1 -1
  26. package/dist/index.cjs175.js +1 -1
  27. package/dist/index.cjs18.js +1 -1
  28. package/dist/index.cjs18.js.map +1 -1
  29. package/dist/index.cjs19.js +1 -1
  30. package/dist/index.cjs19.js.map +1 -1
  31. package/dist/index.cjs191.js +1 -1
  32. package/dist/index.cjs199.js +1 -1
  33. package/dist/index.cjs2.js +1 -1
  34. package/dist/index.cjs20.js +1 -1
  35. package/dist/index.cjs20.js.map +1 -1
  36. package/dist/index.cjs200.js +1 -1
  37. package/dist/index.cjs201.js +1 -1
  38. package/dist/index.cjs202.js +1 -1
  39. package/dist/index.cjs203.js +1 -1
  40. package/dist/index.cjs205.js +1 -1
  41. package/dist/index.cjs206.js +1 -1
  42. package/dist/index.cjs208.js +1 -1
  43. package/dist/index.cjs209.js +1 -1
  44. package/dist/index.cjs21.js +1 -1
  45. package/dist/index.cjs21.js.map +1 -1
  46. package/dist/index.cjs211.js +1 -1
  47. package/dist/index.cjs216.js +1 -1
  48. package/dist/index.cjs218.js +1 -1
  49. package/dist/index.cjs22.js +1 -1
  50. package/dist/index.cjs22.js.map +1 -1
  51. package/dist/index.cjs220.js +1 -1
  52. package/dist/index.cjs221.js +1 -1
  53. package/dist/index.cjs225.js +1 -1
  54. package/dist/index.cjs226.js +1 -1
  55. package/dist/index.cjs226.js.map +1 -1
  56. package/dist/index.cjs227.js +1 -1
  57. package/dist/index.cjs227.js.map +1 -1
  58. package/dist/index.cjs228.js +1 -1
  59. package/dist/index.cjs228.js.map +1 -1
  60. package/dist/index.cjs229.js +1 -1
  61. package/dist/index.cjs229.js.map +1 -1
  62. package/dist/index.cjs23.js +1 -1
  63. package/dist/index.cjs23.js.map +1 -1
  64. package/dist/index.cjs230.js +1 -1
  65. package/dist/index.cjs230.js.map +1 -1
  66. package/dist/index.cjs238.js +1 -1
  67. package/dist/index.cjs24.js +1 -1
  68. package/dist/index.cjs24.js.map +1 -1
  69. package/dist/index.cjs243.js +1 -1
  70. package/dist/index.cjs246.js +1 -1
  71. package/dist/index.cjs25.js +1 -1
  72. package/dist/index.cjs25.js.map +1 -1
  73. package/dist/index.cjs250.js +1 -1
  74. package/dist/index.cjs250.js.map +1 -1
  75. package/dist/index.cjs251.js +1 -1
  76. package/dist/index.cjs251.js.map +1 -1
  77. package/dist/index.cjs26.js +1 -1
  78. package/dist/index.cjs26.js.map +1 -1
  79. package/dist/index.cjs27.js +1 -1
  80. package/dist/index.cjs27.js.map +1 -1
  81. package/dist/index.cjs28.js +1 -1
  82. package/dist/index.cjs28.js.map +1 -1
  83. package/dist/index.cjs29.js +1 -1
  84. package/dist/index.cjs29.js.map +1 -1
  85. package/dist/index.cjs3.js +1 -1
  86. package/dist/index.cjs3.js.map +1 -1
  87. package/dist/index.cjs30.js +1 -1
  88. package/dist/index.cjs30.js.map +1 -1
  89. package/dist/index.cjs31.js +1 -1
  90. package/dist/index.cjs31.js.map +1 -1
  91. package/dist/index.cjs32.js +1 -1
  92. package/dist/index.cjs32.js.map +1 -1
  93. package/dist/index.cjs33.js +1 -1
  94. package/dist/index.cjs33.js.map +1 -1
  95. package/dist/index.cjs34.js +1 -1
  96. package/dist/index.cjs34.js.map +1 -1
  97. package/dist/index.cjs35.js +1 -1
  98. package/dist/index.cjs35.js.map +1 -1
  99. package/dist/index.cjs36.js +1 -1
  100. package/dist/index.cjs36.js.map +1 -1
  101. package/dist/index.cjs37.js +1 -1
  102. package/dist/index.cjs37.js.map +1 -1
  103. package/dist/index.cjs38.js +1 -1
  104. package/dist/index.cjs38.js.map +1 -1
  105. package/dist/index.cjs39.js +1 -1
  106. package/dist/index.cjs39.js.map +1 -1
  107. package/dist/index.cjs4.js +1 -1
  108. package/dist/index.cjs40.js +1 -1
  109. package/dist/index.cjs40.js.map +1 -1
  110. package/dist/index.cjs41.js +1 -1
  111. package/dist/index.cjs41.js.map +1 -1
  112. package/dist/index.cjs42.js +1 -1
  113. package/dist/index.cjs42.js.map +1 -1
  114. package/dist/index.cjs43.js +1 -1
  115. package/dist/index.cjs43.js.map +1 -1
  116. package/dist/index.cjs44.js +1 -1
  117. package/dist/index.cjs44.js.map +1 -1
  118. package/dist/index.cjs45.js +1 -1
  119. package/dist/index.cjs45.js.map +1 -1
  120. package/dist/index.cjs5.js +1 -1
  121. package/dist/index.cjs5.js.map +1 -1
  122. package/dist/index.cjs6.js +1 -1
  123. package/dist/index.cjs66.js +1 -1
  124. package/dist/index.cjs67.js +1 -1
  125. package/dist/index.cjs68.js +1 -1
  126. package/dist/index.cjs69.js +1 -1
  127. package/dist/index.cjs7.js +1 -1
  128. package/dist/index.cjs70.js +1 -1
  129. package/dist/index.cjs74.js +1 -1
  130. package/dist/index.cjs75.js +1 -1
  131. package/dist/index.cjs8.js +1 -1
  132. package/dist/index.cjs80.js +1 -1
  133. package/dist/index.cjs89.js +1 -1
  134. package/dist/index.cjs9.js +1 -1
  135. package/dist/index.cjs9.js.map +1 -1
  136. package/dist/index.cjs90.js +1 -1
  137. package/dist/index.cjs91.js +1 -1
  138. package/dist/index.cjs92.js +1 -1
  139. package/dist/index.cjs93.js +1 -1
  140. package/dist/index.cjs94.js +1 -1
  141. package/dist/index.cjs96.js +1 -1
  142. package/dist/index.cjs98.js +1 -1
  143. package/dist/index.cjs99.js +1 -1
  144. package/dist/index.es.js +8 -6
  145. package/dist/index.es.js.map +1 -1
  146. package/dist/index.es10.js +39 -2102
  147. package/dist/index.es10.js.map +1 -1
  148. package/dist/index.es103.js +1 -1
  149. package/dist/index.es11.js +2102 -19
  150. package/dist/index.es11.js.map +1 -1
  151. package/dist/index.es12.js +19 -12
  152. package/dist/index.es12.js.map +1 -1
  153. package/dist/index.es122.js +2 -2
  154. package/dist/index.es123.js +1 -1
  155. package/dist/index.es125.js +1 -1
  156. package/dist/index.es129.js +1 -1
  157. package/dist/index.es13.js +12 -6
  158. package/dist/index.es13.js.map +1 -1
  159. package/dist/index.es14.js +6 -5
  160. package/dist/index.es14.js.map +1 -1
  161. package/dist/index.es15.js +6 -28
  162. package/dist/index.es15.js.map +1 -1
  163. package/dist/index.es16.js +6 -8
  164. package/dist/index.es16.js.map +1 -1
  165. package/dist/index.es162.js +1 -1
  166. package/dist/index.es165.js +1 -1
  167. package/dist/index.es167.js +1 -1
  168. package/dist/index.es17.js +5 -5
  169. package/dist/index.es17.js.map +1 -1
  170. package/dist/index.es175.js +1 -1
  171. package/dist/index.es18.js +28 -10
  172. package/dist/index.es18.js.map +1 -1
  173. package/dist/index.es19.js +8 -17
  174. package/dist/index.es19.js.map +1 -1
  175. package/dist/index.es191.js +2 -2
  176. package/dist/index.es199.js +1 -1
  177. package/dist/index.es2.js +3 -3
  178. package/dist/index.es20.js +5 -5
  179. package/dist/index.es20.js.map +1 -1
  180. package/dist/index.es200.js +1 -1
  181. package/dist/index.es201.js +1 -1
  182. package/dist/index.es202.js +1 -1
  183. package/dist/index.es203.js +1 -1
  184. package/dist/index.es205.js +1 -1
  185. package/dist/index.es206.js +2 -2
  186. package/dist/index.es208.js +1 -1
  187. package/dist/index.es209.js +2 -2
  188. package/dist/index.es21.js +9 -4
  189. package/dist/index.es21.js.map +1 -1
  190. package/dist/index.es211.js +2 -2
  191. package/dist/index.es216.js +1 -1
  192. package/dist/index.es218.js +1 -1
  193. package/dist/index.es22.js +17 -5
  194. package/dist/index.es22.js.map +1 -1
  195. package/dist/index.es220.js +1 -1
  196. package/dist/index.es221.js +1 -1
  197. package/dist/index.es225.js +1 -1
  198. package/dist/index.es226.js +3 -46
  199. package/dist/index.es226.js.map +1 -1
  200. package/dist/index.es227.js +5 -22
  201. package/dist/index.es227.js.map +1 -1
  202. package/dist/index.es228.js +8 -3
  203. package/dist/index.es228.js.map +1 -1
  204. package/dist/index.es229.js +44 -6
  205. package/dist/index.es229.js.map +1 -1
  206. package/dist/index.es23.js +5 -7
  207. package/dist/index.es23.js.map +1 -1
  208. package/dist/index.es230.js +22 -5
  209. package/dist/index.es230.js.map +1 -1
  210. package/dist/index.es238.js +1 -1
  211. package/dist/index.es24.js +5 -7
  212. package/dist/index.es24.js.map +1 -1
  213. package/dist/index.es243.js +1 -1
  214. package/dist/index.es246.js +1 -1
  215. package/dist/index.es25.js +5 -4
  216. package/dist/index.es25.js.map +1 -1
  217. package/dist/index.es250.js +4 -15
  218. package/dist/index.es250.js.map +1 -1
  219. package/dist/index.es251.js +15 -4
  220. package/dist/index.es251.js.map +1 -1
  221. package/dist/index.es26.js +7 -4
  222. package/dist/index.es26.js.map +1 -1
  223. package/dist/index.es27.js +6 -6
  224. package/dist/index.es27.js.map +1 -1
  225. package/dist/index.es28.js +4 -15
  226. package/dist/index.es28.js.map +1 -1
  227. package/dist/index.es29.js +4 -12
  228. package/dist/index.es29.js.map +1 -1
  229. package/dist/index.es3.js +22 -63
  230. package/dist/index.es3.js.map +1 -1
  231. package/dist/index.es30.js +7 -15
  232. package/dist/index.es30.js.map +1 -1
  233. package/dist/index.es31.js +14 -6
  234. package/dist/index.es31.js.map +1 -1
  235. package/dist/index.es32.js +12 -5
  236. package/dist/index.es32.js.map +1 -1
  237. package/dist/index.es33.js +15 -4
  238. package/dist/index.es33.js.map +1 -1
  239. package/dist/index.es34.js +6 -17
  240. package/dist/index.es34.js.map +1 -1
  241. package/dist/index.es35.js +5 -18
  242. package/dist/index.es35.js.map +1 -1
  243. package/dist/index.es36.js +4 -14
  244. package/dist/index.es36.js.map +1 -1
  245. package/dist/index.es37.js +17 -5
  246. package/dist/index.es37.js.map +1 -1
  247. package/dist/index.es38.js +17 -6
  248. package/dist/index.es38.js.map +1 -1
  249. package/dist/index.es39.js +12 -8
  250. package/dist/index.es39.js.map +1 -1
  251. package/dist/index.es4.js +8 -8
  252. package/dist/index.es40.js +6 -4
  253. package/dist/index.es40.js.map +1 -1
  254. package/dist/index.es41.js +6 -18
  255. package/dist/index.es41.js.map +1 -1
  256. package/dist/index.es42.js +10 -6
  257. package/dist/index.es42.js.map +1 -1
  258. package/dist/index.es43.js +4 -6
  259. package/dist/index.es43.js.map +1 -1
  260. package/dist/index.es44.js +21 -1
  261. package/dist/index.es44.js.map +1 -1
  262. package/dist/index.es45.js +1 -39
  263. package/dist/index.es45.js.map +1 -1
  264. package/dist/index.es5.js +27 -19
  265. package/dist/index.es5.js.map +1 -1
  266. package/dist/index.es6.js +6 -6
  267. package/dist/index.es66.js +1 -1
  268. package/dist/index.es67.js +1 -1
  269. package/dist/index.es68.js +1 -1
  270. package/dist/index.es69.js +1 -1
  271. package/dist/index.es7.js +7 -7
  272. package/dist/index.es70.js +1 -1
  273. package/dist/index.es74.js +26 -26
  274. package/dist/index.es75.js +2 -2
  275. package/dist/index.es8.js +2 -2
  276. package/dist/index.es80.js +1 -1
  277. package/dist/index.es89.js +2 -2
  278. package/dist/index.es9.js +18 -10
  279. package/dist/index.es9.js.map +1 -1
  280. package/dist/index.es90.js +1 -1
  281. package/dist/index.es91.js +1 -1
  282. package/dist/index.es92.js +1 -1
  283. package/dist/index.es93.js +1 -1
  284. package/dist/index.es94.js +1 -1
  285. package/dist/index.es96.js +4 -4
  286. package/dist/index.es98.js +1 -1
  287. package/dist/index.es99.js +1 -1
  288. package/package.json +2 -2
  289. package/src/components/GeoJsonLayer.js +10 -66
  290. package/src/components/LocationMarkers.js +51 -8
  291. package/src/index.js +1 -0
  292. package/src/utils/Map.js +29 -1
  293. package/src/utils/MapStyles.js +9 -3
  294. package/types/components/GeoJsonLayer.js.flow +10 -66
  295. package/types/components/LocationMarkers.js.flow +51 -8
  296. package/types/index.js.flow +1 -0
  297. package/types/utils/Map.js.flow +29 -1
  298. package/types/utils/MapStyles.js.flow +9 -3
@@ -1,2 +1,22 @@
1
-
1
+ import i from "./index.es22.js";
2
+ import p from "./index.es142.js";
3
+ import { ArrayProto as e } from "./index.es18.js";
4
+ import s from "./index.es225.js";
5
+ p(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function(r) {
6
+ var o = e[r];
7
+ i.prototype[r] = function() {
8
+ var t = this._wrapped;
9
+ return t != null && (o.apply(t, arguments), (r === "shift" || r === "splice") && t.length === 0 && delete t[0]), s(this, t);
10
+ };
11
+ });
12
+ p(["concat", "join", "slice"], function(r) {
13
+ var o = e[r];
14
+ i.prototype[r] = function() {
15
+ var t = this._wrapped;
16
+ return t != null && (t = o.apply(t, arguments)), s(this, t);
17
+ };
18
+ });
19
+ export {
20
+ i as default
21
+ };
2
22
  //# sourceMappingURL=index.es44.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es44.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.es44.js","sources":["../../../node_modules/underscore/modules/underscore-array-methods.js"],"sourcesContent":["import _ from './underscore.js';\nimport each from './each.js';\nimport { ArrayProto } from './_setup.js';\nimport chainResult from './_chainResult.js';\n\n// Add all mutator `Array` functions to the wrapper.\neach(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) {\n method.apply(obj, arguments);\n if ((name === 'shift' || name === 'splice') && obj.length === 0) {\n delete obj[0];\n }\n }\n return chainResult(this, obj);\n };\n});\n\n// Add all accessor `Array` functions to the wrapper.\neach(['concat', 'join', 'slice'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) obj = method.apply(obj, arguments);\n return chainResult(this, obj);\n };\n});\n\nexport default _;\n"],"names":["each","name","method","ArrayProto","_","obj","chainResult"],"mappings":";;;;AAMAA,EAAK,CAAC,OAAO,QAAQ,WAAW,SAAS,QAAQ,UAAU,SAAS,GAAG,SAASC,GAAM;AAChF,MAAAC,IAASC,EAAWF,CAAI;AAC1B,EAAAG,EAAA,UAAUH,CAAI,IAAI,WAAW;AAC7B,QAAII,IAAM,KAAK;AACf,WAAIA,KAAO,SACFH,EAAA,MAAMG,GAAK,SAAS,IACtBJ,MAAS,WAAWA,MAAS,aAAaI,EAAI,WAAW,KAC5D,OAAOA,EAAI,CAAC,IAGTC,EAAY,MAAMD,CAAG;AAAA,EAAA;AAEhC,CAAC;AAGDL,EAAK,CAAC,UAAU,QAAQ,OAAO,GAAG,SAASC,GAAM;AAC3C,MAAAC,IAASC,EAAWF,CAAI;AAC1B,EAAAG,EAAA,UAAUH,CAAI,IAAI,WAAW;AAC7B,QAAII,IAAM,KAAK;AACf,WAAIA,KAAO,SAAYA,IAAAH,EAAO,MAAMG,GAAK,SAAS,IAC3CC,EAAY,MAAMD,CAAG;AAAA,EAAA;AAEhC,CAAC;","x_google_ignoreList":[0]}
@@ -1,40 +1,2 @@
1
- const e = {
2
- type: "circle",
3
- paint: {
4
- "circle-radius": [
5
- "interpolate",
6
- ["linear"],
7
- ["number", ["get", "point_count"], 1],
8
- 0,
9
- 4,
10
- 10,
11
- 14
12
- ],
13
- "circle-stroke-width": 1,
14
- "circle-color": [
15
- "case",
16
- ["boolean", ["feature-state", "hover"], !1],
17
- "#3b62ff",
18
- "#ff623b"
19
- ],
20
- "circle-stroke-color": "#8d260c"
21
- }
22
- }, t = {
23
- type: "fill",
24
- paint: {
25
- "fill-color": "#ff623b",
26
- "fill-opacity": 0.2
27
- }
28
- }, c = {
29
- type: "line",
30
- paint: {
31
- "line-color": "#ff623b",
32
- "line-opacity": 0.6
33
- }
34
- };
35
- export {
36
- t as DEFAULT_FILL_STYLE,
37
- e as DEFAULT_POINT_STYLE,
38
- c as DEFAULT_STROKE_STYLE
39
- };
1
+
40
2
  //# sourceMappingURL=index.es45.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es45.js","sources":["../src/utils/MapStyles.js"],"sourcesContent":["// @flow\n\nexport const DEFAULT_POINT_STYLE = {\n type: 'circle',\n paint: {\n 'circle-radius': [\n 'interpolate',\n ['linear'],\n ['number', ['get', 'point_count'], 1],\n 0, 4,\n 10, 14\n ],\n 'circle-stroke-width': 1,\n 'circle-color': [\n 'case',\n ['boolean', ['feature-state', 'hover'], false],\n '#3b62ff',\n '#ff623b'\n ],\n 'circle-stroke-color': '#8d260c'\n }\n};\n\nexport const DEFAULT_FILL_STYLE = {\n type: 'fill',\n paint: {\n 'fill-color': '#ff623b',\n 'fill-opacity': 0.2\n }\n};\n\nexport const DEFAULT_STROKE_STYLE = {\n type: 'line',\n paint: {\n 'line-color': '#ff623b',\n 'line-opacity': 0.6\n }\n};\n"],"names":["DEFAULT_POINT_STYLE","DEFAULT_FILL_STYLE","DEFAULT_STROKE_STYLE"],"mappings":"AAEO,MAAMA,IAAsB;AAAA,EACjC,MAAM;AAAA,EACN,OAAO;AAAA,IACL,iBAAiB;AAAA,MACf;AAAA,MACA,CAAC,QAAQ;AAAA,MACT,CAAC,UAAU,CAAC,OAAO,aAAa,GAAG,CAAC;AAAA,MACpC;AAAA,MAAG;AAAA,MACH;AAAA,MAAI;AAAA,IACN;AAAA,IACA,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,MACd;AAAA,MACA,CAAC,WAAW,CAAC,iBAAiB,OAAO,GAAG,EAAK;AAAA,MAC7C;AAAA,MACA;AAAA,IACF;AAAA,IACA,uBAAuB;AAAA,EACzB;AACF,GAEaC,IAAqB;AAAA,EAChC,MAAM;AAAA,EACN,OAAO;AAAA,IACL,cAAc;AAAA,IACd,gBAAgB;AAAA,EAClB;AACF,GAEaC,IAAuB;AAAA,EAClC,MAAM;AAAA,EACN,OAAO;AAAA,IACL,cAAc;AAAA,IACd,gBAAgB;AAAA,EAClB;AACF;"}
1
+ {"version":3,"file":"index.es45.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.es5.js CHANGED
@@ -1,27 +1,34 @@
1
- import { j as e } from "./index.es13.js";
2
- import { useMap as o, PulsingMarkerLayer as f, MixedGeoJSONLayer as l } from "@peripleo/maplibre";
3
- import { useEffect as n } from "react";
4
- import { DEFAULT_FILL_STYLE as r, DEFAULT_POINT_STYLE as d, DEFAULT_STROKE_STYLE as m } from "./index.es45.js";
5
- import S from "./index.es9.js";
6
- const u = 2, s = (t) => {
7
- const a = o();
8
- return n(() => {
9
- if (a && t.data) {
10
- const i = S.getBoundingBox(t.data, t.buffer);
11
- a.fitBounds(i);
1
+ import { j as e } from "./index.es14.js";
2
+ import { useMap as n, PulsingMarkerLayer as u, GeoJSONLayer as o } from "@peripleo/maplibre";
3
+ import { useEffect as r } from "react";
4
+ import a from "./index.es10.js";
5
+ import f from "./index.es9.js";
6
+ const d = 2, s = (t) => {
7
+ const i = n();
8
+ return r(() => {
9
+ if (i && t.data && t.fitBoundingBox) {
10
+ const l = f.getBoundingBox(t.data, t.buffer);
11
+ i.fitBounds(l);
12
12
  }
13
- }, [a, t.buffer, t.data]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
13
+ }, [i, t.buffer, t.data, t.fitBoundingBox]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
14
14
  t.animate && /* @__PURE__ */ e.jsx(
15
- f,
15
+ u,
16
16
  {
17
- data: t.data
17
+ data: t.data,
18
+ id: t.layerId
18
19
  }
19
20
  ),
20
21
  /* @__PURE__ */ e.jsx(
21
- l,
22
+ o,
22
23
  {
24
+ cluster: t.cluster,
25
+ clusterMaxZoom: t.clusterMaxZoom,
26
+ clusterMinPoints: t.clusterMinPoints,
27
+ clusterProperties: t.clusterProperties,
28
+ clusterRadius: t.clusterRadius,
23
29
  data: t.data,
24
30
  fillStyle: t.fillStyle,
31
+ id: t.layerId,
25
32
  strokeStyle: t.strokeStyle,
26
33
  pointStyle: t.pointStyle
27
34
  }
@@ -29,10 +36,11 @@ const u = 2, s = (t) => {
29
36
  ] });
30
37
  };
31
38
  s.defaultProps = {
32
- buffer: u,
33
- fillStyle: r,
34
- pointStyle: d,
35
- strokeStyle: m
39
+ buffer: d,
40
+ fillStyle: a.fill,
41
+ fitBoundingBox: !0,
42
+ pointStyle: a.point,
43
+ strokeStyle: a.stroke
36
44
  };
37
45
  export {
38
46
  s as default
@@ -1 +1 @@
1
- {"version":3,"file":"index.es5.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { MixedGeoJSONLayer, PulsingMarkerLayer, useMap } from '@peripleo/maplibre';\nimport React, { useEffect } from 'react';\nimport { DEFAULT_FILL_STYLE, DEFAULT_POINT_STYLE, DEFAULT_STROKE_STYLE } from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n /**\n * If `true`, the point marker will display with a pulsing animation.\n */\n animate?: boolean,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer: number,\n\n /**\n * The GeoJSON data representing the location.\n */\n data: { [key: string]: any },\n\n /**\n * GeoJSON layer fill style.\n */\n fillStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer point style.\n */\n pointStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer stroke style\n */\n strokeStyle?: { [key: string]: any }\n};\n\nconst DEFAULT_BUFFER = 2;\n\n/**\n * This component renders a location marker to be used in a Peripleo context.\n */\nconst LocationMarkers = (props: Props) => {\n const map = useMap();\n\n /**\n * Sets the bounding box on the map.\n */\n useEffect(() => {\n if (map && props.data) {\n const boundingBox = MapUtils.getBoundingBox(props.data, props.buffer);\n map.fitBounds(boundingBox);\n }\n }, [map, props.buffer, props.data]);\n\n return (\n <>\n { props.animate && (\n <PulsingMarkerLayer\n data={props.data}\n />\n )}\n <MixedGeoJSONLayer\n data={props.data}\n fillStyle={props.fillStyle}\n strokeStyle={props.strokeStyle}\n pointStyle={props.pointStyle}\n />\n </>\n );\n};\n\nLocationMarkers.defaultProps = {\n buffer: DEFAULT_BUFFER,\n fillStyle: DEFAULT_FILL_STYLE,\n pointStyle: DEFAULT_POINT_STYLE,\n strokeStyle: DEFAULT_STROKE_STYLE\n};\n\nexport default LocationMarkers;\n"],"names":["DEFAULT_BUFFER","LocationMarkers","props","map","useMap","useEffect","boundingBox","MapUtils","jsxs","Fragment","jsx","PulsingMarkerLayer","MixedGeoJSONLayer","DEFAULT_FILL_STYLE","DEFAULT_POINT_STYLE","DEFAULT_STROKE_STYLE"],"mappings":";;;;;AAuCA,MAAMA,IAAiB,GAKjBC,IAAkB,CAACC,MAAiB;AACxC,QAAMC,IAAMC;AAKZ,SAAAC,EAAU,MAAM;AACV,QAAAF,KAAOD,EAAM,MAAM;AACrB,YAAMI,IAAcC,EAAS,eAAeL,EAAM,MAAMA,EAAM,MAAM;AACpE,MAAAC,EAAI,UAAUG,CAAW;AAAA,IAC3B;AAAA,EAAA,GACC,CAACH,GAAKD,EAAM,QAAQA,EAAM,IAAI,CAAC,GAI5BM,gBAAAA,EAAA,KAAAC,YAAA,EAAA,UAAA;AAAA,IAAAP,EAAM,WACNQ,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAMT,EAAM;AAAA,MAAA;AAAA,IACd;AAAA,IAEFQ,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAMV,EAAM;AAAA,QACZ,WAAWA,EAAM;AAAA,QACjB,aAAaA,EAAM;AAAA,QACnB,YAAYA,EAAM;AAAA,MAAA;AAAA,IACpB;AAAA,EACF,EAAA,CAAA;AAEJ;AAEAD,EAAgB,eAAe;AAAA,EAC7B,QAAQD;AAAA,EACR,WAAWa;AAAA,EACX,YAAYC;AAAA,EACZ,aAAaC;AACf;"}
1
+ {"version":3,"file":"index.es5.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { GeoJSONLayer, PulsingMarkerLayer, useMap } from '@peripleo/maplibre';\nimport React, { useEffect } from 'react';\nimport MapStyles from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n /**\n * If `true`, the point marker will display with a pulsing animation.\n */\n animate?: boolean,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer: number,\n\n /**\n * If true, markers will be clustered before the specified zoom level.\n */\n cluster?: boolean,\n\n /**\n * Max zoom to cluster points on.\n */\n clusterMaxZoom?: number,\n\n /**\n * Minimum number of points necessary to form a cluster.\n */\n clusterMinPoints?: number,\n\n /**\n * An object defining custom properties on the generated clusters.\n */\n clusterProperties?: any,\n\n /**\n * Radius of each cluster when clustering point.\n */\n clusterRadius?: number,\n\n /**\n * The GeoJSON data representing the location.\n */\n data: { [key: string]: any },\n\n /**\n * GeoJSON layer fill style.\n */\n fillStyle?: { [key: string]: any },\n\n /**\n * If `true`, the map will fit the bounding box around the passed data.\n */\n fitBoundingBox?: boolean,\n\n /**\n * An ID value to apply to the layer.\n */\n layerId?: string,\n\n /**\n * GeoJSON layer point style.\n */\n pointStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer stroke style\n */\n strokeStyle?: { [key: string]: any }\n};\n\nconst DEFAULT_BUFFER = 2;\n\n/**\n * This component renders a location marker to be used in a Peripleo context.\n */\nconst LocationMarkers = (props: Props) => {\n const map = useMap();\n\n /**\n * Sets the bounding box on the map.\n */\n useEffect(() => {\n if (map && props.data && props.fitBoundingBox) {\n const boundingBox = MapUtils.getBoundingBox(props.data, props.buffer);\n map.fitBounds(boundingBox);\n }\n }, [map, props.buffer, props.data, props.fitBoundingBox]);\n\n return (\n <>\n { props.animate && (\n <PulsingMarkerLayer\n data={props.data}\n id={props.layerId}\n />\n )}\n <GeoJSONLayer\n cluster={props.cluster}\n clusterMaxZoom={props.clusterMaxZoom}\n clusterMinPoints={props.clusterMinPoints}\n clusterProperties={props.clusterProperties}\n clusterRadius={props.clusterRadius}\n data={props.data}\n fillStyle={props.fillStyle}\n id={props.layerId}\n strokeStyle={props.strokeStyle}\n pointStyle={props.pointStyle}\n />\n </>\n );\n};\n\nLocationMarkers.defaultProps = {\n buffer: DEFAULT_BUFFER,\n fillStyle: MapStyles.fill,\n fitBoundingBox: true,\n pointStyle: MapStyles.point,\n strokeStyle: MapStyles.stroke\n};\n\nexport default LocationMarkers;\n"],"names":["DEFAULT_BUFFER","LocationMarkers","props","map","useMap","useEffect","boundingBox","MapUtils","jsxs","Fragment","jsx","PulsingMarkerLayer","GeoJSONLayer","MapStyles"],"mappings":";;;;;AA0EA,MAAMA,IAAiB,GAKjBC,IAAkB,CAACC,MAAiB;AACxC,QAAMC,IAAMC;AAKZ,SAAAC,EAAU,MAAM;AACd,QAAIF,KAAOD,EAAM,QAAQA,EAAM,gBAAgB;AAC7C,YAAMI,IAAcC,EAAS,eAAeL,EAAM,MAAMA,EAAM,MAAM;AACpE,MAAAC,EAAI,UAAUG,CAAW;AAAA,IAC3B;AAAA,EAAA,GACC,CAACH,GAAKD,EAAM,QAAQA,EAAM,MAAMA,EAAM,cAAc,CAAC,GAIlDM,gBAAAA,EAAA,KAAAC,YAAA,EAAA,UAAA;AAAA,IAAAP,EAAM,WACNQ,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAMT,EAAM;AAAA,QACZ,IAAIA,EAAM;AAAA,MAAA;AAAA,IACZ;AAAA,IAEFQ,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,SAASV,EAAM;AAAA,QACf,gBAAgBA,EAAM;AAAA,QACtB,kBAAkBA,EAAM;AAAA,QACxB,mBAAmBA,EAAM;AAAA,QACzB,eAAeA,EAAM;AAAA,QACrB,MAAMA,EAAM;AAAA,QACZ,WAAWA,EAAM;AAAA,QACjB,IAAIA,EAAM;AAAA,QACV,aAAaA,EAAM;AAAA,QACnB,YAAYA,EAAM;AAAA,MAAA;AAAA,IACpB;AAAA,EACF,EAAA,CAAA;AAEJ;AAEAD,EAAgB,eAAe;AAAA,EAC7B,QAAQD;AAAA,EACR,WAAWa,EAAU;AAAA,EACrB,gBAAgB;AAAA,EAChB,YAAYA,EAAU;AAAA,EACtB,aAAaA,EAAU;AACzB;"}
package/dist/index.es6.js CHANGED
@@ -4,11 +4,8 @@ var e = (r, t, o) => (l(r, typeof t != "symbol" ? t + "" : t, o), o);
4
4
  import "./index.es46.js";
5
5
  import { useState as s, useCallback as _, Children as n, cloneElement as h, useEffect as u } from "react";
6
6
  import { createPortal as d } from "react-dom";
7
- import "./index.es11.js";
8
- import f from "./index.es14.js";
9
- import "./index.es15.js";
10
- import "./index.es16.js";
11
- import "./index.es17.js";
7
+ import "./index.es12.js";
8
+ import f from "./index.es17.js";
12
9
  import "./index.es18.js";
13
10
  import "./index.es19.js";
14
11
  import "./index.es20.js";
@@ -33,7 +30,10 @@ import "./index.es38.js";
33
30
  import "./index.es39.js";
34
31
  import "./index.es40.js";
35
32
  import "./index.es41.js";
36
- import g from "./index.es12.js";
33
+ import "./index.es42.js";
34
+ import "./index.es43.js";
35
+ import "./index.es44.js";
36
+ import g from "./index.es13.js";
37
37
  class w {
38
38
  /**
39
39
  * Constructs a new IControlImpl object.
@@ -1,6 +1,6 @@
1
1
  import { memo as i, useEffect as r } from "react";
2
2
  import { applyReactStyle as e } from "./index.es195.js";
3
- import l from "./index.es12.js";
3
+ import l from "./index.es13.js";
4
4
  function m(t) {
5
5
  const o = l(({ mapLib: n }) => new n.AttributionControl(t), {
6
6
  position: t.position
@@ -1,6 +1,6 @@
1
1
  import { memo as o, useEffect as l } from "react";
2
2
  import { applyReactStyle as r } from "./index.es195.js";
3
- import c from "./index.es12.js";
3
+ import c from "./index.es13.js";
4
4
  function i(t) {
5
5
  const n = c(({ mapLib: e }) => new e.FullscreenControl({
6
6
  container: t.containerId && document.getElementById(t.containerId)
@@ -1,6 +1,6 @@
1
1
  import { memo as s, forwardRef as d, useRef as v, useImperativeHandle as _, useEffect as f } from "react";
2
2
  import { applyReactStyle as p } from "./index.es195.js";
3
- import m from "./index.es12.js";
3
+ import m from "./index.es13.js";
4
4
  function b(e, c) {
5
5
  const a = v({ props: e }), l = m(({ mapLib: i }) => {
6
6
  const n = new i.GeolocateControl(e), u = n._setupUI;
@@ -1,6 +1,6 @@
1
1
  import { memo as i, useEffect as e } from "react";
2
2
  import { applyReactStyle as l } from "./index.es195.js";
3
- import r from "./index.es12.js";
3
+ import r from "./index.es13.js";
4
4
  function m(t) {
5
5
  const o = r(({ mapLib: n }) => new n.NavigationControl(t), {
6
6
  position: t.position
package/dist/index.es7.js CHANGED
@@ -1,12 +1,9 @@
1
- import { j as s } from "./index.es13.js";
2
- import m from "./index.es10.js";
1
+ import { j as s } from "./index.es14.js";
2
+ import m from "./index.es11.js";
3
3
  import C from "./index.es46.js";
4
4
  import { useState as b, useRef as p, useCallback as L, useMemo as h, useEffect as x } from "react";
5
- import { Map as D } from "./index.es11.js";
6
- import i from "./index.es14.js";
7
- import "./index.es15.js";
8
- import "./index.es16.js";
9
- import "./index.es17.js";
5
+ import { Map as D } from "./index.es12.js";
6
+ import i from "./index.es17.js";
10
7
  import "./index.es18.js";
11
8
  import "./index.es19.js";
12
9
  import "./index.es20.js";
@@ -31,6 +28,9 @@ import "./index.es38.js";
31
28
  import "./index.es39.js";
32
29
  import "./index.es40.js";
33
30
  import "./index.es41.js";
31
+ import "./index.es42.js";
32
+ import "./index.es43.js";
33
+ import "./index.es44.js";
34
34
  import R from "./index.es2.js";
35
35
  import O from "./index.es9.js";
36
36
  import "./index.es47.js";
@@ -1,6 +1,6 @@
1
1
  import { memo as m, useRef as u, useEffect as l } from "react";
2
2
  import { applyReactStyle as a } from "./index.es195.js";
3
- import f from "./index.es12.js";
3
+ import f from "./index.es13.js";
4
4
  function r(t) {
5
5
  const i = f(({ mapLib: c }) => new c.ScaleControl(t), {
6
6
  position: t.position
@@ -1,4 +1,4 @@
1
- import { VERSION as r } from "./index.es15.js";
1
+ import { VERSION as r } from "./index.es18.js";
2
2
  import { default as o } from "./index.es76.js";
3
3
  import { default as l } from "./index.es77.js";
4
4
  import { default as u } from "./index.es78.js";
@@ -14,17 +14,17 @@ import { default as S } from "./index.es87.js";
14
14
  import { default as N } from "./index.es88.js";
15
15
  import { default as v } from "./index.es89.js";
16
16
  import { default as M } from "./index.es90.js";
17
- import { default as W } from "./index.es16.js";
18
- import { default as F } from "./index.es18.js";
17
+ import { default as W } from "./index.es19.js";
18
+ import { default as F } from "./index.es21.js";
19
19
  import { default as V } from "./index.es91.js";
20
20
  import { default as P } from "./index.es92.js";
21
21
  import { default as U } from "./index.es93.js";
22
22
  import { default as G } from "./index.es94.js";
23
23
  import { default as J } from "./index.es95.js";
24
24
  import { default as X } from "./index.es96.js";
25
- import { default as Z } from "./index.es20.js";
26
- import { default as $ } from "./index.es21.js";
27
- import { default as te } from "./index.es22.js";
25
+ import { default as Z } from "./index.es23.js";
26
+ import { default as $ } from "./index.es24.js";
27
+ import { default as te } from "./index.es25.js";
28
28
  import { default as re } from "./index.es97.js";
29
29
  import { default as oe } from "./index.es98.js";
30
30
  import { default as le } from "./index.es99.js";
@@ -44,27 +44,27 @@ import { default as We } from "./index.es112.js";
44
44
  import { default as Fe } from "./index.es113.js";
45
45
  import { default as Ve } from "./index.es114.js";
46
46
  import { default as Pe } from "./index.es115.js";
47
- import { default as Ue } from "./index.es23.js";
47
+ import { default as Ue } from "./index.es26.js";
48
48
  import { default as Ge } from "./index.es116.js";
49
49
  import { default as Je } from "./index.es117.js";
50
50
  import { default as Xe, default as Ye } from "./index.es118.js";
51
51
  import { default as _e } from "./index.es119.js";
52
52
  import { default as et } from "./index.es120.js";
53
53
  import { default as at } from "./index.es121.js";
54
- import { default as ft } from "./index.es25.js";
55
- import { default as st } from "./index.es26.js";
56
- import { default as dt } from "./index.es27.js";
54
+ import { default as ft } from "./index.es28.js";
55
+ import { default as st } from "./index.es29.js";
56
+ import { default as dt } from "./index.es30.js";
57
57
  import { default as pt } from "./index.es122.js";
58
58
  import { default as xt } from "./index.es123.js";
59
59
  import { default as nt } from "./index.es124.js";
60
60
  import { default as yt } from "./index.es125.js";
61
- import { default as gt } from "./index.es24.js";
62
- import { default as kt } from "./index.es28.js";
63
- import { default as Et } from "./index.es29.js";
64
- import { default as wt } from "./index.es30.js";
61
+ import { default as gt } from "./index.es27.js";
62
+ import { default as kt } from "./index.es31.js";
63
+ import { default as Et } from "./index.es32.js";
64
+ import { default as wt } from "./index.es33.js";
65
65
  import { default as It } from "./index.es126.js";
66
- import { default as jt } from "./index.es31.js";
67
- import { default as qt } from "./index.es32.js";
66
+ import { default as jt } from "./index.es34.js";
67
+ import { default as qt } from "./index.es35.js";
68
68
  import { default as zt } from "./index.es127.js";
69
69
  import { default as Rt } from "./index.es128.js";
70
70
  import { default as Dt } from "./index.es129.js";
@@ -72,7 +72,7 @@ import { default as Kt } from "./index.es130.js";
72
72
  import { default as Lt } from "./index.es131.js";
73
73
  import { default as Tt } from "./index.es132.js";
74
74
  import { default as Ct } from "./index.es133.js";
75
- import { default as Ht } from "./index.es33.js";
75
+ import { default as Ht } from "./index.es36.js";
76
76
  import { default as Qt } from "./index.es134.js";
77
77
  import { default as Yt } from "./index.es135.js";
78
78
  import { default as _t } from "./index.es136.js";
@@ -90,7 +90,7 @@ import { default as Sa } from "./index.es147.js";
90
90
  import { default as Na, default as qa } from "./index.es148.js";
91
91
  import { default as za, default as Ma } from "./index.es149.js";
92
92
  import { default as Wa, default as Da, default as Fa } from "./index.es150.js";
93
- import { default as Va } from "./index.es34.js";
93
+ import { default as Va } from "./index.es37.js";
94
94
  import { default as Pa } from "./index.es151.js";
95
95
  import { default as Ua } from "./index.es152.js";
96
96
  import { default as Ga } from "./index.es153.js";
@@ -104,27 +104,27 @@ import { default as or } from "./index.es160.js";
104
104
  import { default as lr } from "./index.es161.js";
105
105
  import { default as ur } from "./index.es162.js";
106
106
  import { default as mr } from "./index.es163.js";
107
- import { default as ir } from "./index.es35.js";
108
- import { default as cr } from "./index.es36.js";
107
+ import { default as ir } from "./index.es38.js";
108
+ import { default as cr } from "./index.es39.js";
109
109
  import { default as hr, default as gr, default as br } from "./index.es164.js";
110
110
  import { default as Ar } from "./index.es165.js";
111
111
  import { default as Or } from "./index.es166.js";
112
112
  import { default as Br, default as Ir, default as Sr } from "./index.es167.js";
113
113
  import { default as Nr } from "./index.es168.js";
114
114
  import { default as vr } from "./index.es169.js";
115
- import { default as Mr } from "./index.es37.js";
115
+ import { default as Mr } from "./index.es40.js";
116
116
  import { default as Wr, default as Dr } from "./index.es170.js";
117
- import { default as Kr } from "./index.es38.js";
117
+ import { default as Kr } from "./index.es41.js";
118
118
  import { default as Lr } from "./index.es171.js";
119
- import { default as Tr } from "./index.es39.js";
119
+ import { default as Tr } from "./index.es42.js";
120
120
  import { default as Cr, default as Gr } from "./index.es172.js";
121
- import { default as Jr } from "./index.es40.js";
121
+ import { default as Jr } from "./index.es43.js";
122
122
  import { default as Xr } from "./index.es173.js";
123
123
  import { default as Zr } from "./index.es174.js";
124
124
  import { default as $r } from "./index.es175.js";
125
125
  import { default as tf } from "./index.es75.js";
126
- import "./index.es41.js";
127
- import { default as rf } from "./index.es19.js";
126
+ import "./index.es44.js";
127
+ import { default as rf } from "./index.es22.js";
128
128
  export {
129
129
  r as VERSION,
130
130
  Tt as after,
@@ -1,7 +1,7 @@
1
- import r from "./index.es19.js";
1
+ import r from "./index.es22.js";
2
2
  import n from "./index.es142.js";
3
3
  import f from "./index.es103.js";
4
- import { push as u } from "./index.es15.js";
4
+ import { push as u } from "./index.es18.js";
5
5
  import m from "./index.es225.js";
6
6
  function l(o) {
7
7
  return n(f(o), function(t) {
package/dist/index.es8.js CHANGED
@@ -1,6 +1,6 @@
1
- import { j as e } from "./index.es13.js";
1
+ import { j as e } from "./index.es14.js";
2
2
  import "react";
3
- import { Source as o, Layer as i } from "./index.es11.js";
3
+ import { Source as o, Layer as i } from "./index.es12.js";
4
4
  const m = (t) => /* @__PURE__ */ e.jsx(
5
5
  o,
6
6
  {
@@ -1,4 +1,4 @@
1
- import { toString as e } from "./index.es15.js";
1
+ import { toString as e } from "./index.es18.js";
2
2
  function r(t) {
3
3
  return t === !0 || t === !1 || e.call(t) === "[object Boolean]";
4
4
  }
@@ -1,7 +1,7 @@
1
1
  import r from "./index.es199.js";
2
- import i from "./index.es16.js";
2
+ import i from "./index.es19.js";
3
3
  import a from "./index.es88.js";
4
- import { hasStringTagBug as e } from "./index.es17.js";
4
+ import { hasStringTagBug as e } from "./index.es20.js";
5
5
  var f = r("DataView");
6
6
  function o(t) {
7
7
  return t != null && i(t.getInt8) && a(t.buffer);
package/dist/index.es9.js CHANGED
@@ -1,14 +1,22 @@
1
- import l from "./index.es49.js";
2
- import s from "./index.es50.js";
3
- import f from "./index.es51.js";
4
- const i = (r, t = null) => {
5
- const e = l(r), n = s(e);
6
- let o;
7
- return t ? o = f(n, t, { units: "miles" }) : o = n, l(o);
8
- }, b = {
9
- getBoundingBox: i
1
+ import e from "./index.es49.js";
2
+ import i from "./index.es50.js";
3
+ import r from "./index.es51.js";
4
+ const f = -90, u = 90, c = -180, a = 180, m = (n, o = null) => {
5
+ const l = e(n), t = i(l);
6
+ let s;
7
+ return o ? s = r(t, o, { units: "miles" }) : s = t, e(s);
8
+ }, p = (n) => {
9
+ let o = !1;
10
+ if (n) {
11
+ const [l, t] = n;
12
+ o = l >= f && l <= u && t >= c && t <= a;
13
+ }
14
+ return o;
15
+ }, T = {
16
+ getBoundingBox: m,
17
+ validateCoordinates: p
10
18
  };
11
19
  export {
12
- b as default
20
+ T as default
13
21
  };
14
22
  //# sourceMappingURL=index.es9.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es9.js","sources":["../src/utils/Map.js"],"sourcesContent":["// @flow\n\nimport { bbox, bboxPolygon, buffer } from '@turf/turf';\n\n/**\n * Returns a bounding box for the passed geometry (with optional buffer).\n *\n * @param geometry\n * @param bufferDistance\n *\n * @returns {BBox}\n */\nconst getBoundingBox = (geometry, bufferDistance = null) => {\n // Convert the GeoJSON into a bounding box\n const box = bbox(geometry);\n\n // Convert the bounding box to a polygon\n const polygon = bboxPolygon(box);\n\n // Create a buffer around the polygon (if a distance is provided)\n let polygonBuffer;\n\n if (bufferDistance) {\n polygonBuffer = buffer(polygon, bufferDistance, { units: 'miles' });\n } else {\n polygonBuffer = polygon;\n }\n\n // Convert the buffer to a bounding box\n return bbox(polygonBuffer);\n};\n\nexport default {\n getBoundingBox\n};\n"],"names":["getBoundingBox","geometry","bufferDistance","box","bbox","polygon","bboxPolygon","polygonBuffer","buffer","MapUtils"],"mappings":";;;AAYA,MAAMA,IAAiB,CAACC,GAAUC,IAAiB,SAAS;AAEpD,QAAAC,IAAMC,EAAKH,CAAQ,GAGnBI,IAAUC,EAAYH,CAAG;AAG3B,MAAAI;AAEJ,SAAIL,IACFK,IAAgBC,EAAOH,GAASH,GAAgB,EAAE,OAAO,SAAS,IAElDK,IAAAF,GAIXD,EAAKG,CAAa;AAC3B,GAEeE,IAAA;AAAA,EACb,gBAAAT;AACF;"}
1
+ {"version":3,"file":"index.es9.js","sources":["../src/utils/Map.js"],"sourcesContent":["// @flow\n\nimport { bbox, bboxPolygon, buffer } from '@turf/turf';\n\nconst MIN_LATITUDE = -90;\nconst MAX_LATITUDE = 90;\nconst MIN_LONGITUDE = -180;\nconst MAX_LONGITUDE = 180;\n\n/**\n * Returns a bounding box for the passed geometry (with optional buffer).\n *\n * @param geometry\n * @param bufferDistance\n *\n * @returns {BBox}\n */\nconst getBoundingBox = (geometry, bufferDistance = null) => {\n // Convert the GeoJSON into a bounding box\n const box = bbox(geometry);\n\n // Convert the bounding box to a polygon\n const polygon = bboxPolygon(box);\n\n // Create a buffer around the polygon (if a distance is provided)\n let polygonBuffer;\n\n if (bufferDistance) {\n polygonBuffer = buffer(polygon, bufferDistance, { units: 'miles' });\n } else {\n polygonBuffer = polygon;\n }\n\n // Convert the buffer to a bounding box\n return bbox(polygonBuffer);\n};\n\n/**\n * Returns true if the passed coordinates are valid.\n *\n * @param coordinates\n *\n * @returns {boolean}\n */\nconst validateCoordinates = (coordinates) => {\n let valid = false;\n\n if (coordinates) {\n const [latitude, longitude] = coordinates;\n\n valid = latitude >= MIN_LATITUDE\n && latitude <= MAX_LATITUDE\n && longitude >= MIN_LONGITUDE\n && longitude <= MAX_LONGITUDE;\n }\n\n return valid;\n};\n\nexport default {\n getBoundingBox,\n validateCoordinates\n};\n"],"names":["MIN_LATITUDE","MAX_LATITUDE","MIN_LONGITUDE","MAX_LONGITUDE","getBoundingBox","geometry","bufferDistance","box","bbox","polygon","bboxPolygon","polygonBuffer","buffer","validateCoordinates","coordinates","valid","latitude","longitude","MapUtils"],"mappings":";;;AAIA,MAAMA,IAAe,KACfC,IAAe,IACfC,IAAgB,MAChBC,IAAgB,KAUhBC,IAAiB,CAACC,GAAUC,IAAiB,SAAS;AAEpD,QAAAC,IAAMC,EAAKH,CAAQ,GAGnBI,IAAUC,EAAYH,CAAG;AAG3B,MAAAI;AAEJ,SAAIL,IACFK,IAAgBC,EAAOH,GAASH,GAAgB,EAAE,OAAO,SAAS,IAElDK,IAAAF,GAIXD,EAAKG,CAAa;AAC3B,GASME,IAAsB,CAACC,MAAgB;AAC3C,MAAIC,IAAQ;AAEZ,MAAID,GAAa;AACT,UAAA,CAACE,GAAUC,CAAS,IAAIH;AAE9B,IAAAC,IAAQC,KAAYhB,KACfgB,KAAYf,KACZgB,KAAaf,KACbe,KAAad;AAAA,EACpB;AAEO,SAAAY;AACT,GAEeG,IAAA;AAAA,EACb,gBAAAd;AAAA,EACA,qBAAAS;AACF;"}
@@ -1,4 +1,4 @@
1
- import { nativeIsArray as r } from "./index.es15.js";
1
+ import { nativeIsArray as r } from "./index.es18.js";
2
2
  import t from "./index.es199.js";
3
3
  const e = r || t("Array");
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { _isFinite as t } from "./index.es15.js";
1
+ import { _isFinite as t } from "./index.es18.js";
2
2
  import r from "./index.es87.js";
3
3
  function s(i) {
4
4
  return !r(i) && t(i) && !isNaN(parseFloat(i));
@@ -1,4 +1,4 @@
1
- import { _isNaN as i } from "./index.es15.js";
1
+ import { _isNaN as i } from "./index.es18.js";
2
2
  import t from "./index.es83.js";
3
3
  function N(r) {
4
4
  return t(r) && i(r);
@@ -1,4 +1,4 @@
1
- import { supportsArrayBuffer as i, nativeIsView as t, toString as a } from "./index.es15.js";
1
+ import { supportsArrayBuffer as i, nativeIsView as t, toString as a } from "./index.es18.js";
2
2
  import e from "./index.es89.js";
3
3
  import o from "./index.es114.js";
4
4
  import n from "./index.es201.js";
@@ -1,7 +1,7 @@
1
1
  import e from "./index.es202.js";
2
2
  import i from "./index.es90.js";
3
3
  import m from "./index.es82.js";
4
- import n from "./index.es18.js";
4
+ import n from "./index.es21.js";
5
5
  import f from "./index.es98.js";
6
6
  function a(r) {
7
7
  if (r == null)
@@ -1,9 +1,9 @@
1
- import m from "./index.es19.js";
2
- import { toString as g, SymbolProto as h } from "./index.es15.js";
1
+ import m from "./index.es22.js";
2
+ import { toString as g, SymbolProto as h } from "./index.es18.js";
3
3
  import j from "./index.es203.js";
4
4
  import D from "./index.es93.js";
5
- import y from "./index.es16.js";
6
- import { hasStringTagBug as V } from "./index.es17.js";
5
+ import y from "./index.es19.js";
6
+ import { hasStringTagBug as V } from "./index.es20.js";
7
7
  import v from "./index.es89.js";
8
8
  import w from "./index.es98.js";
9
9
  import q from "./index.es200.js";
@@ -1,5 +1,5 @@
1
1
  import e from "./index.es77.js";
2
- import { nativeKeys as f, hasEnumBug as m } from "./index.es15.js";
2
+ import { nativeKeys as f, hasEnumBug as m } from "./index.es18.js";
3
3
  import n from "./index.es200.js";
4
4
  import o from "./index.es206.js";
5
5
  function c(r) {
@@ -1,5 +1,5 @@
1
1
  import e from "./index.es77.js";
2
- import { hasEnumBug as f } from "./index.es15.js";
2
+ import { hasEnumBug as f } from "./index.es18.js";
3
3
  import i from "./index.es206.js";
4
4
  function s(r) {
5
5
  if (!e(r))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@performant-software/geospatial",
3
- "version": "2.1.0-beta.3",
3
+ "version": "2.1.0-beta.31",
4
4
  "description": "A package of components for all things map-related.",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.cjs.js",
@@ -27,7 +27,7 @@
27
27
  "underscore": "^1.13.6"
28
28
  },
29
29
  "peerDependencies": {
30
- "@peripleo/maplibre": "^0.3.3",
30
+ "@peripleo/maplibre": "^0.4.2",
31
31
  "react": ">= 16.13.1 < 19.0.0",
32
32
  "react-dom": ">= 16.13.1 < 19.0.0"
33
33
  },