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