@vtx/ol-map 1.0.146 → 1.0.148

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/README.md +205 -205
  2. package/lib/_util/EventEmitter.js +11 -13
  3. package/lib/_util/EventEmitter.js.map +1 -1
  4. package/lib/_util/StyleCache.js +8 -10
  5. package/lib/_util/StyleCache.js.map +1 -1
  6. package/lib/_util/encryptParams.js +17 -22
  7. package/lib/_util/encryptParams.js.map +1 -1
  8. package/lib/_util/filterSpecialCharacters.js +12 -12
  9. package/lib/_util/filterSpecialCharacters.js.map +1 -1
  10. package/lib/_util/getComponentProps.js +1 -1
  11. package/lib/_util/getComponentProps.js.map +1 -1
  12. package/lib/_util/getCookie.js +5 -6
  13. package/lib/_util/getCookie.js.map +1 -1
  14. package/lib/_util/getDefaultMapInfo.js +7 -8
  15. package/lib/_util/getDefaultMapInfo.js.map +1 -1
  16. package/lib/_util/getSystemInfo.js +7 -8
  17. package/lib/_util/getSystemInfo.js.map +1 -1
  18. package/lib/_util/getToken.js +2 -4
  19. package/lib/_util/getToken.js.map +1 -1
  20. package/lib/_util/getUrlParam.js +2 -3
  21. package/lib/_util/getUrlParam.js.map +1 -1
  22. package/lib/_util/http.js +30 -32
  23. package/lib/_util/http.js.map +1 -1
  24. package/lib/_util/isFunction.js.map +1 -1
  25. package/lib/_util/isObject.js.map +1 -1
  26. package/lib/_util/layer.js +33 -37
  27. package/lib/_util/layer.js.map +1 -1
  28. package/lib/_util/mapTool.js +36 -37
  29. package/lib/_util/mapTool.js.map +1 -1
  30. package/lib/_util/projzh/datum/bd-09.js +2 -3
  31. package/lib/_util/projzh/datum/bd-09.js.map +1 -1
  32. package/lib/_util/projzh/datum/gcj-02.js +1 -2
  33. package/lib/_util/projzh/datum/gcj-02.js.map +1 -1
  34. package/lib/_util/projzh/datum/index.js +2 -3
  35. package/lib/_util/projzh/datum/index.js.map +1 -1
  36. package/lib/_util/projzh/index.js +2 -3
  37. package/lib/_util/projzh/index.js.map +1 -1
  38. package/lib/_util/projzh/projection/baidu-mercator.js +1 -2
  39. package/lib/_util/projzh/projection/baidu-mercator.js.map +1 -1
  40. package/lib/_util/projzh/projection/index.js +2 -3
  41. package/lib/_util/projzh/projection/index.js.map +1 -1
  42. package/lib/_util/projzh/projection/spherical-mercator.js +1 -2
  43. package/lib/_util/projzh/projection/spherical-mercator.js.map +1 -1
  44. package/lib/_util/projzh/util.js +1 -2
  45. package/lib/_util/projzh/util.js.map +1 -1
  46. package/lib/_util/search.js +13 -16
  47. package/lib/_util/search.js.map +1 -1
  48. package/lib/_util/setCookie.js +5 -6
  49. package/lib/_util/setCookie.js.map +1 -1
  50. package/lib/_util/stringToFun.js +5 -5
  51. package/lib/_util/stringToFun.js.map +1 -1
  52. package/lib/_util/transform.js +9 -10
  53. package/lib/_util/transform.js.map +1 -1
  54. package/lib/_util/useColSize.js +2 -3
  55. package/lib/_util/useColSize.js.map +1 -1
  56. package/lib/_util/useInterval.js.map +1 -1
  57. package/lib/_util/useSet.js +12 -13
  58. package/lib/_util/useSet.js.map +1 -1
  59. package/lib/analysis-layer/index.js +44 -50
  60. package/lib/analysis-layer/index.js.map +1 -1
  61. package/lib/analysis-layer/style/css.js.map +1 -1
  62. package/lib/analysis-layer/style/index.js.map +1 -1
  63. package/lib/buffer-draw/BufferDraw.js +11 -13
  64. package/lib/buffer-draw/BufferDraw.js.map +1 -1
  65. package/lib/buffer-draw/index.js +9 -10
  66. package/lib/buffer-draw/index.js.map +1 -1
  67. package/lib/buffer-draw/style/css.js.map +1 -1
  68. package/lib/buffer-draw/style/index.js.map +1 -1
  69. package/lib/circle/Circle.js +22 -24
  70. package/lib/circle/Circle.js.map +1 -1
  71. package/lib/circle/index.js +3 -4
  72. package/lib/circle/index.js.map +1 -1
  73. package/lib/circle/style/css.js.map +1 -1
  74. package/lib/circle/style/index.js.map +1 -1
  75. package/lib/config.js +1 -2
  76. package/lib/config.js.map +1 -1
  77. package/lib/convertCamelToCSS.js +1 -2
  78. package/lib/convertCamelToCSS.js.map +1 -1
  79. package/lib/dom/Dom.js +19 -21
  80. package/lib/dom/Dom.js.map +1 -1
  81. package/lib/dom/index.js +10 -11
  82. package/lib/dom/index.js.map +1 -1
  83. package/lib/dom/style/css.js.map +1 -1
  84. package/lib/dom/style/index.js.map +1 -1
  85. package/lib/events/index.js +2 -4
  86. package/lib/events/index.js.map +1 -1
  87. package/lib/feature-draw/FeatureDraw.js +40 -46
  88. package/lib/feature-draw/FeatureDraw.js.map +1 -1
  89. package/lib/feature-draw/index.js +11 -11
  90. package/lib/feature-draw/index.js.map +1 -1
  91. package/lib/feature-draw/style/css.js.map +1 -1
  92. package/lib/feature-draw/style/index.js.map +1 -1
  93. package/lib/feature-layer/FeatureLayer.js +64 -65
  94. package/lib/feature-layer/FeatureLayer.js.map +1 -1
  95. package/lib/feature-layer/MyCluster.js +28 -31
  96. package/lib/feature-layer/MyCluster.js.map +1 -1
  97. package/lib/feature-layer/createFeatureCollection.js +39 -47
  98. package/lib/feature-layer/createFeatureCollection.js.map +1 -1
  99. package/lib/feature-layer/index.js +15 -16
  100. package/lib/feature-layer/index.js.map +1 -1
  101. package/lib/feature-layer/style/css.js.map +1 -1
  102. package/lib/feature-layer/style/index.js.map +1 -1
  103. package/lib/flow-line-layer/FlowLineLayer.js +22 -25
  104. package/lib/flow-line-layer/FlowLineLayer.js.map +1 -1
  105. package/lib/flow-line-layer/index.js +15 -16
  106. package/lib/flow-line-layer/index.js.map +1 -1
  107. package/lib/flow-line-layer/style/css.js.map +1 -1
  108. package/lib/flow-line-layer/style/index.js.map +1 -1
  109. package/lib/fly-line-layer/FlyLineLayer.js +12 -14
  110. package/lib/fly-line-layer/FlyLineLayer.js.map +1 -1
  111. package/lib/fly-line-layer/index.js +8 -9
  112. package/lib/fly-line-layer/index.js.map +1 -1
  113. package/lib/fly-line-layer/style/css.js.map +1 -1
  114. package/lib/fly-line-layer/style/index.js.map +1 -1
  115. package/lib/group-layer/GroupLayer.js +10 -12
  116. package/lib/group-layer/GroupLayer.js.map +1 -1
  117. package/lib/group-layer/index.js +8 -9
  118. package/lib/group-layer/index.js.map +1 -1
  119. package/lib/group-layer/style/css.js.map +1 -1
  120. package/lib/group-layer/style/index.js.map +1 -1
  121. package/lib/heatmap-layer/HeatmapLayer.js +29 -30
  122. package/lib/heatmap-layer/HeatmapLayer.js.map +1 -1
  123. package/lib/heatmap-layer/index.js +8 -9
  124. package/lib/heatmap-layer/index.js.map +1 -1
  125. package/lib/heatmap-layer/style/css.js.map +1 -1
  126. package/lib/heatmap-layer/style/index.js.map +1 -1
  127. package/lib/high-layer/HighLayer.js +13 -15
  128. package/lib/high-layer/HighLayer.js.map +1 -1
  129. package/lib/high-layer/index.js +11 -13
  130. package/lib/high-layer/index.js.map +1 -1
  131. package/lib/high-layer/style/css.js.map +1 -1
  132. package/lib/high-layer/style/index.js.map +1 -1
  133. package/lib/image-layer/ImageLayer.js +31 -33
  134. package/lib/image-layer/ImageLayer.js.map +1 -1
  135. package/lib/image-layer/ImageTileLayer.js +31 -33
  136. package/lib/image-layer/ImageTileLayer.js.map +1 -1
  137. package/lib/image-layer/index.js +10 -11
  138. package/lib/image-layer/index.js.map +1 -1
  139. package/lib/image-layer/style/css.js.map +1 -1
  140. package/lib/image-layer/style/index.js.map +1 -1
  141. package/lib/index.js +1 -1
  142. package/lib/index.js.map +1 -1
  143. package/lib/legend/index.js +20 -23
  144. package/lib/legend/index.js.map +1 -1
  145. package/lib/legend/style/css.js.map +1 -1
  146. package/lib/legend/style/index.js.map +1 -1
  147. package/lib/legend/style/index.less +100 -100
  148. package/lib/map/Analysis.js +24 -27
  149. package/lib/map/Analysis.js.map +1 -1
  150. package/lib/map/Layers.js +24 -28
  151. package/lib/map/Layers.js.map +1 -1
  152. package/lib/map/Popup.js +22 -24
  153. package/lib/map/Popup.js.map +1 -1
  154. package/lib/map/ScaleDenominator.js +9 -11
  155. package/lib/map/ScaleDenominator.js.map +1 -1
  156. package/lib/map/Test.js +12 -14
  157. package/lib/map/Test.js.map +1 -1
  158. package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js +1 -2
  159. package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js.map +1 -1
  160. package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js +2 -3
  161. package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js.map +1 -1
  162. package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js +8 -10
  163. package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js.map +1 -1
  164. package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js +7 -9
  165. package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js.map +1 -1
  166. package/lib/map/getBaseLayers/index.js +11 -13
  167. package/lib/map/getBaseLayers/index.js.map +1 -1
  168. package/lib/map/index.js +67 -70
  169. package/lib/map/index.js.map +1 -1
  170. package/lib/map/style/css.js.map +1 -1
  171. package/lib/map/style/index.js.map +1 -1
  172. package/lib/map/style/index.less +152 -152
  173. package/lib/map-icon/svg/index.js +2 -3
  174. package/lib/map-icon/svg/index.js.map +1 -1
  175. package/lib/map-icon/svg/tuceng.svg.js.map +1 -1
  176. package/lib/marker/Marker.js +23 -26
  177. package/lib/marker/Marker.js.map +1 -1
  178. package/lib/marker/index.js +3 -4
  179. package/lib/marker/index.js.map +1 -1
  180. package/lib/marker/style/css.js.map +1 -1
  181. package/lib/marker/style/index.js.map +1 -1
  182. package/lib/path-line-layer/PathLineLayer.js +21 -23
  183. package/lib/path-line-layer/PathLineLayer.js.map +1 -1
  184. package/lib/path-line-layer/getPathLineStyles.js +8 -9
  185. package/lib/path-line-layer/getPathLineStyles.js.map +1 -1
  186. package/lib/path-line-layer/index.js +15 -16
  187. package/lib/path-line-layer/index.js.map +1 -1
  188. package/lib/path-line-layer/style/css.js.map +1 -1
  189. package/lib/path-line-layer/style/index.js.map +1 -1
  190. package/lib/path-play-back/PathPlayBack.js +51 -28
  191. package/lib/path-play-back/PathPlayBack.js.map +1 -1
  192. package/lib/path-play-back/index.js +17 -10
  193. package/lib/path-play-back/index.js.map +1 -1
  194. package/lib/path-play-back/style/css.js.map +1 -1
  195. package/lib/path-play-back/style/index.js.map +1 -1
  196. package/lib/poi-search/Location.js +7 -8
  197. package/lib/poi-search/Location.js.map +1 -1
  198. package/lib/poi-search/PoiList.js +9 -10
  199. package/lib/poi-search/PoiList.js.map +1 -1
  200. package/lib/poi-search/Search.js +20 -21
  201. package/lib/poi-search/Search.js.map +1 -1
  202. package/lib/poi-search/index.js +9 -11
  203. package/lib/poi-search/index.js.map +1 -1
  204. package/lib/poi-search/style/css.js.map +1 -1
  205. package/lib/poi-search/style/index.js.map +1 -1
  206. package/lib/poi-search/style/index.less +97 -97
  207. package/lib/point/Point.js +22 -24
  208. package/lib/point/Point.js.map +1 -1
  209. package/lib/point/index.js +3 -4
  210. package/lib/point/index.js.map +1 -1
  211. package/lib/point/style/css.js.map +1 -1
  212. package/lib/point/style/index.js.map +1 -1
  213. package/lib/polygon/Polygon.js +22 -24
  214. package/lib/polygon/Polygon.js.map +1 -1
  215. package/lib/polygon/index.js +3 -4
  216. package/lib/polygon/index.js.map +1 -1
  217. package/lib/polygon/style/css.js.map +1 -1
  218. package/lib/polygon/style/index.js.map +1 -1
  219. package/lib/polyline/Polyline.js +22 -24
  220. package/lib/polyline/Polyline.js.map +1 -1
  221. package/lib/polyline/index.js +3 -4
  222. package/lib/polyline/index.js.map +1 -1
  223. package/lib/polyline/style/css.js.map +1 -1
  224. package/lib/polyline/style/index.js.map +1 -1
  225. package/lib/popup/index.js +14 -16
  226. package/lib/popup/index.js.map +1 -1
  227. package/lib/popup/style/css.js.map +1 -1
  228. package/lib/popup/style/index.js.map +1 -1
  229. package/lib/popup/style/index.less +129 -129
  230. package/lib/provider/index.js +3 -5
  231. package/lib/provider/index.js.map +1 -1
  232. package/lib/provider/style/css.js.map +1 -1
  233. package/lib/provider/style/index.js.map +1 -1
  234. package/lib/renderer/Fill.js +17 -19
  235. package/lib/renderer/Fill.js.map +1 -1
  236. package/lib/renderer/Stroke.js +17 -19
  237. package/lib/renderer/Stroke.js.map +1 -1
  238. package/lib/renderer/index.js +12 -15
  239. package/lib/renderer/index.js.map +1 -1
  240. package/lib/renderer/style/css.js.map +1 -1
  241. package/lib/renderer/style/index.js.map +1 -1
  242. package/lib/renderer/transformRgb.js +1 -2
  243. package/lib/renderer/transformRgb.js.map +1 -1
  244. package/lib/search-map/VtxModal.js +22 -25
  245. package/lib/search-map/VtxModal.js.map +1 -1
  246. package/lib/search-map/index.js +175 -98
  247. package/lib/search-map/index.js.map +1 -1
  248. package/lib/search-map/style/css.js.map +1 -1
  249. package/lib/search-map/style/index.js.map +1 -1
  250. package/lib/search-map/style/index.less +82 -82
  251. package/lib/search-map/style/modal.less +58 -58
  252. package/lib/style/index.less +2 -2
  253. package/lib/style/themes/compact.less +1 -1
  254. package/lib/style/themes/dark.less +9 -9
  255. package/lib/style/themes/default.less +7 -7
  256. package/lib/style/themes/index.less +1 -1
  257. package/lib/style/themes/variable.less +5 -5
  258. package/lib/tile-layer/TileLayer.js +21 -24
  259. package/lib/tile-layer/TileLayer.js.map +1 -1
  260. package/lib/tile-layer/index.js +3 -4
  261. package/lib/tile-layer/index.js.map +1 -1
  262. package/lib/tile-layer/style/css.js.map +1 -1
  263. package/lib/tile-layer/style/index.js.map +1 -1
  264. package/lib/tools/Layer/LayerService.js +8 -9
  265. package/lib/tools/Layer/LayerService.js.map +1 -1
  266. package/lib/tools/Layer/LayersCheckService.js +32 -39
  267. package/lib/tools/Layer/LayersCheckService.js.map +1 -1
  268. package/lib/tools/Layer/index.js +14 -15
  269. package/lib/tools/Layer/index.js.map +1 -1
  270. package/lib/tools/Layer/index.less +43 -43
  271. package/lib/tools/Search/index.js +18 -21
  272. package/lib/tools/Search/index.js.map +1 -1
  273. package/lib/tools/Toolbox/BoxSelect/index.js +5 -6
  274. package/lib/tools/Toolbox/BoxSelect/index.js.map +1 -1
  275. package/lib/tools/Toolbox/CircleSelect/index.js +5 -6
  276. package/lib/tools/Toolbox/CircleSelect/index.js.map +1 -1
  277. package/lib/tools/Toolbox/EagleEye/index.js +9 -11
  278. package/lib/tools/Toolbox/EagleEye/index.js.map +1 -1
  279. package/lib/tools/Toolbox/MapBookmark/Bookmark.js +44 -50
  280. package/lib/tools/Toolbox/MapBookmark/Bookmark.js.map +1 -1
  281. package/lib/tools/Toolbox/MapBookmark/index.js +34 -36
  282. package/lib/tools/Toolbox/MapBookmark/index.js.map +1 -1
  283. package/lib/tools/Toolbox/MapBookmark/index.less +20 -20
  284. package/lib/tools/Toolbox/MapDownload/index.js +2 -2
  285. package/lib/tools/Toolbox/MapDownload/index.js.map +1 -1
  286. package/lib/tools/Toolbox/MapPrint/index.js +33 -36
  287. package/lib/tools/Toolbox/MapPrint/index.js.map +1 -1
  288. package/lib/tools/Toolbox/MapPrint/index.less +4 -4
  289. package/lib/tools/Toolbox/Measure/Area/index.js +3 -4
  290. package/lib/tools/Toolbox/Measure/Area/index.js.map +1 -1
  291. package/lib/tools/Toolbox/Measure/Distance/index.js +3 -4
  292. package/lib/tools/Toolbox/Measure/Distance/index.js.map +1 -1
  293. package/lib/tools/Toolbox/Measure/Measure.js +8 -10
  294. package/lib/tools/Toolbox/Measure/Measure.js.map +1 -1
  295. package/lib/tools/Toolbox/Measure/index.js +12 -14
  296. package/lib/tools/Toolbox/Measure/index.js.map +1 -1
  297. package/lib/tools/Toolbox/PolygonSelect/index.js +5 -6
  298. package/lib/tools/Toolbox/PolygonSelect/index.js.map +1 -1
  299. package/lib/tools/Toolbox/ScaleLine/index.js +9 -11
  300. package/lib/tools/Toolbox/ScaleLine/index.js.map +1 -1
  301. package/lib/tools/Toolbox/SelectTools/index.js +59 -62
  302. package/lib/tools/Toolbox/SelectTools/index.js.map +1 -1
  303. package/lib/tools/Toolbox/SelectTools/index.less +87 -87
  304. package/lib/tools/Toolbox/SpaceQuery/index.js +24 -25
  305. package/lib/tools/Toolbox/SpaceQuery/index.js.map +1 -1
  306. package/lib/tools/Toolbox/SpaceQuery/index.less +16 -16
  307. package/lib/tools/Toolbox/ZoomInput/index.js +9 -11
  308. package/lib/tools/Toolbox/ZoomInput/index.js.map +1 -1
  309. package/lib/tools/Toolbox/ZoomInput/index.less +5 -5
  310. package/lib/tools/Toolbox/index.js +7 -10
  311. package/lib/tools/Toolbox/index.js.map +1 -1
  312. package/lib/tools/Toolbox/index.less +2 -2
  313. package/lib/tools/Utils/CreateOverlay.js +10 -11
  314. package/lib/tools/Utils/CreateOverlay.js.map +1 -1
  315. package/lib/tools/Utils/Draw.js +16 -19
  316. package/lib/tools/Utils/Draw.js.map +1 -1
  317. package/lib/tools/Utils/HighLayer.js +14 -16
  318. package/lib/tools/Utils/HighLayer.js.map +1 -1
  319. package/lib/tools/Utils/measure.js +6 -7
  320. package/lib/tools/Utils/measure.js.map +1 -1
  321. package/lib/tools/Utils/utils.js +36 -45
  322. package/lib/tools/Utils/utils.js.map +1 -1
  323. package/lib/tools/View/index.js +14 -16
  324. package/lib/tools/View/index.js.map +1 -1
  325. package/lib/tools/View/index.less +28 -28
  326. package/lib/tools/analysis-tool/index.js +18 -20
  327. package/lib/tools/analysis-tool/index.js.map +1 -1
  328. package/lib/tools/base-map-switch/index.js +27 -17
  329. package/lib/tools/base-map-switch/index.js.map +1 -1
  330. package/lib/tools/components/Chart/index.js +129 -140
  331. package/lib/tools/components/Chart/index.js.map +1 -1
  332. package/lib/tools/components/Icon/index.js +2 -3
  333. package/lib/tools/components/Icon/index.js.map +1 -1
  334. package/lib/tools/components/Info/index.js +2 -3
  335. package/lib/tools/components/Info/index.js.map +1 -1
  336. package/lib/tools/components/Info/index.less +26 -26
  337. package/lib/tools/components/ItemWrap/index.js +9 -11
  338. package/lib/tools/components/ItemWrap/index.js.map +1 -1
  339. package/lib/tools/components/ItemWrap/index.less +41 -41
  340. package/lib/tools/components/Modal/index.js +10 -11
  341. package/lib/tools/components/Modal/index.js.map +1 -1
  342. package/lib/tools/components/Modal/index.less +33 -33
  343. package/lib/tools/components/MyTabs/index.js +1 -1
  344. package/lib/tools/components/MyTabs/index.js.map +1 -1
  345. package/lib/tools/components/RequiredLabel/index.js +7 -7
  346. package/lib/tools/components/RequiredLabel/index.js.map +1 -1
  347. package/lib/tools/components/RequiredLabel/index.less +5 -5
  348. package/lib/tools/components/Select/index.js +2 -3
  349. package/lib/tools/components/Select/index.js.map +1 -1
  350. package/lib/tools/components/Table/index.js +17 -19
  351. package/lib/tools/components/Table/index.js.map +1 -1
  352. package/lib/tools/components/Table/index.less +13 -13
  353. package/lib/tools/components/ToolItem/index.js +2 -3
  354. package/lib/tools/components/ToolItem/index.js.map +1 -1
  355. package/lib/tools/components/ToolItem/index.less +27 -27
  356. package/lib/tools/components/ToolsSelect/index.js +2 -3
  357. package/lib/tools/components/ToolsSelect/index.js.map +1 -1
  358. package/lib/tools/components/ToolsSelect/index.less +10 -10
  359. package/lib/tools/full-screen/index.js +10 -12
  360. package/lib/tools/full-screen/index.js.map +1 -1
  361. package/lib/tools/index.js +10 -11
  362. package/lib/tools/index.js.map +1 -1
  363. package/lib/tools/layer-control/index.js +22 -26
  364. package/lib/tools/layer-control/index.js.map +1 -1
  365. package/lib/tools/refresh/index.js +10 -12
  366. package/lib/tools/refresh/index.js.map +1 -1
  367. package/lib/tools/style/css.js.map +1 -1
  368. package/lib/tools/style/index.js.map +1 -1
  369. package/lib/tools/style/index.less +154 -154
  370. package/lib/tools-item/index.js +9 -11
  371. package/lib/tools-item/index.js.map +1 -1
  372. package/lib/use-props/index.js +1 -2
  373. package/lib/use-props/index.js.map +1 -1
  374. package/lib/use-props/style/css.js.map +1 -1
  375. package/lib/use-props/style/index.js.map +1 -1
  376. package/lib/wms-layer/WmsLayer.js +31 -33
  377. package/lib/wms-layer/WmsLayer.js.map +1 -1
  378. package/lib/wms-layer/index.js +10 -11
  379. package/lib/wms-layer/index.js.map +1 -1
  380. package/lib/wms-layer/style/css.js.map +1 -1
  381. package/lib/wms-layer/style/index.js.map +1 -1
  382. package/package.json +120 -120
@@ -1,154 +1,154 @@
1
- .ol-map-tools {
2
- position: absolute;
3
- background: #fff;
4
- padding: 0;
5
- margin: 0;
6
- box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.26);
7
-
8
- .ol-map-tools-open {
9
- opacity: 1;
10
- transition: max-height 0.3s, opacity 0.3s;
11
- }
12
-
13
- .ol-map-tools-close {
14
- max-height: 0;
15
- opacity: 0;
16
- overflow: hidden;
17
- }
18
- }
19
-
20
- .ol-map-tools-layer-tree-wrap {
21
- max-height: 400px;
22
- overflow-y: auto;
23
- background: transparent;
24
-
25
- &::-webkit-scrollbar {
26
- /*滚动条整体样式*/
27
- width: 0; /*高宽分别对应横竖滚动条的尺寸*/
28
- height: 0;
29
- }
30
-
31
- .ol-map-tools-layer-tree {
32
- background: transparent;
33
- color: #fff;
34
-
35
- .ant-tree-icon__customize {
36
- margin-right: 4px;
37
-
38
- .ol-map-tools-layer-tree-legend {
39
- max-height: 24px;
40
- padding-bottom: 4px;
41
- }
42
- }
43
- }
44
- }
45
-
46
- .base-map-switch-list-wrap {
47
- width: 300px;
48
-
49
- .base-map-switch-list-title {
50
- font-size: 18px;
51
- }
52
-
53
- .base-map-switch-list {
54
- max-height: 400px;
55
- overflow-y: scroll;
56
-
57
- &::-webkit-scrollbar {
58
- /*滚动条整体样式*/
59
- width: 0;
60
- /*高宽分别对应横竖滚动条的尺寸*/
61
- height: 0;
62
- }
63
-
64
- .base-map-switch-list-label {
65
- font-size: 14px;
66
- margin: 5px 0;
67
- }
68
-
69
- .base-map-switch-list-item-wrap {
70
- // border: 1px solid #999;
71
- border-radius: 5px;
72
- padding: 5px;
73
- }
74
-
75
- .base-map-switch-list-item {
76
- cursor: pointer;
77
-
78
- .base-map-switch-list-item-img {
79
- width: 100%;
80
- border: solid 1px #999;
81
- border-radius: 9px;
82
- }
83
-
84
- .base-map-switch-list-item-label {
85
- margin-top: 4px;
86
- text-align: center;
87
- font-size: 12px;
88
- // color: #FFF;
89
- }
90
-
91
- &:hover {
92
- .base-map-switch-list-item-img {
93
- border-color: #fff;
94
- box-shadow: 0 0 8px #fff, 0 0 8px #fff;
95
- }
96
- }
97
- }
98
-
99
- .base-map-switch-list-item-active {
100
- .base-map-switch-list-item-img {
101
- border: double 4px #0080ff;
102
- }
103
-
104
- .base-map-switch-list-item-label {
105
- color: #0080ff;
106
- }
107
-
108
- &:hover {
109
- .base-map-switch-list-item-img {
110
- border: double 4px #0080ff;
111
- }
112
-
113
- .base-map-switch-list-item-label {
114
- color: #0080ff;
115
- }
116
- }
117
- }
118
- }
119
- }
120
-
121
- .analysis-tool-list {
122
- max-height: 60vh;
123
- user-select: none;
124
-
125
- overflow-y: auto;
126
-
127
- .anticon {
128
- padding-right: 6px;
129
- }
130
-
131
- .analysis-tool-list-title {
132
- display: flex;
133
- align-items: center;
134
- font-weight: bold;
135
- }
136
-
137
- .analysis-tool-list-sub {
138
- margin-left: 8px;
139
-
140
- .analysis-tool-list-sub-item {
141
- display: flex;
142
- align-items: center;
143
- cursor: pointer;
144
- padding: 5px 8px;
145
- border-bottom: 1px dashed #cccccc;
146
- font-size: 14px;
147
- user-select: none;
148
- }
149
-
150
- .analysis-tool-list-sub-item-active {
151
- background: #aedcff;
152
- }
153
- }
154
- }
1
+ .ol-map-tools {
2
+ position: absolute;
3
+ background: #fff;
4
+ padding: 0;
5
+ margin: 0;
6
+ box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.26);
7
+
8
+ .ol-map-tools-open {
9
+ opacity: 1;
10
+ transition: max-height 0.3s, opacity 0.3s;
11
+ }
12
+
13
+ .ol-map-tools-close {
14
+ max-height: 0;
15
+ opacity: 0;
16
+ overflow: hidden;
17
+ }
18
+ }
19
+
20
+ .ol-map-tools-layer-tree-wrap {
21
+ max-height: 400px;
22
+ overflow-y: auto;
23
+ background: transparent;
24
+
25
+ &::-webkit-scrollbar {
26
+ /*滚动条整体样式*/
27
+ width: 0; /*高宽分别对应横竖滚动条的尺寸*/
28
+ height: 0;
29
+ }
30
+
31
+ .ol-map-tools-layer-tree {
32
+ background: transparent;
33
+ color: #fff;
34
+
35
+ .ant-tree-icon__customize {
36
+ margin-right: 4px;
37
+
38
+ .ol-map-tools-layer-tree-legend {
39
+ max-height: 24px;
40
+ padding-bottom: 4px;
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ .base-map-switch-list-wrap {
47
+ width: 300px;
48
+
49
+ .base-map-switch-list-title {
50
+ font-size: 18px;
51
+ }
52
+
53
+ .base-map-switch-list {
54
+ max-height: 400px;
55
+ overflow-y: scroll;
56
+
57
+ &::-webkit-scrollbar {
58
+ /*滚动条整体样式*/
59
+ width: 0;
60
+ /*高宽分别对应横竖滚动条的尺寸*/
61
+ height: 0;
62
+ }
63
+
64
+ .base-map-switch-list-label {
65
+ font-size: 14px;
66
+ margin: 5px 0;
67
+ }
68
+
69
+ .base-map-switch-list-item-wrap {
70
+ // border: 1px solid #999;
71
+ border-radius: 5px;
72
+ padding: 5px;
73
+ }
74
+
75
+ .base-map-switch-list-item {
76
+ cursor: pointer;
77
+
78
+ .base-map-switch-list-item-img {
79
+ width: 100%;
80
+ border: solid 1px #999;
81
+ border-radius: 9px;
82
+ }
83
+
84
+ .base-map-switch-list-item-label {
85
+ margin-top: 4px;
86
+ text-align: center;
87
+ font-size: 12px;
88
+ // color: #FFF;
89
+ }
90
+
91
+ &:hover {
92
+ .base-map-switch-list-item-img {
93
+ border-color: #fff;
94
+ box-shadow: 0 0 8px #fff, 0 0 8px #fff;
95
+ }
96
+ }
97
+ }
98
+
99
+ .base-map-switch-list-item-active {
100
+ .base-map-switch-list-item-img {
101
+ border: double 4px #0080ff;
102
+ }
103
+
104
+ .base-map-switch-list-item-label {
105
+ color: #0080ff;
106
+ }
107
+
108
+ &:hover {
109
+ .base-map-switch-list-item-img {
110
+ border: double 4px #0080ff;
111
+ }
112
+
113
+ .base-map-switch-list-item-label {
114
+ color: #0080ff;
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
120
+
121
+ .analysis-tool-list {
122
+ max-height: 60vh;
123
+ user-select: none;
124
+
125
+ overflow-y: auto;
126
+
127
+ .anticon {
128
+ padding-right: 6px;
129
+ }
130
+
131
+ .analysis-tool-list-title {
132
+ display: flex;
133
+ align-items: center;
134
+ font-weight: bold;
135
+ }
136
+
137
+ .analysis-tool-list-sub {
138
+ margin-left: 8px;
139
+
140
+ .analysis-tool-list-sub-item {
141
+ display: flex;
142
+ align-items: center;
143
+ cursor: pointer;
144
+ padding: 5px 8px;
145
+ border-bottom: 1px dashed #cccccc;
146
+ font-size: 14px;
147
+ user-select: none;
148
+ }
149
+
150
+ .analysis-tool-list-sub-item-active {
151
+ background: #aedcff;
152
+ }
153
+ }
154
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
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
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -10,15 +10,14 @@ var _antd = require("antd");
10
10
  var _icons = require("@ant-design/icons");
11
11
  var _classnames = _interopRequireDefault(require("classnames"));
12
12
  var _lodash = require("lodash");
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(); }
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
17
16
  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(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
21
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
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 _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; }
19
+ 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; } }
20
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
22
21
  var ToolsItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
23
22
  var hideCloseBtn = props.hideCloseBtn,
24
23
  children = props.children;
@@ -62,6 +61,5 @@ var ToolsItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
62
61
  })
63
62
  }, children));
64
63
  });
65
- var _default = ToolsItem;
66
- exports["default"] = _default;
64
+ var _default = exports["default"] = ToolsItem;
67
65
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_antd","_icons","_classnames","_interopRequireDefault","_lodash","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","_i","Symbol","iterator","_s","_e","_x","_r","_arr","_n","_d","next","done","push","value","err","isArray","ToolsItem","forwardRef","props","ref","hideCloseBtn","children","_useState","useState","_useState2","visible","setVisible","useImperativeHandle","onVisibleChange","arguments","undefined","content","createElement","className","classnames","Fragment","CloseOutlined","onClick","isFunction","Popover","placement","trigger","overlayClassName","_default","exports"],"sources":["tools-item/index.js"],"sourcesContent":["import React, { useState, useImperativeHandle, forwardRef } from 'react';\nimport { Popover } from 'antd';\nimport { CloseOutlined } from '@ant-design/icons';\nimport classnames from 'classnames';\nimport { isFunction } from 'lodash';\n\nconst ToolsItem = forwardRef((props, ref) => {\n const { hideCloseBtn, children } = props;\n const [visible, setVisible] = useState(false);\n\n useImperativeHandle(ref, () => ({\n onVisibleChange: (visible = false) => {\n setVisible(visible);\n },\n }));\n\n if (!props.content) {\n return (\n <li className={classnames('ol-map-tools-item', { 'ol-map-tools-active-item': visible })}>\n {children}\n </li>\n );\n }\n\n const content = () => (\n <>\n {!hideCloseBtn && (\n <CloseOutlined\n className={classnames('ol-map-tools-close-btn')}\n onClick={() => setVisible(false)}\n />\n )}\n\n {props.content && (isFunction(props.content) ? props.content() : props.content)}\n </>\n );\n return (\n <Popover\n visible={visible}\n placement=\"rightTop\"\n trigger=\"click\"\n content={content}\n onVisibleChange={setVisible}\n overlayClassName={classnames('ol-map-tools-item-popover')}\n >\n <li className={classnames('ol-map-tools-item', { 'ol-map-tools-active-item': visible })}>\n {children}\n </li>\n </Popover>\n );\n});\n\nexport default ToolsItem;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAAoC,SAAAI,uBAAAE,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,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ACa,OAAO,KAAK,IAAAO,kBAAU,EAACpB,KAAK,CAACa,OAAO,CAAC,GAAGb,KAAK,CAACa,OAAO,CAAC,CAAC,GAAGb,KAAK,CAACa,OAAO,CAChF,CAAC;EAAA,CACN;EACD,oBACInF,MAAA,YAAAoF,aAAA,CAACjF,KAAA,CAAAwF,OAAO;IACJd,OAAO,EAAEA,OAAQ;IACjBe,SAAS,EAAC,UAAU;IACpBC,OAAO,EAAC,OAAO;IACfV,OAAO,EAAEA,OAAQ;IACjBH,eAAe,EAAEF,UAAW;IAC5BgB,gBAAgB,EAAE,IAAAR,sBAAU,EAAC,2BAA2B;EAAE,gBAE1DtF,MAAA,YAAAoF,aAAA;IAAIC,SAAS,EAAE,IAAAC,sBAAU,EAAC,mBAAmB,EAAE;MAAE,0BAA0B,EAAET;IAAQ,CAAC;EAAE,GACnFJ,QACD,CACC,CAAC;AAElB,CAAC,CAAC;AAAC,IAAAsB,QAAA,GAEY3B,SAAS;AAAA4B,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_antd","_icons","_classnames","_interopRequireDefault","_lodash","e","__esModule","t","WeakMap","r","n","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","u","next","done","push","value","isArray","ToolsItem","forwardRef","props","ref","hideCloseBtn","children","_useState","useState","_useState2","visible","setVisible","useImperativeHandle","onVisibleChange","arguments","undefined","content","createElement","className","classnames","Fragment","CloseOutlined","onClick","isFunction","Popover","placement","trigger","overlayClassName","_default","exports"],"sources":["tools-item/index.js"],"sourcesContent":["import React, { useState, useImperativeHandle, forwardRef } from 'react';\r\nimport { Popover } from 'antd';\r\nimport { CloseOutlined } from '@ant-design/icons';\r\nimport classnames from 'classnames';\r\nimport { isFunction } from 'lodash';\r\n\r\nconst ToolsItem = forwardRef((props, ref) => {\r\n const { hideCloseBtn, children } = props;\r\n const [visible, setVisible] = useState(false);\r\n\r\n useImperativeHandle(ref, () => ({\r\n onVisibleChange: (visible = false) => {\r\n setVisible(visible);\r\n },\r\n }));\r\n\r\n if (!props.content) {\r\n return (\r\n <li className={classnames('ol-map-tools-item', { 'ol-map-tools-active-item': visible })}>\r\n {children}\r\n </li>\r\n );\r\n }\r\n\r\n const content = () => (\r\n <>\r\n {!hideCloseBtn && (\r\n <CloseOutlined\r\n className={classnames('ol-map-tools-close-btn')}\r\n onClick={() => setVisible(false)}\r\n />\r\n )}\r\n\r\n {props.content && (isFunction(props.content) ? props.content() : props.content)}\r\n </>\r\n );\r\n return (\r\n <Popover\r\n visible={visible}\r\n placement=\"rightTop\"\r\n trigger=\"click\"\r\n content={content}\r\n onVisibleChange={setVisible}\r\n overlayClassName={classnames('ol-map-tools-item-popover')}\r\n >\r\n <li className={classnames('ol-map-tools-item', { 'ol-map-tools-active-item': visible })}>\r\n {children}\r\n </li>\r\n </Popover>\r\n );\r\n});\r\n\r\nexport default ToolsItem;\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAAoC,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAC,UAAA,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AAC,CACpC,CACJ,EAEAR,KAAK,CAACa,OAAO,KAAK,IAAAO,kBAAU,EAACpB,KAAK,CAACa,OAAO,CAAC,GAAGb,KAAK,CAACa,OAAO,CAAC,CAAC,GAAGb,KAAK,CAACa,OAAO,CAChF,CAAC;EAAA,CACN;EACD,oBACIpE,MAAA,YAAAqE,aAAA,CAAClE,KAAA,CAAAyE,OAAO;IACJd,OAAO,EAAEA,OAAQ;IACjBe,SAAS,EAAC,UAAU;IACpBC,OAAO,EAAC,OAAO;IACfV,OAAO,EAAEA,OAAQ;IACjBH,eAAe,EAAEF,UAAW;IAC5BgB,gBAAgB,EAAE,IAAAR,sBAAU,EAAC,2BAA2B;EAAE,gBAE1DvE,MAAA,YAAAqE,aAAA;IAAIC,SAAS,EAAE,IAAAC,sBAAU,EAAC,mBAAmB,EAAE;MAAE,0BAA0B,EAAET;IAAQ,CAAC;EAAE,GACnFJ,QACD,CACC,CAAC;AAElB,CAAC,CAAC;AAAC,IAAAsB,QAAA,GAAAC,OAAA,cAEY5B,SAAS","ignoreList":[]}
@@ -10,6 +10,5 @@ var useProps = function useProps() {
10
10
  var params = (0, _react.useContext)(_provider.Context);
11
11
  return params;
12
12
  };
13
- var _default = useProps;
14
- exports["default"] = _default;
13
+ var _default = exports["default"] = useProps;
15
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","require","_provider","useProps","params","useContext","Context","_default","exports"],"sources":["use-props/index.js"],"sourcesContent":["import { useContext } from 'react';\nimport { Context } from '../provider';\n\nconst useProps = () => {\n const params = useContext(Context);\n return params;\n};\n\nexport default useProps;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAME,QAAQ,GAAG,SAAXA,QAAQA,CAAA,EAAS;EACnB,IAAMC,MAAM,GAAG,IAAAC,iBAAU,EAACC,iBAAO,CAAC;EAClC,OAAOF,MAAM;AACjB,CAAC;AAAC,IAAAG,QAAA,GAEaJ,QAAQ;AAAAK,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"index.js","names":["_react","require","_provider","useProps","params","useContext","Context","_default","exports"],"sources":["use-props/index.js"],"sourcesContent":["import { useContext } from 'react';\r\nimport { Context } from '../provider';\r\n\r\nconst useProps = () => {\r\n const params = useContext(Context);\r\n return params;\r\n};\r\n\r\nexport default useProps;\r\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAME,QAAQ,GAAG,SAAXA,QAAQA,CAAA,EAAS;EACnB,IAAMC,MAAM,GAAG,IAAAC,iBAAU,EAACC,iBAAO,CAAC;EAClC,OAAOF,MAAM;AACjB,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEaL,QAAQ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"css.js","names":[],"sources":["use-props/style/index.js"],"sourcesContent":[""],"mappings":""}
1
+ {"version":3,"file":"css.js","names":[],"sources":["use-props/style/index.js"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["use-props/style/index.js"],"sourcesContent":[""],"mappings":""}
1
+ {"version":3,"file":"index.js","names":[],"sources":["use-props/style/index.js"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
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
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -14,29 +14,31 @@ var _encryptParams = _interopRequireDefault(require("../_util/encryptParams"));
14
14
  var _getToken = require("../_util/getToken");
15
15
  var _getUrlParam = _interopRequireDefault(require("../_util/getUrlParam"));
16
16
  var _getSystemInfo = _interopRequireDefault(require("../_util/getSystemInfo"));
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
18
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
20
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
- 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); } }
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
- 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); }
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
27
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
28
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
30
- 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); }
31
- 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; }
32
- 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; }
33
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
34
- 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); }
35
- function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
36
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
17
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
18
+ 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; }
19
+ 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; }
20
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
21
+ 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); } }
22
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
23
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
24
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
25
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
26
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
27
+ function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
28
+ function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }
29
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
30
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
31
+ function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); }
32
+ function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else _defineProperty(o, r, t); return !0; }, set(e, r, t, o); }
33
+ function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; }
34
+ 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; }
35
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
36
+ 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); }
37
+ function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
38
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
37
39
  var geoJsonFormat = new _format.GeoJSON();
38
40
  var tenantId = (0, _getUrlParam["default"])('tenantId') || (0, _getSystemInfo["default"])('tenantId') || '';
39
- var getFilter = function getFilter(group) {
41
+ var getFilter = exports.getFilter = function getFilter(group) {
40
42
  var cql_filter = '';
41
43
  if (group !== null && group !== void 0 && group.length) {
42
44
  var filterGroup = group.filter(function (item) {
@@ -50,7 +52,6 @@ var getFilter = function getFilter(group) {
50
52
  }
51
53
  return cql_filter;
52
54
  };
53
- exports.getFilter = getFilter;
54
55
  var transformWhere = function transformWhere(field, value, operation) {
55
56
  var where = "".concat(field, " ").concat(operation, " '").concat(value, "'");
56
57
  if (operation === '===') {
@@ -64,11 +65,9 @@ var transformWhere = function transformWhere(field, value, operation) {
64
65
  }
65
66
  return where;
66
67
  };
67
- var WmsLayer = /*#__PURE__*/function (_Tile) {
68
- _inherits(WmsLayer, _Tile);
69
- var _super = _createSuper(WmsLayer);
68
+ var WmsLayer = exports["default"] = /*#__PURE__*/function (_Tile) {
70
69
  function WmsLayer(options) {
71
- var _thisSuper, _this;
70
+ var _this;
72
71
  _classCallCheck(this, WmsLayer);
73
72
  var url = options.url,
74
73
  params = options.params,
@@ -106,8 +105,8 @@ var WmsLayer = /*#__PURE__*/function (_Tile) {
106
105
  });
107
106
  }
108
107
  }
109
- _this = _super.call(this, options);
110
- _set((_thisSuper = _assertThisInitialized(_this), _getPrototypeOf(WmsLayer.prototype)), "show", show, _thisSuper, true);
108
+ _this = _callSuper(this, WmsLayer, [options]);
109
+ _superPropSet((_this, WmsLayer), "show", show, _this, 1, 1);
111
110
  // 图层标识
112
111
  _this.url = url;
113
112
  _this._params = _objectSpread({
@@ -166,10 +165,11 @@ var WmsLayer = /*#__PURE__*/function (_Tile) {
166
165
  }
167
166
 
168
167
  // 重写父类的属性访问器
169
- _createClass(WmsLayer, [{
168
+ _inherits(WmsLayer, _Tile);
169
+ return _createClass(WmsLayer, [{
170
170
  key: "show",
171
171
  get: function get() {
172
- return _get(_getPrototypeOf(WmsLayer.prototype), "show", this);
172
+ return _superPropGet(WmsLayer, "show", this, 1);
173
173
  },
174
174
  set: function set(value) {
175
175
  this.setVisible(value);
@@ -309,7 +309,5 @@ var WmsLayer = /*#__PURE__*/function (_Tile) {
309
309
  return (0, _layer2.getWFSFeatureInfoByLayer)(layer, cql_filter);
310
310
  }
311
311
  }]);
312
- return WmsLayer;
313
312
  }(_layer.Tile);
314
- exports["default"] = WmsLayer;
315
313
  //# sourceMappingURL=WmsLayer.js.map