vue2-openlayers 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. package/README.md +24 -0
  2. package/babel.config.js +5 -0
  3. package/dist/css/index.34f0f0b9.css +1 -0
  4. package/dist/favicon.ico +0 -0
  5. package/dist/img/bottom_box.625e42a5.png +0 -0
  6. package/dist/img/car1.dd9a098b.png +0 -0
  7. package/dist/img/complete.2d0fa612.png +0 -0
  8. package/dist/img/diago_content.0d88c929.png +0 -0
  9. package/dist/img/diago_text_box.2e4da66b.png +0 -0
  10. package/dist/img/diago_title.2bd95b7a.png +0 -0
  11. package/dist/img/exception.a1eeefc3.png +0 -0
  12. package/dist/img/info1.829a6d7e.png +0 -0
  13. package/dist/img/info2.09e6e79e.png +0 -0
  14. package/dist/img/info3.3f96f756.png +0 -0
  15. package/dist/img/info4.6adcb927.png +0 -0
  16. package/dist/img/info5.ff3fdd2f.png +0 -0
  17. package/dist/img/info6.6e159d95.png +0 -0
  18. package/dist/img/left_box.40419b36.png +0 -0
  19. package/dist/img/money1.0743e701.png +0 -0
  20. package/dist/img/money2.58610d4d.png +0 -0
  21. package/dist/img/operating_fee.e6523ccc.png +0 -0
  22. package/dist/img/processing.28e46e7f.png +0 -0
  23. package/dist/img/public_content_box.39782fb5.png +0 -0
  24. package/dist/img/public_title_box1.6002afd4.png +0 -0
  25. package/dist/img/right_box.08458fe5.png +0 -0
  26. package/dist/img/success1.0cbc58af.png +0 -0
  27. package/dist/img/success2.af1a7499.png +0 -0
  28. package/dist/img/success3.d74caac5.png +0 -0
  29. package/dist/img/success4.37cc2343.png +0 -0
  30. package/dist/img/top_box.806bc756.png +0 -0
  31. package/dist/img/warehouse_map_popup.fa26d6cd.png +0 -0
  32. package/dist/img/work_error.3c528fdd.png +0 -0
  33. package/dist/img/work_su.0cbc58af.png +0 -0
  34. package/dist/img/work_wait.a2a706c9.png +0 -0
  35. package/dist/index.html +13 -0
  36. package/dist/js/chunk-vendors.901bdf0b.js +8 -0
  37. package/dist/js/chunk-vendors.901bdf0b.js.map +1 -0
  38. package/dist/js/index.29606843.js +2 -0
  39. package/dist/js/index.29606843.js.map +1 -0
  40. package/docs/.vuepress/config.js +25 -0
  41. package/docs/.vuepress/dist/404.html +20 -0
  42. package/docs/.vuepress/dist/assets/css/0.styles.7cfabf05.css +1 -0
  43. package/docs/.vuepress/dist/assets/img/7F8296FF-4A75-4013-BBFC-D482BF5303FF.597ff8a1.png +0 -0
  44. package/docs/.vuepress/dist/assets/img/gateway.98d6c8ec.jpg +0 -0
  45. package/docs/.vuepress/dist/assets/img/mysql_images.07b3a3e5.jpg +0 -0
  46. package/docs/.vuepress/dist/assets/img/nacos.741b050d.jpg +0 -0
  47. package/docs/.vuepress/dist/assets/img/rabbitmq.50b12be7.jpg +0 -0
  48. package/docs/.vuepress/dist/assets/img/redis_images.f0979945.jpg +0 -0
  49. package/docs/.vuepress/dist/assets/img/search.83621669.svg +1 -0
  50. package/docs/.vuepress/dist/assets/img/server-structure.6e0aa81e.png +0 -0
  51. package/docs/.vuepress/dist/assets/js/10.285f55d1.js +1 -0
  52. package/docs/.vuepress/dist/assets/js/11.decff412.js +1 -0
  53. package/docs/.vuepress/dist/assets/js/12.b9ed6e21.js +1 -0
  54. package/docs/.vuepress/dist/assets/js/13.d9c8c7a9.js +1 -0
  55. package/docs/.vuepress/dist/assets/js/14.6495a0e6.js +1 -0
  56. package/docs/.vuepress/dist/assets/js/15.70d64d1a.js +1 -0
  57. package/docs/.vuepress/dist/assets/js/16.a93c018c.js +1 -0
  58. package/docs/.vuepress/dist/assets/js/17.ed91eb16.js +1 -0
  59. package/docs/.vuepress/dist/assets/js/18.d07cd593.js +1 -0
  60. package/docs/.vuepress/dist/assets/js/19.4b8a0f22.js +1 -0
  61. package/docs/.vuepress/dist/assets/js/2.2668fa1b.js +1 -0
  62. package/docs/.vuepress/dist/assets/js/20.52de9326.js +1 -0
  63. package/docs/.vuepress/dist/assets/js/21.2293a5ca.js +1 -0
  64. package/docs/.vuepress/dist/assets/js/3.fd22fded.js +1 -0
  65. package/docs/.vuepress/dist/assets/js/4.ad26b2fa.js +1 -0
  66. package/docs/.vuepress/dist/assets/js/5.a1c97bcb.js +1 -0
  67. package/docs/.vuepress/dist/assets/js/6.32f67120.js +1 -0
  68. package/docs/.vuepress/dist/assets/js/7.99161716.js +1 -0
  69. package/docs/.vuepress/dist/assets/js/8.a0d65864.js +1 -0
  70. package/docs/.vuepress/dist/assets/js/9.2d06e692.js +1 -0
  71. package/docs/.vuepress/dist/assets/js/app.0be82e56.js +15 -0
  72. package/docs/.vuepress/dist/config/config_list.html +58 -0
  73. package/docs/.vuepress/dist/config/index.html +69 -0
  74. package/docs/.vuepress/dist/guide/admin.html +26 -0
  75. package/docs/.vuepress/dist/guide/deepchange.html +213 -0
  76. package/docs/.vuepress/dist/guide/gateway.html +45 -0
  77. package/docs/.vuepress/dist/guide/hystrix.html +26 -0
  78. package/docs/.vuepress/dist/guide/index.html +66 -0
  79. package/docs/.vuepress/dist/guide/nacos.html +26 -0
  80. package/docs/.vuepress/dist/guide/opsdev.html +26 -0
  81. package/docs/.vuepress/dist/guide/rabbitmq.html +26 -0
  82. package/docs/.vuepress/dist/guide/skywarking.html +52 -0
  83. package/docs/.vuepress/dist/guide/summary.html +74 -0
  84. package/docs/.vuepress/dist/help/index.html +28 -0
  85. package/docs/.vuepress/dist/help/markdown.html +33 -0
  86. package/docs/.vuepress/dist/images/7F8296FF-4A75-4013-BBFC-D482BF5303FF.png +0 -0
  87. package/docs/.vuepress/dist/images/gateway.jpg +0 -0
  88. package/docs/.vuepress/dist/images/mysql_images.jpg +0 -0
  89. package/docs/.vuepress/dist/images/nacos.jpg +0 -0
  90. package/docs/.vuepress/dist/images/rabbitmq.jpg +0 -0
  91. package/docs/.vuepress/dist/images/redis_images.jpg +0 -0
  92. package/docs/.vuepress/dist/images/server-structure.png +0 -0
  93. package/docs/.vuepress/dist/index.html +26 -0
  94. package/docs/.vuepress/dist/logo.jpg +0 -0
  95. package/docs/.vuepress/nav.js +34 -0
  96. package/docs/.vuepress/public/images/7F8296FF-4A75-4013-BBFC-D482BF5303FF.png +0 -0
  97. package/docs/.vuepress/public/images/gateway.jpg +0 -0
  98. package/docs/.vuepress/public/images/mysql_images.jpg +0 -0
  99. package/docs/.vuepress/public/images/nacos.jpg +0 -0
  100. package/docs/.vuepress/public/images/rabbitmq.jpg +0 -0
  101. package/docs/.vuepress/public/images/redis_images.jpg +0 -0
  102. package/docs/.vuepress/public/images/server-structure.png +0 -0
  103. package/docs/.vuepress/public/logo.jpg +0 -0
  104. package/docs/.vuepress/sidebar.js +62 -0
  105. package/docs/README.md +15 -0
  106. package/docs/config/README.md +108 -0
  107. package/docs/config/config_list.md +42 -0
  108. package/docs/guide/README.md +79 -0
  109. package/docs/guide/admin.md +25 -0
  110. package/docs/guide/deepchange.md +393 -0
  111. package/docs/guide/gateway.md +40 -0
  112. package/docs/guide/hystrix.md +21 -0
  113. package/docs/guide/nacos.md +7 -0
  114. package/docs/guide/opsdev.md +12 -0
  115. package/docs/guide/rabbitmq.md +15 -0
  116. package/docs/guide/skywarking.md +77 -0
  117. package/docs/guide/summary.md +120 -0
  118. package/docs/help/README.md +29 -0
  119. package/docs/help/markdown.md +165 -0
  120. package/examples/App.vue +21 -0
  121. package/examples/assets/css/map-base.scss +333 -0
  122. package/examples/assets/fonts/pmzd.ttf +0 -0
  123. package/examples/assets/icons/index.js +9 -0
  124. package/examples/assets/icons/svg/404.svg +1 -0
  125. package/examples/assets/icons/svg/bug.svg +1 -0
  126. package/examples/assets/icons/svg/build.svg +1 -0
  127. package/examples/assets/icons/svg/button.svg +1 -0
  128. package/examples/assets/icons/svg/cascader.svg +1 -0
  129. package/examples/assets/icons/svg/chart.svg +1 -0
  130. package/examples/assets/icons/svg/checkbox.svg +1 -0
  131. package/examples/assets/icons/svg/clipboard.svg +1 -0
  132. package/examples/assets/icons/svg/code.svg +1 -0
  133. package/examples/assets/icons/svg/color.svg +1 -0
  134. package/examples/assets/icons/svg/component.svg +1 -0
  135. package/examples/assets/icons/svg/dashboard.svg +1 -0
  136. package/examples/assets/icons/svg/date-range.svg +1 -0
  137. package/examples/assets/icons/svg/date.svg +1 -0
  138. package/examples/assets/icons/svg/dict.svg +1 -0
  139. package/examples/assets/icons/svg/documentation.svg +1 -0
  140. package/examples/assets/icons/svg/download.svg +1 -0
  141. package/examples/assets/icons/svg/drag.svg +1 -0
  142. package/examples/assets/icons/svg/druid.svg +1 -0
  143. package/examples/assets/icons/svg/edit.svg +1 -0
  144. package/examples/assets/icons/svg/education.svg +1 -0
  145. package/examples/assets/icons/svg/email.svg +1 -0
  146. package/examples/assets/icons/svg/example.svg +1 -0
  147. package/examples/assets/icons/svg/excel.svg +1 -0
  148. package/examples/assets/icons/svg/exit-fullscreen.svg +1 -0
  149. package/examples/assets/icons/svg/eye-open.svg +1 -0
  150. package/examples/assets/icons/svg/eye.svg +1 -0
  151. package/examples/assets/icons/svg/form.svg +1 -0
  152. package/examples/assets/icons/svg/fullscreen.svg +1 -0
  153. package/examples/assets/icons/svg/github.svg +1 -0
  154. package/examples/assets/icons/svg/guide.svg +1 -0
  155. package/examples/assets/icons/svg/icon.svg +1 -0
  156. package/examples/assets/icons/svg/input.svg +1 -0
  157. package/examples/assets/icons/svg/international.svg +1 -0
  158. package/examples/assets/icons/svg/job.svg +1 -0
  159. package/examples/assets/icons/svg/language.svg +1 -0
  160. package/examples/assets/icons/svg/link.svg +1 -0
  161. package/examples/assets/icons/svg/list.svg +1 -0
  162. package/examples/assets/icons/svg/lock.svg +1 -0
  163. package/examples/assets/icons/svg/log.svg +1 -0
  164. package/examples/assets/icons/svg/logininfor.svg +1 -0
  165. package/examples/assets/icons/svg/message.svg +1 -0
  166. package/examples/assets/icons/svg/money.svg +1 -0
  167. package/examples/assets/icons/svg/monitor.svg +2 -0
  168. package/examples/assets/icons/svg/nested.svg +1 -0
  169. package/examples/assets/icons/svg/number.svg +1 -0
  170. package/examples/assets/icons/svg/online.svg +1 -0
  171. package/examples/assets/icons/svg/password.svg +1 -0
  172. package/examples/assets/icons/svg/pdf.svg +1 -0
  173. package/examples/assets/icons/svg/people.svg +1 -0
  174. package/examples/assets/icons/svg/peoples.svg +1 -0
  175. package/examples/assets/icons/svg/phone.svg +1 -0
  176. package/examples/assets/icons/svg/post.svg +1 -0
  177. package/examples/assets/icons/svg/qq.svg +1 -0
  178. package/examples/assets/icons/svg/question.svg +1 -0
  179. package/examples/assets/icons/svg/radio.svg +1 -0
  180. package/examples/assets/icons/svg/rate.svg +1 -0
  181. package/examples/assets/icons/svg/redis.svg +1 -0
  182. package/examples/assets/icons/svg/row.svg +1 -0
  183. package/examples/assets/icons/svg/search.svg +1 -0
  184. package/examples/assets/icons/svg/select.svg +1 -0
  185. package/examples/assets/icons/svg/server.svg +1 -0
  186. package/examples/assets/icons/svg/shopping.svg +1 -0
  187. package/examples/assets/icons/svg/size.svg +1 -0
  188. package/examples/assets/icons/svg/skill.svg +1 -0
  189. package/examples/assets/icons/svg/slider.svg +1 -0
  190. package/examples/assets/icons/svg/star.svg +1 -0
  191. package/examples/assets/icons/svg/swagger.svg +1 -0
  192. package/examples/assets/icons/svg/switch.svg +1 -0
  193. package/examples/assets/icons/svg/system.svg +2 -0
  194. package/examples/assets/icons/svg/tab.svg +1 -0
  195. package/examples/assets/icons/svg/table.svg +1 -0
  196. package/examples/assets/icons/svg/textarea.svg +1 -0
  197. package/examples/assets/icons/svg/theme.svg +1 -0
  198. package/examples/assets/icons/svg/time-range.svg +1 -0
  199. package/examples/assets/icons/svg/time.svg +1 -0
  200. package/examples/assets/icons/svg/tool.svg +1 -0
  201. package/examples/assets/icons/svg/tree-table.svg +1 -0
  202. package/examples/assets/icons/svg/tree.svg +1 -0
  203. package/examples/assets/icons/svg/turn-right.svg +1 -0
  204. package/examples/assets/icons/svg/upload.svg +1 -0
  205. package/examples/assets/icons/svg/user.svg +1 -0
  206. package/examples/assets/icons/svg/validCode.svg +1 -0
  207. package/examples/assets/icons/svg/wechat.svg +1 -0
  208. package/examples/assets/icons/svg/zip.svg +1 -0
  209. package/examples/assets/icons/svgo.yml +22 -0
  210. package/examples/assets/images/close_diago.png +0 -0
  211. package/examples/assets/images/red_circle.png +0 -0
  212. package/examples/assets/images/w_mj_map.png +0 -0
  213. package/examples/assets/images/warehouse_map_popup.png +0 -0
  214. package/examples/assets/images/warehouse_map_success.png +0 -0
  215. package/examples/assets/images/warehouse_map_warning.png +0 -0
  216. package/examples/assets/js/gps.js +222 -0
  217. package/examples/assets/logo.png +0 -0
  218. package/examples/components/HelloWorld.vue +273 -0
  219. package/examples/components/MapPopup.vue +80 -0
  220. package/examples/data/510000.js +2056 -0
  221. package/examples/data/510000.json +2055 -0
  222. package/examples/data/testData.js +2088 -0
  223. package/examples/main.js +28 -0
  224. package/examples/utils/echarts/esresize.js +110 -0
  225. package/jsconfig.json +19 -0
  226. package/package.json +56 -0
  227. package/vue-opnelayers/demo.html +1 -0
  228. package/vue-opnelayers/vue-openlayers.common.js +58661 -0
  229. package/vue-opnelayers/vue-openlayers.common.js.map +1 -0
  230. package/vue-opnelayers/vue-openlayers.css +1 -0
  231. package/vue-opnelayers/vue-openlayers.umd.js +58672 -0
  232. package/vue-opnelayers/vue-openlayers.umd.js.map +1 -0
  233. package/vue-opnelayers/vue-openlayers.umd.min.js +2 -0
  234. package/vue-opnelayers/vue-openlayers.umd.min.js.map +1 -0
  235. package/vue.config.js +54 -0
@@ -0,0 +1,28 @@
1
+ import Vue from 'vue'
2
+ import App from './App.vue'
3
+ import VueOpenlayers from './../packages/index'
4
+ import * as echarts from 'echarts';
5
+
6
+
7
+
8
+ // Vue.prototype.$numeral = require('numeral');
9
+ // Vue.prototype.parseTime = parseTime;
10
+
11
+ Vue.use(VueOpenlayers);
12
+
13
+
14
+
15
+ // 创建一个事件总线
16
+
17
+ let bus = new Vue();
18
+ Vue.prototype.$bus = bus;
19
+ window.bus = bus;
20
+
21
+ // 全局方法挂载
22
+ Vue.prototype.$echarts = echarts;
23
+
24
+ Vue.config.productionTip = false
25
+
26
+ new Vue({
27
+ render: h => h(App),
28
+ }).$mount('#app')
@@ -0,0 +1,110 @@
1
+
2
+
3
+ // echarts 图表适配
4
+
5
+
6
+ var EleResize = {
7
+ _handleResize: function (e) {
8
+ var ele = e.target || e.srcElement
9
+ var trigger = ele.__resizeTrigger__
10
+ if (trigger) {
11
+ var handlers = trigger.__z_resizeListeners
12
+ if (handlers) {
13
+ var size = handlers.length
14
+ for (var i = 0; i < size; i++) {
15
+ var h = handlers[i]
16
+ var handler = h.handler
17
+ var context = h.context
18
+ handler.apply(context, [e])
19
+ }
20
+ }
21
+ }
22
+ },
23
+ _removeHandler: function (ele, handler, context) {
24
+ var handlers = ele.__z_resizeListeners
25
+ if (handlers) {
26
+ var size = handlers.length
27
+ for (var i = 0; i < size; i++) {
28
+ var h = handlers[i]
29
+ if (h.handler === handler && h.context === context) {
30
+ handlers.splice(i, 1)
31
+ return
32
+ }
33
+ }
34
+ }
35
+ },
36
+ _createResizeTrigger: function (ele) {
37
+ var obj = document.createElement('object')
38
+ obj.setAttribute('style',
39
+ 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden;opacity: 0; pointer-events: none; z-index: -1;')
40
+ obj.onload = EleResize._handleObjectLoad
41
+ obj.type = 'text/html'
42
+ ele.appendChild(obj)
43
+ obj.data = 'about:blank'
44
+ return obj
45
+ },
46
+ _handleObjectLoad: function () {
47
+ this.contentDocument.defaultView.__resizeTrigger__ = this.__resizeElement__
48
+ this.contentDocument.defaultView.addEventListener('resize', EleResize._handleResize)
49
+ }
50
+ }
51
+ if (document.attachEvent) { // ie9-10
52
+ EleResize.on = function (ele, handler, context) {
53
+ var handlers = ele.__z_resizeListeners
54
+ if (!handlers) {
55
+ handlers = []
56
+ ele.__z_resizeListeners = handlers
57
+ ele.__resizeTrigger__ = ele
58
+ ele.attachEvent('onresize', EleResize._handleResize)
59
+ }
60
+ handlers.push({
61
+ handler: handler,
62
+ context: context
63
+ })
64
+ }
65
+ EleResize.off = function (ele, handler, context) {
66
+ var handlers = ele.__z_resizeListeners
67
+ if (handlers) {
68
+ EleResize._removeHandler(ele, handler, context)
69
+ if (handlers.length === 0) {
70
+ ele.detachEvent('onresize', EleResize._handleResize)
71
+ delete ele.__z_resizeListeners
72
+ }
73
+ }
74
+ }
75
+ } else {
76
+ EleResize.on = function (ele, handler, context) {
77
+ var handlers = ele.__z_resizeListeners
78
+ if (!handlers) {
79
+ handlers = []
80
+ ele.__z_resizeListeners = handlers
81
+
82
+ if (getComputedStyle(ele, null).position === 'static') {
83
+ ele.style.position = 'relative'
84
+ }
85
+ var obj = EleResize._createResizeTrigger(ele)
86
+ ele.__resizeTrigger__ = obj
87
+ obj.__resizeElement__ = ele
88
+ }
89
+ handlers.push({
90
+ handler: handler,
91
+ context: context
92
+ })
93
+ }
94
+ EleResize.off = function (ele, handler, context) {
95
+ var handlers = ele.__z_resizeListeners
96
+ if (handlers) {
97
+ EleResize._removeHandler(ele, handler, context)
98
+ if (handlers.length === 0) {
99
+ var trigger = ele.__resizeTrigger__
100
+ if (trigger) {
101
+ trigger.contentDocument.defaultView.removeEventListener('resize', EleResize._handleResize)
102
+ ele.removeChild(trigger)
103
+ delete ele.__resizeTrigger__
104
+ }
105
+ delete ele.__z_resizeListeners
106
+ }
107
+ }
108
+ }
109
+ }
110
+ export {EleResize}
package/jsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "module": "esnext",
5
+ "baseUrl": "./",
6
+ "moduleResolution": "node",
7
+ "paths": {
8
+ "@/*": [
9
+ "examples/*"
10
+ ]
11
+ },
12
+ "lib": [
13
+ "esnext",
14
+ "dom",
15
+ "dom.iterable",
16
+ "scripthost"
17
+ ]
18
+ }
19
+ }
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "vue2-openlayers",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "scripts": {
6
+ "dev": "vue-cli-service serve",
7
+ "build": "vue-cli-service build",
8
+ "lint": "vue-cli-service lint",
9
+ "docs:dev": "vuepress dev docs",
10
+ "docs:build": "vuepress build docs",
11
+ "lib": "vue-cli-service build --target lib ./packages/index.js --name vue-openlayers --dest vue-opnelayers && npm run lib-init",
12
+ "lib-init": "node -e \"const pkg = require('./package.json'); require('fs').writeFileSync('./vue2-openlayers/package.json', JSON.stringify(Object.assign({}, pkg, { version: pkg.version }), null, 2))\""
13
+ },
14
+ "dependencies": {
15
+ "@turf/turf": "^7.0.0",
16
+ "core-js": "^3.8.3",
17
+ "echarts": "4.9.0",
18
+ "js-cookie": "3.0.1",
19
+ "ol": "^9.2.4",
20
+ "px2rem-loader": "^0.1.9",
21
+ "sass": "^1.43.4",
22
+ "sass-loader": "^14.2.1",
23
+ "vue": "^2.6.14"
24
+ },
25
+ "devDependencies": {
26
+ "@babel/core": "^7.12.16",
27
+ "@babel/eslint-parser": "^7.12.16",
28
+ "@vue/cli-plugin-babel": "~5.0.0",
29
+ "@vue/cli-plugin-eslint": "~5.0.0",
30
+ "@vue/cli-service": "~5.0.0",
31
+ "eslint": "^7.32.0",
32
+ "eslint-plugin-vue": "^8.0.3",
33
+ "postcss-pxtorem": "^6.1.0",
34
+ "vue-template-compiler": "^2.6.14",
35
+ "vuepress": "^1.9.10"
36
+ },
37
+ "eslintConfig": {
38
+ "root": true,
39
+ "env": {
40
+ "node": true
41
+ },
42
+ "extends": [
43
+ "plugin:vue/essential",
44
+ "eslint:recommended"
45
+ ],
46
+ "parserOptions": {
47
+ "parser": "@babel/eslint-parser"
48
+ },
49
+ "rules": {}
50
+ },
51
+ "browserslist": [
52
+ "> 1%",
53
+ "last 2 versions",
54
+ "not dead"
55
+ ]
56
+ }
@@ -0,0 +1 @@
1
+ <!doctype html><meta charset="utf-8"><title>vue-openlayers demo</title><script src="./vue-openlayers.umd.js"></script><link rel="stylesheet" href="./vue-openlayers.css"><script>console.log(vue-openlayers)</script>