@kq_npm/client3d_webgl_vue 4.5.30 → 4.5.32
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/adddata/index.js +227 -496
- package/aspectanalysis/index.js +71 -182
- package/baseterraingallery/index.js +40 -102
- package/boxclip/index.js +197 -423
- package/clientPrint/index.js +7324 -17727
- package/comparemap/index.js +165 -216
- package/compass/index.js +20 -47
- package/excavatefillanalysis/index.js +101 -206
- package/fixedzoomin/index.js +20 -43
- package/fixedzoomout/index.js +18 -42
- package/flight/index.js +206 -353
- package/floodanalysis/index.js +145 -328
- package/geologicalbodyanalysis/index.js +114 -241
- package/gpuspatialquery/index.js +146 -340
- package/hawkeye/index.js +78 -80
- package/headertemp/index.js +8 -19
- package/heatmap3d/index.js +304 -645
- package/index.js +6896 -17544
- package/isolineanalysis/index.js +451 -1183
- package/light/index.js +308 -486
- package/limitheightanalysis/index.js +107 -204
- package/measure/index.js +145 -331
- package/modelFlat/index.js +114 -183
- package/modelexcavate/index.js +78 -172
- package/modelfilter/index.js +127 -252
- package/modelprofileanalysis/index.js +154 -297
- package/modelselect/index.js +90 -128
- package/package.json +1 -1
- package/particleeffect/index.js +170 -381
- package/planeclip/index.js +146 -281
- package/resetview/index.js +12 -31
- package/roller/index.js +252 -353
- package/scaneffect/index.js +178 -518
- package/sceneadvancedtoimage/index.js +152 -337
- package/sceneapp/index.js +7324 -17727
- package/sceneset/index.js +299 -838
- package/scenetohdimage/index.js +105 -276
- package/sceneview/index.js +7324 -17727
- package/screenshot/index.js +204 -281
- package/shadowanalysis/index.js +175 -386
- package/sightlineanalysis/index.js +135 -245
- package/skylineanalysis/index.js +108 -289
- package/slopeanalysis/index.js +174 -378
- package/slopeaspectanalysis/index.js +206 -466
- package/statusbar/index.js +37 -39
- package/terrainoperation/index.js +124 -218
- package/terrainprofileanalysis/index.js +66 -118
- package/typhoontrac/index.js +208 -330
- package/underground/index.js +16 -40
- package/videofusion/index.js +214 -470
- package/videoproject/index.js +220 -472
- package/viewshedanalysis/index.js +93 -230
- package/weathereffect/index.js +111 -295
- package/windyslicing/index.js +545 -727
- package/wireframesketch/index.js +49 -106
package/comparemap/index.js
CHANGED
|
@@ -12,164 +12,38 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
16
|
-
/***/ (function(
|
|
17
|
-
|
|
18
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
-
/* harmony export */ "Z": function() { return /* binding */ CompareMapViewModel; }
|
|
20
|
-
/* harmony export */ });
|
|
21
|
-
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/*
|
|
25
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
26
|
-
* All rights reserved.
|
|
27
|
-
*/
|
|
28
|
-
//多窗口逻辑类
|
|
29
|
-
class CompareMapViewModel {
|
|
30
|
-
// 三维视图对象
|
|
31
|
-
//三维viewer对象
|
|
32
|
-
constructor(scenceView, options = {}) {
|
|
33
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_scenceView", null);
|
|
34
|
-
|
|
35
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
36
|
-
|
|
37
|
-
this._scenceView = scenceView;
|
|
38
|
-
this._viewer = scenceView._viewer;
|
|
39
|
-
this._viewer.scene.globe.nightFadeOutDistance = 1.0e9;
|
|
40
|
-
this._viewer.scene.globe.nightFadeInDistance = 5.0e9;
|
|
41
|
-
|
|
42
|
-
if (options.splitLineColor) {
|
|
43
|
-
this._viewer.scene.splitLineColor = Cesium.Color.fromCssColorString(options.splitLineColor);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (options.splitLineWidth) {
|
|
47
|
-
this._viewer.scene.splitLineWidth = options.splitLineWidth;
|
|
48
|
-
}
|
|
49
|
-
} //切换窗口模式
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
changeMode(mode, selectAll) {
|
|
53
|
-
let viewMode = Cesium.SplitViewMode.NONE;
|
|
54
|
-
|
|
55
|
-
switch (mode) {
|
|
56
|
-
case 1:
|
|
57
|
-
viewMode = Cesium.SplitViewMode.NONE;
|
|
58
|
-
break;
|
|
59
|
-
|
|
60
|
-
case 2:
|
|
61
|
-
viewMode = Cesium.SplitViewMode.HORIZONTAL;
|
|
62
|
-
break;
|
|
63
|
-
// case 3:
|
|
64
|
-
// viewMode = Cesium.SplitViewMode.HORIZONTAL_TRIPLE;
|
|
65
|
-
// break;
|
|
66
|
-
|
|
67
|
-
case 4:
|
|
68
|
-
viewMode = Cesium.SplitViewMode.QUAD;
|
|
69
|
-
break;
|
|
70
|
-
// case 5:
|
|
71
|
-
// viewMode = [
|
|
72
|
-
// { index: 0, left: 0, top: 0, width: 1, height: 1 },
|
|
73
|
-
// { index: 1, left: 0.78, top: 0.06, width: 0.2, height: 0.2 }
|
|
74
|
-
// ];
|
|
75
|
-
// break;
|
|
76
|
-
|
|
77
|
-
default:
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (!selectAll) {
|
|
82
|
-
// 默认全部不勾选
|
|
83
|
-
let checkedLayerkeys = this._scenceView._layerManager.getLayerCheckedListKey();
|
|
84
|
-
|
|
85
|
-
for (let i = 0; i < checkedLayerkeys.length; i++) {
|
|
86
|
-
let layer = this._scenceView._layerManager.getLayerByGuid(checkedLayerkeys[i]);
|
|
87
|
-
|
|
88
|
-
let type = this._scenceView._layerManager.getLayerTypeByGuid(checkedLayerkeys[i]);
|
|
89
|
-
|
|
90
|
-
if (layer) {
|
|
91
|
-
layer.showInViews = [];
|
|
92
|
-
|
|
93
|
-
if (type == 'datasource') {
|
|
94
|
-
layer.entities.values.forEach(entity => {
|
|
95
|
-
entity.showInViews = [];
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
this._viewer.scene.splitViewMode = viewMode;
|
|
103
|
-
} //重置窗口模式
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
resetMode() {
|
|
107
|
-
this.changeMode();
|
|
108
|
-
|
|
109
|
-
let checkedLayerkeys = this._scenceView._layerManager.getLayerCheckedListKey();
|
|
110
|
-
|
|
111
|
-
for (let i = 0; i < checkedLayerkeys.length; i++) {
|
|
112
|
-
let layer = this._scenceView._layerManager.getLayerByGuid(checkedLayerkeys[i]);
|
|
113
|
-
|
|
114
|
-
let type = this._scenceView._layerManager.getLayerTypeByGuid(checkedLayerkeys[i]);
|
|
115
|
-
|
|
116
|
-
if (layer) {
|
|
117
|
-
layer.showInViews = undefined;
|
|
118
|
-
|
|
119
|
-
if (type == 'datasource') {
|
|
120
|
-
layer.entities.values.forEach(entity => {
|
|
121
|
-
entity.showInViews = [0, 1, 2, 3];
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
setLayerState(index, guid, visible) {
|
|
129
|
-
let layer = this._scenceView._layerManager.getLayerByGuid(guid);
|
|
15
|
+
/***/ 348:
|
|
16
|
+
/***/ (function(module) {
|
|
130
17
|
|
|
131
|
-
|
|
18
|
+
module.exports = require("@kq_npm/client_icons_vue");
|
|
132
19
|
|
|
133
|
-
|
|
134
|
-
let showInViews = layer.showInViews || [0, 1, 2, 3];
|
|
20
|
+
/***/ }),
|
|
135
21
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
} else {
|
|
139
|
-
let num = showInViews.indexOf(index);
|
|
22
|
+
/***/ 3600:
|
|
23
|
+
/***/ (function(module) {
|
|
140
24
|
|
|
141
|
-
|
|
142
|
-
showInViews.splice(num, 1);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
25
|
+
module.exports = require("core-js/modules/es.array.includes.js");
|
|
145
26
|
|
|
146
|
-
|
|
27
|
+
/***/ }),
|
|
147
28
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
if (entity.show) {
|
|
151
|
-
entity.showInViews = showInViews;
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
29
|
+
/***/ 2118:
|
|
30
|
+
/***/ (function(module) {
|
|
157
31
|
|
|
158
|
-
|
|
32
|
+
module.exports = require("core-js/modules/es.array.push.js");
|
|
159
33
|
|
|
160
34
|
/***/ }),
|
|
161
35
|
|
|
162
|
-
/***/
|
|
36
|
+
/***/ 8470:
|
|
163
37
|
/***/ (function(module) {
|
|
164
38
|
|
|
165
|
-
module.exports = require("
|
|
39
|
+
module.exports = require("core-js/modules/esnext.iterator.constructor.js");
|
|
166
40
|
|
|
167
41
|
/***/ }),
|
|
168
42
|
|
|
169
|
-
/***/
|
|
43
|
+
/***/ 1058:
|
|
170
44
|
/***/ (function(module) {
|
|
171
45
|
|
|
172
|
-
module.exports = require("core-js/modules/
|
|
46
|
+
module.exports = require("core-js/modules/esnext.iterator.for-each.js");
|
|
173
47
|
|
|
174
48
|
/***/ }),
|
|
175
49
|
|
|
@@ -218,7 +92,6 @@ function _defineProperty(obj, key, value) {
|
|
|
218
92
|
} else {
|
|
219
93
|
obj[key] = value;
|
|
220
94
|
}
|
|
221
|
-
|
|
222
95
|
return obj;
|
|
223
96
|
}
|
|
224
97
|
|
|
@@ -300,7 +173,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
300
173
|
|
|
301
174
|
// EXPORTS
|
|
302
175
|
__webpack_require__.d(__webpack_exports__, {
|
|
303
|
-
"CompareMapViewModel": function() { return /* reexport */ CompareMapViewModel
|
|
176
|
+
"CompareMapViewModel": function() { return /* reexport */ CompareMapViewModel; },
|
|
304
177
|
"default": function() { return /* reexport */ CompareMap; }
|
|
305
178
|
});
|
|
306
179
|
|
|
@@ -310,8 +183,128 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
|
310
183
|
var gis_utils_ = __webpack_require__(7135);
|
|
311
184
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
312
185
|
var client_icons_vue_ = __webpack_require__(348);
|
|
313
|
-
// EXTERNAL MODULE: ./
|
|
314
|
-
var
|
|
186
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
187
|
+
var defineProperty = __webpack_require__(8270);
|
|
188
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
189
|
+
var es_array_push_js_ = __webpack_require__(2118);
|
|
190
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
191
|
+
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
192
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
193
|
+
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
194
|
+
;// CONCATENATED MODULE: ./src/webgl/comparemap/CompareMapViewModel.js
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
/*
|
|
200
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
201
|
+
* All rights reserved.
|
|
202
|
+
*/
|
|
203
|
+
//多窗口逻辑类
|
|
204
|
+
class CompareMapViewModel {
|
|
205
|
+
//三维viewer对象
|
|
206
|
+
|
|
207
|
+
constructor(scenceView, options = {}) {
|
|
208
|
+
(0,defineProperty/* default */.Z)(this, "_scenceView", null);
|
|
209
|
+
// 三维视图对象
|
|
210
|
+
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
211
|
+
this._scenceView = scenceView;
|
|
212
|
+
this._viewer = scenceView._viewer;
|
|
213
|
+
this._viewer.scene.globe.nightFadeOutDistance = 1.0e9;
|
|
214
|
+
this._viewer.scene.globe.nightFadeInDistance = 5.0e9;
|
|
215
|
+
if (options.splitLineColor) {
|
|
216
|
+
this._viewer.scene.splitLineColor = Cesium.Color.fromCssColorString(options.splitLineColor);
|
|
217
|
+
}
|
|
218
|
+
if (options.splitLineWidth) {
|
|
219
|
+
this._viewer.scene.splitLineWidth = options.splitLineWidth;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
//切换窗口模式
|
|
224
|
+
changeMode(mode, selectAll) {
|
|
225
|
+
let viewMode = Cesium.SplitViewMode.NONE;
|
|
226
|
+
switch (mode) {
|
|
227
|
+
case 1:
|
|
228
|
+
viewMode = Cesium.SplitViewMode.NONE;
|
|
229
|
+
break;
|
|
230
|
+
case 2:
|
|
231
|
+
viewMode = Cesium.SplitViewMode.HORIZONTAL;
|
|
232
|
+
break;
|
|
233
|
+
// case 3:
|
|
234
|
+
// viewMode = Cesium.SplitViewMode.HORIZONTAL_TRIPLE;
|
|
235
|
+
// break;
|
|
236
|
+
case 4:
|
|
237
|
+
viewMode = Cesium.SplitViewMode.QUAD;
|
|
238
|
+
break;
|
|
239
|
+
// case 5:
|
|
240
|
+
// viewMode = [
|
|
241
|
+
// { index: 0, left: 0, top: 0, width: 1, height: 1 },
|
|
242
|
+
// { index: 1, left: 0.78, top: 0.06, width: 0.2, height: 0.2 }
|
|
243
|
+
// ];
|
|
244
|
+
// break;
|
|
245
|
+
default:
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
if (!selectAll) {
|
|
249
|
+
// 默认全部不勾选
|
|
250
|
+
let checkedLayerkeys = this._scenceView._layerManager.getLayerCheckedListKey();
|
|
251
|
+
for (let i = 0; i < checkedLayerkeys.length; i++) {
|
|
252
|
+
let layer = this._scenceView._layerManager.getLayerByGuid(checkedLayerkeys[i]);
|
|
253
|
+
let type = this._scenceView._layerManager.getLayerTypeByGuid(checkedLayerkeys[i]);
|
|
254
|
+
if (layer) {
|
|
255
|
+
layer.showInViews = [];
|
|
256
|
+
if (type == 'datasource') {
|
|
257
|
+
layer.entities.values.forEach(entity => {
|
|
258
|
+
entity.showInViews = [];
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
this._viewer.scene.splitViewMode = viewMode;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
//重置窗口模式
|
|
268
|
+
resetMode() {
|
|
269
|
+
this.changeMode();
|
|
270
|
+
let checkedLayerkeys = this._scenceView._layerManager.getLayerCheckedListKey();
|
|
271
|
+
for (let i = 0; i < checkedLayerkeys.length; i++) {
|
|
272
|
+
let layer = this._scenceView._layerManager.getLayerByGuid(checkedLayerkeys[i]);
|
|
273
|
+
let type = this._scenceView._layerManager.getLayerTypeByGuid(checkedLayerkeys[i]);
|
|
274
|
+
if (layer) {
|
|
275
|
+
layer.showInViews = undefined;
|
|
276
|
+
if (type == 'datasource') {
|
|
277
|
+
layer.entities.values.forEach(entity => {
|
|
278
|
+
entity.showInViews = [0, 1, 2, 3];
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
setLayerState(index, guid, visible) {
|
|
285
|
+
let layer = this._scenceView._layerManager.getLayerByGuid(guid);
|
|
286
|
+
let type = this._scenceView._layerManager.getLayerTypeByGuid(guid);
|
|
287
|
+
if (layer) {
|
|
288
|
+
let showInViews = layer.showInViews || [0, 1, 2, 3];
|
|
289
|
+
if (visible) {
|
|
290
|
+
showInViews.push(index);
|
|
291
|
+
} else {
|
|
292
|
+
let num = showInViews.indexOf(index);
|
|
293
|
+
if (num > -1) {
|
|
294
|
+
showInViews.splice(num, 1);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
layer.showInViews = showInViews;
|
|
298
|
+
if (type == 'datasource') {
|
|
299
|
+
layer.entities.values.forEach(entity => {
|
|
300
|
+
if (entity.show) {
|
|
301
|
+
entity.showInViews = showInViews;
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
315
308
|
// EXTERNAL MODULE: external "core-js/modules/es.array.includes.js"
|
|
316
309
|
var es_array_includes_js_ = __webpack_require__(3600);
|
|
317
310
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
@@ -339,26 +332,21 @@ const __default__ = {
|
|
|
339
332
|
default: true
|
|
340
333
|
}
|
|
341
334
|
},
|
|
342
|
-
|
|
343
335
|
setup(__props) {
|
|
344
336
|
const props = __props;
|
|
345
337
|
let selectedLayers = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); // 图层树选中值
|
|
346
|
-
|
|
347
338
|
let layerTreeData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); // 图层树选项数据
|
|
348
|
-
|
|
349
339
|
let preCheckedKeys = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); // 记录上次图层树选中值
|
|
350
|
-
|
|
351
340
|
const {
|
|
352
341
|
proxy
|
|
353
342
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
354
343
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
344
|
+
|
|
355
345
|
/**
|
|
356
346
|
* 勾选图层逻辑
|
|
357
347
|
*/
|
|
358
|
-
|
|
359
348
|
function changeLayer(values) {
|
|
360
349
|
let checkedKeys = preCheckedKeys.value;
|
|
361
|
-
|
|
362
350
|
if (checkedKeys.length > values.length) {
|
|
363
351
|
for (let val of checkedKeys.values()) {
|
|
364
352
|
if (!values.includes(val)) {
|
|
@@ -372,11 +360,10 @@ const __default__ = {
|
|
|
372
360
|
}
|
|
373
361
|
}
|
|
374
362
|
}
|
|
375
|
-
|
|
376
363
|
preCheckedKeys.value = values;
|
|
377
|
-
}
|
|
378
|
-
|
|
364
|
+
}
|
|
379
365
|
|
|
366
|
+
// 国际化
|
|
380
367
|
let {
|
|
381
368
|
locale,
|
|
382
369
|
messages
|
|
@@ -389,7 +376,6 @@ const __default__ = {
|
|
|
389
376
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
390
377
|
if (scenceView) {
|
|
391
378
|
layerTreeData.value = gis_utils_.mapLayerUtils.getLayerCheckedList();
|
|
392
|
-
|
|
393
379
|
if (props.defaultSelectAll) {
|
|
394
380
|
selectedLayers.value = gis_utils_.mapLayerUtils.getLayerCheckedListKey();
|
|
395
381
|
preCheckedKeys.value = selectedLayers.value;
|
|
@@ -401,9 +387,7 @@ const __default__ = {
|
|
|
401
387
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {});
|
|
402
388
|
return (_ctx, _cache) => {
|
|
403
389
|
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
404
|
-
|
|
405
390
|
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
406
|
-
|
|
407
391
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
|
|
408
392
|
teleported: true,
|
|
409
393
|
multiple: "",
|
|
@@ -422,21 +406,12 @@ const __default__ = {
|
|
|
422
406
|
key: item.guid,
|
|
423
407
|
label: item.name,
|
|
424
408
|
value: item.guid
|
|
425
|
-
}, null, 8
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
/* KEYED_FRAGMENT */
|
|
430
|
-
))]),
|
|
431
|
-
_: 1
|
|
432
|
-
/* STABLE */
|
|
433
|
-
|
|
434
|
-
}, 8
|
|
435
|
-
/* PROPS */
|
|
436
|
-
, ["modelValue", "placeholder"])]);
|
|
409
|
+
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
410
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
411
|
+
_: 1 /* STABLE */
|
|
412
|
+
}, 8 /* PROPS */, ["modelValue", "placeholder"])]);
|
|
437
413
|
};
|
|
438
414
|
}
|
|
439
|
-
|
|
440
415
|
}));
|
|
441
416
|
;// CONCATENATED MODULE: ./src/webgl/comparemap/CompareMapTree.vue?vue&type=script&setup=true&lang=js
|
|
442
417
|
|
|
@@ -484,7 +459,6 @@ const CompareMapvue_type_script_setup_true_lang_js_default_ = {
|
|
|
484
459
|
}
|
|
485
460
|
},
|
|
486
461
|
emits: ["back"],
|
|
487
|
-
|
|
488
462
|
setup(__props, {
|
|
489
463
|
expose: __expose,
|
|
490
464
|
emit
|
|
@@ -499,18 +473,15 @@ const CompareMapvue_type_script_setup_true_lang_js_default_ = {
|
|
|
499
473
|
|
|
500
474
|
let viewModel = null;
|
|
501
475
|
let showTree1 = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 图层树1
|
|
502
|
-
|
|
503
476
|
let showTree2 = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 图层树2
|
|
504
|
-
|
|
505
477
|
let showTree3 = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 图层树3
|
|
506
|
-
|
|
507
478
|
let showTree4 = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 图层树4
|
|
508
|
-
|
|
509
479
|
let tree1Index = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
510
480
|
let tree2Index = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(1);
|
|
511
481
|
let tree3Index = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(2);
|
|
512
|
-
let tree4Index = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(3);
|
|
482
|
+
let tree4Index = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(3);
|
|
513
483
|
|
|
484
|
+
// 国际化
|
|
514
485
|
let {
|
|
515
486
|
locale,
|
|
516
487
|
messages
|
|
@@ -526,14 +497,14 @@ const CompareMapvue_type_script_setup_true_lang_js_default_ = {
|
|
|
526
497
|
splitLineColor: props.splitLineColor,
|
|
527
498
|
splitLineWidth: props.splitLineWidth
|
|
528
499
|
};
|
|
529
|
-
viewModel = new CompareMapViewModel
|
|
500
|
+
viewModel = new CompareMapViewModel(scenceView, options);
|
|
530
501
|
}
|
|
531
502
|
});
|
|
532
|
-
});
|
|
503
|
+
});
|
|
533
504
|
|
|
505
|
+
//切换窗口模式
|
|
534
506
|
function changeMode(mode) {
|
|
535
507
|
btnShow.value = true;
|
|
536
|
-
|
|
537
508
|
if (mode === 2) {
|
|
538
509
|
showTree1.value = true;
|
|
539
510
|
showTree2.value = true;
|
|
@@ -551,11 +522,10 @@ const CompareMapvue_type_script_setup_true_lang_js_default_ = {
|
|
|
551
522
|
tree3Index.value = 0;
|
|
552
523
|
tree4Index.value = 1;
|
|
553
524
|
}
|
|
554
|
-
|
|
555
525
|
viewModel && viewModel.changeMode(mode, props.defaultSelectAll);
|
|
556
|
-
}
|
|
557
|
-
|
|
526
|
+
}
|
|
558
527
|
|
|
528
|
+
//返回
|
|
559
529
|
function goBack() {
|
|
560
530
|
btnShow.value = false;
|
|
561
531
|
showTree1.value = false;
|
|
@@ -564,35 +534,31 @@ const CompareMapvue_type_script_setup_true_lang_js_default_ = {
|
|
|
564
534
|
showTree4.value = false;
|
|
565
535
|
emit("back");
|
|
566
536
|
resetMode();
|
|
567
|
-
}
|
|
568
|
-
|
|
537
|
+
}
|
|
569
538
|
|
|
539
|
+
//重置窗口模式
|
|
570
540
|
function resetMode() {
|
|
571
541
|
viewModel && viewModel.resetMode();
|
|
572
|
-
}
|
|
573
|
-
|
|
542
|
+
}
|
|
574
543
|
|
|
544
|
+
//设置图层显示状态
|
|
575
545
|
function setLayerState(index, guid, visible) {
|
|
576
546
|
viewModel && viewModel.setLayerState(index, guid, visible);
|
|
577
|
-
}
|
|
578
|
-
|
|
547
|
+
}
|
|
579
548
|
|
|
549
|
+
// 销毁
|
|
580
550
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
581
551
|
resetMode();
|
|
582
552
|
});
|
|
583
|
-
|
|
584
553
|
__expose({
|
|
585
554
|
changeMode,
|
|
586
555
|
goBack,
|
|
587
556
|
resetMode,
|
|
588
557
|
setLayerState
|
|
589
558
|
});
|
|
590
|
-
|
|
591
559
|
return (_ctx, _cache) => {
|
|
592
560
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
593
|
-
|
|
594
561
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
595
|
-
|
|
596
562
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", CompareMapvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showTree1) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(CompareMapTree), {
|
|
597
563
|
key: 0,
|
|
598
564
|
class: "layer-tree-1",
|
|
@@ -602,9 +568,7 @@ const CompareMapvue_type_script_setup_true_lang_js_default_ = {
|
|
|
602
568
|
index: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tree1Index),
|
|
603
569
|
defaultSelectAll: props.defaultSelectAll,
|
|
604
570
|
setLayerState: setLayerState
|
|
605
|
-
}, null, 8
|
|
606
|
-
/* PROPS */
|
|
607
|
-
, ["style", "index", "defaultSelectAll"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showTree2) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(CompareMapTree), {
|
|
571
|
+
}, null, 8 /* PROPS */, ["style", "index", "defaultSelectAll"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showTree2) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(CompareMapTree), {
|
|
608
572
|
key: 1,
|
|
609
573
|
class: "layer-tree-2",
|
|
610
574
|
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)({
|
|
@@ -613,25 +577,19 @@ const CompareMapvue_type_script_setup_true_lang_js_default_ = {
|
|
|
613
577
|
index: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tree2Index),
|
|
614
578
|
defaultSelectAll: props.defaultSelectAll,
|
|
615
579
|
setLayerState: setLayerState
|
|
616
|
-
}, null, 8
|
|
617
|
-
/* PROPS */
|
|
618
|
-
, ["style", "index", "defaultSelectAll"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showTree3) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(CompareMapTree), {
|
|
580
|
+
}, null, 8 /* PROPS */, ["style", "index", "defaultSelectAll"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showTree3) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(CompareMapTree), {
|
|
619
581
|
key: 2,
|
|
620
582
|
class: "layer-tree-3",
|
|
621
583
|
index: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tree3Index),
|
|
622
584
|
defaultSelectAll: props.defaultSelectAll,
|
|
623
585
|
setLayerState: setLayerState
|
|
624
|
-
}, null, 8
|
|
625
|
-
/* PROPS */
|
|
626
|
-
, ["index", "defaultSelectAll"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showTree4) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(CompareMapTree), {
|
|
586
|
+
}, null, 8 /* PROPS */, ["index", "defaultSelectAll"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showTree4) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(CompareMapTree), {
|
|
627
587
|
key: 3,
|
|
628
588
|
class: "layer-tree-4",
|
|
629
589
|
index: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tree4Index),
|
|
630
590
|
defaultSelectAll: props.defaultSelectAll,
|
|
631
591
|
setLayerState: setLayerState
|
|
632
|
-
}, null, 8
|
|
633
|
-
/* PROPS */
|
|
634
|
-
, ["index", "defaultSelectAll"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" 返回 "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
592
|
+
}, null, 8 /* PROPS */, ["index", "defaultSelectAll"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" 返回 "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
635
593
|
circle: "",
|
|
636
594
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).return,
|
|
637
595
|
class: "close-button",
|
|
@@ -644,19 +602,12 @@ const CompareMapvue_type_script_setup_true_lang_js_default_ = {
|
|
|
644
602
|
size: 26
|
|
645
603
|
}, {
|
|
646
604
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconBack))]),
|
|
647
|
-
_: 1
|
|
648
|
-
/* STABLE */
|
|
649
|
-
|
|
605
|
+
_: 1 /* STABLE */
|
|
650
606
|
})]),
|
|
651
|
-
_: 1
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
}, 8
|
|
655
|
-
/* PROPS */
|
|
656
|
-
, ["title", "style"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(btnShow)]])]);
|
|
607
|
+
_: 1 /* STABLE */
|
|
608
|
+
}, 8 /* PROPS */, ["title", "style"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(btnShow)]])]);
|
|
657
609
|
};
|
|
658
610
|
}
|
|
659
|
-
|
|
660
611
|
}));
|
|
661
612
|
;// CONCATENATED MODULE: ./src/webgl/comparemap/CompareMap.vue?vue&type=script&setup=true&lang=js
|
|
662
613
|
|
|
@@ -678,13 +629,11 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
678
629
|
|
|
679
630
|
|
|
680
631
|
|
|
681
|
-
|
|
682
632
|
CompareMap.install = (Vue, opts) => {
|
|
683
633
|
init_js_default()(Vue, opts);
|
|
684
634
|
Vue.component(CompareMap.name, CompareMap);
|
|
685
635
|
};
|
|
686
636
|
|
|
687
|
-
|
|
688
637
|
}();
|
|
689
638
|
/******/ return __webpack_exports__;
|
|
690
639
|
/******/ })()
|