@performant-software/geospatial 2.3.3-beta.7 → 2.3.3-beta.8

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 (243) hide show
  1. package/dist/index.cjs14.js +1 -1
  2. package/dist/index.cjs15.js +1 -1
  3. package/dist/index.cjs16.js +1 -1
  4. package/dist/index.cjs17.js +1 -1
  5. package/dist/index.cjs183.js +1 -1
  6. package/dist/index.cjs183.js.map +1 -1
  7. package/dist/index.cjs184.js +1 -1
  8. package/dist/index.cjs184.js.map +1 -1
  9. package/dist/index.cjs185.js +4 -1
  10. package/dist/index.cjs185.js.map +1 -1
  11. package/dist/index.cjs186.js +1 -1
  12. package/dist/index.cjs186.js.map +1 -1
  13. package/dist/index.cjs187.js +1 -1
  14. package/dist/index.cjs187.js.map +1 -1
  15. package/dist/index.cjs188.js +1 -1
  16. package/dist/index.cjs188.js.map +1 -1
  17. package/dist/index.cjs189.js +1 -1
  18. package/dist/index.cjs189.js.map +1 -1
  19. package/dist/index.cjs190.js +1 -1
  20. package/dist/index.cjs190.js.map +1 -1
  21. package/dist/index.cjs191.js +1 -1
  22. package/dist/index.cjs191.js.map +1 -1
  23. package/dist/index.cjs192.js +1 -1
  24. package/dist/index.cjs192.js.map +1 -1
  25. package/dist/index.cjs193.js +1 -4
  26. package/dist/index.cjs193.js.map +1 -1
  27. package/dist/index.cjs194.js +1 -1
  28. package/dist/index.cjs194.js.map +1 -1
  29. package/dist/index.cjs195.js +1 -1
  30. package/dist/index.cjs195.js.map +1 -1
  31. package/dist/index.cjs196.js +1 -1
  32. package/dist/index.cjs196.js.map +1 -1
  33. package/dist/index.cjs197.js +1 -1
  34. package/dist/index.cjs197.js.map +1 -1
  35. package/dist/index.cjs198.js +1 -1
  36. package/dist/index.cjs198.js.map +1 -1
  37. package/dist/index.cjs199.js +1 -1
  38. package/dist/index.cjs199.js.map +1 -1
  39. package/dist/index.cjs200.js +1 -1
  40. package/dist/index.cjs200.js.map +1 -1
  41. package/dist/index.cjs201.js +1 -1
  42. package/dist/index.cjs201.js.map +1 -1
  43. package/dist/index.cjs202.js +1 -1
  44. package/dist/index.cjs202.js.map +1 -1
  45. package/dist/index.cjs203.js +1 -1
  46. package/dist/index.cjs203.js.map +1 -1
  47. package/dist/index.cjs204.js +1 -1
  48. package/dist/index.cjs204.js.map +1 -1
  49. package/dist/index.cjs205.js +1 -1
  50. package/dist/index.cjs205.js.map +1 -1
  51. package/dist/index.cjs208.js +1 -1
  52. package/dist/index.cjs209.js +1 -1
  53. package/dist/index.cjs21.js +1 -1
  54. package/dist/index.cjs210.js +1 -1
  55. package/dist/index.cjs22.js +1 -1
  56. package/dist/index.cjs228.js +1 -1
  57. package/dist/index.cjs233.js +1 -1
  58. package/dist/index.cjs233.js.map +1 -1
  59. package/dist/index.cjs234.js +1 -1
  60. package/dist/index.cjs234.js.map +1 -1
  61. package/dist/index.cjs235.js +1 -1
  62. package/dist/index.cjs235.js.map +1 -1
  63. package/dist/index.cjs236.js +1 -1
  64. package/dist/index.cjs236.js.map +1 -1
  65. package/dist/index.cjs237.js +1 -1
  66. package/dist/index.cjs237.js.map +1 -1
  67. package/dist/index.cjs239.js +1 -1
  68. package/dist/index.cjs242.js +1 -1
  69. package/dist/index.cjs245.js +1 -1
  70. package/dist/index.cjs248.js +1 -1
  71. package/dist/index.cjs250.js +1 -1
  72. package/dist/index.cjs253.js +1 -1
  73. package/dist/index.cjs254.js +1 -1
  74. package/dist/index.cjs257.js +1 -1
  75. package/dist/index.cjs257.js.map +1 -1
  76. package/dist/index.cjs258.js +1 -1
  77. package/dist/index.cjs258.js.map +1 -1
  78. package/dist/index.cjs259.js +1 -1
  79. package/dist/index.cjs26.js +1 -1
  80. package/dist/index.cjs52.js +1 -1
  81. package/dist/index.cjs56.js +1 -1
  82. package/dist/index.cjs58.js +1 -1
  83. package/dist/index.cjs62.js +9 -1
  84. package/dist/index.cjs62.js.map +1 -1
  85. package/dist/index.cjs63.js +13 -3
  86. package/dist/index.cjs63.js.map +1 -1
  87. package/dist/index.cjs64.js +1 -19
  88. package/dist/index.cjs64.js.map +1 -1
  89. package/dist/index.cjs65.js +1 -1
  90. package/dist/index.cjs65.js.map +1 -1
  91. package/dist/index.cjs66.js +1 -1
  92. package/dist/index.cjs66.js.map +1 -1
  93. package/dist/index.cjs67.js +1 -1
  94. package/dist/index.cjs67.js.map +1 -1
  95. package/dist/index.cjs68.js +1 -1
  96. package/dist/index.cjs68.js.map +1 -1
  97. package/dist/index.cjs69.js +1 -1
  98. package/dist/index.cjs69.js.map +1 -1
  99. package/dist/index.cjs70.js +1 -1
  100. package/dist/index.cjs70.js.map +1 -1
  101. package/dist/index.cjs71.js +1 -1
  102. package/dist/index.cjs71.js.map +1 -1
  103. package/dist/index.cjs72.js +1 -1
  104. package/dist/index.cjs72.js.map +1 -1
  105. package/dist/index.cjs73.js +1 -1
  106. package/dist/index.cjs73.js.map +1 -1
  107. package/dist/index.cjs74.js +1 -1
  108. package/dist/index.cjs74.js.map +1 -1
  109. package/dist/index.cjs75.js +1 -1
  110. package/dist/index.cjs75.js.map +1 -1
  111. package/dist/index.cjs76.js +1 -1
  112. package/dist/index.cjs76.js.map +1 -1
  113. package/dist/index.cjs77.js +1 -1
  114. package/dist/index.cjs77.js.map +1 -1
  115. package/dist/index.cjs78.js +1 -1
  116. package/dist/index.cjs78.js.map +1 -1
  117. package/dist/index.cjs79.js +1 -1
  118. package/dist/index.cjs79.js.map +1 -1
  119. package/dist/index.cjs80.js +1 -1
  120. package/dist/index.cjs80.js.map +1 -1
  121. package/dist/index.es14.js +1 -1
  122. package/dist/index.es15.js +8 -8
  123. package/dist/index.es16.js +1 -1
  124. package/dist/index.es17.js +3 -3
  125. package/dist/index.es183.js +7 -320
  126. package/dist/index.es183.js.map +1 -1
  127. package/dist/index.es184.js +144 -71
  128. package/dist/index.es184.js.map +1 -1
  129. package/dist/index.es185.js +12197 -3
  130. package/dist/index.es185.js.map +1 -1
  131. package/dist/index.es186.js +3 -18
  132. package/dist/index.es186.js.map +1 -1
  133. package/dist/index.es187.js +3 -13
  134. package/dist/index.es187.js.map +1 -1
  135. package/dist/index.es188.js +33 -28
  136. package/dist/index.es188.js.map +1 -1
  137. package/dist/index.es189.js +3 -7
  138. package/dist/index.es189.js.map +1 -1
  139. package/dist/index.es190.js +23 -2
  140. package/dist/index.es190.js.map +1 -1
  141. package/dist/index.es191.js +2 -10
  142. package/dist/index.es191.js.map +1 -1
  143. package/dist/index.es192.js +3 -150
  144. package/dist/index.es192.js.map +1 -1
  145. package/dist/index.es193.js +2 -12199
  146. package/dist/index.es193.js.map +1 -1
  147. package/dist/index.es194.js +34 -3
  148. package/dist/index.es194.js.map +1 -1
  149. package/dist/index.es195.js +14 -2
  150. package/dist/index.es195.js.map +1 -1
  151. package/dist/index.es196.js +13 -35
  152. package/dist/index.es196.js.map +1 -1
  153. package/dist/index.es197.js +11 -3
  154. package/dist/index.es197.js.map +1 -1
  155. package/dist/index.es198.js +319 -21
  156. package/dist/index.es198.js.map +1 -1
  157. package/dist/index.es199.js +77 -2
  158. package/dist/index.es199.js.map +1 -1
  159. package/dist/index.es200.js +5 -3
  160. package/dist/index.es200.js.map +1 -1
  161. package/dist/index.es201.js +18 -2
  162. package/dist/index.es201.js.map +1 -1
  163. package/dist/index.es202.js +10 -31
  164. package/dist/index.es202.js.map +1 -1
  165. package/dist/index.es203.js +31 -13
  166. package/dist/index.es203.js.map +1 -1
  167. package/dist/index.es204.js +4 -13
  168. package/dist/index.es204.js.map +1 -1
  169. package/dist/index.es205.js +2 -9
  170. package/dist/index.es205.js.map +1 -1
  171. package/dist/index.es208.js +1 -1
  172. package/dist/index.es209.js +1 -1
  173. package/dist/index.es21.js +2 -2
  174. package/dist/index.es210.js +1 -1
  175. package/dist/index.es22.js +2 -2
  176. package/dist/index.es228.js +1 -1
  177. package/dist/index.es233.js +3 -46
  178. package/dist/index.es233.js.map +1 -1
  179. package/dist/index.es234.js +5 -22
  180. package/dist/index.es234.js.map +1 -1
  181. package/dist/index.es235.js +8 -3
  182. package/dist/index.es235.js.map +1 -1
  183. package/dist/index.es236.js +44 -6
  184. package/dist/index.es236.js.map +1 -1
  185. package/dist/index.es237.js +22 -5
  186. package/dist/index.es237.js.map +1 -1
  187. package/dist/index.es239.js +1 -1
  188. package/dist/index.es242.js +1 -1
  189. package/dist/index.es245.js +1 -1
  190. package/dist/index.es248.js +2 -2
  191. package/dist/index.es250.js +1 -1
  192. package/dist/index.es253.js +1 -1
  193. package/dist/index.es254.js +1 -1
  194. package/dist/index.es257.js +4 -15
  195. package/dist/index.es257.js.map +1 -1
  196. package/dist/index.es258.js +15 -4
  197. package/dist/index.es258.js.map +1 -1
  198. package/dist/index.es259.js +2 -2
  199. package/dist/index.es26.js +1 -1
  200. package/dist/index.es52.js +5 -5
  201. package/dist/index.es56.js +1 -1
  202. package/dist/index.es58.js +12 -12
  203. package/dist/index.es61.js +2 -2
  204. package/dist/index.es62.js +30 -2
  205. package/dist/index.es62.js.map +1 -1
  206. package/dist/index.es63.js +593 -21
  207. package/dist/index.es63.js.map +1 -1
  208. package/dist/index.es64.js +2 -602
  209. package/dist/index.es64.js.map +1 -1
  210. package/dist/index.es65.js +53 -105
  211. package/dist/index.es65.js.map +1 -1
  212. package/dist/index.es66.js +48 -12
  213. package/dist/index.es66.js.map +1 -1
  214. package/dist/index.es67.js +37 -55
  215. package/dist/index.es67.js.map +1 -1
  216. package/dist/index.es68.js +11 -47
  217. package/dist/index.es68.js.map +1 -1
  218. package/dist/index.es69.js +14 -38
  219. package/dist/index.es69.js.map +1 -1
  220. package/dist/index.es70.js +29 -11
  221. package/dist/index.es70.js.map +1 -1
  222. package/dist/index.es71.js +10 -10
  223. package/dist/index.es71.js.map +1 -1
  224. package/dist/index.es72.js +13 -29
  225. package/dist/index.es72.js.map +1 -1
  226. package/dist/index.es73.js +10 -12
  227. package/dist/index.es73.js.map +1 -1
  228. package/dist/index.es74.js +109 -14
  229. package/dist/index.es74.js.map +1 -1
  230. package/dist/index.es75.js +10 -11
  231. package/dist/index.es75.js.map +1 -1
  232. package/dist/index.es76.js +2 -28
  233. package/dist/index.es76.js.map +1 -1
  234. package/dist/index.es77.js +2 -51
  235. package/dist/index.es77.js.map +1 -1
  236. package/dist/index.es78.js +25 -62
  237. package/dist/index.es78.js.map +1 -1
  238. package/dist/index.es79.js +51 -2
  239. package/dist/index.es79.js.map +1 -1
  240. package/dist/index.es80.js +65 -2
  241. package/dist/index.es80.js.map +1 -1
  242. package/dist/style.css +1 -1
  243. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs74.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/scale-control.js"],"sourcesContent":["import { useEffect, useRef, memo } from 'react';\nimport { applyReactStyle } from '../utils/apply-react-style';\nimport useControl from './use-control';\nfunction ScaleControl(props) {\n const ctrl = useControl(({ mapLib }) => new mapLib.ScaleControl(props), {\n position: props.position\n });\n const propsRef = useRef(props);\n const prevProps = propsRef.current;\n propsRef.current = props;\n const { style } = props;\n if (props.maxWidth !== undefined && props.maxWidth !== prevProps.maxWidth) {\n ctrl.options.maxWidth = props.maxWidth;\n }\n if (props.unit !== undefined && props.unit !== prevProps.unit) {\n ctrl.setUnit(props.unit);\n }\n useEffect(() => {\n applyReactStyle(ctrl._container, style);\n }, [style]);\n return null;\n}\nexport default memo(ScaleControl);\n//# sourceMappingURL=scale-control.js.map"],"names":["ScaleControl","props","ctrl","useControl","mapLib","propsRef","useRef","prevProps","style","useEffect","applyReactStyle","memo"],"mappings":"mGAGA,SAASA,EAAaC,EAAO,CACnB,MAAAC,EAAOC,EAAW,CAAC,CAAE,OAAAC,KAAa,IAAIA,EAAO,aAAaH,CAAK,EAAG,CACpE,SAAUA,EAAM,QAAA,CACnB,EACKI,EAAWC,SAAOL,CAAK,EACvBM,EAAYF,EAAS,QAC3BA,EAAS,QAAUJ,EACb,KAAA,CAAE,MAAAO,CAAU,EAAAP,EAClB,OAAIA,EAAM,WAAa,QAAaA,EAAM,WAAaM,EAAU,WACxDL,EAAA,QAAQ,SAAWD,EAAM,UAE9BA,EAAM,OAAS,QAAaA,EAAM,OAASM,EAAU,MAChDL,EAAA,QAAQD,EAAM,IAAI,EAE3BQ,EAAAA,UAAU,IAAM,CACIC,EAAAA,gBAAAR,EAAK,WAAYM,CAAK,CAAA,EACvC,CAACA,CAAK,CAAC,EACH,IACX,CACeG,OAAKX,CAAY","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs74.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","sourceKeys","i","_extends","ownKeys","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","arg","_toPrimitive","input","hint","prim","res","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","svgProps","computedSize","className","IconContext","DefaultContext"],"mappings":"uIAAA,IAAIA,EAAY,CAAC,OAAQ,OAAQ,OAAO,EACxC,SAASC,EAAyBC,EAAQC,EAAU,CAAE,GAAID,GAAU,KAAM,MAAO,GAAI,IAAIE,EAASC,EAA8BH,EAAQC,CAAQ,EAAOG,EAAK,EAAG,GAAI,OAAO,sBAAuB,CAAE,IAAIC,EAAmB,OAAO,sBAAsBL,CAAM,EAAG,IAAK,EAAI,EAAG,EAAIK,EAAiB,OAAQ,IAAOD,EAAMC,EAAiB,CAAC,EAAO,EAAAJ,EAAS,QAAQG,CAAG,GAAK,IAAkB,OAAO,UAAU,qBAAqB,KAAKJ,EAAQI,CAAG,IAAaF,EAAOE,CAAG,EAAIJ,EAAOI,CAAG,EAAI,CAAG,OAAOF,CAAS,CAC5e,SAASC,EAA8BH,EAAQC,EAAU,CAAE,GAAID,GAAU,KAAM,MAAO,CAAE,EAAE,IAAIE,EAAS,CAAE,EAAMI,EAAa,OAAO,KAAKN,CAAM,EAAOI,EAAKG,EAAG,IAAKA,EAAI,EAAGA,EAAID,EAAW,OAAQC,IAAOH,EAAME,EAAWC,CAAC,EAAO,EAAAN,EAAS,QAAQG,CAAG,GAAK,KAAaF,EAAOE,CAAG,EAAIJ,EAAOI,CAAG,GAAK,OAAOF,CAAS,CACnT,SAASM,GAAW,CAAE,OAAAA,EAAW,OAAO,OAAS,OAAO,OAAO,KAAM,EAAG,SAAUN,EAAQ,CAAE,QAASK,EAAI,EAAGA,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d,EAAEyB,EAAK,KAAMC,EAAMG,EAAU,CAC5B,UAAWE,EACX,MAAO1B,EAAcA,EAAc,CACjC,MAAOiB,EAAM,OAASG,EAAK,KAC5B,EAAEA,EAAK,KAAK,EAAGH,EAAM,KAAK,EAC3B,OAAQQ,EACR,MAAOA,EACP,MAAO,4BACb,CAAK,EAAGF,GAAsBT,EAAM,cAAc,QAAS,KAAMS,CAAK,EAAGN,EAAM,QAAQ,CACvF,EACE,OAAOU,EAAW,cAAK,OAAyBb,EAAM,cAAca,EAAW,YAAC,SAAU,KAAMP,GAAQD,EAAKC,CAAI,CAAC,EAAID,EAAKS,EAAc,cAAA,CAC3I","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),a=require("./index.cjs67.js");function c(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=c(o),u=s.createContext(null);function i(){var e;const n=(e=o.useContext(u))===null||e===void 0?void 0:e.maps,t=o.useContext(a.MapContext);return o.useMemo(()=>({...n,current:t==null?void 0:t.map}),[n,t])}exports.MountedMapsContext=u;exports.useMap=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var t={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=e.createContext&&e.createContext(t);exports.DefaultContext=t;exports.IconContext=n;
2
2
  //# sourceMappingURL=index.cjs75.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs75.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/use-map.js"],"sourcesContent":["import * as React from 'react';\nimport { useState, useCallback, useMemo, useContext } from 'react';\nimport { MapContext } from './map';\nexport const MountedMapsContext = React.createContext(null);\nexport const MapProvider = props => {\n const [maps, setMaps] = useState({});\n const onMapMount = useCallback((map, id = 'default') => {\n setMaps(currMaps => {\n if (id === 'current') {\n throw new Error(\"'current' cannot be used as map id\");\n }\n if (currMaps[id]) {\n throw new Error(`Multiple maps with the same id: ${id}`);\n }\n return { ...currMaps, [id]: map };\n });\n }, []);\n const onMapUnmount = useCallback((id = 'default') => {\n setMaps(currMaps => {\n if (currMaps[id]) {\n const nextMaps = { ...currMaps };\n delete nextMaps[id];\n return nextMaps;\n }\n return currMaps;\n });\n }, []);\n return (React.createElement(MountedMapsContext.Provider, { value: {\n maps,\n onMapMount,\n onMapUnmount\n } }, props.children));\n};\nexport function useMap() {\n var _a;\n const maps = (_a = useContext(MountedMapsContext)) === null || _a === void 0 ? void 0 : _a.maps;\n const currentMap = useContext(MapContext);\n const mapsWithCurrent = useMemo(() => {\n return { ...maps, current: currentMap === null || currentMap === void 0 ? void 0 : currentMap.map };\n }, [maps, currentMap]);\n return mapsWithCurrent;\n}\n//# sourceMappingURL=use-map.js.map"],"names":["MountedMapsContext","React","useMap","_a","maps","useContext","currentMap","MapContext","useMemo"],"mappings":"iaAGaA,EAAqBC,EAAM,cAAc,IAAI,EA8BnD,SAASC,GAAS,CACjB,IAAAC,EACE,MAAAC,GAAQD,EAAKE,EAAW,WAAAL,CAAkB,KAAO,MAAQG,IAAO,OAAS,OAASA,EAAG,KACrFG,EAAaD,aAAWE,EAAAA,UAAU,EAIjC,OAHiBC,EAAAA,QAAQ,KACrB,CAAE,GAAGJ,EAAM,QAASE,GAAe,KAAgC,OAASA,EAAW,GAAI,GACnG,CAACF,EAAME,CAAU,CAAC,CAEzB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs75.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":"yGACU,IAACA,EAAiB,CAC1B,MAAO,OACP,KAAM,OACN,UAAW,OACX,MAAO,OACP,KAAM,MACR,EACWC,EAAcC,EAAM,eAA8BA,EAAM,cAAcF,CAAc","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs190.js");function u(o,i){for(var n=0;n<i.length;n++){const e=i[n];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in o)){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a=r.__exports.printMsg=function(){console.log("This is a message from the demo package")};const c=u({__proto__:null,default:r.__exports,printMsg:a},[r.__exports]);exports.default=r.__exports;exports.index=c;exports.printMsg=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
2
  //# sourceMappingURL=index.cjs76.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs76.js","sources":["../../../node_modules/mapbox-gl/index.js"],"sourcesContent":["exports.printMsg = function() {\r\n console.log(\"This is a message from the demo package\");\r\n }"],"names":["printMsg","mapboxGl"],"mappings":"ueAAA,IAAAA,EAAAC,EAAAA,UAAA,SAAmB,UAAW,CAC1B,QAAQ,IAAI,yCAAyC,CACvD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs76.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";const u=require("react"),m=require("./index.cjs67.js"),L=require("./index.cjs189.js"),s=require("./index.cjs188.js");function q(t,e,a,o){if(L(a.id===o.id,"layer id changed"),L(a.type===o.type,"layer type changed"),a.type==="custom"||o.type==="custom")return;const{layout:r={},paint:i={},filter:y,minzoom:f,maxzoom:l,beforeId:d}=a;if(d!==o.beforeId&&t.moveLayer(e,d),r!==o.layout){const c=o.layout||{};for(const n in r)s.deepEqual(r[n],c[n])||t.setLayoutProperty(e,n,r[n]);for(const n in c)r.hasOwnProperty(n)||t.setLayoutProperty(e,n,void 0)}if(i!==o.paint){const c=o.paint||{};for(const n in i)s.deepEqual(i[n],c[n])||t.setPaintProperty(e,n,i[n]);for(const n in c)i.hasOwnProperty(n)||t.setPaintProperty(e,n,void 0)}s.deepEqual(y,o.filter)||t.setFilter(e,y),(f!==o.minzoom||l!==o.maxzoom)&&t.setLayerZoomRange(e,f,l)}function g(t,e,a){if(t.style&&t.style._loaded&&(!("source"in a)||t.getSource(a.source))){const o={...a,id:e};delete o.beforeId,t.addLayer(o,a.beforeId)}}let x=0;function h(t){const e=u.useContext(m.MapContext).map.getMap(),a=u.useRef(t),[,o]=u.useState(0),r=u.useMemo(()=>t.id||`jsx-layer-${x++}`,[]);if(u.useEffect(()=>{if(e){const y=()=>o(f=>f+1);return e.on("styledata",y),y(),()=>{e.off("styledata",y),e.style&&e.style._loaded&&e.getLayer(r)&&e.removeLayer(r)}}},[e]),e&&e.style&&e.getLayer(r))try{q(e,r,t,a.current)}catch(y){console.warn(y)}else g(e,r,t);return a.current=t,null}module.exports=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
2
  //# sourceMappingURL=index.cjs77.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs77.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/layer.js"],"sourcesContent":["import { useContext, useEffect, useMemo, useState, useRef } from 'react';\nimport { MapContext } from './map';\nimport assert from '../utils/assert';\nimport { deepEqual } from '../utils/deep-equal';\n/* eslint-disable complexity, max-statements */\nfunction updateLayer(map, id, props, prevProps) {\n assert(props.id === prevProps.id, 'layer id changed');\n assert(props.type === prevProps.type, 'layer type changed');\n if (props.type === 'custom' || prevProps.type === 'custom') {\n return;\n }\n const { layout = {}, paint = {}, filter, minzoom, maxzoom, beforeId } = props;\n if (beforeId !== prevProps.beforeId) {\n map.moveLayer(id, beforeId);\n }\n if (layout !== prevProps.layout) {\n const prevLayout = prevProps.layout || {};\n for (const key in layout) {\n if (!deepEqual(layout[key], prevLayout[key])) {\n map.setLayoutProperty(id, key, layout[key]);\n }\n }\n for (const key in prevLayout) {\n if (!layout.hasOwnProperty(key)) {\n map.setLayoutProperty(id, key, undefined);\n }\n }\n }\n if (paint !== prevProps.paint) {\n const prevPaint = prevProps.paint || {};\n for (const key in paint) {\n if (!deepEqual(paint[key], prevPaint[key])) {\n map.setPaintProperty(id, key, paint[key]);\n }\n }\n for (const key in prevPaint) {\n if (!paint.hasOwnProperty(key)) {\n map.setPaintProperty(id, key, undefined);\n }\n }\n }\n if (!deepEqual(filter, prevProps.filter)) {\n map.setFilter(id, filter);\n }\n if (minzoom !== prevProps.minzoom || maxzoom !== prevProps.maxzoom) {\n map.setLayerZoomRange(id, minzoom, maxzoom);\n }\n}\nfunction createLayer(map, id, props) {\n // @ts-ignore\n if (map.style && map.style._loaded && (!('source' in props) || map.getSource(props.source))) {\n const options = { ...props, id };\n delete options.beforeId;\n // @ts-ignore\n map.addLayer(options, props.beforeId);\n }\n}\n/* eslint-enable complexity, max-statements */\nlet layerCounter = 0;\nfunction Layer(props) {\n const map = useContext(MapContext).map.getMap();\n const propsRef = useRef(props);\n const [, setStyleLoaded] = useState(0);\n const id = useMemo(() => props.id || `jsx-layer-${layerCounter++}`, []);\n useEffect(() => {\n if (map) {\n const forceUpdate = () => setStyleLoaded(version => version + 1);\n map.on('styledata', forceUpdate);\n forceUpdate();\n return () => {\n map.off('styledata', forceUpdate);\n // @ts-ignore\n if (map.style && map.style._loaded && map.getLayer(id)) {\n map.removeLayer(id);\n }\n };\n }\n return undefined;\n }, [map]);\n // @ts-ignore\n const layer = map && map.style && map.getLayer(id);\n if (layer) {\n try {\n updateLayer(map, id, props, propsRef.current);\n }\n catch (error) {\n console.warn(error); // eslint-disable-line\n }\n }\n else {\n createLayer(map, id, props);\n }\n // Store last rendered props\n propsRef.current = props;\n return null;\n}\nexport default Layer;\n//# sourceMappingURL=layer.js.map"],"names":["updateLayer","map","id","props","prevProps","assert","layout","paint","filter","minzoom","maxzoom","beforeId","prevLayout","key","deepEqual","prevPaint","createLayer","options","layerCounter","Layer","useContext","MapContext","propsRef","useRef","setStyleLoaded","useState","useMemo","useEffect","forceUpdate","version","error"],"mappings":"kIAKA,SAASA,EAAYC,EAAKC,EAAIC,EAAOC,EAAW,CAG5C,GAFAC,EAAOF,EAAM,KAAOC,EAAU,GAAI,kBAAkB,EACpDC,EAAOF,EAAM,OAASC,EAAU,KAAM,oBAAoB,EACtDD,EAAM,OAAS,UAAYC,EAAU,OAAS,SAC9C,OAEE,KAAA,CAAE,OAAAE,EAAS,GAAI,MAAAC,EAAQ,CAAC,EAAG,OAAAC,EAAQ,QAAAC,EAAS,QAAAC,EAAS,SAAAC,CAAa,EAAAR,EAIpE,GAHAQ,IAAaP,EAAU,UACnBH,EAAA,UAAUC,EAAIS,CAAQ,EAE1BL,IAAWF,EAAU,OAAQ,CACvB,MAAAQ,EAAaR,EAAU,QAAU,GACvC,UAAWS,KAAOP,EACTQ,YAAUR,EAAOO,CAAG,EAAGD,EAAWC,CAAG,CAAC,GACvCZ,EAAI,kBAAkBC,EAAIW,EAAKP,EAAOO,CAAG,CAAC,EAGlD,UAAWA,KAAOD,EACTN,EAAO,eAAeO,CAAG,GACtBZ,EAAA,kBAAkBC,EAAIW,EAAK,MAAS,CAGpD,CACI,GAAAN,IAAUH,EAAU,MAAO,CACrB,MAAAW,EAAYX,EAAU,OAAS,GACrC,UAAWS,KAAON,EACTO,YAAUP,EAAMM,CAAG,EAAGE,EAAUF,CAAG,CAAC,GACrCZ,EAAI,iBAAiBC,EAAIW,EAAKN,EAAMM,CAAG,CAAC,EAGhD,UAAWA,KAAOE,EACTR,EAAM,eAAeM,CAAG,GACrBZ,EAAA,iBAAiBC,EAAIW,EAA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AAAmB,EAAS,QAAUnB,EACZ,IACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs77.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";const l=require("react"),f=require("./index.cjs67.js"),d=require("./index.cjs189.js"),y=require("./index.cjs188.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const S=g(l);let m=0;function b(t,e,n){if(t.style&&t.style._loaded){const o={...n};return delete o.id,delete o.children,t.addSource(e,o),t.getSource(e)}return null}function h(t,e,n){d(e.id===n.id,"source id changed"),d(e.type===n.type,"source type changed");let o="",c=0;for(const r in e)r!=="children"&&r!=="id"&&!y.deepEqual(n[r],e[r])&&(o=r,c++);if(!c)return;const a=e.type;if(a==="geojson")t.setData(e.data);else if(a==="image")t.updateImage({url:e.url,coordinates:e.coordinates});else if("setCoordinates"in t&&c===1&&o==="coordinates")t.setCoordinates(e.coordinates);else if("setUrl"in t)switch(o){case"url":t.setUrl(e.url);break;case"tiles":t.setTiles(e.tiles);break}else console.warn(`Unable to update <Source> prop: ${o}`)}function C(t){const e=l.useContext(f.MapContext).map.getMap(),n=l.useRef(t),[,o]=l.useState(0),c=l.useMemo(()=>t.id||`jsx-source-${m++}`,[]);l.useEffect(()=>{if(e){const r=()=>setTimeout(()=>o(i=>i+1),0);return e.on("styledata",r),r(),()=>{var i;if(e.off("styledata",r),e.style&&e.style._loaded&&e.getSource(c)){const u=(i=e.getStyle())===null||i===void 0?void 0:i.layers;if(u)for(const s of u)s.source===c&&e.removeLayer(s.id);e.removeSource(c)}}}},[e]);let a=e&&e.style&&e.getSource(c);return a?h(a,t,n.current):a=b(e,c,t),n.current=t,a&&S.Children.map(t.children,r=>r&&l.cloneElement(r,{source:c}))||null}module.exports=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs205.js");function u(o,i){for(var n=0;n<i.length;n++){const e=i[n];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in o)){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a=r.__exports.printMsg=function(){console.log("This is a message from the demo package")};const c=u({__proto__:null,default:r.__exports,printMsg:a},[r.__exports]);exports.default=r.__exports;exports.index=c;exports.printMsg=a;
2
2
  //# sourceMappingURL=index.cjs78.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs78.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/source.js"],"sourcesContent":["import * as React from 'react';\nimport { useContext, useEffect, useMemo, useState, useRef } from 'react';\nimport { cloneElement } from 'react';\nimport { MapContext } from './map';\nimport assert from '../utils/assert';\nimport { deepEqual } from '../utils/deep-equal';\nlet sourceCounter = 0;\nfunction createSource(map, id, props) {\n // @ts-ignore\n if (map.style && map.style._loaded) {\n const options = { ...props };\n delete options.id;\n delete options.children;\n // @ts-ignore\n map.addSource(id, options);\n return map.getSource(id);\n }\n return null;\n}\n/* eslint-disable complexity */\nfunction updateSource(source, props, prevProps) {\n assert(props.id === prevProps.id, 'source id changed');\n assert(props.type === prevProps.type, 'source type changed');\n let changedKey = '';\n let changedKeyCount = 0;\n for (const key in props) {\n if (key !== 'children' && key !== 'id' && !deepEqual(prevProps[key], props[key])) {\n changedKey = key;\n changedKeyCount++;\n }\n }\n if (!changedKeyCount) {\n return;\n }\n const type = props.type;\n if (type === 'geojson') {\n source.setData(props.data);\n }\n else if (type === 'image') {\n source.updateImage({\n url: props.url,\n coordinates: props.coordinates\n });\n }\n else if ('setCoordinates' in source && changedKeyCount === 1 && changedKey === 'coordinates') {\n source.setCoordinates(props.coordinates);\n }\n else if ('setUrl' in source) {\n // Added in 1.12.0:\n // vectorTileSource.setTiles\n // vectorTileSource.setUrl\n switch (changedKey) {\n case 'url':\n source.setUrl(props.url);\n break;\n case 'tiles':\n source.setTiles(props.tiles);\n break;\n default:\n }\n }\n else {\n // eslint-disable-next-line\n console.warn(`Unable to update <Source> prop: ${changedKey}`);\n }\n}\n/* eslint-enable complexity */\nfunction Source(props) {\n const map = useContext(MapContext).map.getMap();\n const propsRef = useRef(props);\n const [, setStyleLoaded] = useState(0);\n const id = useMemo(() => props.id || `jsx-source-${sourceCounter++}`, []);\n useEffect(() => {\n if (map) {\n /* global setTimeout */\n const forceUpdate = () => setTimeout(() => setStyleLoaded(version => version + 1), 0);\n map.on('styledata', forceUpdate);\n forceUpdate();\n return () => {\n var _a;\n map.off('styledata', forceUpdate);\n // @ts-ignore\n if (map.style && map.style._loaded && map.getSource(id)) {\n // Parent effects are destroyed before child ones, see\n // https://github.com/facebook/react/issues/16728\n // Source can only be removed after all child layers are removed\n const allLayers = (_a = map.getStyle()) === null || _a === void 0 ? void 0 : _a.layers;\n if (allLayers) {\n for (const layer of allLayers) {\n // @ts-ignore (2339) source does not exist on all layer types\n if (layer.source === id) {\n map.removeLayer(layer.id);\n }\n }\n }\n map.removeSource(id);\n }\n };\n }\n return undefined;\n }, [map]);\n // @ts-ignore\n let source = map && map.style && map.getSource(id);\n if (source) {\n updateSource(source, props, propsRef.current);\n }\n else {\n source = createSource(map, id, props);\n }\n propsRef.current = props;\n return ((source &&\n React.Children.map(props.children, child => child &&\n cloneElement(child, {\n source: id\n }))) ||\n null);\n}\nexport default Source;\n//# sourceMappingURL=source.js.map"],"names":["sourceCounter","createSource","map","id","props","options","updateSource","source","prevProps","assert","changedKey","changedKeyCount","key","deepEqual","type","Source","useContext","MapContext","propsRef","useRef","setStyleLoaded","useState","useMemo","useEffect","forceUpdate","version","_a","allLayers","layer","React","child","cloneElement"],"mappings":"4ZAMA,IAAIA,EAAgB,EACpB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ACxEuB,EAAAA,UAAU,IAAM,CACZ,GAAIrB,EAAK,CAEC,MAAAsB,EAAc,IAAM,WAAW,IAAMJ,EAA0BK,GAAAA,EAAU,CAAC,EAAG,CAAC,EAChFvB,OAAAA,EAAA,GAAG,YAAasB,CAAW,EACnBA,IACL,IAAM,CACL,IAAAE,EAGA,GAFAxB,EAAA,IAAI,YAAasB,CAAW,EAE5BtB,EAAI,OAASA,EAAI,MAAM,SAAWA,EAAI,UAAUC,CAAE,EAAG,CAI/C,MAAAwB,GAAaD,EAAKxB,EAAI,SAAA,KAAgB,MAAQwB,IAAO,OAAS,OAASA,EAAG,OAChF,GAAIC,EACA,UAAWC,KAASD,EAEZC,EAAM,SAAWzB,GACbD,EAAA,YAAY0B,EAAM,EAAE,EAIpC1B,EAAI,aAAaC,CAAE,CACvB,CAAA,CAER,CACO,EACR,CAACD,CAAG,CAAC,EAER,IAAIK,EAASL,GAAOA,EAAI,OAASA,EAAI,UAAUC,CAAE,EACjD,OAAII,EACaD,EAAAC,EAAQH,EAAOc,EAAS,OAAO,EAGnCX,EAAAN,EAAaC,EAAKC,EAAIC,CAAK,EAExCc,EAAS,QAAUd,EACVG,GACLsB,EAAM,SAAS,IAAIzB,EAAM,SAAU0B,GAASA,GACxCC,EAAAA,aAAaD,EAAO,CAChB,OAAQ3B,CAAA,CACX,CAAC,GACN,IACR","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs78.js","sources":["../../../node_modules/mapbox-gl/index.js"],"sourcesContent":["exports.printMsg = function() {\r\n console.log(\"This is a message from the demo package\");\r\n }"],"names":["printMsg","mapboxGl"],"mappings":"ueAAA,IAAAA,EAAAC,EAAAA,UAAA,SAAmB,UAAW,CAC1B,QAAQ,IAAI,yCAAyC,CACvD","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";const u=require("react"),m=require("./index.cjs65.js"),L=require("./index.cjs204.js"),s=require("./index.cjs203.js");function q(t,e,a,o){if(L(a.id===o.id,"layer id changed"),L(a.type===o.type,"layer type changed"),a.type==="custom"||o.type==="custom")return;const{layout:r={},paint:i={},filter:y,minzoom:f,maxzoom:l,beforeId:d}=a;if(d!==o.beforeId&&t.moveLayer(e,d),r!==o.layout){const c=o.layout||{};for(const n in r)s.deepEqual(r[n],c[n])||t.setLayoutProperty(e,n,r[n]);for(const n in c)r.hasOwnProperty(n)||t.setLayoutProperty(e,n,void 0)}if(i!==o.paint){const c=o.paint||{};for(const n in i)s.deepEqual(i[n],c[n])||t.setPaintProperty(e,n,i[n]);for(const n in c)i.hasOwnProperty(n)||t.setPaintProperty(e,n,void 0)}s.deepEqual(y,o.filter)||t.setFilter(e,y),(f!==o.minzoom||l!==o.maxzoom)&&t.setLayerZoomRange(e,f,l)}function g(t,e,a){if(t.style&&t.style._loaded&&(!("source"in a)||t.getSource(a.source))){const o={...a,id:e};delete o.beforeId,t.addLayer(o,a.beforeId)}}let x=0;function h(t){const e=u.useContext(m.MapContext).map.getMap(),a=u.useRef(t),[,o]=u.useState(0),r=u.useMemo(()=>t.id||`jsx-layer-${x++}`,[]);if(u.useEffect(()=>{if(e){const y=()=>o(f=>f+1);return e.on("styledata",y),y(),()=>{e.off("styledata",y),e.style&&e.style._loaded&&e.getLayer(r)&&e.removeLayer(r)}}},[e]),e&&e.style&&e.getLayer(r))try{q(e,r,t,a.current)}catch(y){console.warn(y)}else g(e,r,t);return a.current=t,null}module.exports=h;
2
2
  //# sourceMappingURL=index.cjs79.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs79.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs79.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/layer.js"],"sourcesContent":["import { useContext, useEffect, useMemo, useState, useRef } from 'react';\nimport { MapContext } from './map';\nimport assert from '../utils/assert';\nimport { deepEqual } from '../utils/deep-equal';\n/* eslint-disable complexity, max-statements */\nfunction updateLayer(map, id, props, prevProps) {\n assert(props.id === prevProps.id, 'layer id changed');\n assert(props.type === prevProps.type, 'layer type changed');\n if (props.type === 'custom' || prevProps.type === 'custom') {\n return;\n }\n const { layout = {}, paint = {}, filter, minzoom, maxzoom, beforeId } = props;\n if (beforeId !== prevProps.beforeId) {\n map.moveLayer(id, beforeId);\n }\n if (layout !== prevProps.layout) {\n const prevLayout = prevProps.layout || {};\n for (const key in layout) {\n if (!deepEqual(layout[key], prevLayout[key])) {\n map.setLayoutProperty(id, key, layout[key]);\n }\n }\n for (const key in prevLayout) {\n if (!layout.hasOwnProperty(key)) {\n map.setLayoutProperty(id, key, undefined);\n }\n }\n }\n if (paint !== prevProps.paint) {\n const prevPaint = prevProps.paint || {};\n for (const key in paint) {\n if (!deepEqual(paint[key], prevPaint[key])) {\n map.setPaintProperty(id, key, paint[key]);\n }\n }\n for (const key in prevPaint) {\n if (!paint.hasOwnProperty(key)) {\n map.setPaintProperty(id, key, undefined);\n }\n }\n }\n if (!deepEqual(filter, prevProps.filter)) {\n map.setFilter(id, filter);\n }\n if (minzoom !== prevProps.minzoom || maxzoom !== prevProps.maxzoom) {\n map.setLayerZoomRange(id, minzoom, maxzoom);\n }\n}\nfunction createLayer(map, id, props) {\n // @ts-ignore\n if (map.style && map.style._loaded && (!('source' in props) || map.getSource(props.source))) {\n const options = { ...props, id };\n delete options.beforeId;\n // @ts-ignore\n map.addLayer(options, props.beforeId);\n }\n}\n/* eslint-enable complexity, max-statements */\nlet layerCounter = 0;\nfunction Layer(props) {\n const map = useContext(MapContext).map.getMap();\n const propsRef = useRef(props);\n const [, setStyleLoaded] = useState(0);\n const id = useMemo(() => props.id || `jsx-layer-${layerCounter++}`, []);\n useEffect(() => {\n if (map) {\n const forceUpdate = () => setStyleLoaded(version => version + 1);\n map.on('styledata', forceUpdate);\n forceUpdate();\n return () => {\n map.off('styledata', forceUpdate);\n // @ts-ignore\n if (map.style && map.style._loaded && map.getLayer(id)) {\n map.removeLayer(id);\n }\n };\n }\n return undefined;\n }, [map]);\n // @ts-ignore\n const layer = map && map.style && map.getLayer(id);\n if (layer) {\n try {\n updateLayer(map, id, props, propsRef.current);\n }\n catch (error) {\n console.warn(error); // eslint-disable-line\n }\n }\n else {\n createLayer(map, id, props);\n }\n // Store last rendered props\n propsRef.current = props;\n return null;\n}\nexport default Layer;\n//# sourceMappingURL=layer.js.map"],"names":["updateLayer","map","id","props","prevProps","assert","layout","paint","filter","minzoom","maxzoom","beforeId","prevLayout","key","deepEqual","prevPaint","createLayer","options","layerCounter","Layer","useContext","MapContext","propsRef","useRef","setStyleLoaded","useState","useMemo","useEffect","forceUpdate","version","error"],"mappings":"kIAKA,SAASA,EAAYC,EAAKC,EAAIC,EAAOC,EAAW,CAG5C,GAFAC,EAAOF,EAAM,KAAOC,EAAU,GAAI,kBAAkB,EACpDC,EAAOF,EAAM,OAASC,EAAU,KAAM,oBAAoB,EACtDD,EAAM,OAAS,UAAYC,EAAU,OAAS,SAC9C,OAEE,KAAA,CAAE,OAAAE,EAAS,GAAI,MAAAC,EAAQ,CAAC,EAAG,OAAAC,EAAQ,QAAAC,EAAS,QAAAC,EAAS,SAAAC,CAAa,EAAAR,EAIpE,GAHAQ,IAAaP,EAAU,UACnBH,EAAA,UAAUC,EAAIS,CAAQ,EAE1BL,IAAWF,EAAU,OAAQ,CACvB,MAAAQ,EAAaR,EAAU,QAAU,GACvC,UAAWS,KAAOP,EACTQ,YAAUR,EAAOO,CAAG,EAAGD,EAAWC,CAAG,CAAC,GACvCZ,EAAI,kBAAkBC,EAAIW,EAAKP,EAAOO,CAAG,CAAC,EAGlD,UAAWA,KAAOD,EACTN,EAAO,eAAeO,CAAG,GACtBZ,EAAA,kBAAkBC,EAAIW,EAAK,MAAS,CAGpD,CACI,GAAAN,IAAUH,EAAU,MAAO,CACrB,MAAAW,EAAYX,EAAU,OAAS,GACrC,UAAWS,KAAON,EACTO,YAAUP,EAAMM,CAAG,EAAGE,EAAUF,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EAEzC,GAAA,CACAF,EAAYC,EAAKC,EAAIC,EAAOmB,EAAS,OAAO,QAEzCQ,EAAO,CACV,QAAQ,KAAKA,CAAK,CACtB,MAGYd,EAAAf,EAAKC,EAAIC,CAAK,EAG9B,OAAAmB,EAAS,QAAUnB,EACZ,IACX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";const l=require("react"),f=require("./index.cjs65.js"),d=require("./index.cjs204.js"),y=require("./index.cjs203.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const S=g(l);let m=0;function b(t,e,n){if(t.style&&t.style._loaded){const o={...n};return delete o.id,delete o.children,t.addSource(e,o),t.getSource(e)}return null}function h(t,e,n){d(e.id===n.id,"source id changed"),d(e.type===n.type,"source type changed");let o="",c=0;for(const r in e)r!=="children"&&r!=="id"&&!y.deepEqual(n[r],e[r])&&(o=r,c++);if(!c)return;const a=e.type;if(a==="geojson")t.setData(e.data);else if(a==="image")t.updateImage({url:e.url,coordinates:e.coordinates});else if("setCoordinates"in t&&c===1&&o==="coordinates")t.setCoordinates(e.coordinates);else if("setUrl"in t)switch(o){case"url":t.setUrl(e.url);break;case"tiles":t.setTiles(e.tiles);break}else console.warn(`Unable to update <Source> prop: ${o}`)}function C(t){const e=l.useContext(f.MapContext).map.getMap(),n=l.useRef(t),[,o]=l.useState(0),c=l.useMemo(()=>t.id||`jsx-source-${m++}`,[]);l.useEffect(()=>{if(e){const r=()=>setTimeout(()=>o(i=>i+1),0);return e.on("styledata",r),r(),()=>{var i;if(e.off("styledata",r),e.style&&e.style._loaded&&e.getSource(c)){const u=(i=e.getStyle())===null||i===void 0?void 0:i.layers;if(u)for(const s of u)s.source===c&&e.removeLayer(s.id);e.removeSource(c)}}}},[e]);let a=e&&e.style&&e.getSource(c);return a?h(a,t,n.current):a=b(e,c,t),n.current=t,a&&S.Children.map(t.children,r=>r&&l.cloneElement(r,{source:c}))||null}module.exports=C;
2
2
  //# sourceMappingURL=index.cjs80.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs80.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs80.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/source.js"],"sourcesContent":["import * as React from 'react';\nimport { useContext, useEffect, useMemo, useState, useRef } from 'react';\nimport { cloneElement } from 'react';\nimport { MapContext } from './map';\nimport assert from '../utils/assert';\nimport { deepEqual } from '../utils/deep-equal';\nlet sourceCounter = 0;\nfunction createSource(map, id, props) {\n // @ts-ignore\n if (map.style && map.style._loaded) {\n const options = { ...props };\n delete options.id;\n delete options.children;\n // @ts-ignore\n map.addSource(id, options);\n return map.getSource(id);\n }\n return null;\n}\n/* eslint-disable complexity */\nfunction updateSource(source, props, prevProps) {\n assert(props.id === prevProps.id, 'source id changed');\n assert(props.type === prevProps.type, 'source type changed');\n let changedKey = '';\n let changedKeyCount = 0;\n for (const key in props) {\n if (key !== 'children' && key !== 'id' && !deepEqual(prevProps[key], props[key])) {\n changedKey = key;\n changedKeyCount++;\n }\n }\n if (!changedKeyCount) {\n return;\n }\n const type = props.type;\n if (type === 'geojson') {\n source.setData(props.data);\n }\n else if (type === 'image') {\n source.updateImage({\n url: props.url,\n coordinates: props.coordinates\n });\n }\n else if ('setCoordinates' in source && changedKeyCount === 1 && changedKey === 'coordinates') {\n source.setCoordinates(props.coordinates);\n }\n else if ('setUrl' in source) {\n // Added in 1.12.0:\n // vectorTileSource.setTiles\n // vectorTileSource.setUrl\n switch (changedKey) {\n case 'url':\n source.setUrl(props.url);\n break;\n case 'tiles':\n source.setTiles(props.tiles);\n break;\n default:\n }\n }\n else {\n // eslint-disable-next-line\n console.warn(`Unable to update <Source> prop: ${changedKey}`);\n }\n}\n/* eslint-enable complexity */\nfunction Source(props) {\n const map = useContext(MapContext).map.getMap();\n const propsRef = useRef(props);\n const [, setStyleLoaded] = useState(0);\n const id = useMemo(() => props.id || `jsx-source-${sourceCounter++}`, []);\n useEffect(() => {\n if (map) {\n /* global setTimeout */\n const forceUpdate = () => setTimeout(() => setStyleLoaded(version => version + 1), 0);\n map.on('styledata', forceUpdate);\n forceUpdate();\n return () => {\n var _a;\n map.off('styledata', forceUpdate);\n // @ts-ignore\n if (map.style && map.style._loaded && map.getSource(id)) {\n // Parent effects are destroyed before child ones, see\n // https://github.com/facebook/react/issues/16728\n // Source can only be removed after all child layers are removed\n const allLayers = (_a = map.getStyle()) === null || _a === void 0 ? void 0 : _a.layers;\n if (allLayers) {\n for (const layer of allLayers) {\n // @ts-ignore (2339) source does not exist on all layer types\n if (layer.source === id) {\n map.removeLayer(layer.id);\n }\n }\n }\n map.removeSource(id);\n }\n };\n }\n return undefined;\n }, [map]);\n // @ts-ignore\n let source = map && map.style && map.getSource(id);\n if (source) {\n updateSource(source, props, propsRef.current);\n }\n else {\n source = createSource(map, id, props);\n }\n propsRef.current = props;\n return ((source &&\n React.Children.map(props.children, child => child &&\n cloneElement(child, {\n source: id\n }))) ||\n null);\n}\nexport default Source;\n//# sourceMappingURL=source.js.map"],"names":["sourceCounter","createSource","map","id","props","options","updateSource","source","prevProps","assert","changedKey","changedKeyCount","key","deepEqual","type","Source","useContext","MapContext","propsRef","useRef","setStyleLoaded","useState","useMemo","useEffect","forceUpdate","version","_a","allLayers","layer","React","child","cloneElement"],"mappings":"4ZAMA,IAAIA,EAAgB,EACpB,SAASC,EAAaC,EAAKC,EAAIC,EAAO,CAElC,GAAIF,EAAI,OAASA,EAAI,MAAM,QAAS,CAC1B,MAAAG,EAAU,CAAE,GAAGD,GACrB,cAAOC,EAAQ,GACf,OAAOA,EAAQ,SAEXH,EAAA,UAAUC,EAAIE,CAAO,EAClBH,EAAI,UAAUC,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AFAxB,EAAA,IAAI,YAAasB,CAAW,EAE5BtB,EAAI,OAASA,EAAI,MAAM,SAAWA,EAAI,UAAUC,CAAE,EAAG,CAI/C,MAAAwB,GAAaD,EAAKxB,EAAI,SAAA,KAAgB,MAAQwB,IAAO,OAAS,OAASA,EAAG,OAChF,GAAIC,EACA,UAAWC,KAASD,EAEZC,EAAM,SAAWzB,GACbD,EAAA,YAAY0B,EAAM,EAAE,EAIpC1B,EAAI,aAAaC,CAAE,CACvB,CAAA,CAER,CACO,EACR,CAACD,CAAG,CAAC,EAER,IAAIK,EAASL,GAAOA,EAAI,OAASA,EAAI,UAAUC,CAAE,EACjD,OAAII,EACaD,EAAAC,EAAQH,EAAOc,EAAS,OAAO,EAGnCX,EAAAN,EAAaC,EAAKC,EAAIC,CAAK,EAExCc,EAAS,QAAUd,EACVG,GACLsB,EAAM,SAAS,IAAIzB,EAAM,SAAU0B,GAASA,GACxCC,EAAAA,aAAaD,EAAO,CAChB,OAAQ3B,CAAA,CACX,CAAC,GACN,IACR","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  import { commonjsGlobal as Je, getDefaultExportFromCjs as oo } from "./index.es59.js";
2
- import { __module as Zn } from "./index.es61.js";
2
+ import { __module as Zn } from "./index.es64.js";
3
3
  (function(Wn, ao) {
4
4
  (function(ze, de) {
5
5
  Wn.exports = de();
@@ -1,19 +1,19 @@
1
1
  import * as i from "react";
2
- import p from "./index.es67.js";
2
+ import p from "./index.es65.js";
3
+ import "./index.es66.js";
4
+ import "./index.es67.js";
3
5
  import "./index.es68.js";
4
6
  import "./index.es69.js";
5
7
  import "./index.es70.js";
6
- import "./index.es71.js";
8
+ import m from "./index.es71.js";
7
9
  import "./index.es72.js";
8
- import m from "./index.es73.js";
9
- import "./index.es74.js";
10
- import a from "./index.es77.js";
11
- import n from "./index.es78.js";
12
- import { useMap as e } from "./index.es75.js";
10
+ import a from "./index.es79.js";
11
+ import n from "./index.es80.js";
12
+ import { useMap as e } from "./index.es73.js";
13
13
  function C() {
14
14
  return e();
15
15
  }
16
- const f = import("./index.es76.js").then((o) => o.i), N = i.forwardRef(function(r, t) {
16
+ const f = import("./index.es78.js").then((o) => o.i), N = i.forwardRef(function(r, t) {
17
17
  return p(r, t, f);
18
18
  }), R = m, S = a, b = n;
19
19
  export {
@@ -1,5 +1,5 @@
1
1
  import { useContext as p, useMemo as r, useEffect as m } from "react";
2
- import { MapContext as d } from "./index.es67.js";
2
+ import { MapContext as d } from "./index.es65.js";
3
3
  function x(c, o, n, l) {
4
4
  const e = p(d), t = r(() => c(e), []);
5
5
  return m(() => {
@@ -1,6 +1,6 @@
1
- import { __module as e } from "./index.es62.js";
2
- import { __require as r } from "./index.es63.js";
3
- import { __require as o } from "./index.es64.js";
1
+ import { __module as e } from "./index.es61.js";
2
+ import { __require as r } from "./index.es62.js";
3
+ import { __require as o } from "./index.es63.js";
4
4
  process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
5
5
  var m = e.exports;
6
6
  export {
@@ -1,324 +1,11 @@
1
- import { syncProjection as f, cloneTransform as T, applyViewStateToTransform as p, transformToViewState as _ } from "./index.es233.js";
2
- import { normalizeStyle as v } from "./index.es234.js";
3
- import { deepEqual as h } from "./index.es188.js";
4
- const g = { version: 8, sources: {}, layers: [] }, y = {
5
- mousedown: "onMouseDown",
6
- mouseup: "onMouseUp",
7
- mouseover: "onMouseOver",
8
- mousemove: "onMouseMove",
9
- click: "onClick",
10
- dblclick: "onDblClick",
11
- mouseenter: "onMouseEnter",
12
- mouseleave: "onMouseLeave",
13
- mouseout: "onMouseOut",
14
- contextmenu: "onContextMenu",
15
- touchstart: "onTouchStart",
16
- touchend: "onTouchEnd",
17
- touchmove: "onTouchMove",
18
- touchcancel: "onTouchCancel"
19
- }, u = {
20
- movestart: "onMoveStart",
21
- move: "onMove",
22
- moveend: "onMoveEnd",
23
- dragstart: "onDragStart",
24
- drag: "onDrag",
25
- dragend: "onDragEnd",
26
- zoomstart: "onZoomStart",
27
- zoom: "onZoom",
28
- zoomend: "onZoomEnd",
29
- rotatestart: "onRotateStart",
30
- rotate: "onRotate",
31
- rotateend: "onRotateEnd",
32
- pitchstart: "onPitchStart",
33
- pitch: "onPitch",
34
- pitchend: "onPitchEnd"
35
- }, S = {
36
- wheel: "onWheel",
37
- boxzoomstart: "onBoxZoomStart",
38
- boxzoomend: "onBoxZoomEnd",
39
- boxzoomcancel: "onBoxZoomCancel",
40
- resize: "onResize",
41
- load: "onLoad",
42
- render: "onRender",
43
- idle: "onIdle",
44
- remove: "onRemove",
45
- data: "onData",
46
- styledata: "onStyleData",
47
- sourcedata: "onSourceData",
48
- error: "onError"
49
- }, E = [
50
- "minZoom",
51
- "maxZoom",
52
- "minPitch",
53
- "maxPitch",
54
- "maxBounds",
55
- "projection",
56
- "renderWorldCopies"
57
- ], C = [
58
- "scrollZoom",
59
- "boxZoom",
60
- "dragRotate",
61
- "dragPan",
62
- "keyboard",
63
- "doubleClickZoom",
64
- "touchZoomRotate",
65
- "touchPitch"
66
- ];
67
- class m {
68
- constructor(e, o, n) {
69
- this._map = null, this._internalUpdate = !1, this._inRender = !1, this._hoveredFeatures = null, this._deferredEvents = {
70
- move: !1,
71
- zoom: !1,
72
- pitch: !1,
73
- rotate: !1
74
- }, this._onEvent = (t) => {
75
- const r = this.props[S[t.type]];
76
- r ? r(t) : t.type === "error" && console.error(t.error);
77
- }, this._onPointerEvent = (t) => {
78
- (t.type === "mousemove" || t.type === "mouseout") && this._updateHover(t);
79
- const r = this.props[y[t.type]];
80
- r && (this.props.interactiveLayerIds && t.type !== "mouseover" && t.type !== "mouseout" && (t.features = this._hoveredFeatures || this._queryRenderedFeatures(t.point)), r(t), delete t.features);
81
- }, this._onCameraEvent = (t) => {
82
- if (!this._internalUpdate) {
83
- const r = this.props[u[t.type]];
84
- r && r(t);
85
- }
86
- t.type in this._deferredEvents && (this._deferredEvents[t.type] = !1);
87
- }, this._MapClass = e, this.props = o, this._initialize(n);
88
- }
89
- get map() {
90
- return this._map;
91
- }
92
- get transform() {
93
- return this._renderTransform;
94
- }
95
- setProps(e) {
96
- const o = this.props;
97
- this.props = e;
98
- const n = this._updateSettings(e, o);
99
- n && this._createShadowTransform(this._map);
100
- const t = this._updateSize(e), r = this._updateViewState(e, !0);
101
- this._updateStyle(e, o), this._updateStyleComponents(e, o), this._updateHandlers(e, o), (n || t || r && !this._map.isMoving()) && this.redraw();
102
- }
103
- static reuse(e, o) {
104
- const n = m.savedMaps.pop();
105
- if (!n)
106
- return null;
107
- const t = n.map, r = t.getContainer();
108
- for (o.className = r.className; r.childNodes.length > 0; )
109
- o.appendChild(r.childNodes[0]);
110
- t._container = o;
111
- const s = t._resizeObserver;
112
- s && (s.disconnect(), s.observe(o)), n.setProps({ ...e, styleDiffing: !1 }), t.resize();
113
- const { initialViewState: i } = e;
114
- return i && (i.bounds ? t.fitBounds(i.bounds, { ...i.fitBoundsOptions, duration: 0 }) : n._updateViewState(i, !1)), t.isStyleLoaded() ? t.fire("load") : t.once("styledata", () => t.fire("load")), t._update(), n;
115
- }
116
- /* eslint-disable complexity,max-statements */
117
- _initialize(e) {
118
- const { props: o } = this, { mapStyle: n = g } = o, t = {
119
- ...o,
120
- ...o.initialViewState,
121
- accessToken: o.mapboxAccessToken || M() || null,
122
- container: e,
123
- style: v(n)
124
- }, r = t.initialViewState || t.viewState || t;
125
- if (Object.assign(t, {
126
- center: [r.longitude || 0, r.latitude || 0],
127
- zoom: r.zoom || 0,
128
- pitch: r.pitch || 0,
129
- bearing: r.bearing || 0
130
- }), o.gl) {
131
- const a = HTMLCanvasElement.prototype.getContext;
132
- HTMLCanvasElement.prototype.getContext = () => (HTMLCanvasElement.prototype.getContext = a, o.gl);
133
- }
134
- const s = new this._MapClass(t);
135
- r.padding && s.setPadding(r.padding), o.cursor && (s.getCanvas().style.cursor = o.cursor), this._createShadowTransform(s);
136
- const i = s._render;
137
- s._render = (a) => {
138
- this._inRender = !0, i.call(s, a), this._inRender = !1;
139
- };
140
- const c = s._renderTaskQueue.run;
141
- s._renderTaskQueue.run = (a) => {
142
- c.call(s._renderTaskQueue, a), this._onBeforeRepaint();
143
- }, s.on("render", () => this._onAfterRepaint());
144
- const l = s.fire;
145
- s.fire = this._fireEvent.bind(this, l), s.on("resize", () => {
146
- this._renderTransform.resize(s.transform.width, s.transform.height);
147
- }), s.on("styledata", () => {
148
- this._updateStyleComponents(this.props, {}), f(s.transform, this._renderTransform);
149
- }), s.on("sourcedata", () => this._updateStyleComponents(this.props, {}));
150
- for (const a in y)
151
- s.on(a, this._onPointerEvent);
152
- for (const a in u)
153
- s.on(a, this._onCameraEvent);
154
- for (const a in S)
155
- s.on(a, this._onEvent);
156
- this._map = s;
157
- }
158
- /* eslint-enable complexity,max-statements */
159
- recycle() {
160
- const o = this.map.getContainer().querySelector("[mapboxgl-children]");
161
- o == null || o.remove(), m.savedMaps.push(this);
162
- }
163
- destroy() {
164
- this._map.remove();
165
- }
166
- // Force redraw the map now. Typically resize() and jumpTo() is reflected in the next
167
- // render cycle, which is managed by Mapbox's animation loop.
168
- // This removes the synchronization issue caused by requestAnimationFrame.
169
- redraw() {
170
- const e = this._map;
171
- !this._inRender && e.style && (e._frame && (e._frame.cancel(), e._frame = null), e._render());
172
- }
173
- _createShadowTransform(e) {
174
- const o = T(e.transform);
175
- e.painter.transform = o, this._renderTransform = o;
176
- }
177
- /* Trigger map resize if size is controlled
178
- @param {object} nextProps
179
- @returns {bool} true if size has changed
180
- */
181
- _updateSize(e) {
182
- const { viewState: o } = e;
183
- if (o) {
184
- const n = this._map;
185
- if (o.width !== n.transform.width || o.height !== n.transform.height)
186
- return n.resize(), !0;
187
- }
188
- return !1;
189
- }
190
- // Adapted from map.jumpTo
191
- /* Update camera to match props
192
- @param {object} nextProps
193
- @param {bool} triggerEvents - should fire camera events
194
- @returns {bool} true if anything is changed
195
- */
196
- _updateViewState(e, o) {
197
- if (this._internalUpdate)
198
- return !1;
199
- const n = this._map, t = this._renderTransform, { zoom: r, pitch: s, bearing: i } = t, c = n.isMoving();
200
- c && (t.cameraElevationReference = "sea");
201
- const l = p(t, {
202
- ..._(n.transform),
203
- ...e
204
- });
205
- if (c && (t.cameraElevationReference = "ground"), l && o) {
206
- const a = this._deferredEvents;
207
- a.move = !0, a.zoom || (a.zoom = r !== t.zoom), a.rotate || (a.rotate = i !== t.bearing), a.pitch || (a.pitch = s !== t.pitch);
208
- }
209
- return c || p(n.transform, e), l;
210
- }
211
- /* Update camera constraints and projection settings to match props
212
- @param {object} nextProps
213
- @param {object} currProps
214
- @returns {bool} true if anything is changed
215
- */
216
- _updateSettings(e, o) {
217
- const n = this._map;
218
- let t = !1;
219
- for (const r of E)
220
- if (r in e && !h(e[r], o[r])) {
221
- t = !0;
222
- const s = n[`set${r[0].toUpperCase()}${r.slice(1)}`];
223
- s == null || s.call(n, e[r]);
224
- }
225
- return t;
226
- }
227
- /* Update map style to match props
228
- @param {object} nextProps
229
- @param {object} currProps
230
- @returns {bool} true if style is changed
231
- */
232
- _updateStyle(e, o) {
233
- if (e.cursor !== o.cursor && (this._map.getCanvas().style.cursor = e.cursor || ""), e.mapStyle !== o.mapStyle) {
234
- const { mapStyle: n = g, styleDiffing: t = !0 } = e, r = {
235
- diff: t
236
- };
237
- return "localIdeographFontFamily" in e && (r.localIdeographFontFamily = e.localIdeographFontFamily), this._map.setStyle(v(n), r), !0;
238
- }
239
- return !1;
240
- }
241
- /* Update fog, light and terrain to match props
242
- @param {object} nextProps
243
- @param {object} currProps
244
- @returns {bool} true if anything is changed
245
- */
246
- _updateStyleComponents(e, o) {
247
- const n = this._map;
248
- let t = !1;
249
- return n.isStyleLoaded() && ("light" in e && n.setLight && !h(e.light, o.light) && (t = !0, n.setLight(e.light)), "fog" in e && n.setFog && !h(e.fog, o.fog) && (t = !0, n.setFog(e.fog)), "terrain" in e && n.setTerrain && !h(e.terrain, o.terrain) && (!e.terrain || n.getSource(e.terrain.source)) && (t = !0, n.setTerrain(e.terrain))), t;
250
- }
251
- /* Update interaction handlers to match props
252
- @param {object} nextProps
253
- @param {object} currProps
254
- @returns {bool} true if anything is changed
255
- */
256
- _updateHandlers(e, o) {
257
- var n, t;
258
- const r = this._map;
259
- let s = !1;
260
- for (const i of C) {
261
- const c = (n = e[i]) !== null && n !== void 0 ? n : !0, l = (t = o[i]) !== null && t !== void 0 ? t : !0;
262
- h(c, l) || (s = !0, c ? r[i].enable(c) : r[i].disable());
263
- }
264
- return s;
265
- }
266
- _queryRenderedFeatures(e) {
267
- const o = this._map, n = o.transform, { interactiveLayerIds: t = [] } = this.props;
268
- try {
269
- return o.transform = this._renderTransform, o.queryRenderedFeatures(e, {
270
- layers: t.filter(o.getLayer.bind(o))
271
- });
272
- } catch {
273
- return [];
274
- } finally {
275
- o.transform = n;
276
- }
277
- }
278
- _updateHover(e) {
279
- var o;
280
- const { props: n } = this;
281
- if (n.interactiveLayerIds && (n.onMouseMove || n.onMouseEnter || n.onMouseLeave)) {
282
- const r = e.type, s = ((o = this._hoveredFeatures) === null || o === void 0 ? void 0 : o.length) > 0, i = this._queryRenderedFeatures(e.point), c = i.length > 0;
283
- !c && s && (e.type = "mouseleave", this._onPointerEvent(e)), this._hoveredFeatures = i, c && !s && (e.type = "mouseenter", this._onPointerEvent(e)), e.type = r;
284
- } else
285
- this._hoveredFeatures = null;
286
- }
287
- _fireEvent(e, o, n) {
288
- const t = this._map, r = t.transform, s = typeof o == "string" ? o : o.type;
289
- return s === "move" && this._updateViewState(this.props, !1), s in u && (typeof o == "object" && (o.viewState = _(r)), this._map.isMoving()) ? (t.transform = this._renderTransform, e.call(t, o, n), t.transform = r, t) : (e.call(t, o, n), t);
290
- }
291
- // All camera manipulations are complete, ready to repaint
292
- _onBeforeRepaint() {
293
- const e = this._map;
294
- this._internalUpdate = !0;
295
- for (const n in this._deferredEvents)
296
- this._deferredEvents[n] && e.fire(n);
297
- this._internalUpdate = !1;
298
- const o = this._map.transform;
299
- e.transform = this._renderTransform, this._onAfterRepaint = () => {
300
- f(this._renderTransform, o), e.transform = o;
301
- };
302
- }
303
- }
304
- m.savedMaps = [];
305
- function M() {
306
- let d = null;
307
- if (typeof location < "u") {
308
- const e = /access_token=([^&\/]*)/.exec(location.search);
309
- d = e && e[1];
310
- }
311
- try {
312
- d = d || process.env.MapboxAccessToken;
313
- } catch {
314
- }
315
- try {
316
- d = d || process.env.REACT_APP_MAPBOX_ACCESS_TOKEN;
317
- } catch {
318
- }
319
- return d;
1
+ import i from "./index.es56.js";
2
+ import { point as m } from "./index.es54.js";
3
+ function x(t, r) {
4
+ r === void 0 && (r = {});
5
+ var e = i(t), a = (e[0] + e[2]) / 2, f = (e[1] + e[3]) / 2;
6
+ return m([a, f], r.properties, r);
320
7
  }
321
8
  export {
322
- m as default
9
+ x as default
323
10
  };
324
11
  //# sourceMappingURL=index.es183.js.map