@vtx/cs-map 1.0.36 → 1.0.38

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 (382) hide show
  1. package/package.json +1 -1
  2. package/lib/_util/EventEmitter.js +0 -80
  3. package/lib/_util/EventEmitter.js.map +0 -1
  4. package/lib/_util/Provider.js +0 -14
  5. package/lib/_util/Provider.js.map +0 -1
  6. package/lib/_util/filterSpecialCharacters.js +0 -90
  7. package/lib/_util/filterSpecialCharacters.js.map +0 -1
  8. package/lib/_util/generateRandomPosition.js +0 -25
  9. package/lib/_util/generateRandomPosition.js.map +0 -1
  10. package/lib/_util/getBBoxFromGeojson.js +0 -68
  11. package/lib/_util/getBBoxFromGeojson.js.map +0 -1
  12. package/lib/_util/getComponentProps.js +0 -14
  13. package/lib/_util/getComponentProps.js.map +0 -1
  14. package/lib/_util/getCookie.js +0 -25
  15. package/lib/_util/getCookie.js.map +0 -1
  16. package/lib/_util/getDefaultMapInfo.js +0 -34
  17. package/lib/_util/getDefaultMapInfo.js.map +0 -1
  18. package/lib/_util/getSystemInfo.js +0 -27
  19. package/lib/_util/getSystemInfo.js.map +0 -1
  20. package/lib/_util/getToken.js +0 -14
  21. package/lib/_util/getToken.js.map +0 -1
  22. package/lib/_util/getUrlParam.js +0 -16
  23. package/lib/_util/getUrlParam.js.map +0 -1
  24. package/lib/_util/http.js +0 -234
  25. package/lib/_util/http.js.map +0 -1
  26. package/lib/_util/isFunction.js +0 -10
  27. package/lib/_util/isFunction.js.map +0 -1
  28. package/lib/_util/isObject.js +0 -10
  29. package/lib/_util/isObject.js.map +0 -1
  30. package/lib/_util/layer.js +0 -138
  31. package/lib/_util/layer.js.map +0 -1
  32. package/lib/_util/mapTool.js +0 -188
  33. package/lib/_util/mapTool.js.map +0 -1
  34. package/lib/_util/setCookie.js +0 -16
  35. package/lib/_util/setCookie.js.map +0 -1
  36. package/lib/_util/transformRgb.js +0 -34
  37. package/lib/_util/transformRgb.js.map +0 -1
  38. package/lib/_util/useColSize.js +0 -29
  39. package/lib/_util/useColSize.js.map +0 -1
  40. package/lib/_util/useInterval.js +0 -19
  41. package/lib/_util/useInterval.js.map +0 -1
  42. package/lib/_util/useProps.js +0 -15
  43. package/lib/_util/useProps.js.map +0 -1
  44. package/lib/_util/useSet.js +0 -45
  45. package/lib/_util/useSet.js.map +0 -1
  46. package/lib/assets/base-img-1.png +0 -0
  47. package/lib/assets/base-img-2.png +0 -0
  48. package/lib/assets/base-img-3.png +0 -0
  49. package/lib/assets/base-img-4.png +0 -0
  50. package/lib/assets/base-img-5.png +0 -0
  51. package/lib/assets/base-img.png +0 -0
  52. package/lib/assets/bz.png +0 -0
  53. package/lib/assets/colors.png +0 -0
  54. package/lib/assets/colors1.png +0 -0
  55. package/lib/assets/ll.png +0 -0
  56. package/lib/assets/people.gif +0 -0
  57. package/lib/assets/sw.png +0 -0
  58. package/lib/assets/water.png +0 -0
  59. package/lib/assets/yl.png +0 -0
  60. package/lib/cesium-tiles-layer/CesiumTilesLayer.js +0 -57
  61. package/lib/cesium-tiles-layer/CesiumTilesLayer.js.map +0 -1
  62. package/lib/cesium-tiles-layer/index.js +0 -73
  63. package/lib/cesium-tiles-layer/index.js.map +0 -1
  64. package/lib/cesium-tiles-layer/style/css.js +0 -4
  65. package/lib/cesium-tiles-layer/style/css.js.map +0 -1
  66. package/lib/cesium-tiles-layer/style/index.css +0 -0
  67. package/lib/cesium-tiles-layer/style/index.js +0 -4
  68. package/lib/cesium-tiles-layer/style/index.js.map +0 -1
  69. package/lib/cesium-tiles-layer/style/index.less +0 -0
  70. package/lib/circle/circle.js +0 -68
  71. package/lib/circle/circle.js.map +0 -1
  72. package/lib/circle/index.js +0 -49
  73. package/lib/circle/index.js.map +0 -1
  74. package/lib/circle/style/css.js +0 -2
  75. package/lib/circle/style/css.js.map +0 -1
  76. package/lib/circle/style/index.js +0 -2
  77. package/lib/circle/style/index.js.map +0 -1
  78. package/lib/config.js +0 -13
  79. package/lib/config.js.map +0 -1
  80. package/lib/demand-layer/DemandLayer.js +0 -410
  81. package/lib/demand-layer/DemandLayer.js.map +0 -1
  82. package/lib/demand-layer/index.js +0 -104
  83. package/lib/demand-layer/index.js.map +0 -1
  84. package/lib/demand-layer/style/css.js +0 -4
  85. package/lib/demand-layer/style/css.js.map +0 -1
  86. package/lib/demand-layer/style/index.css +0 -0
  87. package/lib/demand-layer/style/index.js +0 -4
  88. package/lib/demand-layer/style/index.js.map +0 -1
  89. package/lib/demand-layer/style/index.less +0 -0
  90. package/lib/events/index.js +0 -29
  91. package/lib/events/index.js.map +0 -1
  92. package/lib/feature-layer/FeatureLayer.js +0 -448
  93. package/lib/feature-layer/FeatureLayer.js.map +0 -1
  94. package/lib/feature-layer/createFeatureCollection.js +0 -133
  95. package/lib/feature-layer/createFeatureCollection.js.map +0 -1
  96. package/lib/feature-layer/index.js +0 -115
  97. package/lib/feature-layer/index.js.map +0 -1
  98. package/lib/feature-layer/style/css.js +0 -4
  99. package/lib/feature-layer/style/css.js.map +0 -1
  100. package/lib/feature-layer/style/index.css +0 -0
  101. package/lib/feature-layer/style/index.js +0 -4
  102. package/lib/feature-layer/style/index.js.map +0 -1
  103. package/lib/feature-layer/style/index.less +0 -0
  104. package/lib/fly-line-layer/FlyLineLayer.js +0 -260
  105. package/lib/fly-line-layer/FlyLineLayer.js.map +0 -1
  106. package/lib/fly-line-layer/index.js +0 -90
  107. package/lib/fly-line-layer/index.js.map +0 -1
  108. package/lib/fly-line-layer/lineFlowMaterialProperty.js +0 -90
  109. package/lib/fly-line-layer/lineFlowMaterialProperty.js.map +0 -1
  110. package/lib/fly-line-layer/style/css.js +0 -4
  111. package/lib/fly-line-layer/style/css.js.map +0 -1
  112. package/lib/fly-line-layer/style/index.css +0 -0
  113. package/lib/fly-line-layer/style/index.js +0 -4
  114. package/lib/fly-line-layer/style/index.js.map +0 -1
  115. package/lib/fly-line-layer/style/index.less +0 -0
  116. package/lib/gif-dom-layer/GifDomLayer.js +0 -105
  117. package/lib/gif-dom-layer/GifDomLayer.js.map +0 -1
  118. package/lib/gif-dom-layer/index.js +0 -44
  119. package/lib/gif-dom-layer/index.js.map +0 -1
  120. package/lib/gif-dom-layer/style/css.js +0 -4
  121. package/lib/gif-dom-layer/style/css.js.map +0 -1
  122. package/lib/gif-dom-layer/style/index.css +0 -0
  123. package/lib/gif-dom-layer/style/index.js +0 -4
  124. package/lib/gif-dom-layer/style/index.js.map +0 -1
  125. package/lib/gif-dom-layer/style/index.less +0 -0
  126. package/lib/gradation-line-layer/GradationLineLayer.js +0 -104
  127. package/lib/gradation-line-layer/GradationLineLayer.js.map +0 -1
  128. package/lib/gradation-line-layer/index.js +0 -83
  129. package/lib/gradation-line-layer/index.js.map +0 -1
  130. package/lib/gradation-line-layer/style/css.js +0 -4
  131. package/lib/gradation-line-layer/style/css.js.map +0 -1
  132. package/lib/gradation-line-layer/style/index.css +0 -0
  133. package/lib/gradation-line-layer/style/index.js +0 -4
  134. package/lib/gradation-line-layer/style/index.js.map +0 -1
  135. package/lib/gradation-line-layer/style/index.less +0 -0
  136. package/lib/group-layer/GroupLayer.js +0 -132
  137. package/lib/group-layer/GroupLayer.js.map +0 -1
  138. package/lib/group-layer/index.js +0 -71
  139. package/lib/group-layer/index.js.map +0 -1
  140. package/lib/group-layer/style/css.js +0 -4
  141. package/lib/group-layer/style/css.js.map +0 -1
  142. package/lib/group-layer/style/index.css +0 -0
  143. package/lib/group-layer/style/index.js +0 -4
  144. package/lib/group-layer/style/index.js.map +0 -1
  145. package/lib/group-layer/style/index.less +0 -0
  146. package/lib/heatmap-layer/CesiumHeatmap.js +0 -444
  147. package/lib/heatmap-layer/CesiumHeatmap.js.map +0 -1
  148. package/lib/heatmap-layer/HeatmapLayer.js +0 -158
  149. package/lib/heatmap-layer/HeatmapLayer.js.map +0 -1
  150. package/lib/heatmap-layer/heatmap.js +0 -612
  151. package/lib/heatmap-layer/heatmap.js.map +0 -1
  152. package/lib/heatmap-layer/index.js +0 -90
  153. package/lib/heatmap-layer/index.js.map +0 -1
  154. package/lib/heatmap-layer/style/css.js +0 -4
  155. package/lib/heatmap-layer/style/css.js.map +0 -1
  156. package/lib/heatmap-layer/style/index.css +0 -0
  157. package/lib/heatmap-layer/style/index.js +0 -4
  158. package/lib/heatmap-layer/style/index.js.map +0 -1
  159. package/lib/heatmap-layer/style/index.less +0 -0
  160. package/lib/highlight-layer/HighlightLayer.js +0 -245
  161. package/lib/highlight-layer/HighlightLayer.js.map +0 -1
  162. package/lib/highlight-layer/index.js +0 -25
  163. package/lib/highlight-layer/index.js.map +0 -1
  164. package/lib/highlight-layer/style/css.js +0 -4
  165. package/lib/highlight-layer/style/css.js.map +0 -1
  166. package/lib/highlight-layer/style/index.css +0 -0
  167. package/lib/highlight-layer/style/index.js +0 -4
  168. package/lib/highlight-layer/style/index.js.map +0 -1
  169. package/lib/highlight-layer/style/index.less +0 -0
  170. package/lib/image-layer/ImageLayer.js +0 -241
  171. package/lib/image-layer/ImageLayer.js.map +0 -1
  172. package/lib/image-layer/index.js +0 -134
  173. package/lib/image-layer/index.js.map +0 -1
  174. package/lib/image-layer/style/css.js +0 -4
  175. package/lib/image-layer/style/css.js.map +0 -1
  176. package/lib/image-layer/style/index.css +0 -0
  177. package/lib/image-layer/style/index.js +0 -4
  178. package/lib/image-layer/style/index.js.map +0 -1
  179. package/lib/image-layer/style/index.less +0 -0
  180. package/lib/index.js +0 -147
  181. package/lib/index.js.map +0 -1
  182. package/lib/label/Label.js +0 -75
  183. package/lib/label/Label.js.map +0 -1
  184. package/lib/label/index.js +0 -51
  185. package/lib/label/index.js.map +0 -1
  186. package/lib/label/style/css.js +0 -2
  187. package/lib/label/style/css.js.map +0 -1
  188. package/lib/label/style/index.js +0 -2
  189. package/lib/label/style/index.js.map +0 -1
  190. package/lib/legend/index.js +0 -210
  191. package/lib/legend/index.js.map +0 -1
  192. package/lib/legend/style/css.js +0 -8
  193. package/lib/legend/style/css.js.map +0 -1
  194. package/lib/legend/style/index.css +0 -60
  195. package/lib/legend/style/index.js +0 -8
  196. package/lib/legend/style/index.js.map +0 -1
  197. package/lib/legend/style/index.less +0 -63
  198. package/lib/line-flow-layer/LineFlowLayer.js +0 -106
  199. package/lib/line-flow-layer/LineFlowLayer.js.map +0 -1
  200. package/lib/line-flow-layer/index.js +0 -34
  201. package/lib/line-flow-layer/index.js.map +0 -1
  202. package/lib/line-flow-layer/style/css.js +0 -4
  203. package/lib/line-flow-layer/style/css.js.map +0 -1
  204. package/lib/line-flow-layer/style/index.css +0 -0
  205. package/lib/line-flow-layer/style/index.js +0 -4
  206. package/lib/line-flow-layer/style/index.js.map +0 -1
  207. package/lib/line-flow-layer/style/index.less +0 -0
  208. package/lib/map/InfoTool/index.css +0 -55
  209. package/lib/map/InfoTool/index.js +0 -247
  210. package/lib/map/InfoTool/index.js.map +0 -1
  211. package/lib/map/InfoTool/index.less +0 -46
  212. package/lib/map/InfoTool/util.js +0 -113
  213. package/lib/map/InfoTool/util.js.map +0 -1
  214. package/lib/map/InfoWindow.js +0 -72
  215. package/lib/map/InfoWindow.js.map +0 -1
  216. package/lib/map/Layers.js +0 -287
  217. package/lib/map/Layers.js.map +0 -1
  218. package/lib/map/Popup.js +0 -316
  219. package/lib/map/Popup.js.map +0 -1
  220. package/lib/map/base/imagery/amap/AmapImageryProvider.js +0 -47
  221. package/lib/map/base/imagery/amap/AmapImageryProvider.js.map +0 -1
  222. package/lib/map/base/imagery/amap/AmapMercatorTilingScheme.js +0 -47
  223. package/lib/map/base/imagery/amap/AmapMercatorTilingScheme.js.map +0 -1
  224. package/lib/map/base/imagery/baidu/BaiduImageryProvider.js +0 -147
  225. package/lib/map/base/imagery/baidu/BaiduImageryProvider.js.map +0 -1
  226. package/lib/map/base/imagery/baidu/BaiduMercatorProjection.js +0 -378
  227. package/lib/map/base/imagery/baidu/BaiduMercatorProjection.js.map +0 -1
  228. package/lib/map/base/imagery/baidu/BaiduMercatorTilingScheme.js +0 -122
  229. package/lib/map/base/imagery/baidu/BaiduMercatorTilingScheme.js.map +0 -1
  230. package/lib/map/base/imagery/geoq/GeoQImageryProvider.js +0 -49
  231. package/lib/map/base/imagery/geoq/GeoQImageryProvider.js.map +0 -1
  232. package/lib/map/base/imagery/google/GoogleImageryProvider.js +0 -42
  233. package/lib/map/base/imagery/google/GoogleImageryProvider.js.map +0 -1
  234. package/lib/map/base/imagery/tdt/TdtImageryProvider.js +0 -39
  235. package/lib/map/base/imagery/tdt/TdtImageryProvider.js.map +0 -1
  236. package/lib/map/base/imagery/tencent/TencentImageryProvider.js +0 -60
  237. package/lib/map/base/imagery/tencent/TencentImageryProvider.js.map +0 -1
  238. package/lib/map/base/imagery/transform/AmapMercatorTilingScheme.js +0 -47
  239. package/lib/map/base/imagery/transform/AmapMercatorTilingScheme.js.map +0 -1
  240. package/lib/map/base/imagery/transform/CoordTransform.js +0 -174
  241. package/lib/map/base/imagery/transform/CoordTransform.js.map +0 -1
  242. package/lib/map/base/index.js +0 -207
  243. package/lib/map/base/index.js.map +0 -1
  244. package/lib/map/hooks/useGetMapFeatureInfoByText.js +0 -211
  245. package/lib/map/hooks/useGetMapFeatureInfoByText.js.map +0 -1
  246. package/lib/map/index.js +0 -800
  247. package/lib/map/index.js.map +0 -1
  248. package/lib/map/material/AroundPoint.js +0 -66
  249. package/lib/map/material/AroundPoint.js.map +0 -1
  250. package/lib/map/material/CircleRippleMaterialProperty.js +0 -89
  251. package/lib/map/material/CircleRippleMaterialProperty.js.map +0 -1
  252. package/lib/map/material/ODLineLayer.js +0 -92
  253. package/lib/map/material/ODLineLayer.js.map +0 -1
  254. package/lib/map/material/PolylineTrailLinkMaterialProperty.js +0 -101
  255. package/lib/map/material/PolylineTrailLinkMaterialProperty.js.map +0 -1
  256. package/lib/map/material/PolylineTrailMaterialProperty.js +0 -102
  257. package/lib/map/material/PolylineTrailMaterialProperty.js.map +0 -1
  258. package/lib/map/material/TilesBuilding.js +0 -208
  259. package/lib/map/material/TilesBuilding.js.map +0 -1
  260. package/lib/map/material/assets/colors1.png +0 -0
  261. package/lib/map/material/assets/colors2.png +0 -0
  262. package/lib/map/material/index.js +0 -17
  263. package/lib/map/material/index.js.map +0 -1
  264. package/lib/map/style/css.js +0 -4
  265. package/lib/map/style/css.js.map +0 -1
  266. package/lib/map/style/index.css +0 -155
  267. package/lib/map/style/index.js +0 -4
  268. package/lib/map/style/index.js.map +0 -1
  269. package/lib/map/style/index.less +0 -149
  270. package/lib/marker/Marker.js +0 -113
  271. package/lib/marker/Marker.js.map +0 -1
  272. package/lib/marker/index.js +0 -49
  273. package/lib/marker/index.js.map +0 -1
  274. package/lib/marker/style/css.js +0 -2
  275. package/lib/marker/style/css.js.map +0 -1
  276. package/lib/marker/style/index.js +0 -2
  277. package/lib/marker/style/index.js.map +0 -1
  278. package/lib/point/Point.js +0 -70
  279. package/lib/point/Point.js.map +0 -1
  280. package/lib/point/index.js +0 -49
  281. package/lib/point/index.js.map +0 -1
  282. package/lib/point/style/css.js +0 -2
  283. package/lib/point/style/css.js.map +0 -1
  284. package/lib/point/style/index.js +0 -2
  285. package/lib/point/style/index.js.map +0 -1
  286. package/lib/polygon/Polygon.js +0 -68
  287. package/lib/polygon/Polygon.js.map +0 -1
  288. package/lib/polygon/index.js +0 -49
  289. package/lib/polygon/index.js.map +0 -1
  290. package/lib/polygon/style/css.js +0 -2
  291. package/lib/polygon/style/css.js.map +0 -1
  292. package/lib/polygon/style/index.js +0 -2
  293. package/lib/polygon/style/index.js.map +0 -1
  294. package/lib/polyline/Polyline.js +0 -69
  295. package/lib/polyline/Polyline.js.map +0 -1
  296. package/lib/polyline/index.js +0 -49
  297. package/lib/polyline/index.js.map +0 -1
  298. package/lib/polyline/style/css.js +0 -2
  299. package/lib/polyline/style/css.js.map +0 -1
  300. package/lib/polyline/style/index.js +0 -2
  301. package/lib/polyline/style/index.js.map +0 -1
  302. package/lib/renderer/index.js +0 -281
  303. package/lib/renderer/index.js.map +0 -1
  304. package/lib/renderer/style/css.js +0 -4
  305. package/lib/renderer/style/css.js.map +0 -1
  306. package/lib/renderer/style/index.css +0 -0
  307. package/lib/renderer/style/index.js +0 -4
  308. package/lib/renderer/style/index.js.map +0 -1
  309. package/lib/renderer/style/index.less +0 -0
  310. package/lib/style/index.css +0 -0
  311. package/lib/style/index.less +0 -2
  312. package/lib/style/themes/compact.css +0 -0
  313. package/lib/style/themes/compact.less +0 -1
  314. package/lib/style/themes/dark.css +0 -0
  315. package/lib/style/themes/dark.less +0 -9
  316. package/lib/style/themes/default.css +0 -0
  317. package/lib/style/themes/default.less +0 -7
  318. package/lib/style/themes/index.css +0 -0
  319. package/lib/style/themes/index.less +0 -1
  320. package/lib/style/themes/variable.css +0 -0
  321. package/lib/style/themes/variable.less +0 -5
  322. package/lib/tools/assets/footer.png +0 -0
  323. package/lib/tools/assets/layer.png +0 -0
  324. package/lib/tools/assets/search.png +0 -0
  325. package/lib/tools/base-map-switch/index.js +0 -103
  326. package/lib/tools/base-map-switch/index.js.map +0 -1
  327. package/lib/tools/dimension-switch/index.js +0 -38
  328. package/lib/tools/dimension-switch/index.js.map +0 -1
  329. package/lib/tools/index.js +0 -50
  330. package/lib/tools/index.js.map +0 -1
  331. package/lib/tools/layer-control/index.js +0 -161
  332. package/lib/tools/layer-control/index.js.map +0 -1
  333. package/lib/tools/map-search/Select/index.js +0 -56
  334. package/lib/tools/map-search/Select/index.js.map +0 -1
  335. package/lib/tools/map-search/Select/style/css.js +0 -4
  336. package/lib/tools/map-search/Select/style/css.js.map +0 -1
  337. package/lib/tools/map-search/Select/style/index.css +0 -45
  338. package/lib/tools/map-search/Select/style/index.js +0 -4
  339. package/lib/tools/map-search/Select/style/index.js.map +0 -1
  340. package/lib/tools/map-search/Select/style/index.less +0 -47
  341. package/lib/tools/map-search/index.js +0 -204
  342. package/lib/tools/map-search/index.js.map +0 -1
  343. package/lib/tools/style/css.js +0 -8
  344. package/lib/tools/style/css.js.map +0 -1
  345. package/lib/tools/style/index.css +0 -197
  346. package/lib/tools/style/index.js +0 -8
  347. package/lib/tools/style/index.js.map +0 -1
  348. package/lib/tools/style/index.less +0 -213
  349. package/lib/tools/tools-item/index.js +0 -67
  350. package/lib/tools/tools-item/index.js.map +0 -1
  351. package/lib/trail-polyline-layer/TrailPolylineLayer.js +0 -82
  352. package/lib/trail-polyline-layer/TrailPolylineLayer.js.map +0 -1
  353. package/lib/trail-polyline-layer/TrailPolylineMaterial.js +0 -31
  354. package/lib/trail-polyline-layer/TrailPolylineMaterial.js.map +0 -1
  355. package/lib/trail-polyline-layer/index.js +0 -28
  356. package/lib/trail-polyline-layer/index.js.map +0 -1
  357. package/lib/trail-polyline-layer/style/css.js +0 -4
  358. package/lib/trail-polyline-layer/style/css.js.map +0 -1
  359. package/lib/trail-polyline-layer/style/index.css +0 -0
  360. package/lib/trail-polyline-layer/style/index.js +0 -4
  361. package/lib/trail-polyline-layer/style/index.js.map +0 -1
  362. package/lib/trail-polyline-layer/style/index.less +0 -0
  363. package/lib/water-surface-layer/WaterSurfaceLayer.js +0 -87
  364. package/lib/water-surface-layer/WaterSurfaceLayer.js.map +0 -1
  365. package/lib/water-surface-layer/index.js +0 -28
  366. package/lib/water-surface-layer/index.js.map +0 -1
  367. package/lib/water-surface-layer/style/css.js +0 -4
  368. package/lib/water-surface-layer/style/css.js.map +0 -1
  369. package/lib/water-surface-layer/style/index.css +0 -0
  370. package/lib/water-surface-layer/style/index.js +0 -4
  371. package/lib/water-surface-layer/style/index.js.map +0 -1
  372. package/lib/water-surface-layer/style/index.less +0 -0
  373. package/lib/weather/Weather.js +0 -175
  374. package/lib/weather/Weather.js.map +0 -1
  375. package/lib/weather/index.js +0 -37
  376. package/lib/weather/index.js.map +0 -1
  377. package/lib/weather/style/css.js +0 -8
  378. package/lib/weather/style/css.js.map +0 -1
  379. package/lib/weather/style/index.css +0 -60
  380. package/lib/weather/style/index.js +0 -8
  381. package/lib/weather/style/index.js.map +0 -1
  382. package/lib/weather/style/index.less +0 -63
@@ -1,71 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = _default;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _GroupLayer = _interopRequireDefault(require("./GroupLayer"));
10
- var _useProps2 = _interopRequireDefault(require("../_util/useProps"));
11
- var _Provider = _interopRequireDefault(require("../_util/Provider"));
12
- var _ahooks = require("ahooks");
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
20
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
21
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
- function _default(props) {
23
- var children = props.children,
24
- id = props.id,
25
- _key = props._key,
26
- name = props.name,
27
- legend = props.legend,
28
- _props$layerControl = props.layerControl,
29
- layerControl = _props$layerControl === void 0 ? true : _props$layerControl,
30
- show = props.show;
31
- var _useProps = (0, _useProps2["default"])(),
32
- map = _useProps.map,
33
- groupLayer = _useProps.groupLayer;
34
- var _useState = (0, _react.useState)(false),
35
- _useState2 = _slicedToArray(_useState, 2),
36
- layerLoad = _useState2[0],
37
- setLayerLoad = _useState2[1];
38
- var layer = (0, _react.useRef)();
39
- (0, _react.useEffect)(function () {
40
- layer.current = new _GroupLayer["default"]({
41
- key: id || _key,
42
- name: name,
43
- legend: legend,
44
- layerControl: layerControl,
45
- map: map
46
- });
47
- if (props.groupLayer) {
48
- props.groupLayer.addLayer(layer.current);
49
- } else {
50
- map.addLayer(layer.current);
51
- }
52
- setLayerLoad(true);
53
- return function () {
54
- if (groupLayer) {
55
- groupLayer.removeLayer(layer.current);
56
- } else {
57
- map.removeLayer(layer.current);
58
- }
59
- };
60
- }, []);
61
- (0, _ahooks.useUpdateEffect)(function () {
62
- layer.current.setVisible(show);
63
- }, [show]);
64
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, layerLoad && /*#__PURE__*/_react["default"].createElement(_Provider["default"], {
65
- value: {
66
- map: map,
67
- groupLayer: layer.current
68
- }
69
- }, children));
70
- }
71
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_GroupLayer","_interopRequireDefault","_useProps2","_Provider","_ahooks","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_slicedToArray","arr","i","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","n","toString","slice","constructor","name","Array","from","test","len","length","arr2","r","l","t","Symbol","iterator","e","u","a","f","next","done","push","value","isArray","_default","props","children","id","_key","legend","_props$layerControl","layerControl","show","_useProps","useProps","map","groupLayer","_useState","useState","_useState2","layerLoad","setLayerLoad","layer","useRef","useEffect","current","GroupLayer","addLayer","removeLayer","useUpdateEffect","setVisible","createElement","Fragment"],"sources":["group-layer/index.js"],"sourcesContent":["import React, { useState, useEffect, useRef } from 'react';\nimport GroupLayer from './GroupLayer';\nimport useProps from \"../_util/useProps\";\nimport Provider from \"../_util/Provider\";\nimport { useUpdateEffect } from 'ahooks';\n\nexport default function(props) {\n const {children, id, _key, name, legend, layerControl = true, show} = props;\n const { map, groupLayer } = useProps();\n\n const [layerLoad, setLayerLoad] = useState(false);\n\n const layer = useRef();\n\n useEffect(() => {\n layer.current = new GroupLayer({\n key: id || _key,\n name,\n legend,\n layerControl,\n map\n });\n\n if (props.groupLayer) {\n props.groupLayer.addLayer(layer.current)\n } else {\n map.addLayer(layer.current);\n }\n\n setLayerLoad(true);\n\n return () => {\n if (groupLayer) {\n groupLayer.removeLayer(layer.current)\n } else {\n map.removeLayer(layer.current);\n }\n }\n }, [])\n\n useUpdateEffect(() => {\n layer.current.setVisible(show);\n }, [show]);\n\n return (\n <>\n {layerLoad && (\n <Provider\n value={{\n map,\n groupLayer: layer.current,\n }}\n >\n {children}\n </Provider>\n )}\n </>\n );\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAAyC,SAAAE,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAV,wBAAAO,GAAA,EAAAG,WAAA,SAAAA,WAAA,IAAAH,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAO,OAAA,CAAAP,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAQ,KAAA,GAAAN,wBAAA,CAAAC,WAAA,OAAAK,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAT,GAAA,YAAAQ,KAAA,CAAAE,GAAA,CAAAV,GAAA,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OAAO,CAAC;MACzC,CAAC,MAAM;QACHV,GAAG,CAACa,WAAW,CAACN,KAAK,CAACG,OAAO,CAAC;MAClC;IACJ,CAAC;EACL,CAAC,EAAE,EAAE,CAAC;EAEN,IAAAI,uBAAe,EAAC,YAAM;IAClBP,KAAK,CAACG,OAAO,CAACK,UAAU,CAAClB,IAAI,CAAC;EAClC,CAAC,EAAE,CAACA,IAAI,CAAC,CAAC;EAEV,oBACI1E,MAAA,YAAA6F,aAAA,CAAA7F,MAAA,YAAA8F,QAAA,QACKZ,SAAS,iBACNlF,MAAA,YAAA6F,aAAA,CAACvF,SAAA,WAAQ;IACL0D,KAAK,EAAE;MACHa,GAAG,EAAHA,GAAG;MACHC,UAAU,EAAEM,KAAK,CAACG;IACtB;EAAE,GAEDnB,QACK,CAEhB,CAAC;AAEX"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
-
3
- require("./index.css");
4
- //# sourceMappingURL=css.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"css.js","names":["require"],"sources":["group-layer/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA"}
File without changes
@@ -1,4 +0,0 @@
1
- "use strict";
2
-
3
- require("./index.less");
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["require"],"sources":["group-layer/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA"}
File without changes
@@ -1,444 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.CesiumHeatmap = void 0;
7
- var _cesium = require("cesium");
8
- var _heatmap = _interopRequireDefault(require("./heatmap.js"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
14
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
15
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
16
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
17
- function 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; }
18
- function _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; }
19
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
21
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
22
- function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
23
- function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); }
24
- function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; }
25
- function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
26
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
27
- function _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; }
28
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
29
- function _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); }
30
- //只能使用2.0.0版本,高版本热度图有出不来的情况,并且2.0.0 npm包有问题,只能通过修改使用这个js
31
-
32
- var Max = function Max(arr) {
33
- var len = arr.length;
34
- var max = -Infinity;
35
- while (len--) {
36
- max = arr[len] > max ? arr[len] : max;
37
- }
38
- return max;
39
- };
40
- var Min = function Min(arr) {
41
- var len = arr.length;
42
- var min = Infinity;
43
- while (len--) {
44
- min = arr[len] < min ? arr[len] : min;
45
- }
46
- return min;
47
- };
48
-
49
- /**
50
- * 热度图
51
- */
52
- var CesiumHeatmap = /*#__PURE__*/function () {
53
- function CesiumHeatmap(viewer, options) {
54
- var _this$initOptions;
55
- _classCallCheck(this, CesiumHeatmap);
56
- _defineProperty(this, "viewer", void 0);
57
- _defineProperty(this, "element", void 0);
58
- _defineProperty(this, "initOptions", void 0);
59
- _defineProperty(this, "heatmapOptions", void 0);
60
- _defineProperty(this, "heatmapDataOptions", void 0);
61
- _defineProperty(this, "provider", void 0);
62
- _defineProperty(this, "heatmap", void 0);
63
- _defineProperty(this, "cameraMoveEnd", void 0);
64
- _defineProperty(this, "bounds", [0, 0, 0, 0]);
65
- _defineProperty(this, "lastCameraHeight", 0);
66
- _defineProperty(this, "initRadius", 10);
67
- this.viewer = viewer;
68
- var key = options.key,
69
- name = options.name,
70
- layerControl = options.layerControl,
71
- show = options.show;
72
- this.initOptions = _objectSpread({}, options);
73
- // 图层标识
74
- this.key = key;
75
-
76
- // 图层名称
77
- this.name = name;
78
- this.layerControl = layerControl;
79
- _set(_getPrototypeOf(CesiumHeatmap.prototype), "show", show, this, true);
80
- if ((_this$initOptions = this.initOptions) !== null && _this$initOptions !== void 0 && (_this$initOptions = _this$initOptions.points) !== null && _this$initOptions !== void 0 && _this$initOptions.length) {
81
- var _this$initOptions2, _this$heatmapOptions;
82
- var bounds = this.getBounds(this.initOptions.points);
83
- this.bounds = bounds;
84
- var _this$createContainer = this.createContainer(bounds),
85
- container = _this$createContainer.container,
86
- width = _this$createContainer.width,
87
- height = _this$createContainer.height;
88
- this.element = container;
89
- var datas = [];
90
- var values = [];
91
- for (var i in this.initOptions.points) {
92
- var point = this.initOptions.points[i];
93
- var x = (point.x - bounds[0]) / (bounds[2] - bounds[0]) * width; //屏幕坐标x
94
- var y = (bounds[3] - point.y) / (bounds[3] - bounds[1]) * height; //屏幕坐标y
95
- var dataPoint = {
96
- x: x,
97
- y: y,
98
- value: point.value
99
- };
100
- if (typeof point.value === 'number') values.push(point.value);
101
- datas.push(dataPoint);
102
- }
103
-
104
- //数据的最大值和最小值
105
- var _min = values.length > 100000 ? Min(values) : Math.min.apply(Math, values);
106
- var _max = values.length > 100000 ? Max(values) : Math.max.apply(Math, values);
107
- if ((_this$initOptions2 = this.initOptions) !== null && _this$initOptions2 !== void 0 && _this$initOptions2.heatmapDataOptions) {
108
- var _this$initOptions$hea = this.initOptions.heatmapDataOptions,
109
- min = _this$initOptions$hea.min,
110
- max = _this$initOptions$hea.max;
111
- if (typeof min === 'number') {
112
- _min = min;
113
- }
114
- if (typeof max === 'number') {
115
- _max = max;
116
- }
117
- }
118
- this.heatmapDataOptions = {
119
- min: _min,
120
- max: _max
121
- };
122
- var data = {
123
- max: _max,
124
- min: _min,
125
- data: datas
126
- };
127
- var defaultOptions = {
128
- maxOpacity: 0.9,
129
- // radius: minRadius,
130
- // minimum opacity. any value > 0 will produce
131
- // no transparent gradient transition
132
- minOpacity: 0.1,
133
- gradient: {
134
- // enter n keys between 0 and 1 here
135
- // for gradient color customization
136
- '.3': 'blue',
137
- '.5': 'green',
138
- '.7': 'yellow',
139
- '.95': 'red'
140
- }
141
- };
142
- var _options = this.initOptions.heatmapOptions ? _objectSpread(_objectSpread({}, defaultOptions), this.initOptions.heatmapOptions) : defaultOptions;
143
-
144
- //初始化半径
145
- if ((_this$heatmapOptions = this.heatmapOptions) !== null && _this$heatmapOptions !== void 0 && _this$heatmapOptions.radius) {
146
- this.initRadius = this.heatmapOptions.radius;
147
- }
148
- this.heatmapOptions = _objectSpread({}, _options);
149
- var _options2 = _objectSpread(_objectSpread({}, _options), {}, {
150
- container: container
151
- });
152
- this.heatmap = _heatmap["default"].create(_options2);
153
- this.heatmap.setData(data);
154
- this.createLayer();
155
- if (!this.initOptions.noLisenerCamera) {
156
- this.addLisener();
157
- }
158
- if (this.initOptions.zoomToLayer && bounds) {
159
- this.viewer.camera.flyTo({
160
- destination: _cesium.Rectangle.fromDegrees.apply(_cesium.Rectangle, _toConsumableArray(bounds))
161
- });
162
- }
163
- }
164
- }
165
-
166
- // 重写父类的属性访问器
167
- _createClass(CesiumHeatmap, [{
168
- key: "show",
169
- get: function get() {
170
- return _get(_getPrototypeOf(CesiumHeatmap.prototype), "show", this);
171
- },
172
- set: function set(value) {
173
- this.setVisible(value);
174
- }
175
-
176
- // 获取地图
177
- }, {
178
- key: "getMap",
179
- value: function getMap() {
180
- return this.viewer;
181
- }
182
-
183
- // 设置图层显示隐藏
184
- }, {
185
- key: "setVisible",
186
- value: function setVisible(visible) {
187
- _set(_getPrototypeOf(CesiumHeatmap.prototype), "show", visible, this, true);
188
- this.provider.show = visible; // 将属性传递给父类
189
-
190
- var map = this.getMap && this.getMap();
191
- if (map) {
192
- map.layers.emit('visible', this, visible);
193
- }
194
- }
195
-
196
- /**
197
- * 设置数据的最大最小值
198
- * @param dataOption
199
- */
200
- }, {
201
- key: "updateHeatMapMaxMin",
202
- value: function updateHeatMapMaxMin(dataOption) {
203
- var min = dataOption.min,
204
- max = dataOption.max;
205
- if (this.heatmap) {
206
- if (typeof min === 'number') {
207
- this.heatmap.setDataMin(min);
208
- if (this.heatmapDataOptions) this.heatmapDataOptions.min = min;
209
- }
210
- if (typeof max === 'number') {
211
- this.heatmap.setDataMax(max);
212
- if (this.heatmapDataOptions) this.heatmapDataOptions.max = max;
213
- }
214
- }
215
- this.updateLayer();
216
- }
217
-
218
- /**
219
- * 更新热度图配置
220
- * @param options
221
- */
222
- }, {
223
- key: "updateHeatmap",
224
- value: function updateHeatmap(options) {
225
- var heatmapOptions = this.heatmapOptions;
226
- this.heatmap.configure(_objectSpread(_objectSpread({}, heatmapOptions), options));
227
- this.updateLayer();
228
- }
229
-
230
- /**
231
- * 更新半径
232
- * @param radius
233
- */
234
- }, {
235
- key: "updateRadius",
236
- value: function updateRadius(radius) {
237
- var _this$initOptions3;
238
- var heatmapOptions = this.heatmapOptions;
239
- var currentData = this.heatmap.getData();
240
- if (currentData !== null && currentData !== void 0 && currentData.data) {
241
- for (var i in currentData.data) {
242
- var data = currentData.data[i];
243
- data.radius = radius;
244
- }
245
- }
246
- this.heatmap.setData(currentData);
247
- this.heatmapOptions = _objectSpread(_objectSpread({}, heatmapOptions), {
248
- radius: radius
249
- });
250
- this.updateLayer();
251
- if ((_this$initOptions3 = this.initOptions) !== null && _this$initOptions3 !== void 0 && _this$initOptions3.onRadiusChange) {
252
- this.initOptions.onRadiusChange(radius);
253
- }
254
- }
255
-
256
- /**
257
- * 移除
258
- */
259
- }, {
260
- key: "remove",
261
- value: function remove() {
262
- if (this.element) {
263
- document.body.removeChild(this.element);
264
- this.element = undefined;
265
- if (this.provider instanceof _cesium.ImageryLayer) {
266
- if (this.provider) this.viewer.imageryLayers.remove(this.provider);
267
- this.createSingleTileImageryLayer();
268
- } else if (this.provider instanceof _cesium.Primitive) {
269
- this.viewer.scene.primitives.remove(this.provider);
270
- } else if (this.provider instanceof _cesium.Entity) {
271
- this.viewer.entities.remove(this.provider);
272
- }
273
- if (this.cameraMoveEnd) {
274
- this.viewer.camera.moveEnd.removeEventListener(this.cameraMoveEnd);
275
- this.cameraMoveEnd = undefined;
276
- }
277
- }
278
- }
279
- }, {
280
- key: "createLayer",
281
- value: function createLayer() {
282
- var _this = this;
283
- if (this.initOptions.renderType === 'primitive') {
284
- this.createPrimitive();
285
- } else if (this.initOptions.renderType === 'imagery') {
286
- this.createSingleTileImageryLayer();
287
- } else {
288
- this.createEntity();
289
- }
290
- this.provider.key = this.key;
291
- this.provider.name = this.name;
292
- this.provider.show = this.show;
293
- this.provider.setVisible = function (visible) {
294
- _this.setVisible(visible);
295
- };
296
- }
297
- }, {
298
- key: "createPrimitive",
299
- value: function createPrimitive() {
300
- var url = this.heatmap.getDataURL();
301
- this.provider = this.viewer.scene.primitives.add(new _cesium.Primitive({
302
- geometryInstances: new _cesium.GeometryInstance({
303
- geometry: new _cesium.RectangleGeometry({
304
- rectangle: _cesium.Rectangle.fromDegrees.apply(_cesium.Rectangle, _toConsumableArray(this.bounds)),
305
- vertexFormat: _cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT
306
- })
307
- }),
308
- appearance: new _cesium.EllipsoidSurfaceAppearance({
309
- aboveGround: false
310
- }),
311
- show: this.show
312
- }));
313
- if (this.provider) {
314
- this.provider.appearance.material = new _cesium.Material({
315
- fabric: {
316
- type: 'Image',
317
- uniforms: {
318
- image: url
319
- }
320
- }
321
- });
322
- }
323
- }
324
- }, {
325
- key: "createSingleTileImageryLayer",
326
- value: function createSingleTileImageryLayer() {
327
- var url = this.heatmap.getDataURL();
328
- this.provider = this.viewer.imageryLayers.addImageryProvider(new _cesium.SingleTileImageryProvider({
329
- url: url,
330
- rectangle: _cesium.Rectangle.fromDegrees.apply(_cesium.Rectangle, _toConsumableArray(this.bounds))
331
- }));
332
- }
333
- }, {
334
- key: "getImageMaterialProperty",
335
- value: function getImageMaterialProperty() {
336
- var url = this.heatmap.getDataURL();
337
- var material = new _cesium.ImageMaterialProperty({
338
- image: url
339
- });
340
- return material;
341
- }
342
- }, {
343
- key: "createEntity",
344
- value: function createEntity() {
345
- this.provider = new _cesium.CustomDataSource(this.name);
346
- this.provider.entities.add({
347
- show: true,
348
- rectangle: {
349
- coordinates: _cesium.Rectangle.fromDegrees.apply(_cesium.Rectangle, _toConsumableArray(this.bounds)),
350
- material: this.getImageMaterialProperty()
351
- }
352
- });
353
- this.viewer.dataSources.add(this.provider);
354
- }
355
- }, {
356
- key: "updateLayer",
357
- value: function updateLayer() {
358
- var src = this.heatmap.getDataURL();
359
- if (this.provider instanceof _cesium.ImageryLayer) {
360
- if (this.provider) this.viewer.imageryLayers.remove(this.provider);
361
- this.createSingleTileImageryLayer();
362
- } else if (this.provider instanceof _cesium.Primitive) {
363
- this.provider.appearance.material.uniforms.image = src;
364
- } else if (this.provider instanceof _cesium.Entity) {
365
- if (this.provider.rectangle) this.provider.rectangle.material = this.getImageMaterialProperty();
366
- }
367
- }
368
-
369
- /**
370
- * 添加相机的监听
371
- */
372
- }, {
373
- key: "addLisener",
374
- value: function addLisener() {
375
- var _this2 = this;
376
- var maxRadius = 100;
377
- var min = 6375000;
378
- var max = 10000000;
379
- this.cameraMoveEnd = function () {
380
- if (_this2.heatmapOptions && _this2.heatmap && _this2.heatmapDataOptions) {
381
- var _this2$initOptions;
382
- var h = _this2.viewer.camera.getMagnitude();
383
- var distance = _this2 !== null && _this2 !== void 0 && (_this2$initOptions = _this2.initOptions) !== null && _this2$initOptions !== void 0 && _this2$initOptions.cameraHeightDistance ? _this2.initOptions.cameraHeightDistance : 1000;
384
- if (Math.abs(h - _this2.lastCameraHeight) > distance) {
385
- _this2.lastCameraHeight = h;
386
- if (typeof min === 'number' && typeof max === 'number') {
387
- var radius = parseInt((_this2.initRadius + (maxRadius - _this2.initRadius) * (h - min) / (max - min)).toFixed(0));
388
- if (radius) {
389
- _this2.updateRadius(radius);
390
- }
391
- }
392
- }
393
- }
394
- };
395
- this.viewer.camera.moveEnd.addEventListener(this.cameraMoveEnd);
396
- }
397
-
398
- /**
399
- *
400
- * @param points
401
- * @param expand
402
- * @returns
403
- */
404
- }, {
405
- key: "getBounds",
406
- value: function getBounds(points) {
407
- if (points) {
408
- var lonMin = 180;
409
- var lonMax = -180;
410
- var latMin = 90;
411
- var latMax = -180;
412
- points.forEach(function (point) {
413
- var longitude = point.x,
414
- latitude = point.y;
415
- lonMin = longitude < lonMin ? longitude : lonMin;
416
- latMin = latitude < latMin ? latitude : latMin;
417
- lonMax = longitude > lonMax ? longitude : lonMax;
418
- latMax = latitude > latMax ? latitude : latMax;
419
- });
420
- var xRange = lonMax - lonMin ? lonMax - lonMin : 1;
421
- var yRange = latMax - latMin ? latMax - latMin : 1;
422
- return [lonMin - xRange / 10, latMin - yRange / 10, lonMax + xRange / 10, latMax + yRange / 10];
423
- }
424
- return [0, 0, 0, 0];
425
- }
426
- }, {
427
- key: "createContainer",
428
- value: function createContainer(bounds) {
429
- var container = document.createElement('div');
430
- var width = 1000;
431
- var height = parseInt((1000 / (bounds[2] - bounds[0]) * (bounds[3] - bounds[1])).toFixed(0));
432
- container.setAttribute('style', "width:".concat(width, "px;height:").concat(height, "px;display:none;"));
433
- document.body.appendChild(container);
434
- return {
435
- container: container,
436
- width: width,
437
- height: height
438
- };
439
- }
440
- }]);
441
- return CesiumHeatmap;
442
- }();
443
- exports.CesiumHeatmap = CesiumHeatmap;
444
- //# sourceMappingURL=CesiumHeatmap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CesiumHeatmap.js","names":["_cesium","require","_heatmap","_interopRequireDefault","obj","__esModule","_typeof","o","Symbol","iterator","constructor","prototype","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","minLen","_arrayLikeToArray","n","Object","toString","call","slice","name","Array","from","test","iter","isArray","len","length","i","arr2","ownKeys","e","r","t","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","configurable","writable","_toPropertyKey","key","_createClass","protoProps","staticProps","_get","Reflect","get","bind","property","receiver","base","_superPropBase","desc","value","set","_set","isStrict","s","object","hasOwnProperty","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","Max","max","Infinity","Min","min","CesiumHeatmap","viewer","options","_this$initOptions","layerControl","show","initOptions","points","_this$initOptions2","_this$heatmapOptions","bounds","getBounds","_this$createContainer","createContainer","container","width","height","element","datas","values","point","x","y","dataPoint","_min","Math","_max","heatmapDataOptions","_this$initOptions$hea","data","defaultOptions","maxOpacity","minOpacity","gradient","_options","heatmapOptions","radius","initRadius","heatmap","h337","create","setData","createLayer","noLisenerCamera","addLisener","zoomToLayer","camera","flyTo","destination","Rectangle","fromDegrees","setVisible","getMap","visible","provider","map","layers","emit","updateHeatMapMaxMin","dataOption","setDataMin","setDataMax","updateLayer","updateHeatmap","configure","updateRadius","_this$initOptions3","currentData","getData","onRadiusChange","remove","document","body","removeChild","ImageryLayer","imageryLayers","createSingleTileImageryLayer","Primitive","scene","primitives","Entity","entities","cameraMoveEnd","moveEnd","removeEventListener","_this","renderType","createPrimitive","createEntity","url","getDataURL","add","geometryInstances","GeometryInstance","geometry","RectangleGeometry","rectangle","vertexFormat","EllipsoidSurfaceAppearance","VERTEX_FORMAT","appearance","aboveGround","material","Material","fabric","type","uniforms","image","addImageryProvider","SingleTileImageryProvider","getImageMaterialProperty","ImageMaterialProperty","CustomDataSource","coordinates","dataSources","src","_this2","maxRadius","_this2$initOptions","h","getMagnitude","distance","cameraHeightDistance","abs","lastCameraHeight","parseInt","toFixed","addEventListener","lonMin","lonMax","latMin","latMax","longitude","latitude","xRange","yRange","createElement","setAttribute","concat","appendChild","exports"],"sources":["heatmap-layer/CesiumHeatmap.js"],"sourcesContent":["import {\n EllipsoidSurfaceAppearance,\n GeometryInstance,\n Material,\n Primitive,\n Rectangle,\n RectangleGeometry,\n Viewer,\n Event,\n SingleTileImageryProvider,\n ImageryLayer,\n ImageMaterialProperty,\n Entity,\n CustomDataSource,\n} from 'cesium';\nimport h337 from './heatmap.js'; //只能使用2.0.0版本,高版本热度图有出不来的情况,并且2.0.0 npm包有问题,只能通过修改使用这个js\n\nconst Max = arr => {\n let len = arr.length;\n let max = -Infinity;\n\n while (len--) {\n max = arr[len] > max ? arr[len] : max;\n }\n return max;\n};\n\nconst Min = arr => {\n let len = arr.length;\n let min = Infinity;\n\n while (len--) {\n min = arr[len] < min ? arr[len] : min;\n }\n return min;\n};\n\n/**\n * 热度图\n */\nexport class CesiumHeatmap {\n viewer;\n element;\n initOptions;\n heatmapOptions;\n heatmapDataOptions;\n provider;\n heatmap;\n cameraMoveEnd;\n bounds = [0, 0, 0, 0];\n lastCameraHeight = 0;\n initRadius = 10;\n constructor(viewer, options) {\n this.viewer = viewer;\n const { key, name, layerControl, show } = options;\n this.initOptions = { ...options };\n // 图层标识\n this.key = key;\n\n // 图层名称\n this.name = name;\n this.layerControl = layerControl;\n super.show = show;\n if (this.initOptions?.points?.length) {\n const bounds = this.getBounds(this.initOptions.points);\n this.bounds = bounds;\n const { container, width, height } = this.createContainer(bounds);\n this.element = container;\n const datas = [];\n const values = [];\n for (let i in this.initOptions.points) {\n const point = this.initOptions.points[i];\n const x = ((point.x - bounds[0]) / (bounds[2] - bounds[0])) * width; //屏幕坐标x\n const y = ((bounds[3] - point.y) / (bounds[3] - bounds[1])) * height; //屏幕坐标y\n const dataPoint = {\n x: x,\n y: y,\n value: point.value,\n };\n if (typeof point.value === 'number') values.push(point.value);\n datas.push(dataPoint);\n }\n\n //数据的最大值和最小值\n let _min = values.length > 100000 ? Min(values) : Math.min(...values);\n let _max = values.length > 100000 ? Max(values) : Math.max(...values);\n if (this.initOptions?.heatmapDataOptions) {\n const { min, max } = this.initOptions.heatmapDataOptions;\n if (typeof min === 'number') {\n _min = min;\n }\n if (typeof max === 'number') {\n _max = max;\n }\n }\n this.heatmapDataOptions = { min: _min, max: _max };\n\n const data = {\n max: _max,\n min: _min,\n data: datas,\n };\n\n const defaultOptions = {\n maxOpacity: 0.9,\n // radius: minRadius,\n // minimum opacity. any value > 0 will produce\n // no transparent gradient transition\n minOpacity: 0.1,\n gradient: {\n // enter n keys between 0 and 1 here\n // for gradient color customization\n '.3': 'blue',\n '.5': 'green',\n '.7': 'yellow',\n '.95': 'red',\n },\n };\n const _options = this.initOptions.heatmapOptions\n ? { ...defaultOptions, ...this.initOptions.heatmapOptions }\n : defaultOptions;\n\n //初始化半径\n if (this.heatmapOptions?.radius) {\n this.initRadius = this.heatmapOptions.radius;\n }\n\n this.heatmapOptions = { ..._options };\n const options = {\n ..._options,\n container,\n };\n this.heatmap = h337.create(options);\n this.heatmap.setData(data);\n this.createLayer();\n\n if (!this.initOptions.noLisenerCamera) {\n this.addLisener();\n }\n\n if (this.initOptions.zoomToLayer && bounds) {\n this.viewer.camera.flyTo({\n destination: Rectangle.fromDegrees(...bounds),\n });\n }\n }\n }\n\n // 重写父类的属性访问器\n get show() {\n return super.show;\n }\n\n set show(value) {\n this.setVisible(value);\n }\n\n // 获取地图\n getMap() {\n return this.viewer;\n }\n\n // 设置图层显示隐藏\n setVisible(visible) {\n super.show = visible;\n this.provider.show = visible; // 将属性传递给父类\n\n const map = this.getMap && this.getMap();\n if (map) {\n map.layers.emit('visible', this, visible);\n }\n }\n\n /**\n * 设置数据的最大最小值\n * @param dataOption\n */\n updateHeatMapMaxMin(dataOption) {\n const { min, max } = dataOption;\n if (this.heatmap) {\n if (typeof min === 'number') {\n this.heatmap.setDataMin(min);\n if (this.heatmapDataOptions) this.heatmapDataOptions.min = min;\n }\n if (typeof max === 'number') {\n this.heatmap.setDataMax(max);\n if (this.heatmapDataOptions) this.heatmapDataOptions.max = max;\n }\n }\n this.updateLayer();\n }\n\n /**\n * 更新热度图配置\n * @param options\n */\n updateHeatmap(options) {\n const { heatmapOptions } = this;\n this.heatmap.configure({ ...heatmapOptions, ...options });\n this.updateLayer();\n }\n\n /**\n * 更新半径\n * @param radius\n */\n updateRadius(radius) {\n const { heatmapOptions } = this;\n const currentData = this.heatmap.getData();\n if (currentData?.data) {\n for (let i in currentData.data) {\n const data = currentData.data[i];\n data.radius = radius;\n }\n }\n this.heatmap.setData(currentData);\n this.heatmapOptions = { ...heatmapOptions, ...{ radius } };\n this.updateLayer();\n if (this.initOptions?.onRadiusChange) {\n this.initOptions.onRadiusChange(radius);\n }\n }\n\n /**\n * 移除\n */\n remove() {\n if (this.element) {\n document.body.removeChild(this.element);\n this.element = undefined;\n if (this.provider instanceof ImageryLayer) {\n if (this.provider) this.viewer.imageryLayers.remove(this.provider);\n this.createSingleTileImageryLayer();\n } else if (this.provider instanceof Primitive) {\n this.viewer.scene.primitives.remove(this.provider);\n } else if (this.provider instanceof Entity) {\n this.viewer.entities.remove(this.provider);\n }\n if (this.cameraMoveEnd) {\n this.viewer.camera.moveEnd.removeEventListener(this.cameraMoveEnd);\n this.cameraMoveEnd = undefined;\n }\n }\n }\n\n createLayer() {\n if (this.initOptions.renderType === 'primitive') {\n this.createPrimitive();\n } else if (this.initOptions.renderType === 'imagery') {\n this.createSingleTileImageryLayer();\n } else {\n this.createEntity();\n }\n this.provider.key = this.key;\n\n this.provider.name = this.name;\n this.provider.show = this.show;\n this.provider.setVisible = visible => {\n this.setVisible(visible);\n };\n }\n\n createPrimitive() {\n const url = this.heatmap.getDataURL();\n this.provider = this.viewer.scene.primitives.add(\n new Primitive({\n geometryInstances: new GeometryInstance({\n geometry: new RectangleGeometry({\n rectangle: Rectangle.fromDegrees(...this.bounds),\n vertexFormat: EllipsoidSurfaceAppearance.VERTEX_FORMAT,\n }),\n }),\n appearance: new EllipsoidSurfaceAppearance({\n aboveGround: false,\n }),\n show: this.show,\n }),\n );\n if (this.provider) {\n this.provider.appearance.material = new Material({\n fabric: {\n type: 'Image',\n uniforms: {\n image: url,\n },\n },\n });\n }\n }\n\n createSingleTileImageryLayer() {\n const url = this.heatmap.getDataURL();\n this.provider = this.viewer.imageryLayers.addImageryProvider(\n new SingleTileImageryProvider({\n url: url,\n rectangle: Rectangle.fromDegrees(...this.bounds),\n }),\n );\n }\n\n getImageMaterialProperty() {\n const url = this.heatmap.getDataURL();\n const material = new ImageMaterialProperty({\n image: url,\n });\n return material;\n }\n\n createEntity() {\n this.provider = new CustomDataSource(this.name);\n this.provider.entities.add({\n show: true,\n rectangle: {\n coordinates: Rectangle.fromDegrees(...this.bounds),\n material: this.getImageMaterialProperty(),\n },\n });\n this.viewer.dataSources.add(this.provider);\n }\n\n updateLayer() {\n const src = this.heatmap.getDataURL();\n if (this.provider instanceof ImageryLayer) {\n if (this.provider) this.viewer.imageryLayers.remove(this.provider);\n this.createSingleTileImageryLayer();\n } else if (this.provider instanceof Primitive) {\n this.provider.appearance.material.uniforms.image = src;\n } else if (this.provider instanceof Entity) {\n if (this.provider.rectangle)\n this.provider.rectangle.material = this.getImageMaterialProperty();\n }\n }\n\n /**\n * 添加相机的监听\n */\n addLisener() {\n const maxRadius = 100;\n const min = 6375000;\n const max = 10000000;\n this.cameraMoveEnd = () => {\n if (this.heatmapOptions && this.heatmap && this.heatmapDataOptions) {\n const h = this.viewer.camera.getMagnitude();\n const distance = this?.initOptions?.cameraHeightDistance\n ? this.initOptions.cameraHeightDistance\n : 1000;\n if (Math.abs(h - this.lastCameraHeight) > distance) {\n this.lastCameraHeight = h;\n if (typeof min === 'number' && typeof max === 'number') {\n const radius = parseInt(\n (\n this.initRadius +\n ((maxRadius - this.initRadius) * (h - min)) / (max - min)\n ).toFixed(0),\n );\n if (radius) {\n this.updateRadius(radius);\n }\n }\n }\n }\n };\n this.viewer.camera.moveEnd.addEventListener(this.cameraMoveEnd);\n }\n\n /**\n *\n * @param points\n * @param expand\n * @returns\n */\n getBounds(points) {\n if (points) {\n let lonMin = 180;\n let lonMax = -180;\n let latMin = 90;\n let latMax = -180;\n points.forEach(function(point) {\n const { x: longitude, y: latitude } = point;\n lonMin = longitude < lonMin ? longitude : lonMin;\n latMin = latitude < latMin ? latitude : latMin;\n lonMax = longitude > lonMax ? longitude : lonMax;\n latMax = latitude > latMax ? latitude : latMax;\n });\n const xRange = lonMax - lonMin ? lonMax - lonMin : 1;\n const yRange = latMax - latMin ? latMax - latMin : 1;\n return [\n lonMin - xRange / 10,\n latMin - yRange / 10,\n lonMax + xRange / 10,\n latMax + yRange / 10,\n ];\n }\n return [0, 0, 0, 0];\n }\n\n createContainer(bounds) {\n const container = document.createElement('div');\n const width = 1000;\n const height = parseInt(\n ((1000 / (bounds[2] - bounds[0])) * (bounds[3] - bounds[1])).toFixed(0),\n );\n container.setAttribute('style', `width:${width}px;height:${height}px;display:none;`);\n document.body.appendChild(container);\n return { container, width, height };\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAeA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAgC,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,QAAAC,CAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,CAAA,kBAAAA,CAAA,gBAAAA,CAAA,WAAAA,CAAA,yBAAAC,MAAA,IAAAD,CAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,CAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,CAAA,KAAAD,OAAA,CAAAC,CAAA;AAAA,SAAAK,mBAAAC,GAAA,WAAAC,kBAAA,CAAAD,GAAA,KAAAE,gBAAA,CAAAF,GAAA,KAAAG,2BAAA,CAAAH,GAAA,KAAAI,kBAAA;AAAA,SAAAA,mBAAA,cAAAC,SAAA;AAAA,SAAAF,4BAAAT,CAAA,EAAAY,MAAA,SAAAZ,CAAA,qBAAAA,CAAA,sBAAAa,iBAAA,CAAAb,CAAA,EAAAY,MAAA,OAAAE,CAAA,GAAAC,MAAA,CAAAX,SAAA,CAAAY,QAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAkB,KAAA,aAAAJ,CAAA,iBA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