@sword916/vae-map-plus 1.0.0 → 1.0.1

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 (185) hide show
  1. package/lib/index.js +5376 -0
  2. package/lib/style.css +1 -0
  3. package/lib/vae-amap/favicon.ico +0 -0
  4. package/lib/vae-amap/images/game.png +0 -0
  5. package/lib/vae-amap/images/grid.png +0 -0
  6. package/lib/vae-amap/images/marker.png +0 -0
  7. package/lib/vae-amap/index.js +209 -0
  8. package/lib/vae-amap/style.css +1 -0
  9. package/lib/vae-cloudmap/favicon.ico +0 -0
  10. package/lib/vae-cloudmap/images/game.png +0 -0
  11. package/lib/vae-cloudmap/images/grid.png +0 -0
  12. package/lib/vae-cloudmap/images/marker.png +0 -0
  13. package/lib/vae-cloudmap/index.html +30 -0
  14. package/lib/vae-cloudmap/index.js +4085 -0
  15. package/lib/vae-cloudmap/style.css +1 -0
  16. package/lib/vae-map/favicon.ico +0 -0
  17. package/lib/vae-map/images/game.png +0 -0
  18. package/lib/vae-map/images/grid.png +0 -0
  19. package/lib/vae-map/images/marker.png +0 -0
  20. package/lib/vae-map/index.html +30 -0
  21. package/lib/vae-map/index.js +4322 -0
  22. package/lib/vae-map/style.css +1 -0
  23. package/package.json +1 -1
  24. package/plugins/L.AnimatedMarker/favicon.ico +0 -0
  25. package/plugins/L.AnimatedMarker/images/game.png +0 -0
  26. package/plugins/L.AnimatedMarker/images/grid.png +0 -0
  27. package/plugins/L.AnimatedMarker/images/marker.png +0 -0
  28. package/plugins/L.AnimatedMarker/index.html +30 -0
  29. package/plugins/L.AnimatedMarker/index.js +83 -0
  30. package/plugins/L.EchartsLayer/favicon.ico +0 -0
  31. package/plugins/L.EchartsLayer/images/game.png +0 -0
  32. package/plugins/L.EchartsLayer/images/grid.png +0 -0
  33. package/plugins/L.EchartsLayer/images/marker.png +0 -0
  34. package/plugins/L.EchartsLayer/index.html +30 -0
  35. package/plugins/L.EchartsLayer/index.js +176 -0
  36. package/plugins/L.FootageCalculator.Area/favicon.ico +0 -0
  37. package/plugins/L.FootageCalculator.Area/images/game.png +0 -0
  38. package/plugins/L.FootageCalculator.Area/images/grid.png +0 -0
  39. package/plugins/L.FootageCalculator.Area/images/marker.png +0 -0
  40. package/plugins/L.FootageCalculator.Area/index.html +30 -0
  41. package/plugins/L.FootageCalculator.Area/index.js +418 -0
  42. package/plugins/L.FootageCalculator.Line/favicon.ico +0 -0
  43. package/plugins/L.FootageCalculator.Line/images/game.png +0 -0
  44. package/plugins/L.FootageCalculator.Line/images/grid.png +0 -0
  45. package/plugins/L.FootageCalculator.Line/images/marker.png +0 -0
  46. package/plugins/L.FootageCalculator.Line/index.html +30 -0
  47. package/plugins/L.FootageCalculator.Line/index.js +416 -0
  48. package/plugins/L.GeoUtil/favicon.ico +0 -0
  49. package/plugins/L.GeoUtil/images/game.png +0 -0
  50. package/plugins/L.GeoUtil/images/grid.png +0 -0
  51. package/plugins/L.GeoUtil/images/marker.png +0 -0
  52. package/plugins/L.GeoUtil/index.html +30 -0
  53. package/plugins/L.GeoUtil/index.js +279 -0
  54. package/plugins/L.Glyphicon/favicon.ico +0 -0
  55. package/plugins/L.Glyphicon/images/game.png +0 -0
  56. package/plugins/L.Glyphicon/images/grid.png +0 -0
  57. package/plugins/L.Glyphicon/images/marker.png +0 -0
  58. package/plugins/L.Glyphicon/index.html +30 -0
  59. package/plugins/L.Glyphicon/index.js +57 -0
  60. package/plugins/L.Glyphicon/style.css +1 -0
  61. package/plugins/L.MarkerClusterX/favicon.ico +0 -0
  62. package/plugins/L.MarkerClusterX/images/game.png +0 -0
  63. package/plugins/L.MarkerClusterX/images/grid.png +0 -0
  64. package/plugins/L.MarkerClusterX/images/marker.png +0 -0
  65. package/plugins/L.MarkerClusterX/index.html +30 -0
  66. package/plugins/L.MarkerClusterX/index.js +33 -0
  67. package/plugins/L.MarkerClusterX/style.css +1 -0
  68. package/plugins/L.SafeDivOverlay/favicon.ico +0 -0
  69. package/plugins/L.SafeDivOverlay/images/game.png +0 -0
  70. package/plugins/L.SafeDivOverlay/images/grid.png +0 -0
  71. package/plugins/L.SafeDivOverlay/images/marker.png +0 -0
  72. package/plugins/L.SafeDivOverlay/index.html +30 -0
  73. package/plugins/L.SafeDivOverlay/index.js +26 -0
  74. package/plugins/L.TileLayer.ChinaProvider/favicon.ico +0 -0
  75. package/plugins/L.TileLayer.ChinaProvider/images/game.png +0 -0
  76. package/plugins/L.TileLayer.ChinaProvider/images/grid.png +0 -0
  77. package/plugins/L.TileLayer.ChinaProvider/images/marker.png +0 -0
  78. package/plugins/L.TileLayer.ChinaProvider/index.html +30 -0
  79. package/plugins/L.TileLayer.ChinaProvider/index.js +91 -0
  80. package/plugins/L.VuePopup/favicon.ico +0 -0
  81. package/plugins/L.VuePopup/images/game.png +0 -0
  82. package/plugins/L.VuePopup/images/grid.png +0 -0
  83. package/plugins/L.VuePopup/images/marker.png +0 -0
  84. package/plugins/L.VuePopup/index.html +30 -0
  85. package/plugins/L.VuePopup/index.js +68 -0
  86. package/plugins/L.VueTooltip/favicon.ico +0 -0
  87. package/plugins/L.VueTooltip/images/game.png +0 -0
  88. package/plugins/L.VueTooltip/images/grid.png +0 -0
  89. package/plugins/L.VueTooltip/images/marker.png +0 -0
  90. package/plugins/L.VueTooltip/index.html +30 -0
  91. package/plugins/L.VueTooltip/index.js +68 -0
  92. package/plugins/Mixin.Map.Measure/favicon.ico +0 -0
  93. package/plugins/Mixin.Map.Measure/images/game.png +0 -0
  94. package/plugins/Mixin.Map.Measure/images/grid.png +0 -0
  95. package/plugins/Mixin.Map.Measure/images/marker.png +0 -0
  96. package/plugins/Mixin.Map.Measure/index.html +30 -0
  97. package/plugins/Mixin.Map.Measure/index.js +84 -0
  98. package/plugins/globals/favicon.ico +0 -0
  99. package/plugins/globals/images/game.png +0 -0
  100. package/plugins/globals/images/grid.png +0 -0
  101. package/plugins/globals/images/marker.png +0 -0
  102. package/plugins/globals/index.html +30 -0
  103. package/plugins/globals/index.js +4 -0
  104. package/build/index.mjs +0 -113
  105. package/examples/App.vue +0 -18
  106. package/examples/index.js +0 -13
  107. package/examples/router/index.js +0 -35
  108. package/examples/views/amap.vue +0 -29
  109. package/examples/views/amarker.vue +0 -58
  110. package/examples/views/buffer.vue +0 -66
  111. package/examples/views/cluster.vue +0 -74
  112. package/examples/views/cover.vue +0 -85
  113. package/examples/views/draw-line.vue +0 -49
  114. package/examples/views/draw.vue +0 -54
  115. package/examples/views/echarts.vue +0 -142
  116. package/examples/views/emarker.vue +0 -39
  117. package/examples/views/image.vue +0 -182
  118. package/examples/views/index.vue +0 -61
  119. package/examples/views/lrmap.vue +0 -108
  120. package/examples/views/map.vue +0 -82
  121. package/examples/views/measure.vue +0 -86
  122. package/examples/views/parts/popup.vue +0 -39
  123. package/examples/views/parts/tooltip.vue +0 -39
  124. package/examples/views/push-area.vue +0 -52
  125. package/examples/views/push-line.vue +0 -84
  126. package/examples/views/trace.vue +0 -49
  127. package/jsconfig.json +0 -17
  128. package/src/components/resize-listener/component.jsx +0 -30
  129. package/src/components/resize-listener/index.js +0 -3
  130. package/src/composables/useAutoMessage.js +0 -41
  131. package/src/composables/useContextMenu.js +0 -99
  132. package/src/composables/useMapMeasure.js +0 -191
  133. package/src/composables/useResizeObserver.js +0 -81
  134. package/src/mixins/message.js +0 -1
  135. package/src/packages/index.js +0 -16
  136. package/src/packages/vae-amap/index.js +0 -8
  137. package/src/packages/vae-amap/style.less +0 -9
  138. package/src/packages/vae-amap/vae-amap.jsx +0 -98
  139. package/src/packages/vae-cloudmap/ctrl-context-menu/index.vue +0 -74
  140. package/src/packages/vae-cloudmap/ctrl-draw/index.vue +0 -499
  141. package/src/packages/vae-cloudmap/ctrl-draw-line/index.vue +0 -161
  142. package/src/packages/vae-cloudmap/index.js +0 -57
  143. package/src/packages/vae-cloudmap/scripts/L.MarkerCluster/index.js +0 -2690
  144. package/src/packages/vae-cloudmap/scripts/L.MarkerCluster/style.css +0 -14
  145. package/src/packages/vae-cloudmap/scripts/L.Vae.CRS/index.js +0 -212
  146. package/src/packages/vae-cloudmap/scripts/L.Vae.Client/index.js +0 -780
  147. package/src/packages/vae-cloudmap/scripts/Mixin.ContextMenu/index.js +0 -101
  148. package/src/packages/vae-cloudmap/style.less +0 -163
  149. package/src/packages/vae-cloudmap/vae-cloudmap.jsx +0 -272
  150. package/src/packages/vae-map/ctrl-context-menu/index.vue +0 -74
  151. package/src/packages/vae-map/ctrl-draw/index.vue +0 -498
  152. package/src/packages/vae-map/ctrl-draw-line/index.vue +0 -128
  153. package/src/packages/vae-map/index.js +0 -59
  154. package/src/packages/vae-map/scripts/L.MarkerCluster/index.js +0 -2690
  155. package/src/packages/vae-map/scripts/L.MarkerCluster/style.css +0 -14
  156. package/src/packages/vae-map/scripts/L.Vae.CRS/index.js +0 -114
  157. package/src/packages/vae-map/scripts/L.Vae.Client/index.js +0 -548
  158. package/src/packages/vae-map/scripts/Mixin.ContextMenu/index.js +0 -1
  159. package/src/packages/vae-map/style.less +0 -161
  160. package/src/packages/vae-map/vae-lrmap.jsx +0 -237
  161. package/src/packages/vae-map/vae-map.jsx +0 -135
  162. package/src/plugins/L.AnimatedMarker/index.js +0 -158
  163. package/src/plugins/L.EchartsLayer/index.js +0 -339
  164. package/src/plugins/L.ElasticMarker/index.js +0 -162
  165. package/src/plugins/L.FootageCalculator.Area/index.js +0 -263
  166. package/src/plugins/L.FootageCalculator.Line/index.js +0 -273
  167. package/src/plugins/L.GeoUtil/buffer.js +0 -67
  168. package/src/plugins/L.GeoUtil/index.js +0 -284
  169. package/src/plugins/L.Glyphicon/index.js +0 -91
  170. package/src/plugins/L.Glyphicon/style.less +0 -37
  171. package/src/plugins/L.MarkerClusterX/index.js +0 -93
  172. package/src/plugins/L.MarkerClusterX/style.less +0 -162
  173. package/src/plugins/L.SafeDivOverlay/index.js +0 -55
  174. package/src/plugins/L.TileLayer.ChinaProvider/index.js +0 -108
  175. package/src/plugins/L.VuePopup/index.js +0 -67
  176. package/src/plugins/L.VueTooltip/index.js +0 -63
  177. package/src/plugins/Mixin.Map.Measure/index.js +0 -248
  178. package/src/plugins/globals/index.js +0 -7
  179. package/src/utils/index.js +0 -36
  180. package/src/utils/resize-event.js +0 -45
  181. /package/{public → lib}/favicon.ico +0 -0
  182. /package/{public → lib}/images/game.png +0 -0
  183. /package/{public → lib}/images/grid.png +0 -0
  184. /package/{public → lib}/images/marker.png +0 -0
  185. /package/{public → lib/vae-amap}/index.html +0 -0
@@ -1,14 +0,0 @@
1
- .leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
2
- -webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;
3
- -moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;
4
- -o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;
5
- transition: transform 0.3s ease-out, opacity 0.3s ease-in;
6
- }
7
-
8
- .leaflet-cluster-spider-leg {
9
- /* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */
10
- -webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;
11
- -moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;
12
- -o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;
13
- transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
14
- }
@@ -1,212 +0,0 @@
1
- // 偏移墨卡托投影
2
- const OffsetSphericalMercator = (offset = L.point(0, 0)) => {
3
-
4
- const Mercator = L.Projection.SphericalMercator
5
- const R = Mercator.R
6
- const D = Math.PI / 180
7
-
8
- return L.extend({}, Mercator, {
9
- project(latlng) {
10
- const max = Mercator.MAX_LATITUDE
11
- const lat = Math.max(Math.min(max, latlng.lat), -max)
12
- const sin = Math.sin(lat * D)
13
- const point = L.point(R * latlng.lng * D, R * Math.log((1 + sin) / (1 - sin)) / 2)
14
-
15
- return point.add(offset)
16
- },
17
-
18
- unproject(point) {
19
- const [x, y] = point.subtract(offset)
20
-
21
- return L.latLng((2 * Math.atan(Math.exp(y / R)) - (Math.PI / 2)) * D, x * D / R)
22
- }
23
- })
24
- }
25
-
26
- // LRMAP常用CRS
27
- const fns = {
28
-
29
- SIMPLE(count = 2) {
30
- const ratio = Math.pow(0.1, count)
31
-
32
- return L.extend({}, L.CRS.Simple, {
33
- scale: zoom => ratio * Math.pow(2, zoom),
34
- zoom: scale => Math.log(scale / ratio) / Math.log(2)
35
- })
36
- },
37
-
38
- OFFSET_EPSG3857(offset = L.point(0, 0)) {
39
-
40
- return L.extend({}, L.CRS.EPSG3857, {
41
- projection: OffsetSphericalMercator(offset)
42
- })
43
- },
44
-
45
- BJ54(x, options = {}) {
46
- // console.log(options);
47
- let resolutions = [307.2, 153.6, 76.8, 38.4, 19.2, 9.6, 4.8, 2.4, 1.2, 0.6, 0.3, 0.15, 0.075, 0.0375, 0.01875]
48
- //为了解决矿政的1:500000的图纸新增了一个分辨率的参数,如果另外的项目需要改动,联系史新国
49
- if (options.resolutions) {
50
- resolutions = options.resolutions
51
- }
52
- ;
53
- // 确定投影带和带号
54
- let pType, pCode
55
- if (x > 25000000 && x < 40000000) {
56
- pType = 3
57
- pCode = parseInt(x / 1000000)
58
- } else if (x > 12000000 && x < 22000000) {
59
- pType = 6
60
- pCode = parseInt(x / 1000000)
61
- }
62
- // 确定proj4的各项参数:ESPG代码,中央经线,东伪偏移
63
- let EPSGCode, lon_0, x_0
64
- if (pCode >= 0) {
65
- if (pType == 3) {
66
- EPSGCode = 2376 + pCode
67
- lon_0 = pCode * 3
68
- x_0 = 1000000 * pCode + 500000
69
- } else if (pType == 6) {
70
- EPSGCode = 2325 + pCode
71
- lon_0 = pCode * 6 - 3
72
- x_0 = 1000000 * pCode + 500000
73
- }
74
- }
75
- // console.log(EPSGCode, "EPSGCode");
76
- // 返回3度带/6度带坐标系
77
- if (EPSGCode) {
78
- let proj = '+proj=tmerc +lat_0=0 +lon_0=' + lon_0 + ' +k=1 +x_0=' + x_0 + ' +y_0=0 +ellps=krass +units=m +no_defs no_defs'
79
- return new L.Proj.CRS('EPSG:' + EPSGCode, proj, {resolutions: resolutions})
80
- } else {
81
- return this.SIMPLE()
82
- }
83
- },
84
-
85
- XA80(x) {
86
- let EPSGCode = 900099,
87
- x_0 = 0,
88
- lon_0 = 0,
89
- pcode = parseInt(x / 1000000)
90
- if (pcode > 0) {
91
- lon_0 = pcode * 3
92
- x_0 = 1000000 * pcode + 500000
93
- EPSGCode = 2376 + pcode
94
- }
95
- let proj = '+proj=tmerc +lat_0=0 +lon_0=' + lon_0 + ' +k=1 +x_0=' + x_0 + ' +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs no_defs'
96
- let resolutions = [307.2, 153.6, 76.8, 38.4, 19.2, 9.6, 4.8, 2.4, 1.2, 0.6, 0.3, 0.15, 0.075, 0.0375, 0.01875]
97
- return new L.Proj.CRS('EPSG:' + EPSGCode, proj, {resolutions, origin: [0, 0]})
98
- },
99
- CGCS2000(x, options = {}) {
100
- let resolutions = [307.2, 153.6, 76.8, 38.4, 19.2, 9.6, 4.8, 2.4, 1.2, 0.6, 0.3, 0.15, 0.075, 0.0375, 0.01875]
101
- if (options.resolutions) {
102
- resolutions = options.resolutions
103
- }
104
- ;
105
- let origin = [0, 0]
106
- if (options.origin) {
107
- origin = options.origin
108
- }
109
- ;
110
- // 确定投影带和带号
111
- let pType, pCode
112
- if (x > 25000000 && x < 45000000) {
113
- pType = 3
114
- pCode = parseInt(x / 1000000)
115
- } else if (x > 12000000 && x < 22000000) {
116
- pType = 6
117
- pCode = parseInt(x / 1000000)
118
- }
119
- // 确定proj4的各项参数:ESPG代码,中央经线,东伪偏移
120
- let EPSGCode, lon_0, x_0
121
- if (pCode >= 0) {
122
- if (pType == 3) {
123
- if (pCode >= 25 && pCode <= 45)
124
- EPSGCode = 45 + '' + (pCode - 12)
125
- lon_0 = pCode * 3
126
- x_0 = 1000000 * pCode + 500000
127
- } else if (pType == 6) {
128
- if (pCode >= 13 && pCode <= 21)
129
- EPSGCode = 44 + '' + (pCode + 78)
130
- if (pCode >= 22 && pCode <= 23)
131
- EPSGCode = 44 + '' + (pCode - 22)
132
- lon_0 = pCode * 6 - 3
133
- x_0 = 1000000 * pCode + 500000
134
- }
135
- }
136
- // console.log(EPSGCode, "EPSGCode");
137
- return new L.Proj.CRS("EPSG:" + EPSGCode, "+proj=tmerc +lat_0=0 +lon_0=" + lon_0 + " +k=1 +x_0=" + x_0 + " +y_0=0 +ellps=GRS80 +units=m +no_defs +type=crs", {
138
- resolutions: resolutions,
139
- origin: origin
140
- });
141
- },
142
-
143
- /* CGCS2000_4523(options = {}) {
144
- let resolutions = [307.2, 153.6, 76.8, 38.4, 19.2, 9.6, 4.8, 2.4, 1.2, 0.6, 0.3, 0.15, 0.075, 0.0375, 0.01875]
145
- if (options.resolutions) {
146
- resolutions = options.resolutions
147
- }
148
- ;
149
- let origin = [0, 0]
150
- if (options.origin) {
151
- origin = options.origin
152
- }
153
- ;
154
-
155
- return new L.Proj.CRS("EPSG:4523", "+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=GRS80 +units=m +no_defs +type=crs", {
156
- resolutions: resolutions,
157
- origin: origin
158
- });
159
- },
160
- CGCS2000_4524(options = {}) {
161
- let resolutions = [307.2, 153.6, 76.8, 38.4, 19.2, 9.6, 4.8, 2.4, 1.2, 0.6, 0.3, 0.15, 0.075, 0.0375, 0.01875]
162
- if (options.resolutions) {
163
- resolutions = options.resolutions
164
- }
165
- ;
166
- let origin = [0, 0]
167
- if (options.origin) {
168
- origin = options.origin
169
- }
170
- ;
171
-
172
- return new L.Proj.CRS("EPSG:4524", "+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=GRS80 +units=m +no_defs +type=crs", {
173
- resolutions: resolutions,
174
- origin: origin
175
- });
176
- },
177
- CGCS2000_4525(options = {}) {
178
- let resolutions = [307.2, 153.6, 76.8, 38.4, 19.2, 9.6, 4.8, 2.4, 1.2, 0.6, 0.3, 0.15, 0.075, 0.0375, 0.01875]
179
- if (options.resolutions) {
180
- resolutions = options.resolutions
181
- }
182
- ;
183
- let origin = [0, 0]
184
- if (options.origin) {
185
- origin = options.origin
186
- }
187
- ;
188
- return new L.Proj.CRS("EPSG:4525", "+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=GRS80 +units=m +no_defs +type=crs", {
189
- resolutions: resolutions,
190
- origin: origin
191
- });
192
- },
193
- CGCS2000_4526(options = {}) {
194
- let resolutions = [307.2, 153.6, 76.8, 38.4, 19.2, 9.6, 4.8, 2.4, 1.2, 0.6, 0.3, 0.15, 0.075, 0.0375, 0.01875]
195
- if (options.resolutions) {
196
- resolutions = options.resolutions
197
- }
198
- ;
199
- let origin = [0, 0]
200
- if (options.origin) {
201
- origin = options.origin
202
- }
203
- ;
204
- return new L.Proj.CRS("EPSG:4526", "+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=GRS80 +units=m +no_defs +type=crs", {
205
- resolutions: resolutions,
206
- origin: origin
207
- });
208
- }*/
209
- }
210
-
211
- L.Vae = L.Vae || {}
212
- L.Vae.CRS = L.extend(L.Vae.CRS || {}, fns)