@sword916/vae-map-plus 1.0.0
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.
- package/README.md +3 -0
- package/build/index.mjs +113 -0
- package/examples/App.vue +18 -0
- package/examples/index.js +13 -0
- package/examples/router/index.js +35 -0
- package/examples/views/amap.vue +29 -0
- package/examples/views/amarker.vue +58 -0
- package/examples/views/buffer.vue +66 -0
- package/examples/views/cluster.vue +74 -0
- package/examples/views/cover.vue +85 -0
- package/examples/views/draw-line.vue +49 -0
- package/examples/views/draw.vue +54 -0
- package/examples/views/echarts.vue +142 -0
- package/examples/views/emarker.vue +39 -0
- package/examples/views/image.vue +182 -0
- package/examples/views/index.vue +61 -0
- package/examples/views/lrmap.vue +108 -0
- package/examples/views/map.vue +82 -0
- package/examples/views/measure.vue +86 -0
- package/examples/views/parts/popup.vue +39 -0
- package/examples/views/parts/tooltip.vue +39 -0
- package/examples/views/push-area.vue +52 -0
- package/examples/views/push-line.vue +84 -0
- package/examples/views/trace.vue +49 -0
- package/index.html +13 -0
- package/jsconfig.json +17 -0
- package/package.json +47 -0
- package/public/favicon.ico +0 -0
- package/public/images/game.png +0 -0
- package/public/images/grid.png +0 -0
- package/public/images/marker.png +0 -0
- package/public/index.html +30 -0
- package/src/components/resize-listener/component.jsx +30 -0
- package/src/components/resize-listener/index.js +3 -0
- package/src/composables/useAutoMessage.js +41 -0
- package/src/composables/useContextMenu.js +99 -0
- package/src/composables/useMapMeasure.js +191 -0
- package/src/composables/useResizeObserver.js +81 -0
- package/src/mixins/message.js +1 -0
- package/src/packages/index.js +16 -0
- package/src/packages/vae-amap/index.js +8 -0
- package/src/packages/vae-amap/style.less +9 -0
- package/src/packages/vae-amap/vae-amap.jsx +98 -0
- package/src/packages/vae-cloudmap/ctrl-context-menu/index.vue +74 -0
- package/src/packages/vae-cloudmap/ctrl-draw/index.vue +499 -0
- package/src/packages/vae-cloudmap/ctrl-draw-line/index.vue +161 -0
- package/src/packages/vae-cloudmap/index.js +57 -0
- package/src/packages/vae-cloudmap/scripts/L.MarkerCluster/index.js +2690 -0
- package/src/packages/vae-cloudmap/scripts/L.MarkerCluster/style.css +14 -0
- package/src/packages/vae-cloudmap/scripts/L.Vae.CRS/index.js +212 -0
- package/src/packages/vae-cloudmap/scripts/L.Vae.Client/index.js +780 -0
- package/src/packages/vae-cloudmap/scripts/Mixin.ContextMenu/index.js +101 -0
- package/src/packages/vae-cloudmap/style.less +163 -0
- package/src/packages/vae-cloudmap/vae-cloudmap.jsx +272 -0
- package/src/packages/vae-map/ctrl-context-menu/index.vue +74 -0
- package/src/packages/vae-map/ctrl-draw/index.vue +498 -0
- package/src/packages/vae-map/ctrl-draw-line/index.vue +128 -0
- package/src/packages/vae-map/index.js +59 -0
- package/src/packages/vae-map/scripts/L.MarkerCluster/index.js +2690 -0
- package/src/packages/vae-map/scripts/L.MarkerCluster/style.css +14 -0
- package/src/packages/vae-map/scripts/L.Vae.CRS/index.js +114 -0
- package/src/packages/vae-map/scripts/L.Vae.Client/index.js +548 -0
- package/src/packages/vae-map/scripts/Mixin.ContextMenu/index.js +1 -0
- package/src/packages/vae-map/style.less +161 -0
- package/src/packages/vae-map/vae-lrmap.jsx +237 -0
- package/src/packages/vae-map/vae-map.jsx +135 -0
- package/src/plugins/L.AnimatedMarker/index.js +158 -0
- package/src/plugins/L.EchartsLayer/index.js +339 -0
- package/src/plugins/L.ElasticMarker/index.js +162 -0
- package/src/plugins/L.FootageCalculator.Area/index.js +263 -0
- package/src/plugins/L.FootageCalculator.Line/index.js +273 -0
- package/src/plugins/L.GeoUtil/buffer.js +67 -0
- package/src/plugins/L.GeoUtil/index.js +284 -0
- package/src/plugins/L.Glyphicon/index.js +91 -0
- package/src/plugins/L.Glyphicon/style.less +37 -0
- package/src/plugins/L.MarkerClusterX/index.js +93 -0
- package/src/plugins/L.MarkerClusterX/style.less +162 -0
- package/src/plugins/L.SafeDivOverlay/index.js +55 -0
- package/src/plugins/L.TileLayer.ChinaProvider/index.js +108 -0
- package/src/plugins/L.VuePopup/index.js +67 -0
- package/src/plugins/L.VueTooltip/index.js +63 -0
- package/src/plugins/Mixin.Map.Measure/index.js +248 -0
- package/src/plugins/globals/index.js +7 -0
- package/src/utils/index.js +36 -0
- package/src/utils/resize-event.js +45 -0
- package/vite.config.mjs +25 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import VaeCloudmap from './vae-cloudmap.jsx'
|
|
2
|
+
// import VaeMapCtrlDraw from './ctrl-draw/index.vue'
|
|
3
|
+
// import VaeMapCtrlDrawLine from './ctrl-draw-line/index.vue'
|
|
4
|
+
import './style.less'
|
|
5
|
+
|
|
6
|
+
import 'leaflet'
|
|
7
|
+
import 'leaflet/dist/leaflet.css'
|
|
8
|
+
import markerIcon2x from 'leaflet/dist/images/marker-icon-2x.png'
|
|
9
|
+
import markerIcon from 'leaflet/dist/images/marker-icon.png'
|
|
10
|
+
import markerShadow from 'leaflet/dist/images/marker-shadow.png'
|
|
11
|
+
|
|
12
|
+
import './scripts/L.Vae.CRS'
|
|
13
|
+
import './scripts/L.Vae.Client'
|
|
14
|
+
|
|
15
|
+
import 'leaflet.markercluster'
|
|
16
|
+
import 'leaflet.markercluster/dist/MarkerCluster.css'
|
|
17
|
+
import 'leaflet.markercluster/dist/MarkerCluster.Default.css'
|
|
18
|
+
|
|
19
|
+
import 'leaflet-geometryutil'
|
|
20
|
+
import 'proj4'
|
|
21
|
+
import 'proj4leaflet'
|
|
22
|
+
import '@geoman-io/leaflet-geoman-free'
|
|
23
|
+
import '@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css'
|
|
24
|
+
|
|
25
|
+
import '@/plugins/L.AnimatedMarker'
|
|
26
|
+
import '@/plugins/L.EchartsLayer'
|
|
27
|
+
import '@/plugins/L.ElasticMarker'
|
|
28
|
+
import '@/plugins/L.FootageCalculator.Area'
|
|
29
|
+
import '@/plugins/L.FootageCalculator.Line'
|
|
30
|
+
import '@/plugins/L.GeoUtil'
|
|
31
|
+
import '@/plugins/L.Glyphicon'
|
|
32
|
+
import '@/plugins/L.MarkerClusterX'
|
|
33
|
+
import '@/plugins/L.TileLayer.ChinaProvider'
|
|
34
|
+
import '@/plugins/L.VuePopup'
|
|
35
|
+
import '@/plugins/L.VueTooltip'
|
|
36
|
+
import '@/plugins/L.SafeDivOverlay'
|
|
37
|
+
|
|
38
|
+
const resetDefaultMarkerIcon = () => {
|
|
39
|
+
delete L.Icon.Default.prototype._getIconUrl
|
|
40
|
+
|
|
41
|
+
L.Icon.Default.mergeOptions({
|
|
42
|
+
iconRetinaUrl: markerIcon2x,
|
|
43
|
+
iconUrl: markerIcon,
|
|
44
|
+
shadowUrl: markerShadow
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const install = (app, options = {}) => {
|
|
49
|
+
app.component(`${options.prefix || 'vae'}-cloudmap`, VaeCloudmap)
|
|
50
|
+
// app.component(`${options.prefix || 'vae'}-map-ctrl-draw`, VaeMapCtrlDraw)
|
|
51
|
+
// app.component(`${options.prefix || 'vae'}-map-ctrl-draw-line`, VaeMapCtrlDrawLine)
|
|
52
|
+
resetDefaultMarkerIcon()
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { VaeCloudmap }
|
|
56
|
+
|
|
57
|
+
export default { install }
|