@shjjs/visual-ui 1.0.39 → 1.0.40
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/es/commons/core/earth/main.vue.mjs +7 -7
- package/es/commons/core/useChart.mjs +301 -301
- package/es/commons/utils/parseDataset.mjs +19 -19
- package/es/commons/utils/typescript.d.ts +5 -5
- package/es/components/chart/commons/components/common-chart/index.vue.mjs +269 -269
- package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +247 -247
- package/es/components/chart/commons/hooks/useChart.mjs +316 -316
- package/es/components/chart-other-candlestick-basic/index.vue.mjs +261 -261
- package/es/components/chart-other-candlestick-demo/index.vue.mjs +260 -260
- package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +260 -260
- package/es/components/chart-other-circular-graph/index.vue.mjs +260 -260
- package/es/components/chart-other-force/index.vue.mjs +260 -260
- package/es/components/chart-other-force2/index.vue.mjs +260 -260
- package/es/components/chart-other-funnel/index.vue.mjs +260 -260
- package/es/components/chart-other-funnel-contrast/index.vue.mjs +260 -260
- package/es/components/chart-other-funnel-split/index.vue.mjs +260 -260
- package/es/components/chart-other-funnel2/index.vue.mjs +260 -260
- package/es/components/chart-other-gauge/index.vue.mjs +260 -260
- package/es/components/chart-other-gauge-grade/index.vue.mjs +260 -260
- package/es/components/chart-other-gauge-stage/index.vue.mjs +260 -260
- package/es/components/chart-other-graph-basic/index.vue.mjs +260 -260
- package/es/components/chart-other-graph-basic2/index.vue.mjs +260 -260
- package/es/components/chart-other-graph-calendar/index.vue.mjs +260 -260
- package/es/components/chart-other-grid-percentage/index.vue.mjs +266 -266
- package/es/components/chart-other-heatmap/index.vue.mjs +260 -260
- package/es/components/chart-other-label-gauge/index.vue.mjs +262 -262
- package/es/components/chart-other-liquidfill/index.vue.mjs +259 -259
- package/es/components/chart-other-parallel-basic/index.vue.mjs +260 -260
- package/es/components/chart-other-parallel-mul/index.vue.mjs +260 -260
- package/es/components/chart-other-radar/index.vue.mjs +281 -281
- package/es/components/chart-other-radar-stack/index.vue.mjs +261 -261
- package/es/components/chart-other-sunburst-basic/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-basic2/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-basic3/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-basic4/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-book/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-flavors/index.vue.mjs +260 -260
- package/es/components/chart-other-sunburst-radius/index.vue.mjs +260 -260
- package/es/components/chart-other-theme-river/index.vue.mjs +265 -265
- package/es/components/chart-other-tree/index.vue.mjs +259 -259
- package/es/components/chart-other-tree-line/index.vue.mjs +259 -259
- package/es/components/chart-other-treemap/index.vue.mjs +259 -259
- package/es/components/chart-other-treemap-basic/index.vue.mjs +259 -259
- package/es/components/chart-other-word-cloud/index.vue.mjs +259 -259
- package/es/components/commons/custom-component-render/index.d.ts +76 -76
- package/es/components/commons/custom-component-render/index.vue.d.ts +76 -76
- package/es/components/commons/custom-component-render/index.vue.mjs +7 -7
- package/es/components/commons/custom-component-render/index.vue2.mjs +280 -280
- package/es/components/commons-echarts/compileAndRunEcharts.mjs +279 -279
- package/es/components/commons-gaussian-splatting-view/index.vue.mjs +7 -7
- package/es/components/commons-loop-iterator/index.vue.mjs +7 -7
- package/es/components/commons-loop-iterator/index.vue2.mjs +315 -315
- package/es/components/commons-product-model/index.vue.mjs +7 -7
- package/es/components/commons-product-model/index.vue2.mjs +424 -424
- package/es/components/commons-qrcode/index.vue.d.ts +90 -90
- package/es/components/commons-qrcode/index.vue.mjs +7 -7
- package/es/components/commons-three-loader/index.vue.mjs +7 -7
- package/es/components/commons-three-loader/index.vue2.mjs +410 -410
- package/es/components/commons-three-loader3/index.vue.mjs +7 -7
- package/es/components/commons-three-loader3/index.vue2.mjs +387 -387
- package/es/components/commons-weather/index.vue.mjs +7 -7
- package/es/components/commons-weather/index.vue2.mjs +297 -297
- package/es/components/commons-weather-dynamic/index.vue.mjs +7 -7
- package/es/components/commons-weather-dynamic/index.vue2.mjs +305 -305
- package/es/components/graphical-circle/index.vue.mjs +7 -7
- package/es/components/graphical-diamond/index.vue.mjs +7 -7
- package/es/components/graphical-hexagon/index.vue.mjs +7 -7
- package/es/components/graphical-isosceles-triangle/index.vue.mjs +7 -7
- package/es/components/graphical-pentagon/index.vue.mjs +7 -7
- package/es/components/graphical-rect/index.vue.mjs +7 -7
- package/es/components/graphical-right-triangle/index.vue.mjs +7 -7
- package/es/components/index.d.ts +113 -113
- package/es/components/index.mjs +364 -364
- package/es/components/interaction/button/index.vue.mjs +7 -7
- package/es/components/interaction/button/index.vue2.mjs +280 -280
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +7 -7
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +409 -409
- package/es/components/interaction/date-picker/src/date-picker/index.d.ts +186 -186
- package/es/components/interaction/date-picker/src/date-picker/index.vue.d.ts +186 -186
- package/es/components/interaction/date-picker/src/date-picker-range/index.d.ts +186 -186
- package/es/components/interaction/date-picker/src/date-picker-range/index.vue.d.ts +186 -186
- package/es/components/interaction/tabs/index.vue.mjs +272 -272
- package/es/components/interaction/tabs-icon/index.vue.mjs +277 -277
- package/es/components/interaction-button/index.vue.mjs +7 -7
- package/es/components/interaction-button-image/index.vue.mjs +7 -7
- package/es/components/interaction-button-refresh/index.vue.mjs +7 -7
- package/es/components/interaction-data-picker/index.vue.mjs +7 -7
- package/es/components/interaction-input/index.vue.mjs +7 -7
- package/es/components/interaction-input/index.vue2.mjs +286 -286
- package/es/components/interaction-select/index.vue.mjs +7 -7
- package/es/components/interaction-select/index.vue2.mjs +422 -422
- package/es/components/interaction-slider/index.vue.mjs +7 -7
- package/es/components/interaction-slider/index.vue2.mjs +283 -283
- package/es/components/interaction-switch/index.vue.mjs +7 -7
- package/es/components/interaction-switch/index.vue2.mjs +244 -244
- package/es/components/interaction-tabs/index.vue.mjs +7 -7
- package/es/components/interaction-tabs/index.vue2.mjs +255 -255
- package/es/components/interaction-tabs2/index.vue.mjs +7 -7
- package/es/components/interaction-tabs2/index.vue2.mjs +255 -255
- package/es/components/map-earth-basic/index.vue.mjs +332 -332
- package/es/components/map-earth-cool-tech/index.vue.mjs +332 -332
- package/es/components/map-earth-fly-line/index.vue.mjs +332 -332
- package/es/components/map-earth-hacker/index.vue.mjs +332 -332
- package/es/components/map-earth-particle/index.vue.mjs +332 -332
- package/es/components/media-audio/index.vue.mjs +7 -7
- package/es/components/media-audio/index.vue2.mjs +277 -277
- package/es/components/media-audio-dynamic/index.vue.mjs +7 -7
- package/es/components/media-audio-dynamic/index.vue2.mjs +296 -296
- package/es/components/media-carousel/index.vue.mjs +7 -7
- package/es/components/media-carousel-slides/index.vue.mjs +7 -7
- package/es/components/media-flv/index.vue.mjs +284 -284
- package/es/components/media-iframe/index.vue.mjs +7 -7
- package/es/components/media-iframe/index.vue2.mjs +217 -217
- package/es/components/media-iframe-carousel/index.vue.mjs +7 -7
- package/es/components/media-iframe-dynamic/index.vue.mjs +7 -7
- package/es/components/media-iframe-dynamic/index.vue2.mjs +261 -261
- package/es/components/media-image/index.vue.mjs +7 -7
- package/es/components/media-image-dynamic/index.vue.mjs +7 -7
- package/es/components/media-image-dynamic/index.vue2.mjs +236 -236
- package/es/components/media-m3u8/index.vue.mjs +302 -302
- package/es/components/media-m3u8-dynamic/index.vue.mjs +319 -319
- package/es/components/media-video/index.vue.mjs +7 -7
- package/es/components/media-video/index.vue2.mjs +258 -258
- package/es/components/media-video-dynamic/index.vue.mjs +7 -7
- package/es/components/media-video-dynamic/index.vue2.mjs +280 -280
- package/es/components/media-wavesurfer/index.vue.mjs +7 -7
- package/es/components/scene-amap2d/index.vue.mjs +7 -7
- package/es/components/scene-amap2d/index.vue2.mjs +627 -627
- package/es/components/scene-amap3d/index.vue.mjs +7 -7
- package/es/components/scene-amap3d/index.vue2.mjs +752 -752
- package/es/components/scene-default/index.vue.mjs +7 -7
- package/es/components/scene-default/index.vue2.mjs +221 -221
- package/es/components/scene-map3d/index.vue.mjs +8 -8
- package/es/components/scene-map3d/index.vue2.mjs +480 -480
- package/es/components/scene-ue-iframe/index.vue.mjs +7 -7
- package/es/components/scene-ue-iframe/index.vue2.mjs +242 -242
- package/es/components/scene-ue-shj/index.vue.mjs +7 -7
- package/es/components/scene-ue-shj/index.vue2.mjs +219 -219
- package/es/components/scene-unity-iframe/index.vue.mjs +7 -7
- package/es/components/scene-unity-iframe/index.vue2.mjs +224 -224
- package/es/components/scene-unity-webgl/index.vue.mjs +7 -7
- package/es/components/scene-unity-webgl/index.vue2.mjs +226 -226
- package/es/components/scene-vr/index.d.ts +101 -101
- package/es/components/scene-vr/index.vue.d.ts +102 -102
- package/es/components/scene-vr/index.vue.mjs +7 -7
- package/es/components/scene-vr/index.vue2.mjs +543 -543
- package/es/components/text/list/index.vue.mjs +295 -295
- package/es/components/text-carousel/index.vue.mjs +7 -7
- package/es/components/text-count-down/index.vue.mjs +7 -7
- package/es/components/text-count-down/index.vue2.mjs +284 -284
- package/es/components/text-over-number/index.vue.mjs +7 -7
- package/es/components/text-over-number/index.vue2.mjs +286 -286
- package/es/components/text-real-time/index.vue.mjs +7 -7
- package/es/components/text-real-time/index.vue2.mjs +241 -241
- package/es/components/text-row-scroll/index.vue.mjs +7 -7
- package/es/components/text-row-scroll/index.vue2.mjs +352 -352
- package/es/components/text-table-basic/index.vue.mjs +7 -7
- package/es/components/text-table-basic/index.vue2.mjs +366 -366
- package/es/components/text-table-scroll/index.vue.mjs +7 -7
- package/es/components/text-table-scroll/index.vue2.mjs +356 -356
- package/es/components/text-text-basic/index.vue.mjs +7 -7
- package/es/components/text-text-dynamic/index.vue.mjs +7 -7
- package/es/components/text-text-dynamic/index.vue2.mjs +242 -242
- package/es/components/text-title/index.vue.mjs +7 -7
- package/es/index.mjs +388 -388
- package/es/plugins/datasource/index.mjs +216 -216
- package/es/widgets.css +1 -1
- package/package.json +2 -2
- package/umd/index.js +33660 -0
- package/umd/widgets.css +1 -0
|
@@ -1,752 +1,752 @@
|
|
|
1
|
-
import { defineComponent as M, watch as d, createElementBlock as ee, openBlock as te, normalizeClass as re, unref as ae, createElementVNode as oe, shallowRef as E, ref as v, onMounted as se, onUnmounted as ie } from "vue";
|
|
2
|
-
import le from "@amap/amap-jsapi-loader";
|
|
3
|
-
import ne from "axios";
|
|
4
|
-
import { nanoid as me } from "nanoid";
|
|
5
|
-
import { debounce as z } from "lodash";
|
|
6
|
-
import "../text-text-basic/index.mjs";
|
|
7
|
-
import "../text-table-basic/index.mjs";
|
|
8
|
-
import "../chart-other-gauge/index.mjs";
|
|
9
|
-
import "../chart-other-gauge-stage/index.mjs";
|
|
10
|
-
import "../chart-other-gauge-grade/index.mjs";
|
|
11
|
-
import "../chart-other-word-cloud/index.mjs";
|
|
12
|
-
import "../chart-other-liquidfill/index.mjs";
|
|
13
|
-
import "../chart-other-funnel/index.mjs";
|
|
14
|
-
import "../chart-other-force/index.mjs";
|
|
15
|
-
import "../chart-other-radar/index.mjs";
|
|
16
|
-
import "../chart-other-funnel-split/index.mjs";
|
|
17
|
-
import "../chart-other-funnel-contrast/index.mjs";
|
|
18
|
-
import "../chart-other-candlestick-basic/index.mjs";
|
|
19
|
-
import "../chart-other-candlestick-shanghai/index.mjs";
|
|
20
|
-
import "../chart-other-candlestick-demo/index.mjs";
|
|
21
|
-
import "../chart-other-heatmap/index.mjs";
|
|
22
|
-
import "../chart-other-force2/index.mjs";
|
|
23
|
-
import "../chart-other-graph-basic/index.mjs";
|
|
24
|
-
import "../chart-other-graph-basic2/index.mjs";
|
|
25
|
-
import "../chart-other-graph-calendar/index.mjs";
|
|
26
|
-
import "../chart-other-tree-line/index.mjs";
|
|
27
|
-
import "../chart-other-treemap-basic/index.mjs";
|
|
28
|
-
import "../chart-other-sunburst-basic/index.mjs";
|
|
29
|
-
import "../chart-other-sunburst-basic2/index.mjs";
|
|
30
|
-
import "../chart-other-sunburst-basic3/index.mjs";
|
|
31
|
-
import "../chart-other-sunburst-basic4/index.mjs";
|
|
32
|
-
import "../chart-other-sunburst-book/index.mjs";
|
|
33
|
-
import "../chart-other-sunburst-radius/index.mjs";
|
|
34
|
-
import "../chart-other-sunburst-flavors/index.mjs";
|
|
35
|
-
import "../chart-other-parallel-basic/index.mjs";
|
|
36
|
-
import "../chart-other-parallel-mul/index.mjs";
|
|
37
|
-
import "../chart-other-circular-graph/index.mjs";
|
|
38
|
-
import "../map-earth-basic/index.mjs";
|
|
39
|
-
import "../map-earth-cool-tech/index.mjs";
|
|
40
|
-
import "../map-earth-particle/index.mjs";
|
|
41
|
-
import "../map-earth-hacker/index.mjs";
|
|
42
|
-
import "../map-earth-fly-line/index.mjs";
|
|
43
|
-
import "../chart-other-grid-percentage/index.mjs";
|
|
44
|
-
import "../chart-other-radar-stack/index.mjs";
|
|
45
|
-
import "../chart-other-funnel2/index.mjs";
|
|
46
|
-
import "../chart-other-label-gauge/index.mjs";
|
|
47
|
-
import "../chart-other-theme-river/index.mjs";
|
|
48
|
-
import "../chart-other-tree/index.mjs";
|
|
49
|
-
import "../chart-other-treemap/index.mjs";
|
|
50
|
-
import "../commons-product-model/index.mjs";
|
|
51
|
-
import "../commons-vr-photo/index.mjs";
|
|
52
|
-
import "../commons-vr-video/index.mjs";
|
|
53
|
-
import "../commons-three-loader/index.mjs";
|
|
54
|
-
import "../commons-three-loader3/index.mjs";
|
|
55
|
-
import "../commons-loop-iterator/index.mjs";
|
|
56
|
-
import "../commons-gaussian-splatting-view/index.mjs";
|
|
57
|
-
import "../commons-babylon/index.mjs";
|
|
58
|
-
import "../commons-svg/index.mjs";
|
|
59
|
-
import "../commons-weather/index.mjs";
|
|
60
|
-
import "../commons-weather-dynamic/index.mjs";
|
|
61
|
-
import "../media-wavesurfer/index.mjs";
|
|
62
|
-
import "../interaction-tabs/index.mjs";
|
|
63
|
-
import "../interaction-tabs2/index.mjs";
|
|
64
|
-
import "../interaction-button/index.mjs";
|
|
65
|
-
import "../interaction-button-image/index.mjs";
|
|
66
|
-
import "../interaction-select/index.mjs";
|
|
67
|
-
import "../interaction-input/index.mjs";
|
|
68
|
-
import "../interaction-radio/index.mjs";
|
|
69
|
-
import "../interaction-slider/index.mjs";
|
|
70
|
-
import "../interaction-switch/index.mjs";
|
|
71
|
-
import "../interaction-data-picker/index.mjs";
|
|
72
|
-
import "../interaction-button-refresh/index.mjs";
|
|
73
|
-
import "../media-image/index.mjs";
|
|
74
|
-
import "../text-title/index.mjs";
|
|
75
|
-
import "../commons-qrcode/index.mjs";
|
|
76
|
-
import "../media-video/index.mjs";
|
|
77
|
-
import "../media-audio/index.mjs";
|
|
78
|
-
import "../text-real-time/index.mjs";
|
|
79
|
-
import "../media-carousel/index.mjs";
|
|
80
|
-
import "../media-carousel-slides/index.mjs";
|
|
81
|
-
import "../media-iframe-carousel/index.mjs";
|
|
82
|
-
import "../media-iframe/index.mjs";
|
|
83
|
-
import "../media-m3u8/index.mjs";
|
|
84
|
-
import "../media-m3u8-dynamic/index.mjs";
|
|
85
|
-
import "../media-audio-dynamic/index.mjs";
|
|
86
|
-
import "../media-video-dynamic/index.mjs";
|
|
87
|
-
import "../media-image-dynamic/index.mjs";
|
|
88
|
-
import "../media-iframe-dynamic/index.mjs";
|
|
89
|
-
import "../media-flv/index.mjs";
|
|
90
|
-
import "../commons-echarts/index.mjs";
|
|
91
|
-
import "../text-over-number/index.mjs";
|
|
92
|
-
import "../text-table-scroll/index.mjs";
|
|
93
|
-
import "../text-carousel/index.mjs";
|
|
94
|
-
import "../text-row-scroll/index.mjs";
|
|
95
|
-
import "../text-text-dynamic/index.mjs";
|
|
96
|
-
import "../text-count-down/index.mjs";
|
|
97
|
-
import "../graphical-circle/index.mjs";
|
|
98
|
-
import "../graphical-diamond/index.mjs";
|
|
99
|
-
import "../graphical-hexagon/index.mjs";
|
|
100
|
-
import "../graphical-isosceles-triangle/index.mjs";
|
|
101
|
-
import "../graphical-pentagon/index.mjs";
|
|
102
|
-
import "../graphical-rect/index.mjs";
|
|
103
|
-
import "../graphical-right-triangle/index.mjs";
|
|
104
|
-
import "../scene-map3d/index.mjs";
|
|
105
|
-
import "../scene-amap2d/index.mjs";
|
|
106
|
-
import "./index.mjs";
|
|
107
|
-
import "../scene-vr/index.mjs";
|
|
108
|
-
import "../scene-unity-iframe/index.mjs";
|
|
109
|
-
import "../scene-unity-webgl/index.mjs";
|
|
110
|
-
import "../scene-ue-iframe/index.mjs";
|
|
111
|
-
import "../scene-ue-shj/index.mjs";
|
|
112
|
-
import "../scene-default/index.mjs";
|
|
113
|
-
import "../interaction/tabs/index.mjs";
|
|
114
|
-
import "../interaction/tabs-icon/index.mjs";
|
|
115
|
-
import "../interaction/button/index.mjs";
|
|
116
|
-
import "../interaction/date-picker/src/date-picker/index.mjs";
|
|
117
|
-
import "../interaction/date-picker/src/date-picker-range/index.mjs";
|
|
118
|
-
import "../text/list/index.mjs";
|
|
119
|
-
import "../chart/src/bar/basic/index.mjs";
|
|
120
|
-
import "../chart/src/bar/animation/index.mjs";
|
|
121
|
-
import "../chart/src/bar/contrast/index.mjs";
|
|
122
|
-
import "../chart/src/bar/contrast2/index.mjs";
|
|
123
|
-
import "../chart/src/bar/contrast3/index.mjs";
|
|
124
|
-
import "../chart/src/bar/gradient-column-chart/index.mjs";
|
|
125
|
-
import "../chart/src/bar/horizontal/index.mjs";
|
|
126
|
-
import "../chart/src/bar/horizontal-stack/index.mjs";
|
|
127
|
-
import "../chart/src/bar/line-bar/index.mjs";
|
|
128
|
-
import "../chart/src/bar/line-bar2/index.mjs";
|
|
129
|
-
import "../chart/src/bar/loop/index.mjs";
|
|
130
|
-
import "../chart/src/bar/mini/index.mjs";
|
|
131
|
-
import "../chart/src/bar/polar/index.mjs";
|
|
132
|
-
import "../chart/src/bar/polar-stack/index.mjs";
|
|
133
|
-
import "../chart/src/bar/polar2/index.mjs";
|
|
134
|
-
import "../chart/src/bar/radius-circle/index.mjs";
|
|
135
|
-
import "../chart/src/bar/rank/index.mjs";
|
|
136
|
-
import "../chart/src/bar/segmented-progress/index.mjs";
|
|
137
|
-
import "../chart/src/bar/spire/index.mjs";
|
|
138
|
-
import "../chart/src/bar/stack/index.mjs";
|
|
139
|
-
import "../chart/src/bar/stack-line/index.mjs";
|
|
140
|
-
import "../chart/src/bar/stack2/index.mjs";
|
|
141
|
-
import "../chart/src/bar/stack3/index.mjs";
|
|
142
|
-
import "../chart/src/bar/staggered/index.mjs";
|
|
143
|
-
import "../chart/src/bar/three/index.mjs";
|
|
144
|
-
import "../chart/src/bar/waterfall/index.mjs";
|
|
145
|
-
import "../chart/src/bar/zebra/index.mjs";
|
|
146
|
-
import "../chart/src/line/area-gradient/index.mjs";
|
|
147
|
-
import "../chart/src/line/area-highlight/index.mjs";
|
|
148
|
-
import "../chart/src/line/area-highlight2/index.mjs";
|
|
149
|
-
import "../chart/src/line/basic/index.mjs";
|
|
150
|
-
import "../chart/src/line/bump/index.mjs";
|
|
151
|
-
import "../chart/src/line/dashed/index.mjs";
|
|
152
|
-
import "../chart/src/line/ladder/index.mjs";
|
|
153
|
-
import "../chart/src/line/logarithm/index.mjs";
|
|
154
|
-
import "../chart/src/line/multix/index.mjs";
|
|
155
|
-
import "../chart/src/line/polar-double/index.mjs";
|
|
156
|
-
import "../chart/src/line/rain-flow/index.mjs";
|
|
157
|
-
import "../chart/src/line/scale/index.mjs";
|
|
158
|
-
import "../chart/src/line/smooth/index.mjs";
|
|
159
|
-
import "../chart/src/line/smooth-area/index.mjs";
|
|
160
|
-
import "../chart/src/line/stack/index.mjs";
|
|
161
|
-
import "../chart/src/line/stack-area/index.mjs";
|
|
162
|
-
import "../chart/src/line/temp/index.mjs";
|
|
163
|
-
import "../chart/src/line/vertical/index.mjs";
|
|
164
|
-
import "../chart/src/map/basic/index.mjs";
|
|
165
|
-
import "../chart/src/map/bmap-basic/index.mjs";
|
|
166
|
-
import "../chart/src/map/bmap-heatmap/index.mjs";
|
|
167
|
-
import "../chart/src/map/bmap-rich/index.mjs";
|
|
168
|
-
import "../chart/src/map/customize/index.mjs";
|
|
169
|
-
import "../chart/src/map/lines/index.mjs";
|
|
170
|
-
import "../chart/src/map/scatter/index.mjs";
|
|
171
|
-
import "../chart/src/pie/3d/index.mjs";
|
|
172
|
-
import "../chart/src/pie/basic/index.mjs";
|
|
173
|
-
import "../chart/src/pie/basic2/index.mjs";
|
|
174
|
-
import "../chart/src/pie/customized/index.mjs";
|
|
175
|
-
import "../chart/src/pie/index/index.mjs";
|
|
176
|
-
import "../chart/src/pie/interval/index.mjs";
|
|
177
|
-
import "../chart/src/pie/legend-scroll/index.mjs";
|
|
178
|
-
import "../chart/src/pie/radius/index.mjs";
|
|
179
|
-
import "../chart/src/pie/rose/index.mjs";
|
|
180
|
-
import "../chart/src/pie/round/index.mjs";
|
|
181
|
-
import "../chart/src/pie/sunburst/index.mjs";
|
|
182
|
-
import "../chart/src/scatter/basic/index.mjs";
|
|
183
|
-
import "../chart/src/scatter/basic2/index.mjs";
|
|
184
|
-
import "../chart/src/scatter/bubble/index.mjs";
|
|
185
|
-
import "../chart/src/scatter/ripples/index.mjs";
|
|
186
|
-
import "../commons/custom-component-render/index.mjs";
|
|
187
|
-
/* empty css */
|
|
188
|
-
/* empty css */
|
|
189
|
-
import { SHJDatasourceV2 as ce } from "../../plugins/datasource/index.mjs";
|
|
190
|
-
import { SHJParseEvent as p } from "../../plugins/event/index.mjs";
|
|
191
|
-
const de = M({ name: "zv-scene-amap3d" }), Na = /* @__PURE__ */ M({
|
|
192
|
-
...de,
|
|
193
|
-
props: {
|
|
194
|
-
basicOption: {},
|
|
195
|
-
sources: {},
|
|
196
|
-
useEvents: {},
|
|
197
|
-
uuid: {}
|
|
198
|
-
},
|
|
199
|
-
emits: [
|
|
200
|
-
"amap3d-scene-success",
|
|
201
|
-
"amap3d-scene-zoomstart",
|
|
202
|
-
"amap3d-scene-zoomend",
|
|
203
|
-
"amap3d-scene-mapclick",
|
|
204
|
-
"amap3d-scene-dragstart",
|
|
205
|
-
"amap3d-scene-dragging",
|
|
206
|
-
"amap3d-scene-dragend",
|
|
207
|
-
"amap3d-scene-pulseLinkLayer"
|
|
208
|
-
],
|
|
209
|
-
setup(I, { expose: A, emit: B }) {
|
|
210
|
-
const o = I, u = B;
|
|
211
|
-
p.parseEvents(o.useEvents, "on-page-loaded", null);
|
|
212
|
-
const W = () => {
|
|
213
|
-
const i = E(), m = E(), x = v(!1), h = v(), b = v(), k = v(), c = v(), C = (t) => {
|
|
214
|
-
O(), window._AMapSecurityConfig = {
|
|
215
|
-
securityJsCode: t.basic.securityJsCode
|
|
216
|
-
}, le.load({
|
|
217
|
-
key: t.basic.key,
|
|
218
|
-
// 申请好的Web端开发者Key,首次调用 load 时必填
|
|
219
|
-
version: "2.0",
|
|
220
|
-
// 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
|
|
221
|
-
Loca: {
|
|
222
|
-
version: "2.0.0"
|
|
223
|
-
},
|
|
224
|
-
plugins: ["AMap.ControlBar", "AMap.ToolBar", "AMap.Scale", "AMap.HeatMap", "AMap.GeoJSON", "AMap.ImageLayer", "AMap.TileLayer"]
|
|
225
|
-
}).then((e) => {
|
|
226
|
-
c.value = e;
|
|
227
|
-
const a = new c.value.createDefaultLayer({
|
|
228
|
-
visible: !0,
|
|
229
|
-
// 是否可见
|
|
230
|
-
opacity: 1,
|
|
231
|
-
// 透明度
|
|
232
|
-
zIndex: 0
|
|
233
|
-
// 叠加层级
|
|
234
|
-
});
|
|
235
|
-
i.value = new e.Map("zerov-amap-3d", {
|
|
236
|
-
rotateEnable: t.config.rotateEnable,
|
|
237
|
-
// 是否开启地图旋转交互 鼠标右键 + 鼠标画圈移动 或 键盘Ctrl + 鼠标画圈移动
|
|
238
|
-
pitchEnable: t.config.pitchEnable,
|
|
239
|
-
// 是否开启地图倾斜交互 鼠标右键 + 鼠标上下移动或键盘Ctrl + 鼠标上下移动
|
|
240
|
-
resizeEnable: t.config.resizeEnable,
|
|
241
|
-
zoomEnable: t.config.zoomEnable,
|
|
242
|
-
dragEnable: t.config.dragEnable,
|
|
243
|
-
zoom: t.config.zoom,
|
|
244
|
-
// 初始化地图层级
|
|
245
|
-
viewMode: "3D",
|
|
246
|
-
// 开启3D视图,默认为关闭
|
|
247
|
-
zooms: t.config.zooms,
|
|
248
|
-
// 地图显示的缩放级别范围
|
|
249
|
-
center: t.config.center,
|
|
250
|
-
// 初始地图中心经纬度
|
|
251
|
-
mapStyle: t.config.mapStyle,
|
|
252
|
-
features: t.config.features,
|
|
253
|
-
pitch: t.config.pitch,
|
|
254
|
-
// 0-83
|
|
255
|
-
rotation: t.config.rotation,
|
|
256
|
-
// 0-360
|
|
257
|
-
wallColor: t.config.floors.wallColor,
|
|
258
|
-
roofColor: t.config.floors.roofColor,
|
|
259
|
-
skyColor: t.config.skyColor,
|
|
260
|
-
layers: [a]
|
|
261
|
-
}), m.value = new window.Loca.Container({
|
|
262
|
-
map: i.value
|
|
263
|
-
}), k.value = new c.value.Scale({
|
|
264
|
-
visible: t.config.plugin.scale.visible,
|
|
265
|
-
position: {
|
|
266
|
-
left: t.config.plugin.scale.position.left + "px",
|
|
267
|
-
bottom: t.config.plugin.scale.position.bottom + "px"
|
|
268
|
-
}
|
|
269
|
-
}), i.value.addControl(k.value), h.value = new e.ControlBar({
|
|
270
|
-
visible: t.config.plugin.controlBar.visible,
|
|
271
|
-
showControlButton: t.config.plugin.controlBar.showControlButton,
|
|
272
|
-
position: {
|
|
273
|
-
right: t.config.plugin.controlBar.position.right + "px",
|
|
274
|
-
top: t.config.plugin.controlBar.position.top + "px"
|
|
275
|
-
}
|
|
276
|
-
}), i.value.addControl(h.value), b.value = new e.ToolBar({
|
|
277
|
-
visible: t.config.plugin.toolBar.visible,
|
|
278
|
-
position: {
|
|
279
|
-
left: t.config.plugin.toolBar.position.left + "px",
|
|
280
|
-
top: t.config.plugin.toolBar.position.top + "px"
|
|
281
|
-
}
|
|
282
|
-
}), i.value.addControl(b.value), S(e), i.value.on("complete", () => {
|
|
283
|
-
setTimeout(() => {
|
|
284
|
-
x.value = !0, u("amap3d-scene-success"), p.parseEvents(o.useEvents, "amap3d-scene-success", null);
|
|
285
|
-
}, 666);
|
|
286
|
-
}), i.value.on("zoomstart", () => {
|
|
287
|
-
u("amap3d-scene-zoomstart"), p.parseEvents(o.useEvents, "amap3d-scene-zoomstart", null);
|
|
288
|
-
}), i.value.on("zoomend", () => {
|
|
289
|
-
u("amap3d-scene-zoomend"), p.parseEvents(o.useEvents, "amap3d-scene-zoomend", null);
|
|
290
|
-
}), i.value.on("click", (r) => {
|
|
291
|
-
u("amap3d-scene-mapclick", r.lnglat), p.parseEvents(o.useEvents, "amap3d-scene-mapclick", r.lnglat);
|
|
292
|
-
}), i.value.on("dragstart", (r) => {
|
|
293
|
-
u("amap3d-scene-dragstart", r.lnglat), p.parseEvents(o.useEvents, "amap3d-scene-dragstart", r.lnglat);
|
|
294
|
-
}), i.value.on("dragend", (r) => {
|
|
295
|
-
u("amap3d-scene-dragend", r.lnglat), p.parseEvents(o.useEvents, "amap3d-scene-dragend", r.lnglat);
|
|
296
|
-
});
|
|
297
|
-
}).catch((e) => {
|
|
298
|
-
});
|
|
299
|
-
}, S = z((t) => {
|
|
300
|
-
o.sources && o.sources.length > 0 ? ce.parse({
|
|
301
|
-
tId: o.uuid,
|
|
302
|
-
sources: o.sources,
|
|
303
|
-
callback: (a) => {
|
|
304
|
-
try {
|
|
305
|
-
const r = o.basicOption.widgets.find((s) => s._sourceId === a.id);
|
|
306
|
-
r && r.type === "heatmap" && G(window.Loca, r, f(a.data[0].data, "Point")), r && r.type === "dotlayers" && H(window.Loca, r, f(a.data[0].data, "Point")), r && r.type === "scatter" && Z(window.Loca, r, f(a.data[0].data, "Point")), r && r.type === "labelsLayer" && R(window.Loca, r, f(a.data[0].data, "Point")), r && r.type === "signagePoints" && j(window.Loca, r, f(a.data[0].data, "Point")), r && r.type === "pulseLinkLayer" && V(window.Loca, r, f(a.data[0].data, "LineString"));
|
|
307
|
-
} catch {
|
|
308
|
-
}
|
|
309
|
-
o.basicOption.widgets.filter((r) => r.type === "boundary").forEach((r) => {
|
|
310
|
-
L(t, r);
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
}) : o.basicOption.widgets.filter((a) => a.type === "boundary").forEach((a) => {
|
|
314
|
-
L(t, a);
|
|
315
|
-
});
|
|
316
|
-
const e = i.value.getLayers();
|
|
317
|
-
for (let a = 0; a < e.length; a++)
|
|
318
|
-
(e[a].type === "sketchTileLayer" || e[a]._opts.type === "sketchImageLayer") && i.value.removeLayer(e[a]);
|
|
319
|
-
o.basicOption.widgets.filter((a) => a.type === "sketchTile").forEach((a) => {
|
|
320
|
-
const r = N(a);
|
|
321
|
-
r && i.value.addLayer(r);
|
|
322
|
-
}), o.basicOption.widgets.filter((a) => a.type === "sketchImage").forEach((a) => {
|
|
323
|
-
const r = _(a);
|
|
324
|
-
i.value.addLayer(r);
|
|
325
|
-
});
|
|
326
|
-
}, 200), F = (t) => {
|
|
327
|
-
const a = t.slice(t.indexOf("(") + 1, t.lastIndexOf(")")).split(",").map((s) => s.trim()), r = {};
|
|
328
|
-
for (let s = 1; s < a.length; s++) {
|
|
329
|
-
const n = a[s].split(" "), l = n[0], y = parseFloat(n[1]) / 100, Y = Math.round(y * 100) / 100;
|
|
330
|
-
r[Y] = l;
|
|
331
|
-
}
|
|
332
|
-
return r;
|
|
333
|
-
}, N = (t) => {
|
|
334
|
-
try {
|
|
335
|
-
return new c.value.TileLayer({
|
|
336
|
-
bounds: new c.value.Bounds(
|
|
337
|
-
t.bounds[0],
|
|
338
|
-
t.bounds[1]
|
|
339
|
-
),
|
|
340
|
-
getTileUrl: function(a, r, s) {
|
|
341
|
-
try {
|
|
342
|
-
return t.url.replace("{z}", s).replace("{x}", a).replace("{y}", r);
|
|
343
|
-
} catch {
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
type: "sketchTileLayer",
|
|
347
|
-
tileSize: t.tileSize,
|
|
348
|
-
opacity: t.opacity,
|
|
349
|
-
zIndex: t.zIndex,
|
|
350
|
-
zooms: t.zooms
|
|
351
|
-
});
|
|
352
|
-
} catch {
|
|
353
|
-
}
|
|
354
|
-
return null;
|
|
355
|
-
}, _ = (t) => {
|
|
356
|
-
try {
|
|
357
|
-
return new c.value.ImageLayer({
|
|
358
|
-
bounds: new c.value.Bounds(
|
|
359
|
-
t.bounds[0],
|
|
360
|
-
// 左下 手绘图左下相对于地图的经纬度
|
|
361
|
-
t.bounds[1]
|
|
362
|
-
// 右上 手绘图右上相对于地图的经纬度
|
|
363
|
-
),
|
|
364
|
-
type: "sketchImageLayer",
|
|
365
|
-
opacity: t.opacity,
|
|
366
|
-
url: t.url,
|
|
367
|
-
zIndex: t.zIndex,
|
|
368
|
-
zooms: t.zooms
|
|
369
|
-
// 设置可见级别,[最小级别,最大级别]
|
|
370
|
-
});
|
|
371
|
-
} catch {
|
|
372
|
-
}
|
|
373
|
-
return null;
|
|
374
|
-
}, G = (t, e, a) => {
|
|
375
|
-
try {
|
|
376
|
-
const r = new t.HeatMapLayer({
|
|
377
|
-
zIndex: 10,
|
|
378
|
-
opacity: e.opacity,
|
|
379
|
-
visible: !0,
|
|
380
|
-
zooms: [2, 22]
|
|
381
|
-
}), s = new t.GeoJSONSource({
|
|
382
|
-
data: a
|
|
383
|
-
});
|
|
384
|
-
r.setSource(s, {
|
|
385
|
-
radius: e.style.radius,
|
|
386
|
-
unit: e.style.unit,
|
|
387
|
-
height: e.style.height,
|
|
388
|
-
opacity: e.style.opacity,
|
|
389
|
-
gradient: F(e.style.gradient),
|
|
390
|
-
value: function(n, l) {
|
|
391
|
-
return l.coordinates[2] || 0;
|
|
392
|
-
},
|
|
393
|
-
min: e.style.min,
|
|
394
|
-
max: e.style.max,
|
|
395
|
-
// 4.6
|
|
396
|
-
heightBezier: [0, 0.53, 0.37, 0.98]
|
|
397
|
-
}), m.value.add(r);
|
|
398
|
-
} catch {
|
|
399
|
-
}
|
|
400
|
-
}, L = async (t, e) => {
|
|
401
|
-
try {
|
|
402
|
-
const a = await ne.get(e.geojson);
|
|
403
|
-
if (a.status === 200) {
|
|
404
|
-
const r = new t.GeoJSON({
|
|
405
|
-
geoJSON: a.data,
|
|
406
|
-
getPolygon: function(s, n) {
|
|
407
|
-
const l = new t.Polygon({
|
|
408
|
-
path: n,
|
|
409
|
-
zIndex: e.zIndex,
|
|
410
|
-
fillColor: e.style.fillColor,
|
|
411
|
-
// 填充色
|
|
412
|
-
strokeOpacity: e.style.strokeOpacity,
|
|
413
|
-
// 轮廓线透明度
|
|
414
|
-
fillOpacity: e.style.fillOpacity,
|
|
415
|
-
// 填充色透明度
|
|
416
|
-
strokeColor: e.style.strokeColor,
|
|
417
|
-
// 线条颜色
|
|
418
|
-
strokeWeight: e.style.strokeWeight,
|
|
419
|
-
// 线条宽度
|
|
420
|
-
strokeStyle: e.style.strokeStyle
|
|
421
|
-
// 线条样式
|
|
422
|
-
});
|
|
423
|
-
return l.on("mouseover", () => {
|
|
424
|
-
l.setOptions({
|
|
425
|
-
fillOpacity: e.mouseover.fillOpacity,
|
|
426
|
-
fillColor: e.mouseover.fillColor,
|
|
427
|
-
strokeOpacity: e.mouseover.strokeOpacity,
|
|
428
|
-
strokeColor: e.mouseover.strokeColor,
|
|
429
|
-
strokeStyle: e.mouseover.strokeStyle,
|
|
430
|
-
strokeWeight: e.mouseover.strokeWeight
|
|
431
|
-
});
|
|
432
|
-
}), l.on("mouseout", () => {
|
|
433
|
-
l.setOptions({
|
|
434
|
-
fillColor: e.style.fillColor,
|
|
435
|
-
// 填充色
|
|
436
|
-
strokeOpacity: e.style.strokeOpacity,
|
|
437
|
-
// 轮廓线透明度
|
|
438
|
-
fillOpacity: e.style.fillOpacity,
|
|
439
|
-
// 填充色透明度
|
|
440
|
-
strokeColor: e.style.strokeColor,
|
|
441
|
-
// 线条颜色
|
|
442
|
-
strokeWeight: e.style.strokeWeight,
|
|
443
|
-
// 线条宽度
|
|
444
|
-
strokeStyle: e.style.strokeStyle
|
|
445
|
-
// 线条样式
|
|
446
|
-
});
|
|
447
|
-
}), l;
|
|
448
|
-
}
|
|
449
|
-
});
|
|
450
|
-
i.value.add(r);
|
|
451
|
-
}
|
|
452
|
-
} catch {
|
|
453
|
-
}
|
|
454
|
-
}, H = (t, e, a) => {
|
|
455
|
-
try {
|
|
456
|
-
const r = new t.GeoJSONSource({
|
|
457
|
-
data: a
|
|
458
|
-
}), s = new t.PointLayer({
|
|
459
|
-
zIndex: e.zIndex,
|
|
460
|
-
blend: e.blend,
|
|
461
|
-
visible: e.visible,
|
|
462
|
-
opacity: e.opacity
|
|
463
|
-
}), n = {
|
|
464
|
-
radius: e.style.radius,
|
|
465
|
-
unit: e.style.unit,
|
|
466
|
-
color: e.style.color,
|
|
467
|
-
borderWidth: e.style.borderWidth,
|
|
468
|
-
blurWidth: e.style.blurWidth,
|
|
469
|
-
borderColor: e.style.borderColor
|
|
470
|
-
};
|
|
471
|
-
s.setSource(r), s.setStyle(n), m.value.add(s), s.addAnimate({
|
|
472
|
-
key: e.animate.key,
|
|
473
|
-
value: e.animate.value,
|
|
474
|
-
duration: e.animate.duration,
|
|
475
|
-
easing: e.animate.easing,
|
|
476
|
-
transform: e.animate.transform,
|
|
477
|
-
random: e.animate.random,
|
|
478
|
-
delay: e.animate.delay,
|
|
479
|
-
yoyo: e.animate.yoyo,
|
|
480
|
-
repeat: e.animate.repeat
|
|
481
|
-
});
|
|
482
|
-
} catch {
|
|
483
|
-
}
|
|
484
|
-
}, Z = (t, e, a) => {
|
|
485
|
-
try {
|
|
486
|
-
const r = new t.GeoJSONSource({
|
|
487
|
-
data: a
|
|
488
|
-
}), s = new t.ScatterLayer({
|
|
489
|
-
loca: m.value,
|
|
490
|
-
zIndex: e.zIndex,
|
|
491
|
-
opacity: e.opacity,
|
|
492
|
-
visible: e.visible,
|
|
493
|
-
zooms: e.zooms
|
|
494
|
-
});
|
|
495
|
-
s.setSource(r), s.setStyle({
|
|
496
|
-
unit: e.style.unit,
|
|
497
|
-
size: e.style.size,
|
|
498
|
-
borderWidth: e.style.borderWidth,
|
|
499
|
-
texture: e.style.texture,
|
|
500
|
-
duration: e.style.duration,
|
|
501
|
-
animate: e.style.animate
|
|
502
|
-
}), m.value.animate.start();
|
|
503
|
-
} catch {
|
|
504
|
-
}
|
|
505
|
-
}, R = (t, e, a) => {
|
|
506
|
-
try {
|
|
507
|
-
const r = new t.GeoJSONSource({
|
|
508
|
-
data: a
|
|
509
|
-
}), s = new t.LabelsLayer({
|
|
510
|
-
eventSupport: !0,
|
|
511
|
-
visible: e.visible,
|
|
512
|
-
zooms: e.zooms,
|
|
513
|
-
opacity: e.opacity,
|
|
514
|
-
collision: e.collision,
|
|
515
|
-
allowCollision: e.allowCollision,
|
|
516
|
-
zIndex: e.zIndex
|
|
517
|
-
});
|
|
518
|
-
s.setSource(r), s.setStyle({
|
|
519
|
-
icon: {
|
|
520
|
-
image: e.icon.image,
|
|
521
|
-
size: e.icon.size,
|
|
522
|
-
clipOrigin: e.icon.clipOrigin,
|
|
523
|
-
offset: e.icon.offset,
|
|
524
|
-
anchor: e.icon.anchor
|
|
525
|
-
},
|
|
526
|
-
text: {
|
|
527
|
-
// 每项配置都可使用回调函数来动态配置
|
|
528
|
-
content: (n, l) => l.properties[e.text.content],
|
|
529
|
-
zooms: e.text.zooms,
|
|
530
|
-
offset: e.text.offset,
|
|
531
|
-
direction: e.text.direction,
|
|
532
|
-
style: {
|
|
533
|
-
fontSize: e.text.style.fontSize,
|
|
534
|
-
fillColor: e.text.style.fillColor,
|
|
535
|
-
strokeColor: e.text.style.strokeColor,
|
|
536
|
-
strokeWidth: e.text.style.strokeWidth,
|
|
537
|
-
padding: e.text.style.padding,
|
|
538
|
-
backgroundColor: e.text.style.backgroundColor,
|
|
539
|
-
borderColor: e.text.style.borderColor,
|
|
540
|
-
borderWidth: e.text.style.borderWidth,
|
|
541
|
-
fold: e.text.style.fold,
|
|
542
|
-
fontWeight: e.text.style.fontWeight
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
}), s.on("complete", () => {
|
|
546
|
-
const n = s.getLabelsLayer().getAllOverlays();
|
|
547
|
-
for (const l of n)
|
|
548
|
-
l.on("click", (y) => {
|
|
549
|
-
}), l.on("mouseover", (y) => {
|
|
550
|
-
}), l.on("mouseout", (y) => {
|
|
551
|
-
});
|
|
552
|
-
}), m.value.add(s);
|
|
553
|
-
} catch {
|
|
554
|
-
}
|
|
555
|
-
}, j = (t, e, a) => {
|
|
556
|
-
try {
|
|
557
|
-
const r = new t.GeoJSONSource({
|
|
558
|
-
data: a
|
|
559
|
-
}), s = new t.ZMarkerLayer({
|
|
560
|
-
zIndex: e.signs.zIndex,
|
|
561
|
-
visible: e.signs.visible,
|
|
562
|
-
zooms: e.signs.zooms,
|
|
563
|
-
opacity: e.signs.opacity,
|
|
564
|
-
depth: !1
|
|
565
|
-
});
|
|
566
|
-
s.setSource(r), s.setStyle({
|
|
567
|
-
content: (l, y) => `<div style="
|
|
568
|
-
width: ${e.signs.style.width}px;
|
|
569
|
-
height: ${e.signs.style.height + 148}px;
|
|
570
|
-
">
|
|
571
|
-
<p style="
|
|
572
|
-
display: block;
|
|
573
|
-
height:${e.signs.style.height}px;
|
|
574
|
-
background-image:${e.signs.style.background};
|
|
575
|
-
border:${e.signs.style.borderWidth}px ${e.signs.style.borderStyle} ${e.signs.style.borderColor};
|
|
576
|
-
border-radius: ${e.signs.style.borderRadius}px;
|
|
577
|
-
line-height:${e.signs.style.lineHeight}px;
|
|
578
|
-
text-align:${e.signs.style.textAlign};
|
|
579
|
-
font-size:${e.signs.style.fontSize}px;
|
|
580
|
-
color:${e.signs.style.fillColor};
|
|
581
|
-
margin:0;
|
|
582
|
-
">
|
|
583
|
-
${y.properties.name}
|
|
584
|
-
</p>
|
|
585
|
-
</div>`,
|
|
586
|
-
unit: e.signs.style.unit,
|
|
587
|
-
rotation: e.signs.style.rotation,
|
|
588
|
-
alwaysFront: e.signs.style.alwaysFront,
|
|
589
|
-
size: [e.signs.style.width, e.signs.style.height + 148],
|
|
590
|
-
altitude: e.signs.style.altitude
|
|
591
|
-
}), m.value.add(s);
|
|
592
|
-
const n = new t.ZMarkerLayer({
|
|
593
|
-
zIndex: e.landmark.zIndex,
|
|
594
|
-
visible: e.landmark.visible,
|
|
595
|
-
zooms: e.landmark.zooms,
|
|
596
|
-
opacity: e.landmark.opacity,
|
|
597
|
-
depth: !1
|
|
598
|
-
});
|
|
599
|
-
n.setSource(r), n.setStyle({
|
|
600
|
-
content: (l, y) => `<div style="
|
|
601
|
-
width: ${e.landmark.style.size[0]}px;
|
|
602
|
-
height: ${e.landmark.style.size[1]}px;
|
|
603
|
-
background: url(${e.landmark.style.image});
|
|
604
|
-
background-size:contain;
|
|
605
|
-
">
|
|
606
|
-
</div>`,
|
|
607
|
-
unit: e.landmark.style.unit,
|
|
608
|
-
rotation: e.landmark.style.rotation,
|
|
609
|
-
alwaysFront: e.landmark.style.alwaysFront,
|
|
610
|
-
size: e.landmark.style.size,
|
|
611
|
-
altitude: e.landmark.style.altitude
|
|
612
|
-
}), n.addAnimate({
|
|
613
|
-
key: "altitude",
|
|
614
|
-
value: [0, 1],
|
|
615
|
-
random: e.landmark.animate.random,
|
|
616
|
-
duration: e.landmark.animate.duration,
|
|
617
|
-
transform: e.landmark.animate.transform,
|
|
618
|
-
delay: e.landmark.animate.delay,
|
|
619
|
-
yoyo: e.landmark.animate.yoyo,
|
|
620
|
-
repeat: e.landmark.animate.repeat
|
|
621
|
-
}), m.value.add(n), m.value.animate.start();
|
|
622
|
-
} catch {
|
|
623
|
-
}
|
|
624
|
-
}, V = (t, e, a) => {
|
|
625
|
-
const r = new t.PulseLinkLayer({
|
|
626
|
-
zIndex: e.zIndex,
|
|
627
|
-
opacity: e.opacity,
|
|
628
|
-
visible: e.visible,
|
|
629
|
-
zooms: e.zooms,
|
|
630
|
-
depth: e.depth
|
|
631
|
-
}), s = new t.GeoJSONSource({
|
|
632
|
-
data: a
|
|
633
|
-
});
|
|
634
|
-
r.setSource(s), r.setStyle({
|
|
635
|
-
unit: e.style.unit,
|
|
636
|
-
dash: [4e4, 0, 4e4, 0],
|
|
637
|
-
lineWidth: e.style.lineWidth,
|
|
638
|
-
height: function(n, l) {
|
|
639
|
-
return l.distance / 3 + e.style.height;
|
|
640
|
-
},
|
|
641
|
-
// altitude: 1000,
|
|
642
|
-
smoothSteps: 30,
|
|
643
|
-
speed: function(n, l) {
|
|
644
|
-
return 1e5 + Math.random() * e.style.speed;
|
|
645
|
-
},
|
|
646
|
-
flowLength: e.style.flowLength,
|
|
647
|
-
lineColors: e.style.lineColors,
|
|
648
|
-
maxHeightScale: e.style.maxHeightScale,
|
|
649
|
-
// 弧顶位置比例
|
|
650
|
-
headColor: e.style.headColor,
|
|
651
|
-
trailColor: e.style.trailColor
|
|
652
|
-
}), i.value.on("click", (n) => {
|
|
653
|
-
const l = r.queryFeature(n.pixel.toArray());
|
|
654
|
-
l && (u("amap3d-scene-pulseLinkLayer", l), p.parseEvents(o.useEvents, "amap3d-scene-pulseLinkLayer", l));
|
|
655
|
-
}), m.value.add(r), m.value.animate.start();
|
|
656
|
-
}, f = (t, e) => {
|
|
657
|
-
const a = {
|
|
658
|
-
type: "FeatureCollection",
|
|
659
|
-
features: []
|
|
660
|
-
};
|
|
661
|
-
return t.forEach((r, s) => {
|
|
662
|
-
const n = {
|
|
663
|
-
type: "Feature",
|
|
664
|
-
id: me(),
|
|
665
|
-
properties: {
|
|
666
|
-
type: e === "Point" ? e : 0,
|
|
667
|
-
...r
|
|
668
|
-
},
|
|
669
|
-
geometry: {
|
|
670
|
-
type: e,
|
|
671
|
-
coordinates: r.value
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
|
-
a.features.push(n);
|
|
675
|
-
}), a;
|
|
676
|
-
}, U = (t) => {
|
|
677
|
-
i.value.setFeatures(t.config.features), i.value.setPitch(t.config.pitch), i.value.setRotation(t.config.rotation), i.value.setStatus({
|
|
678
|
-
dragEnable: t.config.dragEnable,
|
|
679
|
-
zoomEnable: t.config.zoomEnable,
|
|
680
|
-
rotateEnable: t.config.rotateEnable,
|
|
681
|
-
pitchEnable: t.config.pitchEnable
|
|
682
|
-
}), t.config.plugin.scale.visible ? k.value.show() : k.value.hide(), t.config.plugin.toolBar.visible ? b.value.show() : b.value.hide(), t.config.plugin.controlBar.visible ? h.value.show() : h.value.hide();
|
|
683
|
-
}, q = () => {
|
|
684
|
-
i.value.clearMap(), m.value.clear(), S(c.value);
|
|
685
|
-
}, K = (t) => {
|
|
686
|
-
i.value.setMapStyle(t.config.mapStyle);
|
|
687
|
-
}, Q = (t) => {
|
|
688
|
-
i.value.setZoom(t.config.zoom, !1, 200);
|
|
689
|
-
}, X = (t) => {
|
|
690
|
-
i.value.setCenter(t.config.center, !1, 200);
|
|
691
|
-
}, O = () => {
|
|
692
|
-
i.value && (i.value.clearMap(), i.value.destroy(), i.value = null, m.value && (m.value.clear(), m.value.destroy(), m.value = null));
|
|
693
|
-
};
|
|
694
|
-
return se(() => {
|
|
695
|
-
setTimeout(() => {
|
|
696
|
-
C(o.basicOption);
|
|
697
|
-
}, 0);
|
|
698
|
-
}), ie(() => O()), {
|
|
699
|
-
initAMap3d: C,
|
|
700
|
-
updateAMapStyle: K,
|
|
701
|
-
updateAMapConfig: U,
|
|
702
|
-
updateAMapComponents: q,
|
|
703
|
-
updateAMapZoom: Q,
|
|
704
|
-
updateAMapCenter: X,
|
|
705
|
-
amap3d: i,
|
|
706
|
-
loading: x,
|
|
707
|
-
AMapPrototype: c
|
|
708
|
-
};
|
|
709
|
-
}, {
|
|
710
|
-
initAMap3d: g,
|
|
711
|
-
updateAMapStyle: P,
|
|
712
|
-
updateAMapConfig: w,
|
|
713
|
-
updateAMapComponents: $,
|
|
714
|
-
updateAMapZoom: J,
|
|
715
|
-
updateAMapCenter: D,
|
|
716
|
-
loading: T
|
|
717
|
-
} = W();
|
|
718
|
-
return d(() => o.basicOption.config, () => {
|
|
719
|
-
w(o.basicOption);
|
|
720
|
-
}, { deep: !0 }), d(() => o.basicOption.config.zoom, () => {
|
|
721
|
-
J(o.basicOption);
|
|
722
|
-
}, { deep: !0 }), d(() => o.basicOption.config.center, () => {
|
|
723
|
-
D(o.basicOption);
|
|
724
|
-
}, { deep: !0 }), d(() => o.basicOption.config.floors, z(() => {
|
|
725
|
-
g(o.basicOption);
|
|
726
|
-
}, 300), { deep: !0 }), d(() => o.basicOption.config.skyColor, z(() => {
|
|
727
|
-
g(o.basicOption);
|
|
728
|
-
}, 300), { deep: !0 }), d(() => o.basicOption.widgets, () => {
|
|
729
|
-
$();
|
|
730
|
-
}, { deep: !0 }), d(() => o.basicOption.config.mapStyle, () => {
|
|
731
|
-
P(o.basicOption);
|
|
732
|
-
}, { deep: !0 }), d(() => o.basicOption.basic, () => {
|
|
733
|
-
g(o.basicOption);
|
|
734
|
-
}, { deep: !0 }), d(() => o.sources, () => {
|
|
735
|
-
g(o.basicOption);
|
|
736
|
-
}, { deep: !0 }), A({
|
|
737
|
-
refresh: () => g(o.basicOption),
|
|
738
|
-
refreshView: () => w(o.basicOption),
|
|
739
|
-
refreshData: () => g(o.basicOption)
|
|
740
|
-
}), (i, m) => (te(), ee("div", {
|
|
741
|
-
class: re(["amap-3d-wrap", { show: ae(T) }])
|
|
742
|
-
}, m[0] || (m[0] = [
|
|
743
|
-
oe("div", {
|
|
744
|
-
id: "zerov-amap-3d",
|
|
745
|
-
class: "zerov-amap-container"
|
|
746
|
-
}, null, -1)
|
|
747
|
-
]), 2));
|
|
748
|
-
}
|
|
749
|
-
});
|
|
750
|
-
export {
|
|
751
|
-
Na as default
|
|
752
|
-
};
|
|
1
|
+
import { defineComponent as M, watch as d, createElementBlock as ee, openBlock as te, normalizeClass as re, unref as ae, createElementVNode as oe, shallowRef as E, ref as v, onMounted as se, onUnmounted as ie } from "vue";
|
|
2
|
+
import le from "@amap/amap-jsapi-loader";
|
|
3
|
+
import ne from "axios";
|
|
4
|
+
import { nanoid as me } from "nanoid";
|
|
5
|
+
import { debounce as z } from "lodash";
|
|
6
|
+
import "../text-text-basic/index.mjs";
|
|
7
|
+
import "../text-table-basic/index.mjs";
|
|
8
|
+
import "../chart-other-gauge/index.mjs";
|
|
9
|
+
import "../chart-other-gauge-stage/index.mjs";
|
|
10
|
+
import "../chart-other-gauge-grade/index.mjs";
|
|
11
|
+
import "../chart-other-word-cloud/index.mjs";
|
|
12
|
+
import "../chart-other-liquidfill/index.mjs";
|
|
13
|
+
import "../chart-other-funnel/index.mjs";
|
|
14
|
+
import "../chart-other-force/index.mjs";
|
|
15
|
+
import "../chart-other-radar/index.mjs";
|
|
16
|
+
import "../chart-other-funnel-split/index.mjs";
|
|
17
|
+
import "../chart-other-funnel-contrast/index.mjs";
|
|
18
|
+
import "../chart-other-candlestick-basic/index.mjs";
|
|
19
|
+
import "../chart-other-candlestick-shanghai/index.mjs";
|
|
20
|
+
import "../chart-other-candlestick-demo/index.mjs";
|
|
21
|
+
import "../chart-other-heatmap/index.mjs";
|
|
22
|
+
import "../chart-other-force2/index.mjs";
|
|
23
|
+
import "../chart-other-graph-basic/index.mjs";
|
|
24
|
+
import "../chart-other-graph-basic2/index.mjs";
|
|
25
|
+
import "../chart-other-graph-calendar/index.mjs";
|
|
26
|
+
import "../chart-other-tree-line/index.mjs";
|
|
27
|
+
import "../chart-other-treemap-basic/index.mjs";
|
|
28
|
+
import "../chart-other-sunburst-basic/index.mjs";
|
|
29
|
+
import "../chart-other-sunburst-basic2/index.mjs";
|
|
30
|
+
import "../chart-other-sunburst-basic3/index.mjs";
|
|
31
|
+
import "../chart-other-sunburst-basic4/index.mjs";
|
|
32
|
+
import "../chart-other-sunburst-book/index.mjs";
|
|
33
|
+
import "../chart-other-sunburst-radius/index.mjs";
|
|
34
|
+
import "../chart-other-sunburst-flavors/index.mjs";
|
|
35
|
+
import "../chart-other-parallel-basic/index.mjs";
|
|
36
|
+
import "../chart-other-parallel-mul/index.mjs";
|
|
37
|
+
import "../chart-other-circular-graph/index.mjs";
|
|
38
|
+
import "../map-earth-basic/index.mjs";
|
|
39
|
+
import "../map-earth-cool-tech/index.mjs";
|
|
40
|
+
import "../map-earth-particle/index.mjs";
|
|
41
|
+
import "../map-earth-hacker/index.mjs";
|
|
42
|
+
import "../map-earth-fly-line/index.mjs";
|
|
43
|
+
import "../chart-other-grid-percentage/index.mjs";
|
|
44
|
+
import "../chart-other-radar-stack/index.mjs";
|
|
45
|
+
import "../chart-other-funnel2/index.mjs";
|
|
46
|
+
import "../chart-other-label-gauge/index.mjs";
|
|
47
|
+
import "../chart-other-theme-river/index.mjs";
|
|
48
|
+
import "../chart-other-tree/index.mjs";
|
|
49
|
+
import "../chart-other-treemap/index.mjs";
|
|
50
|
+
import "../commons-product-model/index.mjs";
|
|
51
|
+
import "../commons-vr-photo/index.mjs";
|
|
52
|
+
import "../commons-vr-video/index.mjs";
|
|
53
|
+
import "../commons-three-loader/index.mjs";
|
|
54
|
+
import "../commons-three-loader3/index.mjs";
|
|
55
|
+
import "../commons-loop-iterator/index.mjs";
|
|
56
|
+
import "../commons-gaussian-splatting-view/index.mjs";
|
|
57
|
+
import "../commons-babylon/index.mjs";
|
|
58
|
+
import "../commons-svg/index.mjs";
|
|
59
|
+
import "../commons-weather/index.mjs";
|
|
60
|
+
import "../commons-weather-dynamic/index.mjs";
|
|
61
|
+
import "../media-wavesurfer/index.mjs";
|
|
62
|
+
import "../interaction-tabs/index.mjs";
|
|
63
|
+
import "../interaction-tabs2/index.mjs";
|
|
64
|
+
import "../interaction-button/index.mjs";
|
|
65
|
+
import "../interaction-button-image/index.mjs";
|
|
66
|
+
import "../interaction-select/index.mjs";
|
|
67
|
+
import "../interaction-input/index.mjs";
|
|
68
|
+
import "../interaction-radio/index.mjs";
|
|
69
|
+
import "../interaction-slider/index.mjs";
|
|
70
|
+
import "../interaction-switch/index.mjs";
|
|
71
|
+
import "../interaction-data-picker/index.mjs";
|
|
72
|
+
import "../interaction-button-refresh/index.mjs";
|
|
73
|
+
import "../media-image/index.mjs";
|
|
74
|
+
import "../text-title/index.mjs";
|
|
75
|
+
import "../commons-qrcode/index.mjs";
|
|
76
|
+
import "../media-video/index.mjs";
|
|
77
|
+
import "../media-audio/index.mjs";
|
|
78
|
+
import "../text-real-time/index.mjs";
|
|
79
|
+
import "../media-carousel/index.mjs";
|
|
80
|
+
import "../media-carousel-slides/index.mjs";
|
|
81
|
+
import "../media-iframe-carousel/index.mjs";
|
|
82
|
+
import "../media-iframe/index.mjs";
|
|
83
|
+
import "../media-m3u8/index.mjs";
|
|
84
|
+
import "../media-m3u8-dynamic/index.mjs";
|
|
85
|
+
import "../media-audio-dynamic/index.mjs";
|
|
86
|
+
import "../media-video-dynamic/index.mjs";
|
|
87
|
+
import "../media-image-dynamic/index.mjs";
|
|
88
|
+
import "../media-iframe-dynamic/index.mjs";
|
|
89
|
+
import "../media-flv/index.mjs";
|
|
90
|
+
import "../commons-echarts/index.mjs";
|
|
91
|
+
import "../text-over-number/index.mjs";
|
|
92
|
+
import "../text-table-scroll/index.mjs";
|
|
93
|
+
import "../text-carousel/index.mjs";
|
|
94
|
+
import "../text-row-scroll/index.mjs";
|
|
95
|
+
import "../text-text-dynamic/index.mjs";
|
|
96
|
+
import "../text-count-down/index.mjs";
|
|
97
|
+
import "../graphical-circle/index.mjs";
|
|
98
|
+
import "../graphical-diamond/index.mjs";
|
|
99
|
+
import "../graphical-hexagon/index.mjs";
|
|
100
|
+
import "../graphical-isosceles-triangle/index.mjs";
|
|
101
|
+
import "../graphical-pentagon/index.mjs";
|
|
102
|
+
import "../graphical-rect/index.mjs";
|
|
103
|
+
import "../graphical-right-triangle/index.mjs";
|
|
104
|
+
import "../scene-map3d/index.mjs";
|
|
105
|
+
import "../scene-amap2d/index.mjs";
|
|
106
|
+
import "./index.mjs";
|
|
107
|
+
import "../scene-vr/index.mjs";
|
|
108
|
+
import "../scene-unity-iframe/index.mjs";
|
|
109
|
+
import "../scene-unity-webgl/index.mjs";
|
|
110
|
+
import "../scene-ue-iframe/index.mjs";
|
|
111
|
+
import "../scene-ue-shj/index.mjs";
|
|
112
|
+
import "../scene-default/index.mjs";
|
|
113
|
+
import "../interaction/tabs/index.mjs";
|
|
114
|
+
import "../interaction/tabs-icon/index.mjs";
|
|
115
|
+
import "../interaction/button/index.mjs";
|
|
116
|
+
import "../interaction/date-picker/src/date-picker/index.mjs";
|
|
117
|
+
import "../interaction/date-picker/src/date-picker-range/index.mjs";
|
|
118
|
+
import "../text/list/index.mjs";
|
|
119
|
+
import "../chart/src/bar/basic/index.mjs";
|
|
120
|
+
import "../chart/src/bar/animation/index.mjs";
|
|
121
|
+
import "../chart/src/bar/contrast/index.mjs";
|
|
122
|
+
import "../chart/src/bar/contrast2/index.mjs";
|
|
123
|
+
import "../chart/src/bar/contrast3/index.mjs";
|
|
124
|
+
import "../chart/src/bar/gradient-column-chart/index.mjs";
|
|
125
|
+
import "../chart/src/bar/horizontal/index.mjs";
|
|
126
|
+
import "../chart/src/bar/horizontal-stack/index.mjs";
|
|
127
|
+
import "../chart/src/bar/line-bar/index.mjs";
|
|
128
|
+
import "../chart/src/bar/line-bar2/index.mjs";
|
|
129
|
+
import "../chart/src/bar/loop/index.mjs";
|
|
130
|
+
import "../chart/src/bar/mini/index.mjs";
|
|
131
|
+
import "../chart/src/bar/polar/index.mjs";
|
|
132
|
+
import "../chart/src/bar/polar-stack/index.mjs";
|
|
133
|
+
import "../chart/src/bar/polar2/index.mjs";
|
|
134
|
+
import "../chart/src/bar/radius-circle/index.mjs";
|
|
135
|
+
import "../chart/src/bar/rank/index.mjs";
|
|
136
|
+
import "../chart/src/bar/segmented-progress/index.mjs";
|
|
137
|
+
import "../chart/src/bar/spire/index.mjs";
|
|
138
|
+
import "../chart/src/bar/stack/index.mjs";
|
|
139
|
+
import "../chart/src/bar/stack-line/index.mjs";
|
|
140
|
+
import "../chart/src/bar/stack2/index.mjs";
|
|
141
|
+
import "../chart/src/bar/stack3/index.mjs";
|
|
142
|
+
import "../chart/src/bar/staggered/index.mjs";
|
|
143
|
+
import "../chart/src/bar/three/index.mjs";
|
|
144
|
+
import "../chart/src/bar/waterfall/index.mjs";
|
|
145
|
+
import "../chart/src/bar/zebra/index.mjs";
|
|
146
|
+
import "../chart/src/line/area-gradient/index.mjs";
|
|
147
|
+
import "../chart/src/line/area-highlight/index.mjs";
|
|
148
|
+
import "../chart/src/line/area-highlight2/index.mjs";
|
|
149
|
+
import "../chart/src/line/basic/index.mjs";
|
|
150
|
+
import "../chart/src/line/bump/index.mjs";
|
|
151
|
+
import "../chart/src/line/dashed/index.mjs";
|
|
152
|
+
import "../chart/src/line/ladder/index.mjs";
|
|
153
|
+
import "../chart/src/line/logarithm/index.mjs";
|
|
154
|
+
import "../chart/src/line/multix/index.mjs";
|
|
155
|
+
import "../chart/src/line/polar-double/index.mjs";
|
|
156
|
+
import "../chart/src/line/rain-flow/index.mjs";
|
|
157
|
+
import "../chart/src/line/scale/index.mjs";
|
|
158
|
+
import "../chart/src/line/smooth/index.mjs";
|
|
159
|
+
import "../chart/src/line/smooth-area/index.mjs";
|
|
160
|
+
import "../chart/src/line/stack/index.mjs";
|
|
161
|
+
import "../chart/src/line/stack-area/index.mjs";
|
|
162
|
+
import "../chart/src/line/temp/index.mjs";
|
|
163
|
+
import "../chart/src/line/vertical/index.mjs";
|
|
164
|
+
import "../chart/src/map/basic/index.mjs";
|
|
165
|
+
import "../chart/src/map/bmap-basic/index.mjs";
|
|
166
|
+
import "../chart/src/map/bmap-heatmap/index.mjs";
|
|
167
|
+
import "../chart/src/map/bmap-rich/index.mjs";
|
|
168
|
+
import "../chart/src/map/customize/index.mjs";
|
|
169
|
+
import "../chart/src/map/lines/index.mjs";
|
|
170
|
+
import "../chart/src/map/scatter/index.mjs";
|
|
171
|
+
import "../chart/src/pie/3d/index.mjs";
|
|
172
|
+
import "../chart/src/pie/basic/index.mjs";
|
|
173
|
+
import "../chart/src/pie/basic2/index.mjs";
|
|
174
|
+
import "../chart/src/pie/customized/index.mjs";
|
|
175
|
+
import "../chart/src/pie/index/index.mjs";
|
|
176
|
+
import "../chart/src/pie/interval/index.mjs";
|
|
177
|
+
import "../chart/src/pie/legend-scroll/index.mjs";
|
|
178
|
+
import "../chart/src/pie/radius/index.mjs";
|
|
179
|
+
import "../chart/src/pie/rose/index.mjs";
|
|
180
|
+
import "../chart/src/pie/round/index.mjs";
|
|
181
|
+
import "../chart/src/pie/sunburst/index.mjs";
|
|
182
|
+
import "../chart/src/scatter/basic/index.mjs";
|
|
183
|
+
import "../chart/src/scatter/basic2/index.mjs";
|
|
184
|
+
import "../chart/src/scatter/bubble/index.mjs";
|
|
185
|
+
import "../chart/src/scatter/ripples/index.mjs";
|
|
186
|
+
import "../commons/custom-component-render/index.mjs";
|
|
187
|
+
/* empty css */
|
|
188
|
+
/* empty css */
|
|
189
|
+
import { SHJDatasourceV2 as ce } from "../../plugins/datasource/index.mjs";
|
|
190
|
+
import { SHJParseEvent as p } from "../../plugins/event/index.mjs";
|
|
191
|
+
const de = M({ name: "zv-scene-amap3d" }), Na = /* @__PURE__ */ M({
|
|
192
|
+
...de,
|
|
193
|
+
props: {
|
|
194
|
+
basicOption: {},
|
|
195
|
+
sources: {},
|
|
196
|
+
useEvents: {},
|
|
197
|
+
uuid: {}
|
|
198
|
+
},
|
|
199
|
+
emits: [
|
|
200
|
+
"amap3d-scene-success",
|
|
201
|
+
"amap3d-scene-zoomstart",
|
|
202
|
+
"amap3d-scene-zoomend",
|
|
203
|
+
"amap3d-scene-mapclick",
|
|
204
|
+
"amap3d-scene-dragstart",
|
|
205
|
+
"amap3d-scene-dragging",
|
|
206
|
+
"amap3d-scene-dragend",
|
|
207
|
+
"amap3d-scene-pulseLinkLayer"
|
|
208
|
+
],
|
|
209
|
+
setup(I, { expose: A, emit: B }) {
|
|
210
|
+
const o = I, u = B;
|
|
211
|
+
p.parseEvents(o.useEvents, "on-page-loaded", null);
|
|
212
|
+
const W = () => {
|
|
213
|
+
const i = E(), m = E(), x = v(!1), h = v(), b = v(), k = v(), c = v(), C = (t) => {
|
|
214
|
+
O(), window._AMapSecurityConfig = {
|
|
215
|
+
securityJsCode: t.basic.securityJsCode
|
|
216
|
+
}, le.load({
|
|
217
|
+
key: t.basic.key,
|
|
218
|
+
// 申请好的Web端开发者Key,首次调用 load 时必填
|
|
219
|
+
version: "2.0",
|
|
220
|
+
// 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
|
|
221
|
+
Loca: {
|
|
222
|
+
version: "2.0.0"
|
|
223
|
+
},
|
|
224
|
+
plugins: ["AMap.ControlBar", "AMap.ToolBar", "AMap.Scale", "AMap.HeatMap", "AMap.GeoJSON", "AMap.ImageLayer", "AMap.TileLayer"]
|
|
225
|
+
}).then((e) => {
|
|
226
|
+
c.value = e;
|
|
227
|
+
const a = new c.value.createDefaultLayer({
|
|
228
|
+
visible: !0,
|
|
229
|
+
// 是否可见
|
|
230
|
+
opacity: 1,
|
|
231
|
+
// 透明度
|
|
232
|
+
zIndex: 0
|
|
233
|
+
// 叠加层级
|
|
234
|
+
});
|
|
235
|
+
i.value = new e.Map("zerov-amap-3d", {
|
|
236
|
+
rotateEnable: t.config.rotateEnable,
|
|
237
|
+
// 是否开启地图旋转交互 鼠标右键 + 鼠标画圈移动 或 键盘Ctrl + 鼠标画圈移动
|
|
238
|
+
pitchEnable: t.config.pitchEnable,
|
|
239
|
+
// 是否开启地图倾斜交互 鼠标右键 + 鼠标上下移动或键盘Ctrl + 鼠标上下移动
|
|
240
|
+
resizeEnable: t.config.resizeEnable,
|
|
241
|
+
zoomEnable: t.config.zoomEnable,
|
|
242
|
+
dragEnable: t.config.dragEnable,
|
|
243
|
+
zoom: t.config.zoom,
|
|
244
|
+
// 初始化地图层级
|
|
245
|
+
viewMode: "3D",
|
|
246
|
+
// 开启3D视图,默认为关闭
|
|
247
|
+
zooms: t.config.zooms,
|
|
248
|
+
// 地图显示的缩放级别范围
|
|
249
|
+
center: t.config.center,
|
|
250
|
+
// 初始地图中心经纬度
|
|
251
|
+
mapStyle: t.config.mapStyle,
|
|
252
|
+
features: t.config.features,
|
|
253
|
+
pitch: t.config.pitch,
|
|
254
|
+
// 0-83
|
|
255
|
+
rotation: t.config.rotation,
|
|
256
|
+
// 0-360
|
|
257
|
+
wallColor: t.config.floors.wallColor,
|
|
258
|
+
roofColor: t.config.floors.roofColor,
|
|
259
|
+
skyColor: t.config.skyColor,
|
|
260
|
+
layers: [a]
|
|
261
|
+
}), m.value = new window.Loca.Container({
|
|
262
|
+
map: i.value
|
|
263
|
+
}), k.value = new c.value.Scale({
|
|
264
|
+
visible: t.config.plugin.scale.visible,
|
|
265
|
+
position: {
|
|
266
|
+
left: t.config.plugin.scale.position.left + "px",
|
|
267
|
+
bottom: t.config.plugin.scale.position.bottom + "px"
|
|
268
|
+
}
|
|
269
|
+
}), i.value.addControl(k.value), h.value = new e.ControlBar({
|
|
270
|
+
visible: t.config.plugin.controlBar.visible,
|
|
271
|
+
showControlButton: t.config.plugin.controlBar.showControlButton,
|
|
272
|
+
position: {
|
|
273
|
+
right: t.config.plugin.controlBar.position.right + "px",
|
|
274
|
+
top: t.config.plugin.controlBar.position.top + "px"
|
|
275
|
+
}
|
|
276
|
+
}), i.value.addControl(h.value), b.value = new e.ToolBar({
|
|
277
|
+
visible: t.config.plugin.toolBar.visible,
|
|
278
|
+
position: {
|
|
279
|
+
left: t.config.plugin.toolBar.position.left + "px",
|
|
280
|
+
top: t.config.plugin.toolBar.position.top + "px"
|
|
281
|
+
}
|
|
282
|
+
}), i.value.addControl(b.value), S(e), i.value.on("complete", () => {
|
|
283
|
+
setTimeout(() => {
|
|
284
|
+
x.value = !0, u("amap3d-scene-success"), p.parseEvents(o.useEvents, "amap3d-scene-success", null);
|
|
285
|
+
}, 666);
|
|
286
|
+
}), i.value.on("zoomstart", () => {
|
|
287
|
+
u("amap3d-scene-zoomstart"), p.parseEvents(o.useEvents, "amap3d-scene-zoomstart", null);
|
|
288
|
+
}), i.value.on("zoomend", () => {
|
|
289
|
+
u("amap3d-scene-zoomend"), p.parseEvents(o.useEvents, "amap3d-scene-zoomend", null);
|
|
290
|
+
}), i.value.on("click", (r) => {
|
|
291
|
+
u("amap3d-scene-mapclick", r.lnglat), p.parseEvents(o.useEvents, "amap3d-scene-mapclick", r.lnglat);
|
|
292
|
+
}), i.value.on("dragstart", (r) => {
|
|
293
|
+
u("amap3d-scene-dragstart", r.lnglat), p.parseEvents(o.useEvents, "amap3d-scene-dragstart", r.lnglat);
|
|
294
|
+
}), i.value.on("dragend", (r) => {
|
|
295
|
+
u("amap3d-scene-dragend", r.lnglat), p.parseEvents(o.useEvents, "amap3d-scene-dragend", r.lnglat);
|
|
296
|
+
});
|
|
297
|
+
}).catch((e) => {
|
|
298
|
+
});
|
|
299
|
+
}, S = z((t) => {
|
|
300
|
+
o.sources && o.sources.length > 0 ? ce.parse({
|
|
301
|
+
tId: o.uuid,
|
|
302
|
+
sources: o.sources,
|
|
303
|
+
callback: (a) => {
|
|
304
|
+
try {
|
|
305
|
+
const r = o.basicOption.widgets.find((s) => s._sourceId === a.id);
|
|
306
|
+
r && r.type === "heatmap" && G(window.Loca, r, f(a.data[0].data, "Point")), r && r.type === "dotlayers" && H(window.Loca, r, f(a.data[0].data, "Point")), r && r.type === "scatter" && Z(window.Loca, r, f(a.data[0].data, "Point")), r && r.type === "labelsLayer" && R(window.Loca, r, f(a.data[0].data, "Point")), r && r.type === "signagePoints" && j(window.Loca, r, f(a.data[0].data, "Point")), r && r.type === "pulseLinkLayer" && V(window.Loca, r, f(a.data[0].data, "LineString"));
|
|
307
|
+
} catch {
|
|
308
|
+
}
|
|
309
|
+
o.basicOption.widgets.filter((r) => r.type === "boundary").forEach((r) => {
|
|
310
|
+
L(t, r);
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
}) : o.basicOption.widgets.filter((a) => a.type === "boundary").forEach((a) => {
|
|
314
|
+
L(t, a);
|
|
315
|
+
});
|
|
316
|
+
const e = i.value.getLayers();
|
|
317
|
+
for (let a = 0; a < e.length; a++)
|
|
318
|
+
(e[a].type === "sketchTileLayer" || e[a]._opts.type === "sketchImageLayer") && i.value.removeLayer(e[a]);
|
|
319
|
+
o.basicOption.widgets.filter((a) => a.type === "sketchTile").forEach((a) => {
|
|
320
|
+
const r = N(a);
|
|
321
|
+
r && i.value.addLayer(r);
|
|
322
|
+
}), o.basicOption.widgets.filter((a) => a.type === "sketchImage").forEach((a) => {
|
|
323
|
+
const r = _(a);
|
|
324
|
+
i.value.addLayer(r);
|
|
325
|
+
});
|
|
326
|
+
}, 200), F = (t) => {
|
|
327
|
+
const a = t.slice(t.indexOf("(") + 1, t.lastIndexOf(")")).split(",").map((s) => s.trim()), r = {};
|
|
328
|
+
for (let s = 1; s < a.length; s++) {
|
|
329
|
+
const n = a[s].split(" "), l = n[0], y = parseFloat(n[1]) / 100, Y = Math.round(y * 100) / 100;
|
|
330
|
+
r[Y] = l;
|
|
331
|
+
}
|
|
332
|
+
return r;
|
|
333
|
+
}, N = (t) => {
|
|
334
|
+
try {
|
|
335
|
+
return new c.value.TileLayer({
|
|
336
|
+
bounds: new c.value.Bounds(
|
|
337
|
+
t.bounds[0],
|
|
338
|
+
t.bounds[1]
|
|
339
|
+
),
|
|
340
|
+
getTileUrl: function(a, r, s) {
|
|
341
|
+
try {
|
|
342
|
+
return t.url.replace("{z}", s).replace("{x}", a).replace("{y}", r);
|
|
343
|
+
} catch {
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
type: "sketchTileLayer",
|
|
347
|
+
tileSize: t.tileSize,
|
|
348
|
+
opacity: t.opacity,
|
|
349
|
+
zIndex: t.zIndex,
|
|
350
|
+
zooms: t.zooms
|
|
351
|
+
});
|
|
352
|
+
} catch {
|
|
353
|
+
}
|
|
354
|
+
return null;
|
|
355
|
+
}, _ = (t) => {
|
|
356
|
+
try {
|
|
357
|
+
return new c.value.ImageLayer({
|
|
358
|
+
bounds: new c.value.Bounds(
|
|
359
|
+
t.bounds[0],
|
|
360
|
+
// 左下 手绘图左下相对于地图的经纬度
|
|
361
|
+
t.bounds[1]
|
|
362
|
+
// 右上 手绘图右上相对于地图的经纬度
|
|
363
|
+
),
|
|
364
|
+
type: "sketchImageLayer",
|
|
365
|
+
opacity: t.opacity,
|
|
366
|
+
url: t.url,
|
|
367
|
+
zIndex: t.zIndex,
|
|
368
|
+
zooms: t.zooms
|
|
369
|
+
// 设置可见级别,[最小级别,最大级别]
|
|
370
|
+
});
|
|
371
|
+
} catch {
|
|
372
|
+
}
|
|
373
|
+
return null;
|
|
374
|
+
}, G = (t, e, a) => {
|
|
375
|
+
try {
|
|
376
|
+
const r = new t.HeatMapLayer({
|
|
377
|
+
zIndex: 10,
|
|
378
|
+
opacity: e.opacity,
|
|
379
|
+
visible: !0,
|
|
380
|
+
zooms: [2, 22]
|
|
381
|
+
}), s = new t.GeoJSONSource({
|
|
382
|
+
data: a
|
|
383
|
+
});
|
|
384
|
+
r.setSource(s, {
|
|
385
|
+
radius: e.style.radius,
|
|
386
|
+
unit: e.style.unit,
|
|
387
|
+
height: e.style.height,
|
|
388
|
+
opacity: e.style.opacity,
|
|
389
|
+
gradient: F(e.style.gradient),
|
|
390
|
+
value: function(n, l) {
|
|
391
|
+
return l.coordinates[2] || 0;
|
|
392
|
+
},
|
|
393
|
+
min: e.style.min,
|
|
394
|
+
max: e.style.max,
|
|
395
|
+
// 4.6
|
|
396
|
+
heightBezier: [0, 0.53, 0.37, 0.98]
|
|
397
|
+
}), m.value.add(r);
|
|
398
|
+
} catch {
|
|
399
|
+
}
|
|
400
|
+
}, L = async (t, e) => {
|
|
401
|
+
try {
|
|
402
|
+
const a = await ne.get(e.geojson);
|
|
403
|
+
if (a.status === 200) {
|
|
404
|
+
const r = new t.GeoJSON({
|
|
405
|
+
geoJSON: a.data,
|
|
406
|
+
getPolygon: function(s, n) {
|
|
407
|
+
const l = new t.Polygon({
|
|
408
|
+
path: n,
|
|
409
|
+
zIndex: e.zIndex,
|
|
410
|
+
fillColor: e.style.fillColor,
|
|
411
|
+
// 填充色
|
|
412
|
+
strokeOpacity: e.style.strokeOpacity,
|
|
413
|
+
// 轮廓线透明度
|
|
414
|
+
fillOpacity: e.style.fillOpacity,
|
|
415
|
+
// 填充色透明度
|
|
416
|
+
strokeColor: e.style.strokeColor,
|
|
417
|
+
// 线条颜色
|
|
418
|
+
strokeWeight: e.style.strokeWeight,
|
|
419
|
+
// 线条宽度
|
|
420
|
+
strokeStyle: e.style.strokeStyle
|
|
421
|
+
// 线条样式
|
|
422
|
+
});
|
|
423
|
+
return l.on("mouseover", () => {
|
|
424
|
+
l.setOptions({
|
|
425
|
+
fillOpacity: e.mouseover.fillOpacity,
|
|
426
|
+
fillColor: e.mouseover.fillColor,
|
|
427
|
+
strokeOpacity: e.mouseover.strokeOpacity,
|
|
428
|
+
strokeColor: e.mouseover.strokeColor,
|
|
429
|
+
strokeStyle: e.mouseover.strokeStyle,
|
|
430
|
+
strokeWeight: e.mouseover.strokeWeight
|
|
431
|
+
});
|
|
432
|
+
}), l.on("mouseout", () => {
|
|
433
|
+
l.setOptions({
|
|
434
|
+
fillColor: e.style.fillColor,
|
|
435
|
+
// 填充色
|
|
436
|
+
strokeOpacity: e.style.strokeOpacity,
|
|
437
|
+
// 轮廓线透明度
|
|
438
|
+
fillOpacity: e.style.fillOpacity,
|
|
439
|
+
// 填充色透明度
|
|
440
|
+
strokeColor: e.style.strokeColor,
|
|
441
|
+
// 线条颜色
|
|
442
|
+
strokeWeight: e.style.strokeWeight,
|
|
443
|
+
// 线条宽度
|
|
444
|
+
strokeStyle: e.style.strokeStyle
|
|
445
|
+
// 线条样式
|
|
446
|
+
});
|
|
447
|
+
}), l;
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
i.value.add(r);
|
|
451
|
+
}
|
|
452
|
+
} catch {
|
|
453
|
+
}
|
|
454
|
+
}, H = (t, e, a) => {
|
|
455
|
+
try {
|
|
456
|
+
const r = new t.GeoJSONSource({
|
|
457
|
+
data: a
|
|
458
|
+
}), s = new t.PointLayer({
|
|
459
|
+
zIndex: e.zIndex,
|
|
460
|
+
blend: e.blend,
|
|
461
|
+
visible: e.visible,
|
|
462
|
+
opacity: e.opacity
|
|
463
|
+
}), n = {
|
|
464
|
+
radius: e.style.radius,
|
|
465
|
+
unit: e.style.unit,
|
|
466
|
+
color: e.style.color,
|
|
467
|
+
borderWidth: e.style.borderWidth,
|
|
468
|
+
blurWidth: e.style.blurWidth,
|
|
469
|
+
borderColor: e.style.borderColor
|
|
470
|
+
};
|
|
471
|
+
s.setSource(r), s.setStyle(n), m.value.add(s), s.addAnimate({
|
|
472
|
+
key: e.animate.key,
|
|
473
|
+
value: e.animate.value,
|
|
474
|
+
duration: e.animate.duration,
|
|
475
|
+
easing: e.animate.easing,
|
|
476
|
+
transform: e.animate.transform,
|
|
477
|
+
random: e.animate.random,
|
|
478
|
+
delay: e.animate.delay,
|
|
479
|
+
yoyo: e.animate.yoyo,
|
|
480
|
+
repeat: e.animate.repeat
|
|
481
|
+
});
|
|
482
|
+
} catch {
|
|
483
|
+
}
|
|
484
|
+
}, Z = (t, e, a) => {
|
|
485
|
+
try {
|
|
486
|
+
const r = new t.GeoJSONSource({
|
|
487
|
+
data: a
|
|
488
|
+
}), s = new t.ScatterLayer({
|
|
489
|
+
loca: m.value,
|
|
490
|
+
zIndex: e.zIndex,
|
|
491
|
+
opacity: e.opacity,
|
|
492
|
+
visible: e.visible,
|
|
493
|
+
zooms: e.zooms
|
|
494
|
+
});
|
|
495
|
+
s.setSource(r), s.setStyle({
|
|
496
|
+
unit: e.style.unit,
|
|
497
|
+
size: e.style.size,
|
|
498
|
+
borderWidth: e.style.borderWidth,
|
|
499
|
+
texture: e.style.texture,
|
|
500
|
+
duration: e.style.duration,
|
|
501
|
+
animate: e.style.animate
|
|
502
|
+
}), m.value.animate.start();
|
|
503
|
+
} catch {
|
|
504
|
+
}
|
|
505
|
+
}, R = (t, e, a) => {
|
|
506
|
+
try {
|
|
507
|
+
const r = new t.GeoJSONSource({
|
|
508
|
+
data: a
|
|
509
|
+
}), s = new t.LabelsLayer({
|
|
510
|
+
eventSupport: !0,
|
|
511
|
+
visible: e.visible,
|
|
512
|
+
zooms: e.zooms,
|
|
513
|
+
opacity: e.opacity,
|
|
514
|
+
collision: e.collision,
|
|
515
|
+
allowCollision: e.allowCollision,
|
|
516
|
+
zIndex: e.zIndex
|
|
517
|
+
});
|
|
518
|
+
s.setSource(r), s.setStyle({
|
|
519
|
+
icon: {
|
|
520
|
+
image: e.icon.image,
|
|
521
|
+
size: e.icon.size,
|
|
522
|
+
clipOrigin: e.icon.clipOrigin,
|
|
523
|
+
offset: e.icon.offset,
|
|
524
|
+
anchor: e.icon.anchor
|
|
525
|
+
},
|
|
526
|
+
text: {
|
|
527
|
+
// 每项配置都可使用回调函数来动态配置
|
|
528
|
+
content: (n, l) => l.properties[e.text.content],
|
|
529
|
+
zooms: e.text.zooms,
|
|
530
|
+
offset: e.text.offset,
|
|
531
|
+
direction: e.text.direction,
|
|
532
|
+
style: {
|
|
533
|
+
fontSize: e.text.style.fontSize,
|
|
534
|
+
fillColor: e.text.style.fillColor,
|
|
535
|
+
strokeColor: e.text.style.strokeColor,
|
|
536
|
+
strokeWidth: e.text.style.strokeWidth,
|
|
537
|
+
padding: e.text.style.padding,
|
|
538
|
+
backgroundColor: e.text.style.backgroundColor,
|
|
539
|
+
borderColor: e.text.style.borderColor,
|
|
540
|
+
borderWidth: e.text.style.borderWidth,
|
|
541
|
+
fold: e.text.style.fold,
|
|
542
|
+
fontWeight: e.text.style.fontWeight
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}), s.on("complete", () => {
|
|
546
|
+
const n = s.getLabelsLayer().getAllOverlays();
|
|
547
|
+
for (const l of n)
|
|
548
|
+
l.on("click", (y) => {
|
|
549
|
+
}), l.on("mouseover", (y) => {
|
|
550
|
+
}), l.on("mouseout", (y) => {
|
|
551
|
+
});
|
|
552
|
+
}), m.value.add(s);
|
|
553
|
+
} catch {
|
|
554
|
+
}
|
|
555
|
+
}, j = (t, e, a) => {
|
|
556
|
+
try {
|
|
557
|
+
const r = new t.GeoJSONSource({
|
|
558
|
+
data: a
|
|
559
|
+
}), s = new t.ZMarkerLayer({
|
|
560
|
+
zIndex: e.signs.zIndex,
|
|
561
|
+
visible: e.signs.visible,
|
|
562
|
+
zooms: e.signs.zooms,
|
|
563
|
+
opacity: e.signs.opacity,
|
|
564
|
+
depth: !1
|
|
565
|
+
});
|
|
566
|
+
s.setSource(r), s.setStyle({
|
|
567
|
+
content: (l, y) => `<div style="
|
|
568
|
+
width: ${e.signs.style.width}px;
|
|
569
|
+
height: ${e.signs.style.height + 148}px;
|
|
570
|
+
">
|
|
571
|
+
<p style="
|
|
572
|
+
display: block;
|
|
573
|
+
height:${e.signs.style.height}px;
|
|
574
|
+
background-image:${e.signs.style.background};
|
|
575
|
+
border:${e.signs.style.borderWidth}px ${e.signs.style.borderStyle} ${e.signs.style.borderColor};
|
|
576
|
+
border-radius: ${e.signs.style.borderRadius}px;
|
|
577
|
+
line-height:${e.signs.style.lineHeight}px;
|
|
578
|
+
text-align:${e.signs.style.textAlign};
|
|
579
|
+
font-size:${e.signs.style.fontSize}px;
|
|
580
|
+
color:${e.signs.style.fillColor};
|
|
581
|
+
margin:0;
|
|
582
|
+
">
|
|
583
|
+
${y.properties.name}
|
|
584
|
+
</p>
|
|
585
|
+
</div>`,
|
|
586
|
+
unit: e.signs.style.unit,
|
|
587
|
+
rotation: e.signs.style.rotation,
|
|
588
|
+
alwaysFront: e.signs.style.alwaysFront,
|
|
589
|
+
size: [e.signs.style.width, e.signs.style.height + 148],
|
|
590
|
+
altitude: e.signs.style.altitude
|
|
591
|
+
}), m.value.add(s);
|
|
592
|
+
const n = new t.ZMarkerLayer({
|
|
593
|
+
zIndex: e.landmark.zIndex,
|
|
594
|
+
visible: e.landmark.visible,
|
|
595
|
+
zooms: e.landmark.zooms,
|
|
596
|
+
opacity: e.landmark.opacity,
|
|
597
|
+
depth: !1
|
|
598
|
+
});
|
|
599
|
+
n.setSource(r), n.setStyle({
|
|
600
|
+
content: (l, y) => `<div style="
|
|
601
|
+
width: ${e.landmark.style.size[0]}px;
|
|
602
|
+
height: ${e.landmark.style.size[1]}px;
|
|
603
|
+
background: url(${e.landmark.style.image});
|
|
604
|
+
background-size:contain;
|
|
605
|
+
">
|
|
606
|
+
</div>`,
|
|
607
|
+
unit: e.landmark.style.unit,
|
|
608
|
+
rotation: e.landmark.style.rotation,
|
|
609
|
+
alwaysFront: e.landmark.style.alwaysFront,
|
|
610
|
+
size: e.landmark.style.size,
|
|
611
|
+
altitude: e.landmark.style.altitude
|
|
612
|
+
}), n.addAnimate({
|
|
613
|
+
key: "altitude",
|
|
614
|
+
value: [0, 1],
|
|
615
|
+
random: e.landmark.animate.random,
|
|
616
|
+
duration: e.landmark.animate.duration,
|
|
617
|
+
transform: e.landmark.animate.transform,
|
|
618
|
+
delay: e.landmark.animate.delay,
|
|
619
|
+
yoyo: e.landmark.animate.yoyo,
|
|
620
|
+
repeat: e.landmark.animate.repeat
|
|
621
|
+
}), m.value.add(n), m.value.animate.start();
|
|
622
|
+
} catch {
|
|
623
|
+
}
|
|
624
|
+
}, V = (t, e, a) => {
|
|
625
|
+
const r = new t.PulseLinkLayer({
|
|
626
|
+
zIndex: e.zIndex,
|
|
627
|
+
opacity: e.opacity,
|
|
628
|
+
visible: e.visible,
|
|
629
|
+
zooms: e.zooms,
|
|
630
|
+
depth: e.depth
|
|
631
|
+
}), s = new t.GeoJSONSource({
|
|
632
|
+
data: a
|
|
633
|
+
});
|
|
634
|
+
r.setSource(s), r.setStyle({
|
|
635
|
+
unit: e.style.unit,
|
|
636
|
+
dash: [4e4, 0, 4e4, 0],
|
|
637
|
+
lineWidth: e.style.lineWidth,
|
|
638
|
+
height: function(n, l) {
|
|
639
|
+
return l.distance / 3 + e.style.height;
|
|
640
|
+
},
|
|
641
|
+
// altitude: 1000,
|
|
642
|
+
smoothSteps: 30,
|
|
643
|
+
speed: function(n, l) {
|
|
644
|
+
return 1e5 + Math.random() * e.style.speed;
|
|
645
|
+
},
|
|
646
|
+
flowLength: e.style.flowLength,
|
|
647
|
+
lineColors: e.style.lineColors,
|
|
648
|
+
maxHeightScale: e.style.maxHeightScale,
|
|
649
|
+
// 弧顶位置比例
|
|
650
|
+
headColor: e.style.headColor,
|
|
651
|
+
trailColor: e.style.trailColor
|
|
652
|
+
}), i.value.on("click", (n) => {
|
|
653
|
+
const l = r.queryFeature(n.pixel.toArray());
|
|
654
|
+
l && (u("amap3d-scene-pulseLinkLayer", l), p.parseEvents(o.useEvents, "amap3d-scene-pulseLinkLayer", l));
|
|
655
|
+
}), m.value.add(r), m.value.animate.start();
|
|
656
|
+
}, f = (t, e) => {
|
|
657
|
+
const a = {
|
|
658
|
+
type: "FeatureCollection",
|
|
659
|
+
features: []
|
|
660
|
+
};
|
|
661
|
+
return t.forEach((r, s) => {
|
|
662
|
+
const n = {
|
|
663
|
+
type: "Feature",
|
|
664
|
+
id: me(),
|
|
665
|
+
properties: {
|
|
666
|
+
type: e === "Point" ? e : 0,
|
|
667
|
+
...r
|
|
668
|
+
},
|
|
669
|
+
geometry: {
|
|
670
|
+
type: e,
|
|
671
|
+
coordinates: r.value
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
a.features.push(n);
|
|
675
|
+
}), a;
|
|
676
|
+
}, U = (t) => {
|
|
677
|
+
i.value.setFeatures(t.config.features), i.value.setPitch(t.config.pitch), i.value.setRotation(t.config.rotation), i.value.setStatus({
|
|
678
|
+
dragEnable: t.config.dragEnable,
|
|
679
|
+
zoomEnable: t.config.zoomEnable,
|
|
680
|
+
rotateEnable: t.config.rotateEnable,
|
|
681
|
+
pitchEnable: t.config.pitchEnable
|
|
682
|
+
}), t.config.plugin.scale.visible ? k.value.show() : k.value.hide(), t.config.plugin.toolBar.visible ? b.value.show() : b.value.hide(), t.config.plugin.controlBar.visible ? h.value.show() : h.value.hide();
|
|
683
|
+
}, q = () => {
|
|
684
|
+
i.value.clearMap(), m.value.clear(), S(c.value);
|
|
685
|
+
}, K = (t) => {
|
|
686
|
+
i.value.setMapStyle(t.config.mapStyle);
|
|
687
|
+
}, Q = (t) => {
|
|
688
|
+
i.value.setZoom(t.config.zoom, !1, 200);
|
|
689
|
+
}, X = (t) => {
|
|
690
|
+
i.value.setCenter(t.config.center, !1, 200);
|
|
691
|
+
}, O = () => {
|
|
692
|
+
i.value && (i.value.clearMap(), i.value.destroy(), i.value = null, m.value && (m.value.clear(), m.value.destroy(), m.value = null));
|
|
693
|
+
};
|
|
694
|
+
return se(() => {
|
|
695
|
+
setTimeout(() => {
|
|
696
|
+
C(o.basicOption);
|
|
697
|
+
}, 0);
|
|
698
|
+
}), ie(() => O()), {
|
|
699
|
+
initAMap3d: C,
|
|
700
|
+
updateAMapStyle: K,
|
|
701
|
+
updateAMapConfig: U,
|
|
702
|
+
updateAMapComponents: q,
|
|
703
|
+
updateAMapZoom: Q,
|
|
704
|
+
updateAMapCenter: X,
|
|
705
|
+
amap3d: i,
|
|
706
|
+
loading: x,
|
|
707
|
+
AMapPrototype: c
|
|
708
|
+
};
|
|
709
|
+
}, {
|
|
710
|
+
initAMap3d: g,
|
|
711
|
+
updateAMapStyle: P,
|
|
712
|
+
updateAMapConfig: w,
|
|
713
|
+
updateAMapComponents: $,
|
|
714
|
+
updateAMapZoom: J,
|
|
715
|
+
updateAMapCenter: D,
|
|
716
|
+
loading: T
|
|
717
|
+
} = W();
|
|
718
|
+
return d(() => o.basicOption.config, () => {
|
|
719
|
+
w(o.basicOption);
|
|
720
|
+
}, { deep: !0 }), d(() => o.basicOption.config.zoom, () => {
|
|
721
|
+
J(o.basicOption);
|
|
722
|
+
}, { deep: !0 }), d(() => o.basicOption.config.center, () => {
|
|
723
|
+
D(o.basicOption);
|
|
724
|
+
}, { deep: !0 }), d(() => o.basicOption.config.floors, z(() => {
|
|
725
|
+
g(o.basicOption);
|
|
726
|
+
}, 300), { deep: !0 }), d(() => o.basicOption.config.skyColor, z(() => {
|
|
727
|
+
g(o.basicOption);
|
|
728
|
+
}, 300), { deep: !0 }), d(() => o.basicOption.widgets, () => {
|
|
729
|
+
$();
|
|
730
|
+
}, { deep: !0 }), d(() => o.basicOption.config.mapStyle, () => {
|
|
731
|
+
P(o.basicOption);
|
|
732
|
+
}, { deep: !0 }), d(() => o.basicOption.basic, () => {
|
|
733
|
+
g(o.basicOption);
|
|
734
|
+
}, { deep: !0 }), d(() => o.sources, () => {
|
|
735
|
+
g(o.basicOption);
|
|
736
|
+
}, { deep: !0 }), A({
|
|
737
|
+
refresh: () => g(o.basicOption),
|
|
738
|
+
refreshView: () => w(o.basicOption),
|
|
739
|
+
refreshData: () => g(o.basicOption)
|
|
740
|
+
}), (i, m) => (te(), ee("div", {
|
|
741
|
+
class: re(["amap-3d-wrap", { show: ae(T) }])
|
|
742
|
+
}, m[0] || (m[0] = [
|
|
743
|
+
oe("div", {
|
|
744
|
+
id: "zerov-amap-3d",
|
|
745
|
+
class: "zerov-amap-container"
|
|
746
|
+
}, null, -1)
|
|
747
|
+
]), 2));
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
export {
|
|
751
|
+
Na as default
|
|
752
|
+
};
|