@kq_npm/client3d_webgl_vue 4.0.5-beta → 4.0.7-beta
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 +114 -198
- package/aspectanalysis/index.js +23 -25
- package/baseterraingallery/index.js +7 -8
- package/boxclip/index.js +23 -25
- package/clientPrint/index.js +4 -6
- package/comparemap/index.js +51 -22
- package/compass/index.js +4 -4
- package/excavatefillanalysis/index.js +23 -25
- package/fixedzoomin/index.js +4 -4
- package/fixedzoomout/index.js +4 -4
- package/flight/index.js +25 -27
- package/floodanalysis/index.js +23 -27
- package/geologicalbodyanalysis/index.js +900 -0
- package/geologicalbodyanalysis/style/geologicalbodyanalysis.css +1 -0
- package/geologicalbodyanalysis/style/index.js +3 -0
- package/gpuspatialquery/index.js +25 -25
- package/hawkeye/index.js +7 -8
- package/headertemp/index.js +4 -5
- package/index.js +21021 -14725
- package/isolineanalysis/index.js +22 -24
- package/light/index.js +1067 -0
- package/light/style/index.js +3 -0
- package/light/style/light.css +1 -0
- package/limitheightanalysis/index.js +751 -0
- package/limitheightanalysis/style/index.js +3 -0
- package/limitheightanalysis/style/limitheightanalysis.css +1 -0
- package/measure/index.js +46 -38
- package/modelFlat/index.js +483 -0
- package/modelFlat/style/index.js +3 -0
- package/modelFlat/style/modelFlat.css +1 -0
- package/modelfilter/index.js +296 -336
- package/modelfilter/style/modelfilter.css +1 -1
- package/modelprofileanalysis/index.js +7 -8
- package/modelselect/index.js +20 -157
- package/package.json +1 -1
- package/particleeffect/index.js +6 -142
- package/planeclip/index.js +23 -25
- package/resetview/index.js +4 -4
- package/roller/index.js +7 -8
- package/scaneffect/index.js +1730 -0
- package/scaneffect/style/index.js +3 -0
- package/scaneffect/style/scaneffect.css +1 -0
- package/scenceview/index.js +13823 -7365
- package/sceneset/index.js +2097 -0
- package/sceneset/style/index.js +3 -0
- package/sceneset/style/sceneset.css +1 -0
- package/screenshot/index.js +7 -8
- package/shadowanalysis/index.js +20 -158
- package/sightlineanalysis/index.js +26 -19
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +23 -25
- package/slopeanalysis/index.js +22 -24
- package/statusbar/index.js +4 -4
- package/style.css +1 -1
- package/terrainoperation/index.js +20 -157
- package/terrainprofileanalysis/index.js +620 -0
- package/terrainprofileanalysis/style/index.js +3 -0
- package/terrainprofileanalysis/style/terrainprofileanalysis.css +1 -0
- package/underground/index.js +7 -8
- package/videofusion/index.js +23 -35
- package/videoproject/index.js +23 -35
- package/viewshedanalysis/index.js +4 -5
- package/weathereffect/index.js +6 -142
- package/wireframesketch/index.js +521 -0
- package/wireframesketch/style/index.js +3 -0
- package/wireframesketch/style/wireframesketch.css +1 -0
package/adddata/index.js
CHANGED
|
@@ -1,128 +1,29 @@
|
|
|
1
1
|
/******/ (function() { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
2
3
|
/******/ var __webpack_modules__ = ({
|
|
3
4
|
|
|
4
|
-
/***/
|
|
5
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6
|
-
|
|
7
|
-
__webpack_require__(4271);
|
|
8
|
-
|
|
9
|
-
/*global window, global*/
|
|
10
|
-
var util = __webpack_require__(6464);
|
|
11
|
-
|
|
12
|
-
var assert = __webpack_require__(9084);
|
|
13
|
-
|
|
14
|
-
function now() {
|
|
15
|
-
return new Date().getTime();
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var slice = Array.prototype.slice;
|
|
19
|
-
var console;
|
|
20
|
-
var times = {};
|
|
21
|
-
|
|
22
|
-
if (typeof __webpack_require__.g !== "undefined" && __webpack_require__.g.console) {
|
|
23
|
-
console = __webpack_require__.g.console;
|
|
24
|
-
} else if (typeof window !== "undefined" && window.console) {
|
|
25
|
-
console = window.console;
|
|
26
|
-
} else {
|
|
27
|
-
console = {};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var functions = [[log, "log"], [info, "info"], [warn, "warn"], [error, "error"], [time, "time"], [timeEnd, "timeEnd"], [trace, "trace"], [dir, "dir"], [consoleAssert, "assert"]];
|
|
31
|
-
|
|
32
|
-
for (var i = 0; i < functions.length; i++) {
|
|
33
|
-
var tuple = functions[i];
|
|
34
|
-
var f = tuple[0];
|
|
35
|
-
var name = tuple[1];
|
|
36
|
-
|
|
37
|
-
if (!console[name]) {
|
|
38
|
-
console[name] = f;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
module.exports = console;
|
|
43
|
-
|
|
44
|
-
function log() {}
|
|
45
|
-
|
|
46
|
-
function info() {
|
|
47
|
-
console.log.apply(console, arguments);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function warn() {
|
|
51
|
-
console.log.apply(console, arguments);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function error() {
|
|
55
|
-
console.warn.apply(console, arguments);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function time(label) {
|
|
59
|
-
times[label] = now();
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function timeEnd(label) {
|
|
63
|
-
var time = times[label];
|
|
64
|
-
|
|
65
|
-
if (!time) {
|
|
66
|
-
throw new Error("No such label: " + label);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
delete times[label];
|
|
70
|
-
var duration = now() - time;
|
|
71
|
-
console.log(label + ": " + duration + "ms");
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function trace() {
|
|
75
|
-
var err = new Error();
|
|
76
|
-
err.name = "Trace";
|
|
77
|
-
err.message = util.format.apply(null, arguments);
|
|
78
|
-
console.error(err.stack);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function dir(object) {
|
|
82
|
-
console.log(util.inspect(object) + "\n");
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function consoleAssert(expression) {
|
|
86
|
-
if (!expression) {
|
|
87
|
-
var arr = slice.call(arguments, 1);
|
|
88
|
-
assert.ok(false, util.format.apply(null, arr));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/***/ }),
|
|
93
|
-
|
|
94
|
-
/***/ 8143:
|
|
5
|
+
/***/ 1349:
|
|
95
6
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
96
7
|
|
|
97
|
-
|
|
8
|
+
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2442);
|
|
9
|
+
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_es__WEBPACK_IMPORTED_MODULE_0__);
|
|
10
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5406);
|
|
11
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
98
12
|
|
|
99
|
-
// EXPORTS
|
|
100
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
101
|
-
"Z": function() { return /* binding */ message; }
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
;// CONCATENATED MODULE: external "element-plus/es"
|
|
105
|
-
var es_namespaceObject = require("element-plus/es");
|
|
106
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
107
|
-
var init_js_ = __webpack_require__(5406);
|
|
108
|
-
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
109
|
-
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
110
13
|
|
|
111
14
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
Vue.component("KqMessage", es_namespaceObject.ElMessage);
|
|
15
|
+
element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
16
|
+
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
17
|
+
Vue.component("KqMessage", element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
116
18
|
};
|
|
117
19
|
|
|
118
|
-
/* harmony default export */
|
|
20
|
+
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
119
21
|
|
|
120
22
|
/***/ }),
|
|
121
23
|
|
|
122
24
|
/***/ 8422:
|
|
123
25
|
/***/ (function(module) {
|
|
124
26
|
|
|
125
|
-
"use strict";
|
|
126
27
|
module.exports = require("@element-plus/icons-vue");
|
|
127
28
|
|
|
128
29
|
/***/ }),
|
|
@@ -130,39 +31,20 @@ module.exports = require("@element-plus/icons-vue");
|
|
|
130
31
|
/***/ 348:
|
|
131
32
|
/***/ (function(module) {
|
|
132
33
|
|
|
133
|
-
"use strict";
|
|
134
34
|
module.exports = require("@kq_npm/client_icons_vue");
|
|
135
35
|
|
|
136
36
|
/***/ }),
|
|
137
37
|
|
|
138
|
-
/***/
|
|
38
|
+
/***/ 2442:
|
|
139
39
|
/***/ (function(module) {
|
|
140
40
|
|
|
141
|
-
|
|
142
|
-
module.exports = require("assert");
|
|
143
|
-
|
|
144
|
-
/***/ }),
|
|
145
|
-
|
|
146
|
-
/***/ 4271:
|
|
147
|
-
/***/ (function(module) {
|
|
148
|
-
|
|
149
|
-
"use strict";
|
|
150
|
-
module.exports = require("core-js/modules/es.error.cause.js");
|
|
151
|
-
|
|
152
|
-
/***/ }),
|
|
153
|
-
|
|
154
|
-
/***/ 6464:
|
|
155
|
-
/***/ (function(module) {
|
|
156
|
-
|
|
157
|
-
"use strict";
|
|
158
|
-
module.exports = require("util");
|
|
41
|
+
module.exports = require("element-plus/es");
|
|
159
42
|
|
|
160
43
|
/***/ }),
|
|
161
44
|
|
|
162
45
|
/***/ 7080:
|
|
163
46
|
/***/ (function(module) {
|
|
164
47
|
|
|
165
|
-
"use strict";
|
|
166
48
|
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
167
49
|
|
|
168
50
|
/***/ }),
|
|
@@ -170,7 +52,6 @@ module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
|
170
52
|
/***/ 9702:
|
|
171
53
|
/***/ (function(module) {
|
|
172
54
|
|
|
173
|
-
"use strict";
|
|
174
55
|
module.exports = require("@kq_npm/client_common_vue/_utils/const-image");
|
|
175
56
|
|
|
176
57
|
/***/ }),
|
|
@@ -178,7 +59,6 @@ module.exports = require("@kq_npm/client_common_vue/_utils/const-image");
|
|
|
178
59
|
/***/ 826:
|
|
179
60
|
/***/ (function(module) {
|
|
180
61
|
|
|
181
|
-
"use strict";
|
|
182
62
|
module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
|
|
183
63
|
|
|
184
64
|
/***/ }),
|
|
@@ -186,7 +66,6 @@ module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
|
|
|
186
66
|
/***/ 9519:
|
|
187
67
|
/***/ (function(module) {
|
|
188
68
|
|
|
189
|
-
"use strict";
|
|
190
69
|
module.exports = require("@kq_npm/client_common_vue/_utils/util");
|
|
191
70
|
|
|
192
71
|
/***/ }),
|
|
@@ -194,7 +73,6 @@ module.exports = require("@kq_npm/client_common_vue/_utils/util");
|
|
|
194
73
|
/***/ 5360:
|
|
195
74
|
/***/ (function(module) {
|
|
196
75
|
|
|
197
|
-
"use strict";
|
|
198
76
|
module.exports = require("@kq_npm/client_common_vue/_utils/webmapservice");
|
|
199
77
|
|
|
200
78
|
/***/ }),
|
|
@@ -202,7 +80,6 @@ module.exports = require("@kq_npm/client_common_vue/_utils/webmapservice");
|
|
|
202
80
|
/***/ 5406:
|
|
203
81
|
/***/ (function(module) {
|
|
204
82
|
|
|
205
|
-
"use strict";
|
|
206
83
|
module.exports = require("@kq_npm/client_common_vue/init.js");
|
|
207
84
|
|
|
208
85
|
/***/ }),
|
|
@@ -210,7 +87,6 @@ module.exports = require("@kq_npm/client_common_vue/init.js");
|
|
|
210
87
|
/***/ 637:
|
|
211
88
|
/***/ (function(module) {
|
|
212
89
|
|
|
213
|
-
"use strict";
|
|
214
90
|
module.exports = require("vue");
|
|
215
91
|
|
|
216
92
|
/***/ }),
|
|
@@ -218,7 +94,6 @@ module.exports = require("vue");
|
|
|
218
94
|
/***/ 8270:
|
|
219
95
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
220
96
|
|
|
221
|
-
"use strict";
|
|
222
97
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
223
98
|
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
224
99
|
/* harmony export */ });
|
|
@@ -290,18 +165,6 @@ function _defineProperty(obj, key, value) {
|
|
|
290
165
|
/******/ };
|
|
291
166
|
/******/ }();
|
|
292
167
|
/******/
|
|
293
|
-
/******/ /* webpack/runtime/global */
|
|
294
|
-
/******/ !function() {
|
|
295
|
-
/******/ __webpack_require__.g = (function() {
|
|
296
|
-
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
297
|
-
/******/ try {
|
|
298
|
-
/******/ return this || new Function('return this')();
|
|
299
|
-
/******/ } catch (e) {
|
|
300
|
-
/******/ if (typeof window === 'object') return window;
|
|
301
|
-
/******/ }
|
|
302
|
-
/******/ })();
|
|
303
|
-
/******/ }();
|
|
304
|
-
/******/
|
|
305
168
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
306
169
|
/******/ !function() {
|
|
307
170
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
@@ -320,9 +183,8 @@ function _defineProperty(obj, key, value) {
|
|
|
320
183
|
/******/
|
|
321
184
|
/************************************************************************/
|
|
322
185
|
var __webpack_exports__ = {};
|
|
323
|
-
// This entry need to be wrapped in an IIFE because it need to be in
|
|
186
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
324
187
|
!function() {
|
|
325
|
-
"use strict";
|
|
326
188
|
// ESM COMPAT FLAG
|
|
327
189
|
__webpack_require__.r(__webpack_exports__);
|
|
328
190
|
|
|
@@ -347,12 +209,11 @@ var webmapservice_ = __webpack_require__(5360);
|
|
|
347
209
|
var webmapservice_default = /*#__PURE__*/__webpack_require__.n(webmapservice_);
|
|
348
210
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
349
211
|
var util_ = __webpack_require__(9519);
|
|
350
|
-
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
351
|
-
var message = __webpack_require__(
|
|
212
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
213
|
+
var message = __webpack_require__(1349);
|
|
352
214
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
|
|
353
215
|
var const_image_ = __webpack_require__(9702);
|
|
354
216
|
;// CONCATENATED MODULE: ./src/webgl/adddata/AddDataViewModel.js
|
|
355
|
-
/* provided dependency */ var console = __webpack_require__(1283);
|
|
356
217
|
|
|
357
218
|
|
|
358
219
|
|
|
@@ -419,7 +280,7 @@ class AddDataViewModel {
|
|
|
419
280
|
var name = file.name.replace(/(.*\/)*([^.]+).*/gi, "$2"); //文件名
|
|
420
281
|
|
|
421
282
|
if (ext === "zip") {
|
|
422
|
-
(0,util_.uploadSHP)(that._geometryServerUrl, file, that._geometryServerToken,
|
|
283
|
+
(0,util_.uploadSHP)(that._geometryServerUrl, file, that._geometryServerToken, this._language, function (res) {
|
|
423
284
|
if (res) {
|
|
424
285
|
if (res.srs) {
|
|
425
286
|
//返回的geojson数据已经做了处理,返回数据坐标系为4326
|
|
@@ -466,7 +327,7 @@ class AddDataViewModel {
|
|
|
466
327
|
});
|
|
467
328
|
} else if (ext === "txt") {
|
|
468
329
|
let dataUrl = that._geometryServerUrl + (that._geometryServerToken ? "?ua_token=" + that._geometryServerToken : "");
|
|
469
|
-
(0,util_.readTxT)(file, dataUrl, "4326", res => {
|
|
330
|
+
(0,util_.readTxT)(file, dataUrl, "4326", this._language, res => {
|
|
470
331
|
if (res) {
|
|
471
332
|
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
472
333
|
ds.load(res, that._geojsonStyle).then(ds => {
|
|
@@ -672,9 +533,6 @@ class AddDataViewModel {
|
|
|
672
533
|
|
|
673
534
|
break;
|
|
674
535
|
|
|
675
|
-
case "txt":
|
|
676
|
-
break;
|
|
677
|
-
|
|
678
536
|
case "csv":
|
|
679
537
|
break;
|
|
680
538
|
|
|
@@ -771,7 +629,7 @@ class AddDataViewModel {
|
|
|
771
629
|
if (["kml", "kmz", "czml", "geojson", "json", "topojson"].indexOf(ext) > -1) {
|
|
772
630
|
name = url.substring(url.lastIndexOf("/") + 1);
|
|
773
631
|
} else {
|
|
774
|
-
if (type !== "wms" && type !== "wmts" && type !==
|
|
632
|
+
if (type !== "wms" && type !== "wmts" && type !== "kqgisaggregationserver") {
|
|
775
633
|
name = url.substring(0, url.lastIndexOf("/"));
|
|
776
634
|
name = name.substring(name.lastIndexOf("/") + 1);
|
|
777
635
|
}
|
|
@@ -884,8 +742,11 @@ class AddDataViewModel {
|
|
|
884
742
|
break;
|
|
885
743
|
|
|
886
744
|
case "kqgis3dserver":
|
|
745
|
+
var geojsonStyle0 = { ...this._geojsonStyle
|
|
746
|
+
};
|
|
747
|
+
|
|
887
748
|
this._viewer.addKq3dServerLayerGroupExt(url, {
|
|
888
|
-
|
|
749
|
+
geojsonStyle: geojsonStyle0
|
|
889
750
|
}).then(group => {
|
|
890
751
|
var layers = group._addedLayers || group._layers;
|
|
891
752
|
|
|
@@ -898,12 +759,13 @@ class AddDataViewModel {
|
|
|
898
759
|
};
|
|
899
760
|
var serverType = "";
|
|
900
761
|
var addType = "";
|
|
762
|
+
let promiseList = [];
|
|
901
763
|
|
|
902
764
|
for (var i = 0; i < layers.length; i++) {
|
|
903
765
|
if (layers[i] instanceof Cesium.Cesium3DTileset) {
|
|
904
766
|
serverType = "3dtiles";
|
|
905
767
|
addType = "3dtiles";
|
|
906
|
-
url = layers[i].
|
|
768
|
+
url = layers[i]._originUrl;
|
|
907
769
|
} else if (layers[i] instanceof Cesium.ImageryLayer) {
|
|
908
770
|
serverType = "imagerylayer";
|
|
909
771
|
addType = "kq3dimageryfile";
|
|
@@ -911,41 +773,85 @@ class AddDataViewModel {
|
|
|
911
773
|
} else if (layers[i] instanceof Cesium.Kq3dFileTerrainProvider) {
|
|
912
774
|
serverType = "terrainprovider";
|
|
913
775
|
addType = "obterrain";
|
|
914
|
-
url = layers[i].
|
|
776
|
+
url = layers[i]._originUrl + layers[i]._urlPramas;
|
|
915
777
|
|
|
916
778
|
this._layerManager._terrainProviders.push(layers[i]);
|
|
917
779
|
} else if (layers[i] instanceof Cesium.CesiumTerrainProvider) {
|
|
918
780
|
serverType = "terrainprovider";
|
|
919
781
|
addType = "stkterrain";
|
|
920
|
-
url = layers[i].
|
|
782
|
+
url = layers[i]._originUrl;
|
|
921
783
|
|
|
922
784
|
this._layerManager._terrainProviders.push(layers[i]);
|
|
923
785
|
} else if (layers[i] instanceof Cesium.Kq3dGeoJsonDataSource) {
|
|
924
786
|
serverType = "datasource";
|
|
925
787
|
addType = "geojson";
|
|
926
|
-
url = layers[i].
|
|
788
|
+
url = layers[i]._url;
|
|
789
|
+
let promise = new Promise(resolve => {
|
|
790
|
+
layers[i].loadingEvent.addEventListener(function (ds) {
|
|
791
|
+
// 绘制面边框
|
|
792
|
+
ds.entities.values.forEach(entity => {
|
|
793
|
+
if (entity.polygon) {
|
|
794
|
+
entity.polyline = {
|
|
795
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
796
|
+
width: geojsonStyle0.polygon.outlineWidth,
|
|
797
|
+
material: geojsonStyle0.polygon.outlineColor
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
});
|
|
801
|
+
let shapeType = ""; // 判断geojson点线面类型
|
|
802
|
+
|
|
803
|
+
if (ds.entities.values.length > 0) {
|
|
804
|
+
let entity = ds.entities.values[0];
|
|
805
|
+
|
|
806
|
+
if (entity.polygon) {
|
|
807
|
+
shapeType = 'polygon';
|
|
808
|
+
} else if (entity.polyline) {
|
|
809
|
+
shapeType = 'polyline';
|
|
810
|
+
} else if (entity.billboard || entity.point) {
|
|
811
|
+
shapeType = 'point';
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
let dsChild = {
|
|
816
|
+
guid: ds.guid,
|
|
817
|
+
name: ds._name,
|
|
818
|
+
visible: true,
|
|
819
|
+
serverType: serverType,
|
|
820
|
+
url: url,
|
|
821
|
+
addType: 'geojson',
|
|
822
|
+
shapeType: shapeType
|
|
823
|
+
};
|
|
824
|
+
node.children.push(dsChild);
|
|
825
|
+
resolve(true);
|
|
826
|
+
});
|
|
827
|
+
});
|
|
828
|
+
promiseList.push(promise);
|
|
927
829
|
} else if (layers[i] instanceof Cesium.Kq3dS3MTilesLayer) {
|
|
928
830
|
serverType = "s3m";
|
|
929
831
|
addType = "s3m";
|
|
930
832
|
url = layers[i]._url;
|
|
931
833
|
}
|
|
932
834
|
|
|
933
|
-
if (
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
835
|
+
if (serverType !== "datasource") {
|
|
836
|
+
if (!layers[i].guid) layers[i].guid = Cesium.createGuid();
|
|
837
|
+
node.children.push({
|
|
838
|
+
guid: layers[i].guid,
|
|
839
|
+
name: layers[i].name || layers[i]._name,
|
|
840
|
+
visible: true,
|
|
841
|
+
serverType: serverType,
|
|
842
|
+
url: url,
|
|
843
|
+
addType: addType
|
|
844
|
+
});
|
|
845
|
+
}
|
|
942
846
|
}
|
|
943
847
|
|
|
944
|
-
|
|
848
|
+
Promise.all(promiseList).then(() => {
|
|
849
|
+
this.flyToLayer(layers[0]);
|
|
945
850
|
|
|
946
|
-
|
|
851
|
+
this._layerManager.addTempLayerNode(node);
|
|
947
852
|
|
|
948
|
-
|
|
853
|
+
cb && cb(node);
|
|
854
|
+
});
|
|
949
855
|
}
|
|
950
856
|
});
|
|
951
857
|
|
|
@@ -991,7 +897,7 @@ class AddDataViewModel {
|
|
|
991
897
|
cb && cb(node);
|
|
992
898
|
}
|
|
993
899
|
} else {
|
|
994
|
-
console.log(
|
|
900
|
+
console.log("解析服务原始信息失败.");
|
|
995
901
|
}
|
|
996
902
|
}); // layer = this._viewer.imageryLayers.addImageryProvider(
|
|
997
903
|
// new Cesium.Kq3dKQGISServerImageryProviderExt({
|
|
@@ -1018,7 +924,13 @@ class AddDataViewModel {
|
|
|
1018
924
|
break;
|
|
1019
925
|
|
|
1020
926
|
case "kqgismapserver":
|
|
1021
|
-
|
|
927
|
+
node = {
|
|
928
|
+
guid: Cesium.createGuid(),
|
|
929
|
+
name: name,
|
|
930
|
+
children: [],
|
|
931
|
+
lsType: "ls"
|
|
932
|
+
}; //使用二维方式解析服务
|
|
933
|
+
|
|
1022
934
|
let serverName = url.split("services/")[1].split("/")[0];
|
|
1023
935
|
let serverUrl = url.split("services/")[0] + "services/";
|
|
1024
936
|
let token;
|
|
@@ -1076,14 +988,14 @@ class AddDataViewModel {
|
|
|
1076
988
|
}
|
|
1077
989
|
|
|
1078
990
|
setChildrenAddType(mapServerInfo.layerTreeData, type);
|
|
1079
|
-
mapServerInfo.layerTreeData.forEach(
|
|
1080
|
-
|
|
1081
|
-
node.
|
|
991
|
+
mapServerInfo.layerTreeData.forEach(layerData => {
|
|
992
|
+
layerData.url = url;
|
|
993
|
+
node.children.push(layerData);
|
|
994
|
+
});
|
|
1082
995
|
|
|
1083
|
-
|
|
996
|
+
this._layerManager.addTempLayerNode(node, 1);
|
|
1084
997
|
|
|
1085
|
-
|
|
1086
|
-
}, this);
|
|
998
|
+
cb && cb(node);
|
|
1087
999
|
});
|
|
1088
1000
|
break;
|
|
1089
1001
|
|
|
@@ -1168,7 +1080,7 @@ class AddDataViewModel {
|
|
|
1168
1080
|
name: name || "wms",
|
|
1169
1081
|
children: [],
|
|
1170
1082
|
lsType: "ls",
|
|
1171
|
-
serverType:
|
|
1083
|
+
serverType: "ogcwms" //图层树显示图标使用
|
|
1172
1084
|
|
|
1173
1085
|
};
|
|
1174
1086
|
var layers = group._addedLayers || group._layers;
|
|
@@ -1202,18 +1114,18 @@ class AddDataViewModel {
|
|
|
1202
1114
|
case "kqgistileserver":
|
|
1203
1115
|
case "kqgisaggregationserver":
|
|
1204
1116
|
if (type === "kqgistileserver") {
|
|
1205
|
-
if (url.indexOf(
|
|
1206
|
-
url = url.replace(
|
|
1117
|
+
if (url.indexOf("?") > 0) {
|
|
1118
|
+
url = url.replace("?", "/wmts?");
|
|
1207
1119
|
} else {
|
|
1208
|
-
url +=
|
|
1120
|
+
url += "/wmts";
|
|
1209
1121
|
}
|
|
1210
1122
|
}
|
|
1211
1123
|
|
|
1212
|
-
let defaultName =
|
|
1124
|
+
let defaultName = "wmts";
|
|
1213
1125
|
|
|
1214
1126
|
this._viewer.addWMTSLayerGroup(url).then(group => {
|
|
1215
1127
|
// if(type === "kqgistileserver") defaultName = name;
|
|
1216
|
-
if (type === "kqgisaggregationserver") defaultName =
|
|
1128
|
+
if (type === "kqgisaggregationserver") defaultName = "aggregation";
|
|
1217
1129
|
node = {
|
|
1218
1130
|
guid: group.guid,
|
|
1219
1131
|
name: name || defaultName,
|
|
@@ -1322,7 +1234,7 @@ class AddDataViewModel {
|
|
|
1322
1234
|
var ds = new Cesium.Kq3dEsriGeoJsonDataSource(name);
|
|
1323
1235
|
var geojsonStyle = { ...this._geojsonStyle
|
|
1324
1236
|
};
|
|
1325
|
-
geojsonStyle.label.express =
|
|
1237
|
+
geojsonStyle.label.express = "NAME";
|
|
1326
1238
|
ds.load(url, geojsonStyle).then(ds => {
|
|
1327
1239
|
ds.entities.values.forEach(entity => {
|
|
1328
1240
|
if (entity.polygon) {
|
|
@@ -1451,7 +1363,12 @@ class AddDataViewModel {
|
|
|
1451
1363
|
destination: tileset.rectangle
|
|
1452
1364
|
});
|
|
1453
1365
|
});
|
|
1454
|
-
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource
|
|
1366
|
+
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource) {
|
|
1367
|
+
let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
|
|
1368
|
+
viewer.flyTo(layer, {
|
|
1369
|
+
offset
|
|
1370
|
+
});
|
|
1371
|
+
} else if (layer instanceof Cesium.KmlDataSource || layer instanceof Cesium.CzmlDataSource) {
|
|
1455
1372
|
viewer.flyTo(layer);
|
|
1456
1373
|
} else if (layer instanceof Cesium.Kq3dKQGISServerTerrainProvider || layer instanceof Cesium.Kq3dFileTerrainProvider || layer instanceof Cesium.CesiumTerrainProvider) {
|
|
1457
1374
|
layer.getViewableRectangle().then(function (rectangle) {
|
|
@@ -1484,7 +1401,7 @@ function setChildrenAddType(nodeList, addType) {
|
|
|
1484
1401
|
}
|
|
1485
1402
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
1486
1403
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
1487
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js
|
|
1404
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/adddata/AddData.vue?vue&type=script&setup=true&lang=js
|
|
1488
1405
|
|
|
1489
1406
|
const _hoisted_1 = {
|
|
1490
1407
|
class: "kq3d-add-data-box"
|
|
@@ -1593,10 +1510,9 @@ const __default__ = {
|
|
|
1593
1510
|
}
|
|
1594
1511
|
},
|
|
1595
1512
|
|
|
1596
|
-
setup(__props,
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
} = _ref;
|
|
1513
|
+
setup(__props, {
|
|
1514
|
+
expose
|
|
1515
|
+
}) {
|
|
1600
1516
|
const props = __props;
|
|
1601
1517
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
1602
1518
|
let selectTypeIndex = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0); //URL服务支持的数据源类型
|
package/aspectanalysis/index.js
CHANGED
|
@@ -2,30 +2,22 @@
|
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 1349:
|
|
6
6
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
|
|
8
|
+
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2442);
|
|
9
|
+
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_es__WEBPACK_IMPORTED_MODULE_0__);
|
|
10
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5406);
|
|
11
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
8
12
|
|
|
9
|
-
// EXPORTS
|
|
10
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
11
|
-
"Z": function() { return /* binding */ message; }
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
;// CONCATENATED MODULE: external "element-plus/es"
|
|
15
|
-
var es_namespaceObject = require("element-plus/es");
|
|
16
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
17
|
-
var init_js_ = __webpack_require__(5406);
|
|
18
|
-
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
19
|
-
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
20
13
|
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Vue.component("KqMessage", es_namespaceObject.ElMessage);
|
|
15
|
+
element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
16
|
+
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
17
|
+
Vue.component("KqMessage", element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
26
18
|
};
|
|
27
19
|
|
|
28
|
-
/* harmony default export */
|
|
20
|
+
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
29
21
|
|
|
30
22
|
/***/ }),
|
|
31
23
|
|
|
@@ -36,6 +28,13 @@ module.exports = require("@kq_npm/client_icons_vue");
|
|
|
36
28
|
|
|
37
29
|
/***/ }),
|
|
38
30
|
|
|
31
|
+
/***/ 2442:
|
|
32
|
+
/***/ (function(module) {
|
|
33
|
+
|
|
34
|
+
module.exports = require("element-plus/es");
|
|
35
|
+
|
|
36
|
+
/***/ }),
|
|
37
|
+
|
|
39
38
|
/***/ 7080:
|
|
40
39
|
/***/ (function(module) {
|
|
41
40
|
|
|
@@ -180,15 +179,15 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
|
180
179
|
var gis_utils_ = __webpack_require__(826);
|
|
181
180
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
182
181
|
var defineProperty = __webpack_require__(8270);
|
|
183
|
-
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
184
|
-
var message = __webpack_require__(
|
|
182
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
183
|
+
var message = __webpack_require__(1349);
|
|
185
184
|
;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/AspectAnalysisViewModel.js
|
|
186
185
|
|
|
186
|
+
|
|
187
187
|
/**
|
|
188
188
|
* 坡向逻辑类
|
|
189
189
|
**/
|
|
190
190
|
|
|
191
|
-
|
|
192
191
|
class AspectAnalysisViewModel {
|
|
193
192
|
// 坡向三维对象
|
|
194
193
|
constructor(scenceView, aspect) {
|
|
@@ -288,7 +287,7 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
288
287
|
var util_ = __webpack_require__(9519);
|
|
289
288
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
290
289
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
291
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js
|
|
290
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/aspectanalysis/AspectAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
292
291
|
|
|
293
292
|
const _hoisted_1 = {
|
|
294
293
|
class: "kq3d-aspect-analysis-box"
|
|
@@ -347,10 +346,9 @@ const __default__ = {
|
|
|
347
346
|
}
|
|
348
347
|
},
|
|
349
348
|
|
|
350
|
-
setup(__props,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
} = _ref;
|
|
349
|
+
setup(__props, {
|
|
350
|
+
expose
|
|
351
|
+
}) {
|
|
354
352
|
const props = __props;
|
|
355
353
|
const {
|
|
356
354
|
proxy
|