@vtx/ol-map 1.0.142 → 1.0.144

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 (507) hide show
  1. package/package.json +3 -2
  2. package/lib/_util/EventEmitter.js +0 -78
  3. package/lib/_util/EventEmitter.js.map +0 -1
  4. package/lib/_util/StyleCache.js +0 -46
  5. package/lib/_util/StyleCache.js.map +0 -1
  6. package/lib/_util/encryptParams.js +0 -60
  7. package/lib/_util/encryptParams.js.map +0 -1
  8. package/lib/_util/filterSpecialCharacters.js +0 -90
  9. package/lib/_util/filterSpecialCharacters.js.map +0 -1
  10. package/lib/_util/getComponentProps.js +0 -14
  11. package/lib/_util/getComponentProps.js.map +0 -1
  12. package/lib/_util/getCookie.js +0 -24
  13. package/lib/_util/getCookie.js.map +0 -1
  14. package/lib/_util/getDefaultMapInfo.js +0 -50
  15. package/lib/_util/getDefaultMapInfo.js.map +0 -1
  16. package/lib/_util/getSystemInfo.js +0 -26
  17. package/lib/_util/getSystemInfo.js.map +0 -1
  18. package/lib/_util/getToken.js +0 -27
  19. package/lib/_util/getToken.js.map +0 -1
  20. package/lib/_util/getUrlParam.js +0 -15
  21. package/lib/_util/getUrlParam.js.map +0 -1
  22. package/lib/_util/http.js +0 -176
  23. package/lib/_util/http.js.map +0 -1
  24. package/lib/_util/isFunction.js +0 -10
  25. package/lib/_util/isFunction.js.map +0 -1
  26. package/lib/_util/isObject.js +0 -10
  27. package/lib/_util/isObject.js.map +0 -1
  28. package/lib/_util/layer.js +0 -152
  29. package/lib/_util/layer.js.map +0 -1
  30. package/lib/_util/mapTool.js +0 -188
  31. package/lib/_util/mapTool.js.map +0 -1
  32. package/lib/_util/projzh/datum/bd-09.js +0 -44
  33. package/lib/_util/projzh/datum/bd-09.js.map +0 -1
  34. package/lib/_util/projzh/datum/gcj-02.js +0 -72
  35. package/lib/_util/projzh/datum/gcj-02.js.map +0 -1
  36. package/lib/_util/projzh/datum/index.js +0 -14
  37. package/lib/_util/projzh/datum/index.js.map +0 -1
  38. package/lib/_util/projzh/index.js +0 -40
  39. package/lib/_util/projzh/index.js.map +0 -1
  40. package/lib/_util/projzh/projection/baidu-mercator.js +0 -74
  41. package/lib/_util/projzh/projection/baidu-mercator.js.map +0 -1
  42. package/lib/_util/projzh/projection/index.js +0 -14
  43. package/lib/_util/projzh/projection/index.js.map +0 -1
  44. package/lib/_util/projzh/projection/spherical-mercator.js +0 -25
  45. package/lib/_util/projzh/projection/spherical-mercator.js.map +0 -1
  46. package/lib/_util/projzh/util.js +0 -27
  47. package/lib/_util/projzh/util.js.map +0 -1
  48. package/lib/_util/search.js +0 -129
  49. package/lib/_util/search.js.map +0 -1
  50. package/lib/_util/setCookie.js +0 -15
  51. package/lib/_util/setCookie.js.map +0 -1
  52. package/lib/_util/stringToFun.js +0 -25
  53. package/lib/_util/stringToFun.js.map +0 -1
  54. package/lib/_util/transform.js +0 -169
  55. package/lib/_util/transform.js.map +0 -1
  56. package/lib/_util/useColSize.js +0 -28
  57. package/lib/_util/useColSize.js.map +0 -1
  58. package/lib/_util/useInterval.js +0 -19
  59. package/lib/_util/useInterval.js.map +0 -1
  60. package/lib/_util/useSet.js +0 -44
  61. package/lib/_util/useSet.js.map +0 -1
  62. package/lib/analysis-layer/index.js +0 -449
  63. package/lib/analysis-layer/index.js.map +0 -1
  64. package/lib/analysis-layer/style/css.js +0 -2
  65. package/lib/analysis-layer/style/css.js.map +0 -1
  66. package/lib/analysis-layer/style/index.js +0 -2
  67. package/lib/analysis-layer/style/index.js.map +0 -1
  68. package/lib/assets/arrow.png +0 -0
  69. package/lib/assets/base-img-1.png +0 -0
  70. package/lib/assets/base-img-2.png +0 -0
  71. package/lib/assets/base-img-3.png +0 -0
  72. package/lib/assets/base-img-4.png +0 -0
  73. package/lib/assets/base-img-5.png +0 -0
  74. package/lib/assets/base-img-6.png +0 -0
  75. package/lib/assets/base-img.png +0 -0
  76. package/lib/assets/bz.png +0 -0
  77. package/lib/assets/img.png +0 -0
  78. package/lib/assets/kz.png +0 -0
  79. package/lib/assets/ll.png +0 -0
  80. package/lib/assets/location.png +0 -0
  81. package/lib/assets/noLocation.png +0 -0
  82. package/lib/assets/people.png +0 -0
  83. package/lib/assets/qd.png +0 -0
  84. package/lib/assets/sw.png +0 -0
  85. package/lib/assets/yl.png +0 -0
  86. package/lib/assets/zd.png +0 -0
  87. package/lib/buffer-draw/BufferDraw.js +0 -398
  88. package/lib/buffer-draw/BufferDraw.js.map +0 -1
  89. package/lib/buffer-draw/index.js +0 -57
  90. package/lib/buffer-draw/index.js.map +0 -1
  91. package/lib/buffer-draw/style/css.js +0 -2
  92. package/lib/buffer-draw/style/css.js.map +0 -1
  93. package/lib/buffer-draw/style/index.js +0 -2
  94. package/lib/buffer-draw/style/index.js.map +0 -1
  95. package/lib/circle/Circle.js +0 -51
  96. package/lib/circle/Circle.js.map +0 -1
  97. package/lib/circle/index.js +0 -65
  98. package/lib/circle/index.js.map +0 -1
  99. package/lib/circle/style/css.js +0 -2
  100. package/lib/circle/style/css.js.map +0 -1
  101. package/lib/circle/style/index.js +0 -2
  102. package/lib/circle/style/index.js.map +0 -1
  103. package/lib/config.js +0 -12
  104. package/lib/config.js.map +0 -1
  105. package/lib/convertCamelToCSS.js +0 -23
  106. package/lib/convertCamelToCSS.js.map +0 -1
  107. package/lib/dom/Dom.js +0 -39
  108. package/lib/dom/Dom.js.map +0 -1
  109. package/lib/dom/index.js +0 -62
  110. package/lib/dom/index.js.map +0 -1
  111. package/lib/dom/style/css.js +0 -2
  112. package/lib/dom/style/css.js.map +0 -1
  113. package/lib/dom/style/index.js +0 -2
  114. package/lib/dom/style/index.js.map +0 -1
  115. package/lib/events/index.js +0 -25
  116. package/lib/events/index.js.map +0 -1
  117. package/lib/feature-draw/FeatureDraw.js +0 -230
  118. package/lib/feature-draw/FeatureDraw.js.map +0 -1
  119. package/lib/feature-draw/index.js +0 -73
  120. package/lib/feature-draw/index.js.map +0 -1
  121. package/lib/feature-draw/style/css.js +0 -2
  122. package/lib/feature-draw/style/css.js.map +0 -1
  123. package/lib/feature-draw/style/index.js +0 -2
  124. package/lib/feature-draw/style/index.js.map +0 -1
  125. package/lib/feature-layer/FeatureLayer.js +0 -1039
  126. package/lib/feature-layer/FeatureLayer.js.map +0 -1
  127. package/lib/feature-layer/MyCluster.js +0 -150
  128. package/lib/feature-layer/MyCluster.js.map +0 -1
  129. package/lib/feature-layer/createFeatureCollection.js +0 -167
  130. package/lib/feature-layer/createFeatureCollection.js.map +0 -1
  131. package/lib/feature-layer/index.js +0 -155
  132. package/lib/feature-layer/index.js.map +0 -1
  133. package/lib/feature-layer/style/css.js +0 -4
  134. package/lib/feature-layer/style/css.js.map +0 -1
  135. package/lib/feature-layer/style/index.css +0 -0
  136. package/lib/feature-layer/style/index.js +0 -4
  137. package/lib/feature-layer/style/index.js.map +0 -1
  138. package/lib/feature-layer/style/index.less +0 -0
  139. package/lib/flow-line-layer/FlowLineLayer.js +0 -197
  140. package/lib/flow-line-layer/FlowLineLayer.js.map +0 -1
  141. package/lib/flow-line-layer/index.js +0 -127
  142. package/lib/flow-line-layer/index.js.map +0 -1
  143. package/lib/flow-line-layer/style/css.js +0 -4
  144. package/lib/flow-line-layer/style/css.js.map +0 -1
  145. package/lib/flow-line-layer/style/index.css +0 -0
  146. package/lib/flow-line-layer/style/index.js +0 -4
  147. package/lib/flow-line-layer/style/index.js.map +0 -1
  148. package/lib/flow-line-layer/style/index.less +0 -0
  149. package/lib/fly-line-layer/FlyLineLayer.js +0 -217
  150. package/lib/fly-line-layer/FlyLineLayer.js.map +0 -1
  151. package/lib/fly-line-layer/index.js +0 -109
  152. package/lib/fly-line-layer/index.js.map +0 -1
  153. package/lib/fly-line-layer/style/css.js +0 -4
  154. package/lib/fly-line-layer/style/css.js.map +0 -1
  155. package/lib/fly-line-layer/style/index.css +0 -0
  156. package/lib/fly-line-layer/style/index.js +0 -4
  157. package/lib/fly-line-layer/style/index.js.map +0 -1
  158. package/lib/fly-line-layer/style/index.less +0 -0
  159. package/lib/group-layer/GroupLayer.js +0 -131
  160. package/lib/group-layer/GroupLayer.js.map +0 -1
  161. package/lib/group-layer/index.js +0 -74
  162. package/lib/group-layer/index.js.map +0 -1
  163. package/lib/group-layer/style/css.js +0 -4
  164. package/lib/group-layer/style/css.js.map +0 -1
  165. package/lib/group-layer/style/index.css +0 -0
  166. package/lib/group-layer/style/index.js +0 -4
  167. package/lib/group-layer/style/index.js.map +0 -1
  168. package/lib/group-layer/style/index.less +0 -0
  169. package/lib/heatmap-layer/HeatmapLayer.js +0 -191
  170. package/lib/heatmap-layer/HeatmapLayer.js.map +0 -1
  171. package/lib/heatmap-layer/index.js +0 -94
  172. package/lib/heatmap-layer/index.js.map +0 -1
  173. package/lib/heatmap-layer/style/css.js +0 -4
  174. package/lib/heatmap-layer/style/css.js.map +0 -1
  175. package/lib/heatmap-layer/style/index.css +0 -0
  176. package/lib/heatmap-layer/style/index.js +0 -4
  177. package/lib/heatmap-layer/style/index.js.map +0 -1
  178. package/lib/heatmap-layer/style/index.less +0 -0
  179. package/lib/high-layer/HighLayer.js +0 -199
  180. package/lib/high-layer/HighLayer.js.map +0 -1
  181. package/lib/high-layer/index.js +0 -45
  182. package/lib/high-layer/index.js.map +0 -1
  183. package/lib/high-layer/style/css.js +0 -2
  184. package/lib/high-layer/style/css.js.map +0 -1
  185. package/lib/high-layer/style/index.js +0 -2
  186. package/lib/high-layer/style/index.js.map +0 -1
  187. package/lib/image-layer/ImageLayer.js +0 -330
  188. package/lib/image-layer/ImageLayer.js.map +0 -1
  189. package/lib/image-layer/ImageTileLayer.js +0 -332
  190. package/lib/image-layer/ImageTileLayer.js.map +0 -1
  191. package/lib/image-layer/index.js +0 -101
  192. package/lib/image-layer/index.js.map +0 -1
  193. package/lib/image-layer/style/css.js +0 -4
  194. package/lib/image-layer/style/css.js.map +0 -1
  195. package/lib/image-layer/style/index.css +0 -0
  196. package/lib/image-layer/style/index.js +0 -4
  197. package/lib/image-layer/style/index.js.map +0 -1
  198. package/lib/image-layer/style/index.less +0 -0
  199. package/lib/index.js +0 -201
  200. package/lib/index.js.map +0 -1
  201. package/lib/legend/index.js +0 -221
  202. package/lib/legend/index.js.map +0 -1
  203. package/lib/legend/style/css.js +0 -8
  204. package/lib/legend/style/css.js.map +0 -1
  205. package/lib/legend/style/index.css +0 -74
  206. package/lib/legend/style/index.js +0 -8
  207. package/lib/legend/style/index.js.map +0 -1
  208. package/lib/legend/style/index.less +0 -73
  209. package/lib/map/Analysis.js +0 -148
  210. package/lib/map/Analysis.js.map +0 -1
  211. package/lib/map/Layers.js +0 -336
  212. package/lib/map/Layers.js.map +0 -1
  213. package/lib/map/Popup.js +0 -371
  214. package/lib/map/Popup.js.map +0 -1
  215. package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js +0 -163
  216. package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js.map +0 -1
  217. package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js +0 -84
  218. package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js.map +0 -1
  219. package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js +0 -65
  220. package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js.map +0 -1
  221. package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js +0 -84
  222. package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js.map +0 -1
  223. package/lib/map/getBaseLayers/index.js +0 -46
  224. package/lib/map/getBaseLayers/index.js.map +0 -1
  225. package/lib/map/index.js +0 -822
  226. package/lib/map/index.js.map +0 -1
  227. package/lib/map/style/css.js +0 -5
  228. package/lib/map/style/css.js.map +0 -1
  229. package/lib/map/style/index.css +0 -171
  230. package/lib/map/style/index.js +0 -5
  231. package/lib/map/style/index.js.map +0 -1
  232. package/lib/map/style/index.less +0 -152
  233. package/lib/map-icon/svg/index.js +0 -81
  234. package/lib/map-icon/svg/index.js.map +0 -1
  235. package/lib/map-icon/svg/tuceng.svg.js +0 -2
  236. package/lib/map-icon/svg/tuceng.svg.js.map +0 -1
  237. package/lib/marker/Marker.js +0 -105
  238. package/lib/marker/Marker.js.map +0 -1
  239. package/lib/marker/index.js +0 -62
  240. package/lib/marker/index.js.map +0 -1
  241. package/lib/marker/style/css.js +0 -2
  242. package/lib/marker/style/css.js.map +0 -1
  243. package/lib/marker/style/index.js +0 -2
  244. package/lib/marker/style/index.js.map +0 -1
  245. package/lib/path-line-layer/PathLineLayer.js +0 -45
  246. package/lib/path-line-layer/PathLineLayer.js.map +0 -1
  247. package/lib/path-line-layer/getPathLineStyles.js +0 -71
  248. package/lib/path-line-layer/getPathLineStyles.js.map +0 -1
  249. package/lib/path-line-layer/index.js +0 -152
  250. package/lib/path-line-layer/index.js.map +0 -1
  251. package/lib/path-line-layer/style/css.js +0 -4
  252. package/lib/path-line-layer/style/css.js.map +0 -1
  253. package/lib/path-line-layer/style/index.css +0 -0
  254. package/lib/path-line-layer/style/index.js +0 -4
  255. package/lib/path-line-layer/style/index.js.map +0 -1
  256. package/lib/path-line-layer/style/index.less +0 -0
  257. package/lib/path-play-back/PathPlayBack.js +0 -668
  258. package/lib/path-play-back/PathPlayBack.js.map +0 -1
  259. package/lib/path-play-back/index.js +0 -75
  260. package/lib/path-play-back/index.js.map +0 -1
  261. package/lib/path-play-back/style/css.js +0 -2
  262. package/lib/path-play-back/style/css.js.map +0 -1
  263. package/lib/path-play-back/style/index.js +0 -2
  264. package/lib/path-play-back/style/index.js.map +0 -1
  265. package/lib/poi-search/Location.js +0 -63
  266. package/lib/poi-search/Location.js.map +0 -1
  267. package/lib/poi-search/PoiList.js +0 -116
  268. package/lib/poi-search/PoiList.js.map +0 -1
  269. package/lib/poi-search/Search.js +0 -208
  270. package/lib/poi-search/Search.js.map +0 -1
  271. package/lib/poi-search/index.js +0 -173
  272. package/lib/poi-search/index.js.map +0 -1
  273. package/lib/poi-search/style/css.js +0 -8
  274. package/lib/poi-search/style/css.js.map +0 -1
  275. package/lib/poi-search/style/index.css +0 -96
  276. package/lib/poi-search/style/index.js +0 -8
  277. package/lib/poi-search/style/index.js.map +0 -1
  278. package/lib/poi-search/style/index.less +0 -97
  279. package/lib/point/Point.js +0 -57
  280. package/lib/point/Point.js.map +0 -1
  281. package/lib/point/index.js +0 -62
  282. package/lib/point/index.js.map +0 -1
  283. package/lib/point/style/css.js +0 -2
  284. package/lib/point/style/css.js.map +0 -1
  285. package/lib/point/style/index.js +0 -2
  286. package/lib/point/style/index.js.map +0 -1
  287. package/lib/polygon/Polygon.js +0 -51
  288. package/lib/polygon/Polygon.js.map +0 -1
  289. package/lib/polygon/index.js +0 -62
  290. package/lib/polygon/index.js.map +0 -1
  291. package/lib/polygon/style/css.js +0 -2
  292. package/lib/polygon/style/css.js.map +0 -1
  293. package/lib/polygon/style/index.js +0 -2
  294. package/lib/polygon/style/index.js.map +0 -1
  295. package/lib/polyline/Polyline.js +0 -51
  296. package/lib/polyline/Polyline.js.map +0 -1
  297. package/lib/polyline/index.js +0 -62
  298. package/lib/polyline/index.js.map +0 -1
  299. package/lib/polyline/style/css.js +0 -2
  300. package/lib/polyline/style/css.js.map +0 -1
  301. package/lib/polyline/style/index.js +0 -2
  302. package/lib/polyline/style/index.js.map +0 -1
  303. package/lib/popup/index.js +0 -203
  304. package/lib/popup/index.js.map +0 -1
  305. package/lib/popup/style/css.js +0 -4
  306. package/lib/popup/style/css.js.map +0 -1
  307. package/lib/popup/style/index.css +0 -131
  308. package/lib/popup/style/index.js +0 -4
  309. package/lib/popup/style/index.js.map +0 -1
  310. package/lib/popup/style/index.less +0 -129
  311. package/lib/provider/index.js +0 -12
  312. package/lib/provider/index.js.map +0 -1
  313. package/lib/provider/style/css.js +0 -2
  314. package/lib/provider/style/css.js.map +0 -1
  315. package/lib/provider/style/index.js +0 -2
  316. package/lib/provider/style/index.js.map +0 -1
  317. package/lib/renderer/Fill.js +0 -37
  318. package/lib/renderer/Fill.js.map +0 -1
  319. package/lib/renderer/Stroke.js +0 -39
  320. package/lib/renderer/Stroke.js.map +0 -1
  321. package/lib/renderer/index.js +0 -138
  322. package/lib/renderer/index.js.map +0 -1
  323. package/lib/renderer/style/css.js +0 -4
  324. package/lib/renderer/style/css.js.map +0 -1
  325. package/lib/renderer/style/index.css +0 -0
  326. package/lib/renderer/style/index.js +0 -4
  327. package/lib/renderer/style/index.js.map +0 -1
  328. package/lib/renderer/style/index.less +0 -0
  329. package/lib/renderer/transformRgb.js +0 -33
  330. package/lib/renderer/transformRgb.js.map +0 -1
  331. package/lib/search-map/VtxModal.js +0 -202
  332. package/lib/search-map/VtxModal.js.map +0 -1
  333. package/lib/search-map/index.js +0 -417
  334. package/lib/search-map/index.js.map +0 -1
  335. package/lib/search-map/style/css.js +0 -6
  336. package/lib/search-map/style/css.js.map +0 -1
  337. package/lib/search-map/style/index.css +0 -73
  338. package/lib/search-map/style/index.js +0 -6
  339. package/lib/search-map/style/index.js.map +0 -1
  340. package/lib/search-map/style/index.less +0 -83
  341. package/lib/search-map/style/modal.css +0 -54
  342. package/lib/search-map/style/modal.less +0 -58
  343. package/lib/style/index.css +0 -0
  344. package/lib/style/index.less +0 -2
  345. package/lib/style/themes/compact.css +0 -0
  346. package/lib/style/themes/compact.less +0 -1
  347. package/lib/style/themes/dark.css +0 -0
  348. package/lib/style/themes/dark.less +0 -9
  349. package/lib/style/themes/default.css +0 -0
  350. package/lib/style/themes/default.less +0 -7
  351. package/lib/style/themes/index.css +0 -0
  352. package/lib/style/themes/index.less +0 -1
  353. package/lib/style/themes/variable.css +0 -0
  354. package/lib/style/themes/variable.less +0 -5
  355. package/lib/tile-layer/TileLayer.js +0 -85
  356. package/lib/tile-layer/TileLayer.js.map +0 -1
  357. package/lib/tile-layer/index.js +0 -53
  358. package/lib/tile-layer/index.js.map +0 -1
  359. package/lib/tile-layer/style/css.js +0 -4
  360. package/lib/tile-layer/style/css.js.map +0 -1
  361. package/lib/tile-layer/style/index.css +0 -0
  362. package/lib/tile-layer/style/index.js +0 -4
  363. package/lib/tile-layer/style/index.js.map +0 -1
  364. package/lib/tile-layer/style/index.less +0 -0
  365. package/lib/tools/Layer/LayerService.js +0 -182
  366. package/lib/tools/Layer/LayerService.js.map +0 -1
  367. package/lib/tools/Layer/LayersCheckService.js +0 -188
  368. package/lib/tools/Layer/LayersCheckService.js.map +0 -1
  369. package/lib/tools/Layer/index.css +0 -50
  370. package/lib/tools/Layer/index.js +0 -226
  371. package/lib/tools/Layer/index.js.map +0 -1
  372. package/lib/tools/Layer/index.less +0 -43
  373. package/lib/tools/Search/index.js +0 -296
  374. package/lib/tools/Search/index.js.map +0 -1
  375. package/lib/tools/Toolbox/BoxSelect/index.js +0 -19
  376. package/lib/tools/Toolbox/BoxSelect/index.js.map +0 -1
  377. package/lib/tools/Toolbox/CircleSelect/index.js +0 -19
  378. package/lib/tools/Toolbox/CircleSelect/index.js.map +0 -1
  379. package/lib/tools/Toolbox/EagleEye/index.js +0 -56
  380. package/lib/tools/Toolbox/EagleEye/index.js.map +0 -1
  381. package/lib/tools/Toolbox/MapBookmark/Bookmark.js +0 -150
  382. package/lib/tools/Toolbox/MapBookmark/Bookmark.js.map +0 -1
  383. package/lib/tools/Toolbox/MapBookmark/index.css +0 -18
  384. package/lib/tools/Toolbox/MapBookmark/index.js +0 -429
  385. package/lib/tools/Toolbox/MapBookmark/index.js.map +0 -1
  386. package/lib/tools/Toolbox/MapBookmark/index.less +0 -20
  387. package/lib/tools/Toolbox/MapDownload/index.js +0 -16
  388. package/lib/tools/Toolbox/MapDownload/index.js.map +0 -1
  389. package/lib/tools/Toolbox/MapPrint/index.css +0 -4
  390. package/lib/tools/Toolbox/MapPrint/index.js +0 -233
  391. package/lib/tools/Toolbox/MapPrint/index.js.map +0 -1
  392. package/lib/tools/Toolbox/MapPrint/index.less +0 -4
  393. package/lib/tools/Toolbox/Measure/Area/index.js +0 -16
  394. package/lib/tools/Toolbox/Measure/Area/index.js.map +0 -1
  395. package/lib/tools/Toolbox/Measure/Distance/index.js +0 -16
  396. package/lib/tools/Toolbox/Measure/Distance/index.js.map +0 -1
  397. package/lib/tools/Toolbox/Measure/Measure.js +0 -227
  398. package/lib/tools/Toolbox/Measure/Measure.js.map +0 -1
  399. package/lib/tools/Toolbox/Measure/index.js +0 -76
  400. package/lib/tools/Toolbox/Measure/index.js.map +0 -1
  401. package/lib/tools/Toolbox/PolygonSelect/index.js +0 -19
  402. package/lib/tools/Toolbox/PolygonSelect/index.js.map +0 -1
  403. package/lib/tools/Toolbox/ScaleLine/index.js +0 -58
  404. package/lib/tools/Toolbox/ScaleLine/index.js.map +0 -1
  405. package/lib/tools/Toolbox/SelectTools/index.css +0 -103
  406. package/lib/tools/Toolbox/SelectTools/index.js +0 -777
  407. package/lib/tools/Toolbox/SelectTools/index.js.map +0 -1
  408. package/lib/tools/Toolbox/SelectTools/index.less +0 -87
  409. package/lib/tools/Toolbox/SpaceQuery/index.css +0 -19
  410. package/lib/tools/Toolbox/SpaceQuery/index.js +0 -593
  411. package/lib/tools/Toolbox/SpaceQuery/index.js.map +0 -1
  412. package/lib/tools/Toolbox/SpaceQuery/index.less +0 -16
  413. package/lib/tools/Toolbox/ZoomInput/index.css +0 -6
  414. package/lib/tools/Toolbox/ZoomInput/index.js +0 -49
  415. package/lib/tools/Toolbox/ZoomInput/index.js.map +0 -1
  416. package/lib/tools/Toolbox/ZoomInput/index.less +0 -6
  417. package/lib/tools/Toolbox/index.css +0 -0
  418. package/lib/tools/Toolbox/index.js +0 -170
  419. package/lib/tools/Toolbox/index.js.map +0 -1
  420. package/lib/tools/Toolbox/index.less +0 -2
  421. package/lib/tools/Utils/CreateOverlay.js +0 -46
  422. package/lib/tools/Utils/CreateOverlay.js.map +0 -1
  423. package/lib/tools/Utils/Draw.js +0 -127
  424. package/lib/tools/Utils/Draw.js.map +0 -1
  425. package/lib/tools/Utils/HighLayer.js +0 -211
  426. package/lib/tools/Utils/HighLayer.js.map +0 -1
  427. package/lib/tools/Utils/measure.js +0 -246
  428. package/lib/tools/Utils/measure.js.map +0 -1
  429. package/lib/tools/Utils/utils.js +0 -263
  430. package/lib/tools/Utils/utils.js.map +0 -1
  431. package/lib/tools/View/index.css +0 -35
  432. package/lib/tools/View/index.js +0 -165
  433. package/lib/tools/View/index.js.map +0 -1
  434. package/lib/tools/View/index.less +0 -28
  435. package/lib/tools/analysis-tool/index.js +0 -112
  436. package/lib/tools/analysis-tool/index.js.map +0 -1
  437. package/lib/tools/base-map-switch/index.js +0 -149
  438. package/lib/tools/base-map-switch/index.js.map +0 -1
  439. package/lib/tools/components/Chart/index.js +0 -818
  440. package/lib/tools/components/Chart/index.js.map +0 -1
  441. package/lib/tools/components/Icon/index.js +0 -31
  442. package/lib/tools/components/Icon/index.js.map +0 -1
  443. package/lib/tools/components/Info/index.css +0 -39
  444. package/lib/tools/components/Info/index.js +0 -34
  445. package/lib/tools/components/Info/index.js.map +0 -1
  446. package/lib/tools/components/Info/index.less +0 -26
  447. package/lib/tools/components/ItemWrap/index.css +0 -43
  448. package/lib/tools/components/ItemWrap/index.js +0 -47
  449. package/lib/tools/components/ItemWrap/index.js.map +0 -1
  450. package/lib/tools/components/ItemWrap/index.less +0 -41
  451. package/lib/tools/components/Modal/index.css +0 -42
  452. package/lib/tools/components/Modal/index.js +0 -45
  453. package/lib/tools/components/Modal/index.js.map +0 -1
  454. package/lib/tools/components/Modal/index.less +0 -33
  455. package/lib/tools/components/MyTabs/index.js +0 -22
  456. package/lib/tools/components/MyTabs/index.js.map +0 -1
  457. package/lib/tools/components/RequiredLabel/index.css +0 -5
  458. package/lib/tools/components/RequiredLabel/index.js +0 -32
  459. package/lib/tools/components/RequiredLabel/index.js.map +0 -1
  460. package/lib/tools/components/RequiredLabel/index.less +0 -5
  461. package/lib/tools/components/Select/index.js +0 -32
  462. package/lib/tools/components/Select/index.js.map +0 -1
  463. package/lib/tools/components/Table/assets/tableIcon.png +0 -0
  464. package/lib/tools/components/Table/index.css +0 -10
  465. package/lib/tools/components/Table/index.js +0 -90
  466. package/lib/tools/components/Table/index.js.map +0 -1
  467. package/lib/tools/components/Table/index.less +0 -13
  468. package/lib/tools/components/ToolItem/index.css +0 -30
  469. package/lib/tools/components/ToolItem/index.js +0 -28
  470. package/lib/tools/components/ToolItem/index.js.map +0 -1
  471. package/lib/tools/components/ToolItem/index.less +0 -27
  472. package/lib/tools/components/ToolsSelect/index.css +0 -15
  473. package/lib/tools/components/ToolsSelect/index.js +0 -44
  474. package/lib/tools/components/ToolsSelect/index.js.map +0 -1
  475. package/lib/tools/components/ToolsSelect/index.less +0 -10
  476. package/lib/tools/full-screen/index.js +0 -46
  477. package/lib/tools/full-screen/index.js.map +0 -1
  478. package/lib/tools/index.js +0 -151
  479. package/lib/tools/index.js.map +0 -1
  480. package/lib/tools/layer-control/index.js +0 -170
  481. package/lib/tools/layer-control/index.js.map +0 -1
  482. package/lib/tools/refresh/index.js +0 -40
  483. package/lib/tools/refresh/index.js.map +0 -1
  484. package/lib/tools/style/css.js +0 -22
  485. package/lib/tools/style/css.js.map +0 -1
  486. package/lib/tools/style/index.css +0 -136
  487. package/lib/tools/style/index.js +0 -22
  488. package/lib/tools/style/index.js.map +0 -1
  489. package/lib/tools/style/index.less +0 -154
  490. package/lib/tools-item/index.js +0 -66
  491. package/lib/tools-item/index.js.map +0 -1
  492. package/lib/use-props/index.js +0 -14
  493. package/lib/use-props/index.js.map +0 -1
  494. package/lib/use-props/style/css.js +0 -2
  495. package/lib/use-props/style/css.js.map +0 -1
  496. package/lib/use-props/style/index.js +0 -2
  497. package/lib/use-props/style/index.js.map +0 -1
  498. package/lib/wms-layer/WmsLayer.js +0 -313
  499. package/lib/wms-layer/WmsLayer.js.map +0 -1
  500. package/lib/wms-layer/index.js +0 -98
  501. package/lib/wms-layer/index.js.map +0 -1
  502. package/lib/wms-layer/style/css.js +0 -4
  503. package/lib/wms-layer/style/css.js.map +0 -1
  504. package/lib/wms-layer/style/index.css +0 -0
  505. package/lib/wms-layer/style/index.js +0 -4
  506. package/lib/wms-layer/style/index.js.map +0 -1
  507. package/lib/wms-layer/style/index.less +0 -0
@@ -1,211 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _antd = require("antd");
8
- var _source = require("ol/source");
9
- var _layer = require("ol/layer");
10
- var _style = require("ol/style");
11
- var _Fill = _interopRequireDefault(require("../../renderer/Fill"));
12
- var _ol = require("ol");
13
- var _FeatureLayer = _interopRequireDefault(require("../../feature-layer/FeatureLayer"));
14
- var _lodash = require("lodash");
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
- 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); }
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(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
20
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
21
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
22
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
23
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
24
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
25
- * 图层高亮操作
26
- */
27
- var Highlight = exports["default"] = /*#__PURE__*/function () {
28
- function Highlight(_options) {
29
- var _this = this;
30
- _classCallCheck(this, Highlight);
31
- // 高亮图层增加feature
32
- _defineProperty(this, "addHighlightFeature", function (feature, options) {
33
- _this.feature = feature;
34
- _this.clearSelectFeature();
35
- _this.clearFeatures();
36
- if ((0, _lodash.isEmpty)(feature)) return;
37
- // 数组高亮的话, 就是默认的红色高亮
38
- if (Array.isArray(feature)) {
39
- feature.map(function (v) {
40
- _this.addFeature(v, true);
41
- });
42
- } else {
43
- _this.addFeature(feature);
44
- }
45
- if (!options || options !== null && options !== void 0 && options.autoView) {
46
- _this.map.fitView(feature, options || {});
47
- }
48
-
49
- // this.map.getView().fit(feature.values_.geometry.getExtent(), {
50
- // maxZoom: 18,
51
- // duration: 500,
52
- // });
53
- });
54
- _defineProperty(this, "addFeature", function (_feature, flag) {
55
- var feature = _feature.clone();
56
- feature.isHighLight = true;
57
- var geometry = feature === null || feature === void 0 ? void 0 : feature.getGeometry();
58
- var type = geometry === null || geometry === void 0 ? void 0 : geometry.getType();
59
- if (type === 'Point' && geometry && !flag) {
60
- _this.addPointHighlight(feature);
61
- var layer = _this.map.getLayerByFeature(_feature);
62
- if (layer && layer instanceof _FeatureLayer["default"]) {
63
- _this.markerLayer._options = layer._options;
64
- for (var i in layer._options) {
65
- _this.markerLayer[i] = layer._options[i];
66
- }
67
- feature.key = layer.key;
68
- _this.markerLayer.cluster = false;
69
- _this.markerLayer.key = 'Highlight';
70
- _this.markerLayer.setZIndex(Infinity);
71
- _this.markerLayer.getSource().addFeature(feature);
72
- _this.markerLayer.setStyle(_this.markerLayer.getStyleByMode());
73
- }
74
- } else {
75
- _this.source.addFeature(feature);
76
- }
77
- });
78
- // 点位高亮-扩散
79
- _defineProperty(this, "addPointHighlight", function (feature) {
80
- var _id = feature.get('id') || 'point_animation';
81
- _this.clearFeatures();
82
- var point_overlay = _this.map.getOverlayById(_id);
83
- if (feature) {
84
- var geometry = feature === null || feature === void 0 ? void 0 : feature.getGeometry();
85
- var type = geometry === null || geometry === void 0 ? void 0 : geometry.getType();
86
- if (type === 'Point' && geometry) {
87
- var ele = document.createElement('div');
88
- ele.className = 'ol-map-point_animation';
89
- if (!point_overlay) {
90
- point_overlay = new _ol.Overlay({
91
- id: _id,
92
- element: ele,
93
- positioning: 'center-center',
94
- stopEvent: true,
95
- className: 'ol-overlay_container-stop_event'
96
- });
97
- _this.pointOverlay = point_overlay;
98
- }
99
- _this.map.addOverlay(point_overlay);
100
- point_overlay.setPosition(geometry.getFlatCoordinates());
101
- }
102
- }
103
- });
104
- _defineProperty(this, "setCenter", function (field, fieldName) {
105
- var filterField = fieldName || 'code';
106
- _this.clearSelectFeature();
107
- var newFeature;
108
- if (_this.feature && Array.isArray(_this.feature)) {
109
- newFeature = _this.feature.find(function (v) {
110
- return v.get(filterField) === field;
111
- });
112
- } else if (_this.feature && _this.feature.get(filterField) === field) {
113
- newFeature = _this.feature;
114
- }
115
- _this.selectFeature = newFeature;
116
- if (newFeature) {
117
- newFeature.setStyle();
118
- _this.map.getView(newFeature);
119
- _this.setSelectFeature(newFeature);
120
- } else {
121
- _antd.message.warning('地图上未查询到该数据,请检查是否配置坐标信息!');
122
- }
123
- });
124
- this.highStyle = new _style.Style({
125
- // 高亮样式
126
- image: new _style.Circle({
127
- radius: 7,
128
- fill: new _Fill["default"]({
129
- color: '#ff4d4f'
130
- }),
131
- stroke: new _style.Stroke({
132
- color: '#FFFFFF',
133
- width: 2
134
- })
135
- }),
136
- fill: new _Fill["default"]({
137
- color: '#ff4d4f',
138
- opacity: 0.5
139
- }),
140
- stroke: new _style.Stroke({
141
- color: '#ff4d4f',
142
- width: 5
143
- })
144
- });
145
- this.map = _options.map;
146
- this.feature = _options.feature;
147
- this.selectFeature = null;
148
- this.pointOverlay = null;
149
- this.source = new _source.Vector();
150
- this.layer = new _layer.Vector(_objectSpread({
151
- source: this.source,
152
- zIndex: 999,
153
- style: this.highStyle
154
- }, _options.parmas || {}));
155
- this.layer.key = 'Highlight';
156
- this.map.addLayer(this.layer);
157
- this.markerLayer = new _FeatureLayer["default"]({
158
- key: 'Highlight',
159
- zIndex: Infinity
160
- });
161
- this.map.addLayer(this.markerLayer);
162
- }
163
- return _createClass(Highlight, [{
164
- key: "clearSelectFeature",
165
- value: function clearSelectFeature() {
166
- if (this.selectFeature) {
167
- this.selectFeature.setStyle();
168
- this.selectFeature = null;
169
- }
170
- }
171
- }, {
172
- key: "clearFeatures",
173
- value: function clearFeatures() {
174
- this.markerLayer && this.markerLayer.getSource().clear();
175
- this.source && this.source.clear();
176
- this.pointOverlay && this.map.removeOverlay(this.pointOverlay);
177
- }
178
- }, {
179
- key: "setSelectFeature",
180
- value: function setSelectFeature(feature) {
181
- if (feature) {
182
- this.selectFeature = feature;
183
- this.selectFeature.setStyle(new _style.Style({
184
- image: new _style.Circle({
185
- radius: 7,
186
- fill: new _Fill["default"]({
187
- color: '#2491fc'
188
- }),
189
- stroke: new _style.Stroke({
190
- color: '#FFFFFF',
191
- width: 2
192
- })
193
- }),
194
- fill: new _Fill["default"]({
195
- color: '#2491fc'
196
- }),
197
- stroke: new _style.Stroke({
198
- color: '#2491fc',
199
- width: 4
200
- })
201
- }));
202
- }
203
- }
204
- }, {
205
- key: "destroy",
206
- value: function destroy() {
207
- this.map.removeLayer(this.layer);
208
- }
209
- }]);
210
- }();
211
- //# sourceMappingURL=HighLayer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HighLayer.js","names":["_antd","require","_source","_layer","_style","_Fill","_interopRequireDefault","_ol","_FeatureLayer","_lodash","e","__esModule","_typeof","o","Symbol","iterator","constructor","prototype","ownKeys","r","t","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_classCallCheck","a","n","TypeError","_defineProperties","configurable","writable","_toPropertyKey","key","_createClass","value","i","_toPrimitive","toPrimitive","call","String","Number","Highlight","exports","options","_this","feature","clearSelectFeature","clearFeatures","isEmpty","Array","isArray","map","v","addFeature","autoView","fitView","_feature","flag","clone","isHighLight","geometry","getGeometry","type","getType","addPointHighlight","layer","getLayerByFeature","FeatureLayer","markerLayer","_options","cluster","setZIndex","Infinity","getSource","setStyle","getStyleByMode","source","_id","get","point_overlay","getOverlayById","ele","document","createElement","className","Overlay","id","element","positioning","stopEvent","pointOverlay","addOverlay","setPosition","getFlatCoordinates","field","fieldName","filterField","newFeature","find","selectFeature","getView","setSelectFeature","message","warning","highStyle","Style","image","CircleStyle","radius","fill","Fill","color","stroke","Stroke","width","opacity","VectorSource","VectorLayer","zIndex","style","parmas","addLayer","clear","removeOverlay","destroy","removeLayer"],"sources":["tools/Utils/HighLayer.js"],"sourcesContent":["/**\n * 图层高亮操作\n */\nimport { message } from 'antd';\nimport { Vector as VectorSource } from 'ol/source';\nimport { Vector as VectorLayer } from 'ol/layer';\nimport { Style, Stroke, Circle as CircleStyle } from 'ol/style';\nimport Fill from '../../renderer/Fill';\nimport { Overlay } from 'ol';\nimport FeatureLayer from '../../feature-layer/FeatureLayer';\nimport { isEmpty } from 'lodash';\n\nexport default class Highlight {\n constructor(options) {\n this.highStyle = new Style({\n // 高亮样式\n image: new CircleStyle({\n radius: 7,\n fill: new Fill({\n color: '#ff4d4f',\n }),\n stroke: new Stroke({\n color: '#FFFFFF',\n width: 2,\n }),\n }),\n fill: new Fill({\n color: '#ff4d4f',\n opacity: 0.5,\n }),\n stroke: new Stroke({\n color: '#ff4d4f',\n width: 5,\n }),\n });\n this.map = options.map;\n this.feature = options.feature;\n this.selectFeature = null;\n this.pointOverlay = null;\n\n this.source = new VectorSource();\n this.layer = new VectorLayer({\n source: this.source,\n zIndex: 999,\n style: this.highStyle,\n ...(options.parmas || {}),\n });\n this.layer.key = 'Highlight';\n this.map.addLayer(this.layer);\n\n this.markerLayer = new FeatureLayer({\n key: 'Highlight',\n zIndex: Infinity,\n });\n this.map.addLayer(this.markerLayer);\n }\n\n // 高亮图层增加feature\n addHighlightFeature = (feature, options) => {\n this.feature = feature;\n this.clearSelectFeature();\n this.clearFeatures();\n\n if (isEmpty(feature)) return;\n // 数组高亮的话, 就是默认的红色高亮\n if (Array.isArray(feature)) {\n feature.map(v => {\n this.addFeature(v, true);\n });\n } else {\n this.addFeature(feature);\n }\n\n if (!options || options?.autoView) {\n this.map.fitView(feature, options || {});\n }\n\n // this.map.getView().fit(feature.values_.geometry.getExtent(), {\n // maxZoom: 18,\n // duration: 500,\n // });\n };\n\n addFeature = (_feature, flag) => {\n const feature = _feature.clone();\n feature.isHighLight = true;\n let geometry = feature?.getGeometry();\n let type = geometry?.getType();\n if (type === 'Point' && geometry && !flag) {\n this.addPointHighlight(feature);\n\n const layer = this.map.getLayerByFeature(_feature);\n if (layer && layer instanceof FeatureLayer) {\n this.markerLayer._options = layer._options;\n for (let i in layer._options) {\n this.markerLayer[i] = layer._options[i];\n }\n feature.key = layer.key;\n this.markerLayer.cluster = false;\n this.markerLayer.key = 'Highlight';\n this.markerLayer.setZIndex(Infinity);\n\n this.markerLayer.getSource().addFeature(feature);\n this.markerLayer.setStyle(this.markerLayer.getStyleByMode());\n }\n } else {\n this.source.addFeature(feature);\n }\n };\n\n // 点位高亮-扩散\n addPointHighlight = feature => {\n let _id = feature.get('id') || 'point_animation';\n this.clearFeatures();\n let point_overlay = this.map.getOverlayById(_id);\n\n if (feature) {\n let geometry = feature?.getGeometry();\n let type = geometry?.getType();\n if (type === 'Point' && geometry) {\n let ele = document.createElement('div');\n ele.className = 'ol-map-point_animation';\n\n if (!point_overlay) {\n point_overlay = new Overlay({\n id: _id,\n element: ele,\n positioning: 'center-center',\n stopEvent: true,\n className: 'ol-overlay_container-stop_event',\n });\n\n this.pointOverlay = point_overlay;\n }\n this.map.addOverlay(point_overlay);\n point_overlay.setPosition(geometry.getFlatCoordinates());\n }\n }\n };\n\n setCenter = (field, fieldName) => {\n let filterField = fieldName || 'code';\n this.clearSelectFeature();\n let newFeature;\n if (this.feature && Array.isArray(this.feature)) {\n newFeature = this.feature.find(v => {\n return v.get(filterField) === field;\n });\n } else if (this.feature && this.feature.get(filterField) === field) {\n newFeature = this.feature;\n }\n this.selectFeature = newFeature;\n if (newFeature) {\n newFeature.setStyle();\n this.map.getView(newFeature);\n\n this.setSelectFeature(newFeature);\n } else {\n message.warning('地图上未查询到该数据,请检查是否配置坐标信息!');\n }\n };\n\n clearSelectFeature() {\n if (this.selectFeature) {\n this.selectFeature.setStyle();\n this.selectFeature = null;\n }\n }\n\n clearFeatures() {\n this.markerLayer && this.markerLayer.getSource().clear();\n this.source && this.source.clear();\n this.pointOverlay && this.map.removeOverlay(this.pointOverlay);\n }\n\n setSelectFeature(feature) {\n if (feature) {\n this.selectFeature = feature;\n this.selectFeature.setStyle(\n new Style({\n image: new CircleStyle({\n radius: 7,\n fill: new Fill({\n color: '#2491fc',\n }),\n stroke: new Stroke({\n color: '#FFFFFF',\n width: 2,\n }),\n }),\n fill: new Fill({\n color: '#2491fc',\n }),\n stroke: new Stroke({\n color: '#2491fc',\n width: 4,\n }),\n }),\n );\n }\n }\n\n destroy() {\n this.map.removeLayer(this.layer);\n }\n}\n"],"mappings":";;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MA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AaA,CAAA,EAAG;MACZ,IAAI,CAACqB,WAAW,IAAI,IAAI,CAACA,WAAW,CAACK,SAAS,CAAC,CAAC,CAACiD,KAAK,CAAC,CAAC;MACxD,IAAI,CAAC9C,MAAM,IAAI,IAAI,CAACA,MAAM,CAAC8C,KAAK,CAAC,CAAC;MAClC,IAAI,CAAChC,YAAY,IAAI,IAAI,CAACvC,GAAG,CAACwE,aAAa,CAAC,IAAI,CAACjC,YAAY,CAAC;IAClE;EAAC;IAAA1D,GAAA;IAAAE,KAAA,EAED,SAAAmE,gBAAgBA,CAACxD,OAAO,EAAE;MACtB,IAAIA,OAAO,EAAE;QACT,IAAI,CAACsD,aAAa,GAAGtD,OAAO;QAC5B,IAAI,CAACsD,aAAa,CAACzB,QAAQ,CACvB,IAAI+B,YAAK,CAAC;UACNC,KAAK,EAAE,IAAIC,aAAW,CAAC;YACnBC,MAAM,EAAE,CAAC;YACTC,IAAI,EAAE,IAAIC,gBAAI,CAAC;cACXC,KAAK,EAAE;YACX,CAAC,CAAC;YACFC,MAAM,EAAE,IAAIC,aAAM,CAAC;cACfF,KAAK,EAAE,SAAS;cAChBG,KAAK,EAAE;YACX,CAAC;UACL,CAAC,CAAC;UACFL,IAAI,EAAE,IAAIC,gBAAI,CAAC;YACXC,KAAK,EAAE;UACX,CAAC,CAAC;UACFC,MAAM,EAAE,IAAIC,aAAM,CAAC;YACfF,KAAK,EAAE,SAAS;YAChBG,KAAK,EAAE;UACX,CAAC;QACL,CAAC,CACL,CAAC;MACL;IACJ;EAAC;IAAAlF,GAAA;IAAAE,KAAA,EAED,SAAA0F,OAAOA,CAAA,EAAG;MACN,IAAI,CAACzE,GAAG,CAAC0E,WAAW,CAAC,IAAI,CAAC5D,KAAK,CAAC;IACpC;EAAC;AAAA","ignoreList":[]}
@@ -1,246 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ol = require("ol");
8
- var _layer = require("ol/layer");
9
- var _source = require("ol/source");
10
- var _interaction = require("ol/interaction");
11
- var _Draw = require("ol/interaction/Draw");
12
- var _sphere = require("ol/sphere");
13
- var _Observable = require("ol/Observable");
14
- var _style = require("ol/style");
15
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
16
- 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."); }
17
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
18
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
19
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
20
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
21
- var source, vector, measureTooltip;
22
- var measureTooltipElement, draw, sketch;
23
- function Measure(props) {
24
- var map = props.map;
25
- var sourceProj = map.getView().getProjection();
26
- var doubleClickZoom = map.getInteractions().getArray().find(function (interaction) {
27
- return interaction instanceof _interaction.DoubleClickZoom;
28
- });
29
- source = new _source.Vector();
30
- function resetLayer() {
31
- vector && map.removeLayer(vector);
32
- vector = new _layer.Vector({
33
- source: source,
34
- style: new _style.Style({
35
- fill: new _style.Fill({
36
- color: 'rgba(255,255,255,0.2)'
37
- }),
38
- stroke: new _style.Stroke({
39
- color: '#ffcc33',
40
- width: 3
41
- }),
42
- image: new _style.Circle({
43
- radius: 7,
44
- fill: new _style.Fill({
45
- color: '#ffcc33'
46
- })
47
- })
48
- })
49
- });
50
- map.addLayer(vector);
51
- }
52
-
53
- // 生成面积或长度tooltip
54
- function createMeasureTooltip() {
55
- if (measureTooltip) {
56
- map.removeOverlay(measureTooltip);
57
- }
58
- if (measureTooltipElement) {
59
- measureTooltipElement.parentNode.removeChild(measureTooltipElement);
60
- }
61
- measureTooltipElement = document.createElement('div');
62
- measureTooltipElement.className = 'ol-tooltip ol-tooltip-measure';
63
- measureTooltip = new _ol.Overlay({
64
- element: measureTooltipElement,
65
- offset: [0, -15],
66
- positioning: 'bottom-center',
67
- stopEvent: false,
68
- insertFirst: false
69
- });
70
- map.addOverlay(measureTooltip);
71
- }
72
-
73
- // 获取面积
74
- function formatArea(polygon) {
75
- var area = (0, _sphere.getArea)(polygon, {
76
- projection: sourceProj
77
- });
78
- var output;
79
- if (area > 10000) {
80
- output = "".concat(Math.round(area / 1000000 * 100) / 100, " km<sup>2</sup>");
81
- } else {
82
- output = "".concat(Math.round(area * 100) / 100, " m<sup>2</sup>");
83
- }
84
- return output;
85
- }
86
-
87
- // 获取长度
88
- function formatLength(line) {
89
- var length = (0, _sphere.getLength)(line, {
90
- projection: sourceProj
91
- });
92
- var output;
93
- if (length > 100) {
94
- output = "".concat(Math.round(length / 1000 * 100) / 100, " km");
95
- } else {
96
- output = "".concat(Math.round(length * 100) / 100, " m");
97
- }
98
- return output;
99
- }
100
-
101
- // 测量
102
- function addInteraction() {
103
- var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'point';
104
- draw = new _interaction.Draw({
105
- source: source,
106
- type: type,
107
- style: new _style.Style({
108
- fill: new _style.Fill({
109
- color: 'rgba(255,255,255,0.2)'
110
- }),
111
- stroke: new _style.Stroke({
112
- color: 'rgba(0,0,0,0.5)',
113
- lineDash: [10, 10],
114
- width: 2
115
- }),
116
- image: new _style.Circle({
117
- radius: 5,
118
- stroke: new _style.Stroke({
119
- color: 'rgba(0,0,0,0.7)'
120
- }),
121
- fill: new _style.Fill({
122
- color: 'rgba(255,255,255,0.2)'
123
- })
124
- })
125
- })
126
- });
127
- map.addInteraction(draw);
128
- createMeasureTooltip();
129
- var listener;
130
- draw.on('drawstart', function (evt) {
131
- map.removeInteraction(doubleClickZoom);
132
- sketch = evt.feature;
133
- var tooltipCoord = evt.coordinate;
134
- listener = sketch.getGeometry().on('change', function (evt) {
135
- var geom = evt.target;
136
- var output;
137
- if (type === 'Polygon') {
138
- output = formatArea(geom);
139
- tooltipCoord = geom.getInteriorPoint().getCoordinates();
140
- } else if (type === 'LineString') {
141
- output = formatLength(geom);
142
- tooltipCoord = geom.getLastCoordinate();
143
- }
144
- measureTooltipElement.innerHTML = output;
145
- measureTooltip.setPosition(tooltipCoord);
146
- });
147
- });
148
- draw.on('drawend', function () {
149
- measureTooltipElement.className = 'ol-tooltip ol-tooltip-static';
150
- measureTooltip.setOffset([0, -7]);
151
- sketch = null;
152
- measureTooltipElement = null;
153
- (0, _Observable.unByKey)(listener);
154
- map.removeInteraction(draw);
155
- setTimeout(function () {
156
- map.addInteraction(doubleClickZoom);
157
- });
158
- });
159
- }
160
-
161
- // 框选 临时添加需优化
162
- function addFrameInteraction(callback) {
163
- draw = new _interaction.Draw({
164
- source: source,
165
- type: 'Circle',
166
- style: new _style.Style({
167
- fill: new _style.Fill({
168
- color: 'rgba(255,255,255,0.2)'
169
- }),
170
- stroke: new _style.Stroke({
171
- color: 'rgba(0,0,0,0.5)',
172
- lineDash: [10, 10],
173
- width: 2
174
- }),
175
- image: new _style.Circle({
176
- radius: 5,
177
- stroke: new _style.Stroke({
178
- color: 'rgba(0,0,0,0.7)'
179
- }),
180
- fill: new _style.Fill({
181
- color: 'rgba(255,255,255,0.2)'
182
- })
183
- })
184
- }),
185
- geometryFunction: (0, _Draw.createBox)()
186
- });
187
- map.addInteraction(draw);
188
- draw.on('drawend', function (evt) {
189
- var polygon = evt.feature.getGeometry();
190
- setTimeout(function () {
191
- var features = [];
192
- var extent = polygon.getExtent();
193
- var layers = map.getLayers(); // 获取所有图层
194
- var allLayers = layers.getArray();
195
- allLayers.map(function (item) {
196
- var name = item.get('name');
197
- // 过滤地图及标注
198
- if (name !== 'baseMap') {
199
- var feature = item.getSource().getFeaturesInExtent(extent);
200
- if (feature && feature.length) {
201
- features = [].concat(_toConsumableArray(features), _toConsumableArray(feature));
202
- }
203
- }
204
- });
205
- features.length = features.length - 1;
206
- map.removeInteraction(draw);
207
- callback && callback(features);
208
- });
209
- });
210
- }
211
-
212
- // 测距
213
- function measureLen() {
214
- map.removeInteraction(draw);
215
- resetLayer();
216
- addInteraction('LineString');
217
- }
218
-
219
- // 测面
220
- function measureArea() {
221
- map.removeInteraction(draw);
222
- resetLayer();
223
- addInteraction('Polygon');
224
- }
225
-
226
- // 框选
227
- function frameSelect(callback) {
228
- map.removeInteraction(draw);
229
- resetLayer();
230
- addFrameInteraction(callback);
231
- }
232
-
233
- // 清除绘制
234
- function clear() {
235
- map.removeInteraction(draw);
236
- resetLayer();
237
- }
238
- return {
239
- measureArea: measureArea,
240
- measureLen: measureLen,
241
- frameSelect: frameSelect,
242
- clear: clear
243
- };
244
- }
245
- var _default = exports["default"] = Measure;
246
- //# sourceMappingURL=measure.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"measure.js","names":["_ol","require","_layer","_source","_interaction","_Draw","_sphere","_Observable","_style","_toConsumableArray","r","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","a","_arrayLikeToArray","t","toString","call","slice","constructor","name","Array","from","test","Symbol","iterator","isArray","length","e","n","source","vector","measureTooltip","measureTooltipElement","draw","sketch","Measure","props","map","sourceProj","getView","getProjection","doubleClickZoom","getInteractions","getArray","find","interaction","DoubleClickZoom","VectorSource","resetLayer","removeLayer","VectorLayer","style","Style","fill","Fill","color","stroke","Stroke","width","image","CircleStyle","radius","addLayer","createMeasureTooltip","removeOverlay","parentNode","removeChild","document","createElement","className","Overlay","element","offset","positioning","stopEvent","insertFirst","addOverlay","formatArea","polygon","area","getArea","projection","output","concat","Math","round","formatLength","line","getLength","addInteraction","type","arguments","undefined","Draw","lineDash","listener","on","evt","removeInteraction","feature","tooltipCoord","coordinate","getGeometry","geom","target","getInteriorPoint","getCoordinates","getLastCoordinate","innerHTML","setPosition","setOffset","unByKey","setTimeout","addFrameInteraction","callback","geometryFunction","createBox","features","extent","getExtent","layers","getLayers","allLayers","item","get","getSource","getFeaturesInExtent","measureLen","measureArea","frameSelect","clear","_default","exports"],"sources":["tools/Utils/measure.js"],"sourcesContent":["import { Overlay } from 'ol';\r\nimport { Vector as VectorLayer } from 'ol/layer';\r\nimport { Vector as VectorSource } from 'ol/source';\r\nimport { Draw, DoubleClickZoom } from 'ol/interaction';\r\nimport { createBox } from 'ol/interaction/Draw';\r\nimport { getArea, getLength } from 'ol/sphere';\r\nimport { unByKey } from 'ol/Observable';\r\nimport { Circle as CircleStyle, Fill, Stroke, Style } from 'ol/style';\r\n\r\nlet source, vector, measureTooltip;\r\nlet measureTooltipElement, draw, sketch;\r\nfunction Measure(props) {\r\n let { map } = props;\r\n let sourceProj = map.getView().getProjection();\r\n let doubleClickZoom = map\r\n .getInteractions()\r\n .getArray()\r\n .find(interaction => {\r\n return interaction instanceof DoubleClickZoom;\r\n });\r\n source = new VectorSource();\r\n function resetLayer() {\r\n vector && map.removeLayer(vector);\r\n vector = new VectorLayer({\r\n source,\r\n style: new Style({\r\n fill: new Fill({\r\n color: 'rgba(255,255,255,0.2)',\r\n }),\r\n stroke: new Stroke({\r\n color: '#ffcc33',\r\n width: 3,\r\n }),\r\n image: new CircleStyle({\r\n radius: 7,\r\n fill: new Fill({\r\n color: '#ffcc33',\r\n }),\r\n }),\r\n }),\r\n });\r\n map.addLayer(vector);\r\n }\r\n\r\n // 生成面积或长度tooltip\r\n function createMeasureTooltip() {\r\n if (measureTooltip) {\r\n map.removeOverlay(measureTooltip);\r\n }\r\n if (measureTooltipElement) {\r\n measureTooltipElement.parentNode.removeChild(measureTooltipElement);\r\n }\r\n measureTooltipElement = document.createElement('div');\r\n measureTooltipElement.className = 'ol-tooltip ol-tooltip-measure';\r\n measureTooltip = new Overlay({\r\n element: measureTooltipElement,\r\n offset: [0, -15],\r\n positioning: 'bottom-center',\r\n stopEvent: false,\r\n insertFirst: false,\r\n });\r\n map.addOverlay(measureTooltip);\r\n }\r\n\r\n // 获取面积\r\n function formatArea(polygon) {\r\n const area = getArea(polygon, { projection: sourceProj });\r\n let output;\r\n if (area > 10000) {\r\n output = `${Math.round((area / 1000000) * 100) / 100} km<sup>2</sup>`;\r\n } else {\r\n output = `${Math.round(area * 100) / 100} m<sup>2</sup>`;\r\n }\r\n return output;\r\n }\r\n\r\n // 获取长度\r\n function formatLength(line) {\r\n const length = getLength(line, { projection: sourceProj });\r\n let output;\r\n if (length > 100) {\r\n output = `${Math.round((length / 1000) * 100) / 100} km`;\r\n } else {\r\n output = `${Math.round(length * 100) / 100} m`;\r\n }\r\n return output;\r\n }\r\n\r\n // 测量\r\n function addInteraction(type = 'point') {\r\n draw = new Draw({\r\n source,\r\n type,\r\n style: new Style({\r\n fill: new Fill({\r\n color: 'rgba(255,255,255,0.2)',\r\n }),\r\n stroke: new Stroke({\r\n color: 'rgba(0,0,0,0.5)',\r\n lineDash: [10, 10],\r\n width: 2,\r\n }),\r\n image: new CircleStyle({\r\n radius: 5,\r\n stroke: new Stroke({\r\n color: 'rgba(0,0,0,0.7)',\r\n }),\r\n fill: new Fill({\r\n color: 'rgba(255,255,255,0.2)',\r\n }),\r\n }),\r\n }),\r\n });\r\n map.addInteraction(draw);\r\n createMeasureTooltip();\r\n\r\n let listener;\r\n draw.on('drawstart', function(evt) {\r\n map.removeInteraction(doubleClickZoom);\r\n sketch = evt.feature;\r\n let tooltipCoord = evt.coordinate;\r\n listener = sketch.getGeometry().on('change', function(evt) {\r\n const geom = evt.target;\r\n let output;\r\n if (type === 'Polygon') {\r\n output = formatArea(geom);\r\n tooltipCoord = geom.getInteriorPoint().getCoordinates();\r\n } else if (type === 'LineString') {\r\n output = formatLength(geom);\r\n tooltipCoord = geom.getLastCoordinate();\r\n }\r\n measureTooltipElement.innerHTML = output;\r\n measureTooltip.setPosition(tooltipCoord);\r\n });\r\n });\r\n draw.on('drawend', function() {\r\n measureTooltipElement.className = 'ol-tooltip ol-tooltip-static';\r\n measureTooltip.setOffset([0, -7]);\r\n sketch = null;\r\n measureTooltipElement = null;\r\n unByKey(listener);\r\n map.removeInteraction(draw);\r\n setTimeout(() => {\r\n map.addInteraction(doubleClickZoom);\r\n });\r\n });\r\n }\r\n\r\n // 框选 临时添加需优化\r\n function addFrameInteraction(callback) {\r\n draw = new Draw({\r\n source,\r\n type: 'Circle',\r\n style: new Style({\r\n fill: new Fill({\r\n color: 'rgba(255,255,255,0.2)',\r\n }),\r\n stroke: new Stroke({\r\n color: 'rgba(0,0,0,0.5)',\r\n lineDash: [10, 10],\r\n width: 2,\r\n }),\r\n image: new CircleStyle({\r\n radius: 5,\r\n stroke: new Stroke({\r\n color: 'rgba(0,0,0,0.7)',\r\n }),\r\n fill: new Fill({\r\n color: 'rgba(255,255,255,0.2)',\r\n }),\r\n }),\r\n }),\r\n geometryFunction: createBox(),\r\n });\r\n map.addInteraction(draw);\r\n draw.on('drawend', function(evt) {\r\n let polygon = evt.feature.getGeometry();\r\n setTimeout(() => {\r\n let features = [];\r\n let extent = polygon.getExtent();\r\n let layers = map.getLayers(); // 获取所有图层\r\n let allLayers = layers.getArray();\r\n allLayers.map(item => {\r\n let name = item.get('name');\r\n // 过滤地图及标注\r\n if (name !== 'baseMap') {\r\n let feature = item.getSource().getFeaturesInExtent(extent);\r\n if (feature && feature.length) {\r\n features = [...features, ...feature];\r\n }\r\n }\r\n });\r\n features.length = features.length - 1;\r\n map.removeInteraction(draw);\r\n callback && callback(features);\r\n });\r\n });\r\n }\r\n\r\n // 测距\r\n function measureLen() {\r\n map.removeInteraction(draw);\r\n resetLayer();\r\n addInteraction('LineString');\r\n }\r\n\r\n // 测面\r\n function measureArea() {\r\n map.removeInteraction(draw);\r\n resetLayer();\r\n addInteraction('Polygon');\r\n }\r\n\r\n // 框选\r\n function frameSelect(callback) {\r\n map.removeInteraction(draw);\r\n resetLayer();\r\n addFrameInteraction(callback);\r\n }\r\n\r\n // 清除绘制\r\n function clear() {\r\n map.removeInteraction(draw);\r\n resetLayer();\r\n }\r\n\r\n return { measureArea, measureLen, frameSelect, clear };\r\n}\r\n\r\nexport default Measure;\r\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAAsE,SAAAQ,mBAAAC,CAAA,WAAAC,kBAAA,CAAAD,CAAA,KAAAE,gBAAA,CAAAF,CAAA,KAAAG,2BAAA,CAAAH,CAAA,KAAAI,kBAAA;AAAA,SAAAA,mBAAA,cAAAC,SAAA;AAAA,SAAAF,4BAAAH,CAAA,EAAAM,CAAA,QAAAN,CAAA,2BAAAA,CAAA,SAAAO,iBAAA,CAAAP,CAAA,EAAAM,CAAA,OAAAE,CAAA,MAAAC,QAAA,CAAAC,IAAA,CAAAV,CAAA,EAAAW,KAAA,6BAAAH,CAAA,IAAAR,CAAA,CAAAY,WAAA,KAAAJ,CAAA,GAAAR,CAAA,CAAAY,WAAA,CAAAC,IAAA,aAAAL,CAAA,cAAAA,CAAA,GAAAM,KAAA,CAAAC,IAAA,CAAAf,CAAA,oBAAAQ,CAAA,+CAAAQ,IAAA,CAAAR,CAAA,IAAAD,iBAAA,CAAAP,CAAA,EAAAM,CAAA;AAAA,SAAAJ,iBAAAF,CAAA,8BAAAiB,MAAA,YAAAjB,CAAA,CAAAiB,MAAA,CAAAC,QAAA,aAAAlB,CAAA,uBAAAc,KAAA,CAAAC,IAA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