@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,10 +1,8 @@
1
- import o from "./index.es19.js";
2
- import t from "./index.es90.js";
3
- function f(r) {
4
- return t(r) ? r : [r];
5
- }
6
- o.toPath = f;
1
+ import r from "./index.es199.js";
2
+ import { isIE11 as t } from "./index.es20.js";
3
+ import { ie11fingerprint as o, mapMethods as i } from "./index.es205.js";
4
+ const a = t ? o(i) : r("Map");
7
5
  export {
8
- f as default
6
+ a as default
9
7
  };
10
8
  //# sourceMappingURL=index.es23.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es23.js","sources":["../../../node_modules/underscore/modules/toPath.js"],"sourcesContent":["import _ from './underscore.js';\nimport isArray from './isArray.js';\n\n// Normalize a (deep) property `path` to array.\n// Like `_.iteratee`, this function can be customized.\nexport default function toPath(path) {\n return isArray(path) ? path : [path];\n}\n_.toPath = toPath;\n"],"names":["toPath","path","isArray","_"],"mappings":";;AAKA,SAAwBA,EAAOC,GAAM;AACnC,SAAOC,EAAQD,CAAI,IAAIA,IAAO,CAACA,CAAI;AACrC;AACAE,EAAE,SAASH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es23.js","sources":["../../../node_modules/underscore/modules/isMap.js"],"sourcesContent":["import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, mapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(mapMethods) : tagTester('Map');\n"],"names":["isMap","isIE11","ie11fingerprint","mapMethods","tagTester"],"mappings":";;;AAIA,MAAeA,IAAAC,IAASC,EAAgBC,CAAU,IAAIC,EAAU,KAAK;","x_google_ignoreList":[0]}
@@ -1,9 +1,26 @@
1
- function t(r) {
2
- return function(n) {
3
- return n == null ? void 0 : n[r];
4
- };
1
+ const a = ["type", "source", "source-layer", "minzoom", "maxzoom", "filter", "layout"];
2
+ function c(r) {
3
+ if (!r)
4
+ return null;
5
+ if (typeof r == "string" || ("toJS" in r && (r = r.toJS()), !r.layers))
6
+ return r;
7
+ const t = {};
8
+ for (const e of r.layers)
9
+ t[e.id] = e;
10
+ const f = r.layers.map((e) => {
11
+ let n = null;
12
+ "interactive" in e && (n = Object.assign({}, e), delete n.interactive);
13
+ const o = t[e.ref];
14
+ if (o) {
15
+ n = n || Object.assign({}, e), delete n.ref;
16
+ for (const i of a)
17
+ i in o && (n[i] = o[i]);
18
+ }
19
+ return n || e;
20
+ });
21
+ return { ...r, layers: f };
5
22
  }
6
23
  export {
7
- t as default
24
+ c as normalizeStyle
8
25
  };
9
26
  //# sourceMappingURL=index.es230.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es230.js","sources":["../../../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"AACA,SAAwBA,EAAgBC,GAAK;AAC3C,SAAO,SAASC,GAAK;AACnB,WAAOA,KAAO,OAAO,SAASA,EAAID,CAAG;AAAA,EAAA;AAEzC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es230.js","sources":["../../../node_modules/react-map-gl/dist/esm/utils/style-utils.js"],"sourcesContent":["const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n// Prepare a map style object for diffing\n// If immutable - convert to plain object\n// Work around some issues in older styles that would fail Mapbox's diffing\nexport function normalizeStyle(style) {\n if (!style) {\n return null;\n }\n if (typeof style === 'string') {\n return style;\n }\n if ('toJS' in style) {\n style = style.toJS();\n }\n if (!style.layers) {\n return style;\n }\n const layerIndex = {};\n for (const layer of style.layers) {\n layerIndex[layer.id] = layer;\n }\n const layers = style.layers.map(layer => {\n let normalizedLayer = null;\n if ('interactive' in layer) {\n normalizedLayer = Object.assign({}, layer);\n // Breaks style diffing :(\n // @ts-ignore legacy field not typed\n delete normalizedLayer.interactive;\n }\n // Style diffing doesn't work with refs so expand them out manually before diffing.\n // @ts-ignore legacy field not typed\n const layerRef = layerIndex[layer.ref];\n if (layerRef) {\n normalizedLayer = normalizedLayer || Object.assign({}, layer);\n // @ts-ignore\n delete normalizedLayer.ref;\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/deref.js\n for (const propName of refProps) {\n if (propName in layerRef) {\n normalizedLayer[propName] = layerRef[propName];\n }\n }\n }\n return normalizedLayer || layer;\n });\n // Do not mutate the style object provided by the user\n return { ...style, layers };\n}\n//# sourceMappingURL=style-utils.js.map"],"names":["refProps","normalizeStyle","style","layerIndex","layer","layers","normalizedLayer","layerRef","propName"],"mappings":"AAAA,MAAMA,IAAW,CAAC,QAAQ,UAAU,gBAAgB,WAAW,WAAW,UAAU,QAAQ;AAIrF,SAASC,EAAeC,GAAO;AAClC,MAAI,CAACA;AACM,WAAA;AAQP,MANA,OAAOA,KAAU,aAGjB,UAAUA,MACVA,IAAQA,EAAM,SAEd,CAACA,EAAM;AACA,WAAAA;AAEX,QAAMC,IAAa,CAAA;AACR,aAAAC,KAASF,EAAM;AACX,IAAAC,EAAAC,EAAM,EAAE,IAAIA;AAE3B,QAAMC,IAASH,EAAM,OAAO,IAAI,CAASE,MAAA;AACrC,QAAIE,IAAkB;AACtB,IAAI,iBAAiBF,MACjBE,IAAkB,OAAO,OAAO,CAAC,GAAGF,CAAK,GAGzC,OAAOE,EAAgB;AAIrB,UAAAC,IAAWJ,EAAWC,EAAM,GAAG;AACrC,QAAIG,GAAU;AACV,MAAAD,IAAkBA,KAAmB,OAAO,OAAO,IAAIF,CAAK,GAE5D,OAAOE,EAAgB;AAEvB,iBAAWE,KAAYR;AACnB,QAAIQ,KAAYD,MACID,EAAAE,CAAQ,IAAID,EAASC,CAAQ;AAAA,IAGzD;AACA,WAAOF,KAAmBF;AAAA,EAAA,CAC7B;AAEM,SAAA,EAAE,GAAGF,GAAO,QAAAG;AACvB;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import a from "./index.es251.js";
1
+ import a from "./index.es250.js";
2
2
  function g(f, v, h, o) {
3
3
  this.x = f, this.z = v, this.o = h, this.e = o, this.v = !1, this.n = this.p = null;
4
4
  }
@@ -1,10 +1,8 @@
1
- import r from "./index.es19.js";
2
- import i from "./index.es216.js";
3
- function a(e, t) {
4
- return i(e, t, 1 / 0);
5
- }
6
- r.iteratee = a;
1
+ import e from "./index.es199.js";
2
+ import { isIE11 as r } from "./index.es20.js";
3
+ import { ie11fingerprint as t, weakMapMethods as a } from "./index.es205.js";
4
+ const m = r ? t(a) : e("WeakMap");
7
5
  export {
8
- a as default
6
+ m as default
9
7
  };
10
8
  //# sourceMappingURL=index.es24.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es24.js","sources":["../../../node_modules/underscore/modules/iteratee.js"],"sourcesContent":["import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\n\n// External wrapper for our callback generator. Users may customize\n// `_.iteratee` if they want additional predicate/iteratee shorthand styles.\n// This abstraction hides the internal-only `argCount` argument.\nexport default function iteratee(value, context) {\n return baseIteratee(value, context, Infinity);\n}\n_.iteratee = iteratee;\n"],"names":["iteratee","value","context","baseIteratee","_"],"mappings":";;AAMwB,SAAAA,EAASC,GAAOC,GAAS;AACxC,SAAAC,EAAaF,GAAOC,GAAS,KAAQ;AAC9C;AACAE,EAAE,WAAWJ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es24.js","sources":["../../../node_modules/underscore/modules/isWeakMap.js"],"sourcesContent":["import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, weakMapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(weakMapMethods) : tagTester('WeakMap');\n"],"names":["isWeakMap","isIE11","ie11fingerprint","weakMapMethods","tagTester"],"mappings":";;;AAIA,MAAeA,IAAAC,IAASC,EAAgBC,CAAc,IAAIC,EAAU,SAAS;","x_google_ignoreList":[0]}
@@ -1,7 +1,7 @@
1
1
  import { cartesian as Q, cartesianCross as T, cartesianDot as R, cartesianScale as g, cartesianAddInPlace as y, spherical as U } from "./index.es233.js";
2
2
  import { circleStream as $ } from "./index.es232.js";
3
3
  import { pi as v, cos as F, epsilon as x, abs as G, sqrt as b } from "./index.es234.js";
4
- import J from "./index.es251.js";
4
+ import J from "./index.es250.js";
5
5
  import m from "./index.es252.js";
6
6
  function fn(S, V) {
7
7
  var A = F(S), C = A > 0, W = G(A) > x;
@@ -1,5 +1,5 @@
1
1
  import c from "./index.es248.js";
2
- import n from "./index.es250.js";
2
+ import n from "./index.es251.js";
3
3
  function S(l, a, r) {
4
4
  var f = a[1][0] - a[0][0], m = a[1][1] - a[0][1], i = l.clipExtent && l.clipExtent();
5
5
  l.scale(150).translate([0, 0]), i != null && l.clipExtent(null), c(r, l.stream(n));
@@ -1,7 +1,8 @@
1
- import e from "./index.es213.js";
2
- import a from "./index.es214.js";
3
- const o = e(a);
1
+ import t from "./index.es199.js";
2
+ import { isIE11 as e } from "./index.es20.js";
3
+ import { ie11fingerprint as r, setMethods as o } from "./index.es205.js";
4
+ const f = e ? r(o) : t("Set");
4
5
  export {
5
- o as default
6
+ f as default
6
7
  };
7
8
  //# sourceMappingURL=index.es25.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es25.js","sources":["../../../node_modules/underscore/modules/escape.js"],"sourcesContent":["import createEscaper from './_createEscaper.js';\nimport escapeMap from './_escapeMap.js';\n\n// Function for escaping strings to HTML interpolation.\nexport default createEscaper(escapeMap);\n"],"names":["escape","createEscaper","escapeMap"],"mappings":";;AAIA,MAAeA,IAAAC,EAAcC,CAAS;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es25.js","sources":["../../../node_modules/underscore/modules/isSet.js"],"sourcesContent":["import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, setMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(setMethods) : tagTester('Set');\n"],"names":["isSet","isIE11","ie11fingerprint","setMethods","tagTester"],"mappings":";;;AAIA,MAAeA,IAAAC,IAASC,EAAgBC,CAAU,IAAIC,EAAU,KAAK;","x_google_ignoreList":[0]}
@@ -1,19 +1,8 @@
1
- import r from "./index.es249.js";
2
- var o = 1 / 0, f = o, t = -o, a = t, d = {
3
- point: u,
4
- lineStart: r,
5
- lineEnd: r,
6
- polygonStart: r,
7
- polygonEnd: r,
8
- result: function() {
9
- var n = [[o, f], [t, a]];
10
- return t = a = -(f = o = 1 / 0), n;
11
- }
12
- };
13
- function u(n, i) {
14
- n < o && (o = n), n > t && (t = n), i < f && (f = i), i > a && (a = i);
1
+ import { abs as n, epsilon as r } from "./index.es234.js";
2
+ function i(o, t) {
3
+ return n(o[0] - t[0]) < r && n(o[1] - t[1]) < r;
15
4
  }
16
5
  export {
17
- d as default
6
+ i as default
18
7
  };
19
8
  //# sourceMappingURL=index.es250.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es250.js","sources":["../../../node_modules/d3-geo/src/path/bounds.js"],"sourcesContent":["import noop from \"../noop\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n"],"names":["x0","y0","x1","y1","boundsStream","boundsPoint","noop","bounds","x","y"],"mappings":";AAEA,IAAIA,IAAK,OACLC,IAAKD,GACLE,IAAK,CAACF,GACNG,IAAKD,GAELE,IAAe;AAAA,EACjB,OAAOC;AAAA,EACP,WAAWC;AAAA,EACX,SAASA;AAAA,EACT,cAAcA;AAAA,EACd,YAAYA;AAAA,EACZ,QAAQ,WAAW;AACb,QAAAC,IAAS,CAAC,CAACP,GAAIC,CAAE,GAAG,CAACC,GAAIC,CAAE,CAAC;AAC3B,WAAAD,IAAAC,IAAK,EAAEF,IAAKD,IAAK,QACfO;AAAA,EACT;AACF;AAEA,SAASF,EAAYG,GAAGC,GAAG;AACzB,EAAID,IAAIR,MAASA,IAAAQ,IACbA,IAAIN,MAASA,IAAAM,IACbC,IAAIR,MAASA,IAAAQ,IACbA,IAAIN,MAASA,IAAAM;AACnB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es250.js","sources":["../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"names":["pointEqual","a","b","abs","epsilon"],"mappings":";AAEA,SAAAA,EAAwBC,GAAGC,GAAG;AAC5B,SAAOC,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE,KAAWD,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE;AAC1D;","x_google_ignoreList":[0]}
@@ -1,8 +1,19 @@
1
- import { abs as n, epsilon as r } from "./index.es234.js";
2
- function i(o, t) {
3
- return n(o[0] - t[0]) < r && n(o[1] - t[1]) < r;
1
+ import r from "./index.es249.js";
2
+ var o = 1 / 0, f = o, t = -o, a = t, d = {
3
+ point: u,
4
+ lineStart: r,
5
+ lineEnd: r,
6
+ polygonStart: r,
7
+ polygonEnd: r,
8
+ result: function() {
9
+ var n = [[o, f], [t, a]];
10
+ return t = a = -(f = o = 1 / 0), n;
11
+ }
12
+ };
13
+ function u(n, i) {
14
+ n < o && (o = n), n > t && (t = n), i < f && (f = i), i > a && (a = i);
4
15
  }
5
16
  export {
6
- i as default
17
+ d as default
7
18
  };
8
19
  //# sourceMappingURL=index.es251.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es251.js","sources":["../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"names":["pointEqual","a","b","abs","epsilon"],"mappings":";AAEA,SAAAA,EAAwBC,GAAGC,GAAG;AAC5B,SAAOC,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE,KAAWD,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE;AAC1D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es251.js","sources":["../../../node_modules/d3-geo/src/path/bounds.js"],"sourcesContent":["import noop from \"../noop\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n"],"names":["x0","y0","x1","y1","boundsStream","boundsPoint","noop","bounds","x","y"],"mappings":";AAEA,IAAIA,IAAK,OACLC,IAAKD,GACLE,IAAK,CAACF,GACNG,IAAKD,GAELE,IAAe;AAAA,EACjB,OAAOC;AAAA,EACP,WAAWC;AAAA,EACX,SAASA;AAAA,EACT,cAAcA;AAAA,EACd,YAAYA;AAAA,EACZ,QAAQ,WAAW;AACb,QAAAC,IAAS,CAAC,CAACP,GAAIC,CAAE,GAAG,CAACC,GAAIC,CAAE,CAAC;AAC3B,WAAAD,IAAAC,IAAK,EAAEF,IAAKD,IAAK,QACfO;AAAA,EACT;AACF;AAEA,SAASF,EAAYG,GAAGC,GAAG;AACzB,EAAID,IAAIR,MAASA,IAAAQ,IACbA,IAAIN,MAASA,IAAAM,IACbC,IAAIR,MAASA,IAAAQ,IACbA,IAAIN,MAASA,IAAAM;AACnB;","x_google_ignoreList":[0]}
@@ -1,7 +1,10 @@
1
- import e from "./index.es213.js";
2
- import a from "./index.es215.js";
3
- const o = e(a);
1
+ import o from "./index.es22.js";
2
+ import t from "./index.es90.js";
3
+ function f(r) {
4
+ return t(r) ? r : [r];
5
+ }
6
+ o.toPath = f;
4
7
  export {
5
- o as default
8
+ f as default
6
9
  };
7
10
  //# sourceMappingURL=index.es26.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es26.js","sources":["../../../node_modules/underscore/modules/unescape.js"],"sourcesContent":["import createEscaper from './_createEscaper.js';\nimport unescapeMap from './_unescapeMap.js';\n\n// Function for unescaping strings from HTML interpolation.\nexport default createEscaper(unescapeMap);\n"],"names":["unescape","createEscaper","unescapeMap"],"mappings":";;AAIA,MAAeA,IAAAC,EAAcC,CAAW;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es26.js","sources":["../../../node_modules/underscore/modules/toPath.js"],"sourcesContent":["import _ from './underscore.js';\nimport isArray from './isArray.js';\n\n// Normalize a (deep) property `path` to array.\n// Like `_.iteratee`, this function can be customized.\nexport default function toPath(path) {\n return isArray(path) ? path : [path];\n}\n_.toPath = toPath;\n"],"names":["toPath","path","isArray","_"],"mappings":";;AAKA,SAAwBA,EAAOC,GAAM;AACnC,SAAOC,EAAQD,CAAI,IAAIA,IAAO,CAACA,CAAI;AACrC;AACAE,EAAE,SAASH;","x_google_ignoreList":[0]}
@@ -1,9 +1,9 @@
1
- import t from "./index.es19.js";
2
- const a = t.templateSettings = {
3
- evaluate: /<%([\s\S]+?)%>/g,
4
- interpolate: /<%=([\s\S]+?)%>/g,
5
- escape: /<%-([\s\S]+?)%>/g
6
- };
1
+ import r from "./index.es22.js";
2
+ import i from "./index.es216.js";
3
+ function a(e, t) {
4
+ return i(e, t, 1 / 0);
5
+ }
6
+ r.iteratee = a;
7
7
  export {
8
8
  a as default
9
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.es27.js","sources":["../../../node_modules/underscore/modules/templateSettings.js"],"sourcesContent":["import _ from './underscore.js';\n\n// By default, Underscore uses ERB-style template delimiters. Change the\n// following template settings to use alternative delimiters.\nexport default _.templateSettings = {\n evaluate: /<%([\\s\\S]+?)%>/g,\n interpolate: /<%=([\\s\\S]+?)%>/g,\n escape: /<%-([\\s\\S]+?)%>/g\n};\n"],"names":["templateSettings","_"],"mappings":";AAIA,MAAeA,IAAAC,EAAE,mBAAmB;AAAA,EAClC,UAAU;AAAA,EACV,aAAa;AAAA,EACb,QAAQ;AACV;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es27.js","sources":["../../../node_modules/underscore/modules/iteratee.js"],"sourcesContent":["import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\n\n// External wrapper for our callback generator. Users may customize\n// `_.iteratee` if they want additional predicate/iteratee shorthand styles.\n// This abstraction hides the internal-only `argCount` argument.\nexport default function iteratee(value, context) {\n return baseIteratee(value, context, Infinity);\n}\n_.iteratee = iteratee;\n"],"names":["iteratee","value","context","baseIteratee","_"],"mappings":";;AAMwB,SAAAA,EAASC,GAAOC,GAAS;AACxC,SAAAC,EAAaF,GAAOC,GAAS,KAAQ;AAC9C;AACAE,EAAE,WAAWJ;","x_google_ignoreList":[0]}
@@ -1,18 +1,7 @@
1
- import m from "./index.es76.js";
2
- import p from "./index.es217.js";
3
- import s from "./index.es19.js";
4
- var l = m(function(u, e) {
5
- var h = l.placeholder, o = function() {
6
- for (var t = 0, n = e.length, a = Array(n), r = 0; r < n; r++)
7
- a[r] = e[r] === h ? arguments[t++] : e[r];
8
- for (; t < arguments.length; )
9
- a.push(arguments[t++]);
10
- return p(u, o, this, this, a);
11
- };
12
- return o;
13
- });
14
- l.placeholder = s;
1
+ import e from "./index.es213.js";
2
+ import a from "./index.es214.js";
3
+ const o = e(a);
15
4
  export {
16
- l as default
5
+ o as default
17
6
  };
18
7
  //# sourceMappingURL=index.es28.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es28.js","sources":["../../../node_modules/underscore/modules/partial.js"],"sourcesContent":["import restArguments from './restArguments.js';\nimport executeBound from './_executeBound.js';\nimport _ from './underscore.js';\n\n// Partially apply a function by creating a version that has had some of its\n// arguments pre-filled, without changing its dynamic `this` context. `_` acts\n// as a placeholder by default, allowing any combination of arguments to be\n// pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.\nvar partial = restArguments(function(func, boundArgs) {\n var placeholder = partial.placeholder;\n var bound = function() {\n var position = 0, length = boundArgs.length;\n var args = Array(length);\n for (var i = 0; i < length; i++) {\n args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];\n }\n while (position < arguments.length) args.push(arguments[position++]);\n return executeBound(func, bound, this, this, args);\n };\n return bound;\n});\n\npartial.placeholder = _;\nexport default partial;\n"],"names":["partial","restArguments","func","boundArgs","placeholder","bound","position","length","args","i","executeBound","_"],"mappings":";;;AAQA,IAAIA,IAAUC,EAAc,SAASC,GAAMC,GAAW;AACpD,MAAIC,IAAcJ,EAAQ,aACtBK,IAAQ,WAAW;AAGrB,aAFIC,IAAW,GAAGC,IAASJ,EAAU,QACjCK,IAAO,MAAMD,CAAM,GACdE,IAAI,GAAGA,IAAIF,GAAQE;AACrB,MAAAD,EAAAC,CAAC,IAAIN,EAAUM,CAAC,MAAML,IAAc,UAAUE,GAAU,IAAIH,EAAUM,CAAC;AAE9E,WAAOH,IAAW,UAAU;AAAa,MAAAE,EAAA,KAAK,UAAUF,GAAU,CAAC;AACnE,WAAOI,EAAaR,GAAMG,GAAO,MAAM,MAAMG,CAAI;AAAA,EAAA;AAE5C,SAAAH;AACT,CAAC;AAEDL,EAAQ,cAAcW;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es28.js","sources":["../../../node_modules/underscore/modules/escape.js"],"sourcesContent":["import createEscaper from './_createEscaper.js';\nimport escapeMap from './_escapeMap.js';\n\n// Function for escaping strings to HTML interpolation.\nexport default createEscaper(escapeMap);\n"],"names":["escape","createEscaper","escapeMap"],"mappings":";;AAIA,MAAeA,IAAAC,EAAcC,CAAS;","x_google_ignoreList":[0]}
@@ -1,15 +1,7 @@
1
- import o from "./index.es76.js";
2
- import u from "./index.es16.js";
3
- import c from "./index.es217.js";
4
- const a = o(function(t, r, e) {
5
- if (!u(t))
6
- throw new TypeError("Bind must be called on a function");
7
- var n = o(function(i) {
8
- return c(t, n, r, this, e.concat(i));
9
- });
10
- return n;
11
- });
1
+ import e from "./index.es213.js";
2
+ import a from "./index.es215.js";
3
+ const o = e(a);
12
4
  export {
13
- a as default
5
+ o as default
14
6
  };
15
7
  //# sourceMappingURL=index.es29.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es29.js","sources":["../../../node_modules/underscore/modules/bind.js"],"sourcesContent":["import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport executeBound from './_executeBound.js';\n\n// Create a function bound to a given object (assigning `this`, and arguments,\n// optionally).\nexport default restArguments(function(func, context, args) {\n if (!isFunction(func)) throw new TypeError('Bind must be called on a function');\n var bound = restArguments(function(callArgs) {\n return executeBound(func, bound, context, this, args.concat(callArgs));\n });\n return bound;\n});\n"],"names":["bind","restArguments","func","context","args","isFunction","bound","callArgs","executeBound"],"mappings":";;;AAMA,MAAeA,IAAAC,EAAc,SAASC,GAAMC,GAASC,GAAM;AACrD,MAAA,CAACC,EAAWH,CAAI;AAAS,UAAA,IAAI,UAAU,mCAAmC;AAC1E,MAAAI,IAAQL,EAAc,SAASM,GAAU;AACpC,WAAAC,EAAaN,GAAMI,GAAOH,GAAS,MAAMC,EAAK,OAAOG,CAAQ,CAAC;AAAA,EAAA,CACtE;AACM,SAAAD;AACT,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es29.js","sources":["../../../node_modules/underscore/modules/unescape.js"],"sourcesContent":["import createEscaper from './_createEscaper.js';\nimport unescapeMap from './_unescapeMap.js';\n\n// Function for unescaping strings from HTML interpolation.\nexport default createEscaper(unescapeMap);\n"],"names":["unescape","createEscaper","unescapeMap"],"mappings":";;AAIA,MAAeA,IAAAC,EAAcC,CAAW;","x_google_ignoreList":[0]}
package/dist/index.es3.js CHANGED
@@ -1,84 +1,38 @@
1
- import { j as e } from "./index.es13.js";
2
- import { useState as S, useCallback as L, useMemo as r, useEffect as u } from "react";
3
- import { Source as E, Layer as l } from "./index.es11.js";
4
- import _ from "./index.es14.js";
5
- import "./index.es15.js";
6
- import "./index.es16.js";
7
- import "./index.es17.js";
8
- import "./index.es18.js";
9
- import "./index.es19.js";
10
- import "./index.es20.js";
11
- import "./index.es21.js";
12
- import "./index.es22.js";
13
- import "./index.es23.js";
14
- import "./index.es24.js";
15
- import "./index.es25.js";
16
- import "./index.es26.js";
17
- import "./index.es27.js";
18
- import "./index.es28.js";
19
- import "./index.es29.js";
20
- import "./index.es30.js";
21
- import "./index.es31.js";
22
- import "./index.es32.js";
23
- import "./index.es33.js";
24
- import "./index.es34.js";
25
- import "./index.es35.js";
26
- import "./index.es36.js";
27
- import "./index.es37.js";
28
- import "./index.es38.js";
29
- import "./index.es39.js";
30
- import "./index.es40.js";
31
- import "./index.es41.js";
32
- const n = "#CC3333", m = "#990000", T = {
33
- "fill-color": n,
34
- "fill-opacity": 0.2
35
- }, j = {
36
- "line-color": m,
37
- "line-opacity": 0.6
38
- }, d = {
39
- "circle-radius": [
40
- "interpolate",
41
- ["linear"],
42
- ["number", ["get", "point_count"], 1],
43
- 0,
44
- 4,
45
- 10,
46
- 14
47
- ],
48
- "circle-stroke-width": 1,
49
- "circle-color": n,
50
- "circle-stroke-color": m
51
- }, Z = (t) => {
52
- const [c, p] = S(t.data), i = L((o, f) => _.defaults(o, f), []), a = r(() => i(t.fillStyle, T), [i, t.fillStyle]), s = r(() => i(t.lineStyle, j), [i, t.lineStyle]), y = r(() => i(t.pointStyle, d), [i, t.pointStyle]);
53
- return u(() => {
54
- t.url && fetch(t.url).then((o) => o.json()).then((o) => p(o));
1
+ import { j as e } from "./index.es14.js";
2
+ import { useState as a, useEffect as f } from "react";
3
+ import { Source as y, Layer as i } from "./index.es12.js";
4
+ import n from "./index.es10.js";
5
+ const s = (t) => {
6
+ const [o, r] = a(t.data);
7
+ return f(() => {
8
+ t.url && fetch(t.url).then((l) => l.json()).then((l) => r(l));
55
9
  }, [t.url]), /* @__PURE__ */ e.jsxs(
56
- E,
10
+ y,
57
11
  {
58
- data: c,
12
+ data: o,
59
13
  type: "geojson",
60
14
  children: [
61
15
  /* @__PURE__ */ e.jsx(
62
- l,
16
+ i,
63
17
  {
64
18
  filter: ["!=", "$type", "Point"],
65
- paint: a,
19
+ paint: t.fillStyle,
66
20
  type: "fill"
67
21
  }
68
22
  ),
69
23
  /* @__PURE__ */ e.jsx(
70
- l,
24
+ i,
71
25
  {
72
26
  filter: ["!=", "$type", "Point"],
73
- paint: s,
27
+ paint: t.lineStyle,
74
28
  type: "line"
75
29
  }
76
30
  ),
77
31
  /* @__PURE__ */ e.jsx(
78
- l,
32
+ i,
79
33
  {
80
34
  filter: ["==", "$type", "Point"],
81
- paint: y,
35
+ paint: t.pointStyle,
82
36
  type: "circle"
83
37
  }
84
38
  )
@@ -86,7 +40,12 @@ const n = "#CC3333", m = "#990000", T = {
86
40
  }
87
41
  );
88
42
  };
43
+ s.defaultProps = {
44
+ fillStyle: n.fill,
45
+ pointStyle: n.point,
46
+ strokeStyle: n.stroke
47
+ };
89
48
  export {
90
- Z as default
49
+ s as default
91
50
  };
92
51
  //# sourceMappingURL=index.es3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es3.js","sources":["../src/components/GeoJsonLayer.js"],"sourcesContent":["// @flow\n\nimport React, {\n useCallback,\n useEffect,\n useMemo,\n useState\n} from 'react';\nimport { Layer, Source } from 'react-map-gl';\nimport _ from 'underscore';\n\ntype Props = {\n data?: { [key: string]: any },\n fillStyle?: { [key: string]: any },\n lineStyle?: { [key: string]: any },\n pointStyle?: { [key: string]: any },\n url?: string\n};\n\nconst DEFAULT_COLOR = '#CC3333';\nconst HIGHLIGHT_COLOR = '#990000';\n\nconst DEFAULT_FILL_STYLES = {\n 'fill-color': DEFAULT_COLOR,\n 'fill-opacity': 0.2\n};\n\nconst DEFAULT_LINE_STYLES = {\n 'line-color': HIGHLIGHT_COLOR,\n 'line-opacity': 0.6\n};\n\nconst DEFAULT_POINT_STYLES = {\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': DEFAULT_COLOR,\n 'circle-stroke-color': HIGHLIGHT_COLOR\n};\n\nconst GeoJsonLayer = (props: Props) => {\n const [data, setData] = useState(props.data);\n\n /**\n * Returns the layer style for the passed style and default.\n *\n * @type {function(*, *): *}\n */\n const getLayerStyles = useCallback((style, defaultStyle) => _.defaults(style, defaultStyle), []);\n\n /**\n * Sets the fill layer style.\n *\n * @type {*}\n */\n const fillStyle = useMemo(() => (\n getLayerStyles(props.fillStyle, DEFAULT_FILL_STYLES)\n ), [getLayerStyles, props.fillStyle]);\n\n /**\n * Sets the line layer style.\n *\n * @type {*}\n */\n const lineStyle = useMemo(() => (\n getLayerStyles(props.lineStyle, DEFAULT_LINE_STYLES)\n ), [getLayerStyles, props.lineStyle]);\n\n /**\n * Sets the point layer style.\n *\n * @type {*}\n */\n const pointStyle = useMemo(() => (\n getLayerStyles(props.pointStyle, DEFAULT_POINT_STYLES)\n ), [getLayerStyles, props.pointStyle]);\n\n /**\n * If the data is passed as a URL, fetches the passed URL and sets the response on the state.\n */\n useEffect(() => {\n if (props.url) {\n fetch(props.url)\n .then((response) => response.json())\n .then((json) => setData(json));\n }\n }, [props.url]);\n\n return (\n <Source\n data={data}\n type='geojson'\n >\n <Layer\n filter={['!=', '$type', 'Point']}\n paint={fillStyle}\n type='fill'\n />\n <Layer\n filter={['!=', '$type', 'Point']}\n paint={lineStyle}\n type='line'\n />\n <Layer\n filter={['==', '$type', 'Point']}\n paint={pointStyle}\n type='circle'\n />\n </Source>\n );\n};\n\nexport default GeoJsonLayer;\n"],"names":["DEFAULT_COLOR","HIGHLIGHT_COLOR","DEFAULT_FILL_STYLES","DEFAULT_LINE_STYLES","DEFAULT_POINT_STYLES","GeoJsonLayer","props","data","setData","useState","getLayerStyles","useCallback","style","defaultStyle","fillStyle","useMemo","lineStyle","pointStyle","useEffect","response","json","jsxs","Source","jsx","Layer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAMA,IAAgB,WAChBC,IAAkB,WAElBC,IAAsB;AAAA,EAC1B,cAAcF;AAAA,EACd,gBAAgB;AAClB,GAEMG,IAAsB;AAAA,EAC1B,cAAcF;AAAA,EACd,gBAAgB;AAClB,GAEMG,IAAuB;AAAA,EAC3B,iBAAiB;AAAA,IACf;AAAA,IACA,CAAC,QAAQ;AAAA,IACT,CAAC,UAAU,CAAC,OAAO,aAAa,GAAG,CAAC;AAAA,IACpC;AAAA,IAAG;AAAA,IACH;AAAA,IAAI;AAAA,EACN;AAAA,EACA,uBAAuB;AAAA,EACvB,gBAAgBJ;AAAA,EAChB,uBAAuBC;AACzB,GAEMI,IAAe,CAACC,MAAiB;AACrC,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAASH,EAAM,IAAI,GAOrCI,IAAiBC,EAAY,CAACC,GAAOC,MAAiB,EAAE,SAASD,GAAOC,CAAY,GAAG,CAAE,CAAA,GAOzFC,IAAYC,EAAQ,MACxBL,EAAeJ,EAAM,WAAWJ,CAAmB,GAClD,CAACQ,GAAgBJ,EAAM,SAAS,CAAC,GAO9BU,IAAYD,EAAQ,MACxBL,EAAeJ,EAAM,WAAWH,CAAmB,GAClD,CAACO,GAAgBJ,EAAM,SAAS,CAAC,GAO9BW,IAAaF,EAAQ,MACzBL,EAAeJ,EAAM,YAAYF,CAAoB,GACpD,CAACM,GAAgBJ,EAAM,UAAU,CAAC;AAKrC,SAAAY,EAAU,MAAM;AACd,IAAIZ,EAAM,OACR,MAAMA,EAAM,GAAG,EACZ,KAAK,CAACa,MAAaA,EAAS,KAAK,CAAC,EAClC,KAAK,CAACC,MAASZ,EAAQY,CAAI,CAAC;AAAA,EACjC,GACC,CAACd,EAAM,GAAG,CAAC,GAGZe,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAf;AAAA,MACA,MAAK;AAAA,MAEL,UAAA;AAAA,QAAAgB,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,QAAQ,CAAC,MAAM,SAAS,OAAO;AAAA,YAC/B,OAAOV;AAAA,YACP,MAAK;AAAA,UAAA;AAAA,QACP;AAAA,QACAS,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,QAAQ,CAAC,MAAM,SAAS,OAAO;AAAA,YAC/B,OAAOR;AAAA,YACP,MAAK;AAAA,UAAA;AAAA,QACP;AAAA,QACAO,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,QAAQ,CAAC,MAAM,SAAS,OAAO;AAAA,YAC/B,OAAOP;AAAA,YACP,MAAK;AAAA,UAAA;AAAA,QACP;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"index.es3.js","sources":["../src/components/GeoJsonLayer.js"],"sourcesContent":["// @flow\n\nimport React, {\n useEffect,\n useState\n} from 'react';\nimport { Layer, Source } from 'react-map-gl';\nimport MapStyles from '../utils/MapStyles';\n\ntype Props = {\n data?: { [key: string]: any },\n fillStyle?: { [key: string]: any },\n lineStyle?: { [key: string]: any },\n pointStyle?: { [key: string]: any },\n url?: string\n};\n\nconst GeoJsonLayer = (props: Props) => {\n const [data, setData] = useState(props.data);\n\n /**\n * If the data is passed as a URL, fetches the passed URL and sets the response on the state.\n */\n useEffect(() => {\n if (props.url) {\n fetch(props.url)\n .then((response) => response.json())\n .then((json) => setData(json));\n }\n }, [props.url]);\n\n return (\n <Source\n data={data}\n type='geojson'\n >\n <Layer\n filter={['!=', '$type', 'Point']}\n paint={props.fillStyle}\n type='fill'\n />\n <Layer\n filter={['!=', '$type', 'Point']}\n paint={props.lineStyle}\n type='line'\n />\n <Layer\n filter={['==', '$type', 'Point']}\n paint={props.pointStyle}\n type='circle'\n />\n </Source>\n );\n};\n\nGeoJsonLayer.defaultProps = {\n fillStyle: MapStyles.fill,\n pointStyle: MapStyles.point,\n strokeStyle: MapStyles.stroke\n};\n\nexport default GeoJsonLayer;\n"],"names":["GeoJsonLayer","props","data","setData","useState","useEffect","response","json","jsxs","Source","jsx","Layer","MapStyles"],"mappings":";;;;AAiBM,MAAAA,IAAe,CAACC,MAAiB;AACrC,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAASH,EAAM,IAAI;AAK3C,SAAAI,EAAU,MAAM;AACd,IAAIJ,EAAM,OACR,MAAMA,EAAM,GAAG,EACZ,KAAK,CAACK,MAAaA,EAAS,KAAK,CAAC,EAClC,KAAK,CAACC,MAASJ,EAAQI,CAAI,CAAC;AAAA,EACjC,GACC,CAACN,EAAM,GAAG,CAAC,GAGZO,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAP;AAAA,MACA,MAAK;AAAA,MAEL,UAAA;AAAA,QAAAQ,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,QAAQ,CAAC,MAAM,SAAS,OAAO;AAAA,YAC/B,OAAOV,EAAM;AAAA,YACb,MAAK;AAAA,UAAA;AAAA,QACP;AAAA,QACAS,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,QAAQ,CAAC,MAAM,SAAS,OAAO;AAAA,YAC/B,OAAOV,EAAM;AAAA,YACb,MAAK;AAAA,UAAA;AAAA,QACP;AAAA,QACAS,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,QAAQ,CAAC,MAAM,SAAS,OAAO;AAAA,YAC/B,OAAOV,EAAM;AAAA,YACb,MAAK;AAAA,UAAA;AAAA,QACP;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;AAEAD,EAAa,eAAe;AAAA,EAC1B,WAAWY,EAAU;AAAA,EACrB,YAAYA,EAAU;AAAA,EACtB,aAAaA,EAAU;AACzB;"}
@@ -1,18 +1,10 @@
1
- import i from "./index.es76.js";
2
- import f from "./index.es218.js";
3
- import l from "./index.es29.js";
4
- const s = i(function(r, t) {
5
- t = f(t, !1, !1);
6
- var n = t.length;
7
- if (n < 1)
8
- throw new Error("bindAll must be passed function names");
9
- for (; n--; ) {
10
- var e = t[n];
11
- r[e] = l(r[e], r);
12
- }
13
- return r;
14
- });
1
+ import t from "./index.es22.js";
2
+ const a = t.templateSettings = {
3
+ evaluate: /<%([\s\S]+?)%>/g,
4
+ interpolate: /<%=([\s\S]+?)%>/g,
5
+ escape: /<%-([\s\S]+?)%>/g
6
+ };
15
7
  export {
16
- s as default
8
+ a as default
17
9
  };
18
10
  //# sourceMappingURL=index.es30.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es30.js","sources":["../../../node_modules/underscore/modules/bindAll.js"],"sourcesContent":["import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport bind from './bind.js';\n\n// Bind a number of an object's methods to that object. Remaining arguments\n// are the method names to be bound. Useful for ensuring that all callbacks\n// defined on an object belong to it.\nexport default restArguments(function(obj, keys) {\n keys = flatten(keys, false, false);\n var index = keys.length;\n if (index < 1) throw new Error('bindAll must be passed function names');\n while (index--) {\n var key = keys[index];\n obj[key] = bind(obj[key], obj);\n }\n return obj;\n});\n"],"names":["bindAll","restArguments","obj","keys","flatten","index","key","bind"],"mappings":";;;AAOA,MAAAA,IAAeC,EAAc,SAASC,GAAKC,GAAM;AACxC,EAAAA,IAAAC,EAAQD,GAAM,IAAO,EAAK;AACjC,MAAIE,IAAQF,EAAK;AACjB,MAAIE,IAAQ;AAAS,UAAA,IAAI,MAAM,uCAAuC;AACtE,SAAOA,OAAS;AACV,QAAAC,IAAMH,EAAKE,CAAK;AACpB,IAAAH,EAAII,CAAG,IAAIC,EAAKL,EAAII,CAAG,GAAGJ,CAAG;AAAA,EAC/B;AACO,SAAAA;AACT,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es30.js","sources":["../../../node_modules/underscore/modules/templateSettings.js"],"sourcesContent":["import _ from './underscore.js';\n\n// By default, Underscore uses ERB-style template delimiters. Change the\n// following template settings to use alternative delimiters.\nexport default _.templateSettings = {\n evaluate: /<%([\\s\\S]+?)%>/g,\n interpolate: /<%=([\\s\\S]+?)%>/g,\n escape: /<%-([\\s\\S]+?)%>/g\n};\n"],"names":["templateSettings","_"],"mappings":";AAIA,MAAeA,IAAAC,EAAE,mBAAmB;AAAA,EAClC,UAAU;AAAA,EACV,aAAa;AAAA,EACb,QAAQ;AACV;","x_google_ignoreList":[0]}
@@ -1,10 +1,18 @@
1
- import r from "./index.es76.js";
2
- const o = r(function(t, e, n) {
3
- return setTimeout(function() {
4
- return t.apply(null, n);
5
- }, e);
1
+ import m from "./index.es76.js";
2
+ import p from "./index.es217.js";
3
+ import s from "./index.es22.js";
4
+ var l = m(function(u, e) {
5
+ var h = l.placeholder, o = function() {
6
+ for (var t = 0, n = e.length, a = Array(n), r = 0; r < n; r++)
7
+ a[r] = e[r] === h ? arguments[t++] : e[r];
8
+ for (; t < arguments.length; )
9
+ a.push(arguments[t++]);
10
+ return p(u, o, this, this, a);
11
+ };
12
+ return o;
6
13
  });
14
+ l.placeholder = s;
7
15
  export {
8
- o as default
16
+ l as default
9
17
  };
10
18
  //# sourceMappingURL=index.es31.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es31.js","sources":["../../../node_modules/underscore/modules/delay.js"],"sourcesContent":["import restArguments from './restArguments.js';\n\n// Delays a function for the given number of milliseconds, and then calls\n// it with the arguments supplied.\nexport default restArguments(function(func, wait, args) {\n return setTimeout(function() {\n return func.apply(null, args);\n }, wait);\n});\n"],"names":["delay","restArguments","func","wait","args"],"mappings":";AAIA,MAAeA,IAAAC,EAAc,SAASC,GAAMC,GAAMC,GAAM;AACtD,SAAO,WAAW,WAAW;AACpB,WAAAF,EAAK,MAAM,MAAME,CAAI;AAAA,KAC3BD,CAAI;AACT,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es31.js","sources":["../../../node_modules/underscore/modules/partial.js"],"sourcesContent":["import restArguments from './restArguments.js';\nimport executeBound from './_executeBound.js';\nimport _ from './underscore.js';\n\n// Partially apply a function by creating a version that has had some of its\n// arguments pre-filled, without changing its dynamic `this` context. `_` acts\n// as a placeholder by default, allowing any combination of arguments to be\n// pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.\nvar partial = restArguments(function(func, boundArgs) {\n var placeholder = partial.placeholder;\n var bound = function() {\n var position = 0, length = boundArgs.length;\n var args = Array(length);\n for (var i = 0; i < length; i++) {\n args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];\n }\n while (position < arguments.length) args.push(arguments[position++]);\n return executeBound(func, bound, this, this, args);\n };\n return bound;\n});\n\npartial.placeholder = _;\nexport default partial;\n"],"names":["partial","restArguments","func","boundArgs","placeholder","bound","position","length","args","i","executeBound","_"],"mappings":";;;AAQA,IAAIA,IAAUC,EAAc,SAASC,GAAMC,GAAW;AACpD,MAAIC,IAAcJ,EAAQ,aACtBK,IAAQ,WAAW;AAGrB,aAFIC,IAAW,GAAGC,IAASJ,EAAU,QACjCK,IAAO,MAAMD,CAAM,GACdE,IAAI,GAAGA,IAAIF,GAAQE;AACrB,MAAAD,EAAAC,CAAC,IAAIN,EAAUM,CAAC,MAAML,IAAc,UAAUE,GAAU,IAAIH,EAAUM,CAAC;AAE9E,WAAOH,IAAW,UAAU;AAAa,MAAAE,EAAA,KAAK,UAAUF,GAAU,CAAC;AACnE,WAAOI,EAAaR,GAAMG,GAAO,MAAM,MAAMG,CAAI;AAAA,EAAA;AAE5C,SAAAH;AACT,CAAC;AAEDL,EAAQ,cAAcW;","x_google_ignoreList":[0]}
@@ -1,8 +1,15 @@
1
- import r from "./index.es28.js";
2
- import o from "./index.es31.js";
3
- import t from "./index.es19.js";
4
- const f = r(o, t, 1);
1
+ import o from "./index.es76.js";
2
+ import u from "./index.es19.js";
3
+ import c from "./index.es217.js";
4
+ const a = o(function(t, r, e) {
5
+ if (!u(t))
6
+ throw new TypeError("Bind must be called on a function");
7
+ var n = o(function(i) {
8
+ return c(t, n, r, this, e.concat(i));
9
+ });
10
+ return n;
11
+ });
5
12
  export {
6
- f as default
13
+ a as default
7
14
  };
8
15
  //# sourceMappingURL=index.es32.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es32.js","sources":["../../../node_modules/underscore/modules/defer.js"],"sourcesContent":["import partial from './partial.js';\nimport delay from './delay.js';\nimport _ from './underscore.js';\n\n// Defers a function, scheduling it to run after the current call stack has\n// cleared.\nexport default partial(delay, _, 1);\n"],"names":["defer","partial","delay","_"],"mappings":";;;AAMA,MAAAA,IAAeC,EAAQC,GAAOC,GAAG,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es32.js","sources":["../../../node_modules/underscore/modules/bind.js"],"sourcesContent":["import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport executeBound from './_executeBound.js';\n\n// Create a function bound to a given object (assigning `this`, and arguments,\n// optionally).\nexport default restArguments(function(func, context, args) {\n if (!isFunction(func)) throw new TypeError('Bind must be called on a function');\n var bound = restArguments(function(callArgs) {\n return executeBound(func, bound, context, this, args.concat(callArgs));\n });\n return bound;\n});\n"],"names":["bind","restArguments","func","context","args","isFunction","bound","callArgs","executeBound"],"mappings":";;;AAMA,MAAeA,IAAAC,EAAc,SAASC,GAAMC,GAASC,GAAM;AACrD,MAAA,CAACC,EAAWH,CAAI;AAAS,UAAA,IAAI,UAAU,mCAAmC;AAC1E,MAAAI,IAAQL,EAAc,SAASM,GAAU;AACpC,WAAAC,EAAaN,GAAMI,GAAOH,GAAS,MAAMC,EAAK,OAAOG,CAAQ,CAAC;AAAA,EAAA,CACtE;AACM,SAAAD;AACT,CAAC;","x_google_ignoreList":[0]}
@@ -1,7 +1,18 @@
1
- import o from "./index.es28.js";
2
- import r from "./index.es133.js";
3
- const a = o(r, 2);
1
+ import i from "./index.es76.js";
2
+ import f from "./index.es218.js";
3
+ import l from "./index.es32.js";
4
+ const s = i(function(r, t) {
5
+ t = f(t, !1, !1);
6
+ var n = t.length;
7
+ if (n < 1)
8
+ throw new Error("bindAll must be passed function names");
9
+ for (; n--; ) {
10
+ var e = t[n];
11
+ r[e] = l(r[e], r);
12
+ }
13
+ return r;
14
+ });
4
15
  export {
5
- a as default
16
+ s as default
6
17
  };
7
18
  //# sourceMappingURL=index.es33.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es33.js","sources":["../../../node_modules/underscore/modules/once.js"],"sourcesContent":["import partial from './partial.js';\nimport before from './before.js';\n\n// Returns a function that will be executed at most one time, no matter how\n// often you call it. Useful for lazy initialization.\nexport default partial(before, 2);\n"],"names":["once","partial","before"],"mappings":";;AAKA,MAAAA,IAAeC,EAAQC,GAAQ,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es33.js","sources":["../../../node_modules/underscore/modules/bindAll.js"],"sourcesContent":["import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport bind from './bind.js';\n\n// Bind a number of an object's methods to that object. Remaining arguments\n// are the method names to be bound. Useful for ensuring that all callbacks\n// defined on an object belong to it.\nexport default restArguments(function(obj, keys) {\n keys = flatten(keys, false, false);\n var index = keys.length;\n if (index < 1) throw new Error('bindAll must be passed function names');\n while (index--) {\n var key = keys[index];\n obj[key] = bind(obj[key], obj);\n }\n return obj;\n});\n"],"names":["bindAll","restArguments","obj","keys","flatten","index","key","bind"],"mappings":";;;AAOA,MAAAA,IAAeC,EAAc,SAASC,GAAKC,GAAM;AACxC,EAAAA,IAAAC,EAAQD,GAAM,IAAO,EAAK;AACjC,MAAIE,IAAQF,EAAK;AACjB,MAAIE,IAAQ;AAAS,UAAA,IAAI,MAAM,uCAAuC;AACtE,SAAOA,OAAS;AACV,QAAAC,IAAMH,EAAKE,CAAK;AACpB,IAAAH,EAAII,CAAG,IAAIC,EAAKL,EAAII,CAAG,GAAGJ,CAAG;AAAA,EAC/B;AACO,SAAAA;AACT,CAAC;","x_google_ignoreList":[0]}