@kq_npm/client3d_webgl_vue 4.5.2 → 4.5.4-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 +355 -538
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +172 -239
- package/baseterraingallery/index.js +124 -145
- package/boxclip/index.js +300 -481
- package/clientPrint/index.js +335 -898
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +226 -246
- package/compass/index.js +96 -84
- package/excavatefillanalysis/index.js +193 -263
- package/fixedzoomin/index.js +91 -76
- package/fixedzoomout/index.js +91 -76
- package/flight/index.js +311 -415
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +255 -393
- package/geologicalbodyanalysis/index.js +215 -298
- package/gpuspatialquery/index.js +260 -402
- package/hawkeye/index.js +141 -103
- package/headertemp/index.js +25 -34
- package/heatmap3d/index.js +451 -763
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +20826 -17774
- package/isolineanalysis/index.js +566 -1243
- package/light/index.js +353 -488
- package/limitheightanalysis/index.js +251 -312
- package/measure/index.js +350 -504
- package/modelFlat/index.js +214 -234
- package/modelexcavate/index.js +206 -262
- package/modelfilter/index.js +229 -308
- package/modelprofileanalysis/index.js +356 -465
- package/modelselect/index.js +192 -184
- package/package.json +1 -1
- package/particleeffect/index.js +259 -430
- package/planeclip/index.js +249 -339
- package/resetview/index.js +89 -69
- package/roller/index.js +307 -363
- package/scaneffect/index.js +285 -582
- package/sceneadvancedtoimage/index.js +1055 -0
- package/sceneadvancedtoimage/style/index.js +3 -0
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -0
- package/sceneapp/index.js +11149 -0
- package/sceneset/index.js +393 -885
- package/scenetohdimage/index.js +214 -346
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +22780 -19540
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +275 -312
- package/shadowanalysis/index.js +269 -448
- package/sightlineanalysis/index.js +231 -312
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +213 -351
- package/slopeanalysis/index.js +282 -444
- package/slopeaspectanalysis/index.js +315 -534
- package/statusbar/index.js +194 -164
- package/style.css +1 -1
- package/terrainoperation/index.js +230 -280
- package/terrainprofileanalysis/index.js +174 -182
- package/underground/index.js +98 -82
- package/videofusion/index.js +319 -532
- package/videoproject/index.js +325 -534
- package/viewshedanalysis/index.js +178 -275
- package/weathereffect/index.js +199 -343
- package/wireframesketch/index.js +146 -150
package/adddata/index.js
CHANGED
|
@@ -7,129 +7,197 @@
|
|
|
7
7
|
var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/_utils/webmapservice"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/_utils/const-image")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/_utils/webmapservice"], root["@kq_npm/client_common_vue/_utils/util"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client_common_vue/_utils/const-image"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(this, function(
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__154__, __WEBPACK_EXTERNAL_MODULE__64__, __WEBPACK_EXTERNAL_MODULE__7338__, __WEBPACK_EXTERNAL_MODULE__2975__, __WEBPACK_EXTERNAL_MODULE__455__, __WEBPACK_EXTERNAL_MODULE__4822__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 3275:
|
|
16
16
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
17
|
|
|
18
|
+
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6363);
|
|
19
|
+
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
20
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(455);
|
|
21
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
22
|
+
/*
|
|
23
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
|
+
* All rights reserved.
|
|
25
|
+
*/
|
|
18
26
|
|
|
19
|
-
// EXPORTS
|
|
20
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
21
|
-
"Z": function() { return /* binding */ message; }
|
|
22
|
-
});
|
|
23
27
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
28
|
+
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
29
|
+
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
30
|
+
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
31
|
+
};
|
|
32
|
+
/* harmony default export */ __webpack_exports__.A = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
30
33
|
|
|
34
|
+
/***/ }),
|
|
31
35
|
|
|
36
|
+
/***/ 9371:
|
|
37
|
+
/***/ (function(module) {
|
|
32
38
|
|
|
33
|
-
|
|
34
|
-
init_js_default()(Vue, opts);
|
|
35
|
-
Vue.component("KqMessage", index_full_js_namespaceObject.ElMessage);
|
|
36
|
-
};
|
|
39
|
+
module.exports = require("@element-plus/icons-vue");
|
|
37
40
|
|
|
38
|
-
|
|
41
|
+
/***/ }),
|
|
42
|
+
|
|
43
|
+
/***/ 5698:
|
|
44
|
+
/***/ (function(module) {
|
|
45
|
+
|
|
46
|
+
module.exports = require("@kq_npm/client_icons_vue");
|
|
39
47
|
|
|
40
48
|
/***/ }),
|
|
41
49
|
|
|
42
|
-
/***/
|
|
50
|
+
/***/ 2652:
|
|
43
51
|
/***/ (function(module) {
|
|
44
52
|
|
|
45
|
-
module.exports = require("
|
|
53
|
+
module.exports = require("core-js/modules/es.array.push.js");
|
|
46
54
|
|
|
47
55
|
/***/ }),
|
|
48
56
|
|
|
49
|
-
/***/
|
|
57
|
+
/***/ 3658:
|
|
50
58
|
/***/ (function(module) {
|
|
51
59
|
|
|
52
|
-
module.exports = require("
|
|
60
|
+
module.exports = require("core-js/modules/esnext.iterator.constructor.js");
|
|
61
|
+
|
|
62
|
+
/***/ }),
|
|
63
|
+
|
|
64
|
+
/***/ 4669:
|
|
65
|
+
/***/ (function(module) {
|
|
66
|
+
|
|
67
|
+
module.exports = require("core-js/modules/esnext.iterator.for-each.js");
|
|
53
68
|
|
|
54
69
|
/***/ }),
|
|
55
70
|
|
|
56
|
-
/***/
|
|
71
|
+
/***/ 411:
|
|
57
72
|
/***/ (function(module) {
|
|
58
73
|
|
|
59
|
-
module.exports = require("core-js/modules/
|
|
74
|
+
module.exports = require("core-js/modules/web.url-search-params.delete.js");
|
|
60
75
|
|
|
61
76
|
/***/ }),
|
|
62
77
|
|
|
63
|
-
/***/
|
|
78
|
+
/***/ 7168:
|
|
79
|
+
/***/ (function(module) {
|
|
80
|
+
|
|
81
|
+
module.exports = require("core-js/modules/web.url-search-params.has.js");
|
|
82
|
+
|
|
83
|
+
/***/ }),
|
|
84
|
+
|
|
85
|
+
/***/ 6217:
|
|
86
|
+
/***/ (function(module) {
|
|
87
|
+
|
|
88
|
+
module.exports = require("core-js/modules/web.url-search-params.size.js");
|
|
89
|
+
|
|
90
|
+
/***/ }),
|
|
91
|
+
|
|
92
|
+
/***/ 6363:
|
|
93
|
+
/***/ (function(module) {
|
|
94
|
+
|
|
95
|
+
module.exports = require("element-plus/dist/index.full.js");
|
|
96
|
+
|
|
97
|
+
/***/ }),
|
|
98
|
+
|
|
99
|
+
/***/ 3579:
|
|
64
100
|
/***/ (function(module) {
|
|
65
101
|
|
|
66
102
|
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
67
103
|
|
|
68
104
|
/***/ }),
|
|
69
105
|
|
|
70
|
-
/***/
|
|
106
|
+
/***/ 4822:
|
|
71
107
|
/***/ (function(module) {
|
|
72
108
|
|
|
73
|
-
module.exports =
|
|
109
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4822__;
|
|
74
110
|
|
|
75
111
|
/***/ }),
|
|
76
112
|
|
|
77
|
-
/***/
|
|
113
|
+
/***/ 64:
|
|
78
114
|
/***/ (function(module) {
|
|
79
115
|
|
|
80
|
-
module.exports =
|
|
116
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
|
|
81
117
|
|
|
82
118
|
/***/ }),
|
|
83
119
|
|
|
84
|
-
/***/
|
|
120
|
+
/***/ 2975:
|
|
85
121
|
/***/ (function(module) {
|
|
86
122
|
|
|
87
|
-
module.exports =
|
|
123
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__2975__;
|
|
88
124
|
|
|
89
125
|
/***/ }),
|
|
90
126
|
|
|
91
|
-
/***/
|
|
127
|
+
/***/ 7338:
|
|
92
128
|
/***/ (function(module) {
|
|
93
129
|
|
|
94
|
-
module.exports =
|
|
130
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__7338__;
|
|
95
131
|
|
|
96
132
|
/***/ }),
|
|
97
133
|
|
|
98
|
-
/***/
|
|
134
|
+
/***/ 455:
|
|
99
135
|
/***/ (function(module) {
|
|
100
136
|
|
|
101
|
-
module.exports =
|
|
137
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
|
|
102
138
|
|
|
103
139
|
/***/ }),
|
|
104
140
|
|
|
105
|
-
/***/
|
|
141
|
+
/***/ 154:
|
|
106
142
|
/***/ (function(module) {
|
|
107
143
|
|
|
108
|
-
module.exports =
|
|
144
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
|
|
109
145
|
|
|
110
146
|
/***/ }),
|
|
111
147
|
|
|
112
|
-
/***/
|
|
148
|
+
/***/ 6913:
|
|
113
149
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
114
150
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
function
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
151
|
+
|
|
152
|
+
// EXPORTS
|
|
153
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
154
|
+
A: function() { return /* binding */ _defineProperty; }
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
158
|
+
function _typeof(o) {
|
|
159
|
+
"@babel/helpers - typeof";
|
|
160
|
+
|
|
161
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
162
|
+
return typeof o;
|
|
163
|
+
} : function (o) {
|
|
164
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
165
|
+
}, _typeof(o);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
169
|
+
|
|
170
|
+
function toPrimitive(t, r) {
|
|
171
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
172
|
+
var e = t[Symbol.toPrimitive];
|
|
173
|
+
if (void 0 !== e) {
|
|
174
|
+
var i = e.call(t, r || "default");
|
|
175
|
+
if ("object" != _typeof(i)) return i;
|
|
176
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
128
177
|
}
|
|
178
|
+
return ("string" === r ? String : Number)(t);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
182
|
+
|
|
129
183
|
|
|
130
|
-
|
|
184
|
+
function toPropertyKey(t) {
|
|
185
|
+
var i = toPrimitive(t, "string");
|
|
186
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
131
187
|
}
|
|
132
188
|
|
|
189
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
190
|
+
|
|
191
|
+
function _defineProperty(e, r, t) {
|
|
192
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
193
|
+
value: t,
|
|
194
|
+
enumerable: !0,
|
|
195
|
+
configurable: !0,
|
|
196
|
+
writable: !0
|
|
197
|
+
}) : e[r] = t, e;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
|
|
133
201
|
/***/ })
|
|
134
202
|
|
|
135
203
|
/******/ });
|
|
@@ -201,38 +269,46 @@ function _defineProperty(obj, key, value) {
|
|
|
201
269
|
/******/
|
|
202
270
|
/************************************************************************/
|
|
203
271
|
var __webpack_exports__ = {};
|
|
204
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
205
|
-
!function() {
|
|
206
272
|
// ESM COMPAT FLAG
|
|
207
273
|
__webpack_require__.r(__webpack_exports__);
|
|
208
274
|
|
|
209
275
|
// EXPORTS
|
|
210
276
|
__webpack_require__.d(__webpack_exports__, {
|
|
211
|
-
|
|
277
|
+
AddDataViewModel: function() { return /* reexport */ AddDataViewModel; },
|
|
212
278
|
"default": function() { return /* reexport */ AddData; }
|
|
213
279
|
});
|
|
214
280
|
|
|
215
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.
|
|
216
|
-
var
|
|
281
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
282
|
+
var es_array_push_js_ = __webpack_require__(2652);
|
|
283
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
284
|
+
var esnext_iterator_constructor_js_ = __webpack_require__(3658);
|
|
285
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
286
|
+
var esnext_iterator_for_each_js_ = __webpack_require__(4669);
|
|
217
287
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
218
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
288
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(154);
|
|
219
289
|
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
220
|
-
var icons_vue_ = __webpack_require__(
|
|
290
|
+
var icons_vue_ = __webpack_require__(9371);
|
|
221
291
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
222
|
-
var client_icons_vue_ = __webpack_require__(
|
|
292
|
+
var client_icons_vue_ = __webpack_require__(5698);
|
|
223
293
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
224
|
-
var gis_utils_ = __webpack_require__(
|
|
225
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
226
|
-
var defineProperty = __webpack_require__(
|
|
294
|
+
var gis_utils_ = __webpack_require__(64);
|
|
295
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
|
|
296
|
+
var defineProperty = __webpack_require__(6913);
|
|
297
|
+
// EXTERNAL MODULE: external "core-js/modules/web.url-search-params.delete.js"
|
|
298
|
+
var web_url_search_params_delete_js_ = __webpack_require__(411);
|
|
299
|
+
// EXTERNAL MODULE: external "core-js/modules/web.url-search-params.has.js"
|
|
300
|
+
var web_url_search_params_has_js_ = __webpack_require__(7168);
|
|
301
|
+
// EXTERNAL MODULE: external "core-js/modules/web.url-search-params.size.js"
|
|
302
|
+
var web_url_search_params_size_js_ = __webpack_require__(6217);
|
|
227
303
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/webmapservice"
|
|
228
|
-
var webmapservice_ = __webpack_require__(
|
|
304
|
+
var webmapservice_ = __webpack_require__(7338);
|
|
229
305
|
var webmapservice_default = /*#__PURE__*/__webpack_require__.n(webmapservice_);
|
|
230
306
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
231
|
-
var util_ = __webpack_require__(
|
|
232
|
-
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
233
|
-
var message = __webpack_require__(
|
|
307
|
+
var util_ = __webpack_require__(2975);
|
|
308
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
309
|
+
var message = __webpack_require__(3275);
|
|
234
310
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
|
|
235
|
-
var const_image_ = __webpack_require__(
|
|
311
|
+
var const_image_ = __webpack_require__(4822);
|
|
236
312
|
;// CONCATENATED MODULE: external "papaparse"
|
|
237
313
|
var external_papaparse_namespaceObject = require("papaparse");
|
|
238
314
|
var external_papaparse_default = /*#__PURE__*/__webpack_require__.n(external_papaparse_namespaceObject);
|
|
@@ -242,17 +318,25 @@ var external_papaparse_default = /*#__PURE__*/__webpack_require__.n(external_pap
|
|
|
242
318
|
|
|
243
319
|
|
|
244
320
|
|
|
245
|
-
//添加数据逻辑类
|
|
246
321
|
|
|
247
|
-
class AddDataViewModel {
|
|
248
|
-
constructor(scenceView, options) {
|
|
249
|
-
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
250
322
|
|
|
251
|
-
|
|
323
|
+
/*
|
|
324
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
325
|
+
* All rights reserved.
|
|
326
|
+
*/
|
|
252
327
|
|
|
253
|
-
(0,defineProperty/* default */.Z)(this, "_language", null);
|
|
254
328
|
|
|
255
|
-
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
//添加数据逻辑类
|
|
334
|
+
class AddDataViewModel {
|
|
335
|
+
constructor(scenceView, options) {
|
|
336
|
+
(0,defineProperty/* default */.A)(this, "_viewer", null);
|
|
337
|
+
(0,defineProperty/* default */.A)(this, "_layerManager", null);
|
|
338
|
+
(0,defineProperty/* default */.A)(this, "_language", null);
|
|
339
|
+
(0,defineProperty/* default */.A)(this, "_geojsonStyle", {
|
|
256
340
|
label: {
|
|
257
341
|
express: "name",
|
|
258
342
|
// font: "25px 微软雅黑",
|
|
@@ -265,15 +349,15 @@ class AddDataViewModel {
|
|
|
265
349
|
style: Cesium.LabelStyle.FILL_AND_OUTLINE,
|
|
266
350
|
eyeOffset: Cesium.Cartesian3.ZERO,
|
|
267
351
|
pixelOffset: new Cesium.Cartesian2(0, -8),
|
|
268
|
-
disableDepthTestDistance: 10000000
|
|
269
|
-
|
|
352
|
+
disableDepthTestDistance: 10000000
|
|
353
|
+
// disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
270
354
|
},
|
|
271
355
|
billboard: {
|
|
272
356
|
image: const_image_.BILLBOARD_IMAGE_URL,
|
|
273
357
|
width: 12,
|
|
274
358
|
height: 12,
|
|
275
|
-
disableDepthTestDistance: 10000000
|
|
276
|
-
|
|
359
|
+
disableDepthTestDistance: 10000000
|
|
360
|
+
// disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
277
361
|
},
|
|
278
362
|
polyline: {
|
|
279
363
|
width: 2.0,
|
|
@@ -288,23 +372,20 @@ class AddDataViewModel {
|
|
|
288
372
|
perPositionHeight: false
|
|
289
373
|
}
|
|
290
374
|
});
|
|
291
|
-
|
|
292
375
|
this._viewer = scenceView._viewer;
|
|
293
376
|
this._layerManager = scenceView._layerManager;
|
|
294
377
|
this._language = scenceView._language;
|
|
295
378
|
this._geometryServerUrl = options.geometryServerUrl;
|
|
296
379
|
this._geometryServerToken = options.geometryServerToken;
|
|
297
380
|
if (options.geojsonStyle) this._geojsonStyle = Object.assign({}, this._geojsonStyle, options.geojsonStyle);
|
|
298
|
-
}
|
|
299
|
-
|
|
381
|
+
}
|
|
300
382
|
|
|
383
|
+
//解析文件
|
|
301
384
|
parseFile(file, cb) {
|
|
302
385
|
var that = this;
|
|
303
386
|
return new Promise((resolve, reject) => {
|
|
304
387
|
var ext = file.name.replace(/.+\./, "").toLowerCase(); //文件扩展名
|
|
305
|
-
|
|
306
388
|
var name = file.name.replace(/(.*\/)*([^.]+).*/gi, "$2"); //文件名
|
|
307
|
-
|
|
308
389
|
if (ext === "zip") {
|
|
309
390
|
(0,util_.uploadSHP)(file, function (res) {
|
|
310
391
|
if (res) {
|
|
@@ -319,10 +400,8 @@ class AddDataViewModel {
|
|
|
319
400
|
};
|
|
320
401
|
}
|
|
321
402
|
});
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
403
|
+
that._viewer.dataSources.add(ds);
|
|
404
|
+
// ds.autoAvoid(that._viewer);
|
|
326
405
|
that.flyToLayer(ds);
|
|
327
406
|
resolve("success");
|
|
328
407
|
var layer = {
|
|
@@ -335,9 +414,7 @@ class AddDataViewModel {
|
|
|
335
414
|
addType: "geojson",
|
|
336
415
|
shapeType: that._layerManager.getShapeType(ds)
|
|
337
416
|
};
|
|
338
|
-
|
|
339
417
|
that._layerManager.addTempLayerNode(layer);
|
|
340
|
-
|
|
341
418
|
cb && cb(layer);
|
|
342
419
|
});
|
|
343
420
|
} else {
|
|
@@ -360,10 +437,8 @@ class AddDataViewModel {
|
|
|
360
437
|
};
|
|
361
438
|
}
|
|
362
439
|
});
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
440
|
+
that._viewer.dataSources.add(ds);
|
|
441
|
+
// ds.autoAvoid(that._viewer);
|
|
367
442
|
that.flyToLayer(ds);
|
|
368
443
|
resolve("success");
|
|
369
444
|
var layer = {
|
|
@@ -376,9 +451,7 @@ class AddDataViewModel {
|
|
|
376
451
|
addType: "geojson",
|
|
377
452
|
shapeType: that._layerManager.getShapeType(ds)
|
|
378
453
|
};
|
|
379
|
-
|
|
380
454
|
that._layerManager.addTempLayerNode(layer);
|
|
381
|
-
|
|
382
455
|
cb && cb(layer);
|
|
383
456
|
});
|
|
384
457
|
} else {
|
|
@@ -396,13 +469,11 @@ class AddDataViewModel {
|
|
|
396
469
|
type: "FeatureCollection",
|
|
397
470
|
features: []
|
|
398
471
|
};
|
|
399
|
-
|
|
400
472
|
for (var i = 0; i < features.length; i++) {
|
|
401
473
|
let item = features[i];
|
|
402
474
|
let lat = null;
|
|
403
475
|
let lng = null;
|
|
404
476
|
let properties = {};
|
|
405
|
-
|
|
406
477
|
for (var j in item) {
|
|
407
478
|
if (j.toUpperCase().indexOf("LAT") != -1) {
|
|
408
479
|
lat = item[j];
|
|
@@ -415,9 +486,8 @@ class AddDataViewModel {
|
|
|
415
486
|
} else {
|
|
416
487
|
properties[j] = item[j];
|
|
417
488
|
}
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
|
|
489
|
+
}
|
|
490
|
+
// 点数据
|
|
421
491
|
if (lat && lng) {
|
|
422
492
|
let _point = {
|
|
423
493
|
type: "Feature",
|
|
@@ -427,11 +497,9 @@ class AddDataViewModel {
|
|
|
427
497
|
},
|
|
428
498
|
properties: properties
|
|
429
499
|
};
|
|
430
|
-
|
|
431
500
|
_featureCollection.features.push(_point);
|
|
432
501
|
} else {}
|
|
433
502
|
}
|
|
434
|
-
|
|
435
503
|
if (_featureCollection.features.length > 0) {
|
|
436
504
|
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
437
505
|
ds.load(_featureCollection, that._geojsonStyle).then(ds => {
|
|
@@ -444,9 +512,7 @@ class AddDataViewModel {
|
|
|
444
512
|
};
|
|
445
513
|
}
|
|
446
514
|
});
|
|
447
|
-
|
|
448
515
|
that._viewer.dataSources.add(ds);
|
|
449
|
-
|
|
450
516
|
that.flyToLayer(ds);
|
|
451
517
|
resolve("success");
|
|
452
518
|
var layer = {
|
|
@@ -459,9 +525,7 @@ class AddDataViewModel {
|
|
|
459
525
|
addType: "geojson",
|
|
460
526
|
shapeType: that._layerManager.getShapeType(ds)
|
|
461
527
|
};
|
|
462
|
-
|
|
463
528
|
that._layerManager.addTempLayerNode(layer);
|
|
464
|
-
|
|
465
529
|
cb && cb(layer);
|
|
466
530
|
});
|
|
467
531
|
} else {
|
|
@@ -483,9 +547,7 @@ class AddDataViewModel {
|
|
|
483
547
|
};
|
|
484
548
|
}
|
|
485
549
|
});
|
|
486
|
-
|
|
487
550
|
that._viewer.dataSources.add(ds);
|
|
488
|
-
|
|
489
551
|
that.flyToLayer(ds);
|
|
490
552
|
resolve("success");
|
|
491
553
|
var layer = {
|
|
@@ -498,9 +560,7 @@ class AddDataViewModel {
|
|
|
498
560
|
addType: "geojson",
|
|
499
561
|
shapeType: that._layerManager.getShapeType(ds)
|
|
500
562
|
};
|
|
501
|
-
|
|
502
563
|
that._layerManager.addTempLayerNode(layer);
|
|
503
|
-
|
|
504
564
|
cb && cb(layer);
|
|
505
565
|
});
|
|
506
566
|
} else {
|
|
@@ -508,6 +568,47 @@ class AddDataViewModel {
|
|
|
508
568
|
cb && cb("error");
|
|
509
569
|
}
|
|
510
570
|
});
|
|
571
|
+
} else if (ext === "dwg" || ext === "dfx") {
|
|
572
|
+
(0,util_.uploadCad)(this._geometryServerUrl, file, this._geometryServerToken, this._language, "4326", function (res) {
|
|
573
|
+
// console.log(res);
|
|
574
|
+
if (res) {
|
|
575
|
+
if (res.features && res.features.type === "processFailed") {
|
|
576
|
+
reject(file.uid);
|
|
577
|
+
}
|
|
578
|
+
if (res.srs) {
|
|
579
|
+
delete res.srs;
|
|
580
|
+
}
|
|
581
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
582
|
+
ds.load(res, that._geojsonStyle).then(ds => {
|
|
583
|
+
ds.entities.values.forEach(entity => {
|
|
584
|
+
if (entity.polygon) {
|
|
585
|
+
entity.polyline = {
|
|
586
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
587
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
588
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
});
|
|
592
|
+
that._viewer.dataSources.add(ds);
|
|
593
|
+
that.flyToLayer(ds);
|
|
594
|
+
resolve("success");
|
|
595
|
+
var layer = {
|
|
596
|
+
guid: ds.guid,
|
|
597
|
+
name: name,
|
|
598
|
+
visible: true,
|
|
599
|
+
serverType: "datasource",
|
|
600
|
+
lsType: "ls",
|
|
601
|
+
url: res,
|
|
602
|
+
addType: "geojson",
|
|
603
|
+
shapeType: that._layerManager.getShapeType(ds)
|
|
604
|
+
};
|
|
605
|
+
that._layerManager.addTempLayerNode(layer);
|
|
606
|
+
cb && cb(layer);
|
|
607
|
+
});
|
|
608
|
+
} else {
|
|
609
|
+
reject(file.uid);
|
|
610
|
+
}
|
|
611
|
+
});
|
|
511
612
|
} else {
|
|
512
613
|
var reader = new FileReader();
|
|
513
614
|
reader.readAsText(file); //文本
|
|
@@ -515,36 +616,31 @@ class AddDataViewModel {
|
|
|
515
616
|
//readAsArrayBuffer(file); //原始二进制数据
|
|
516
617
|
//readAsBinaryString(file);//二进制字符串
|
|
517
618
|
//reader.readAsBinaryString(file);
|
|
518
|
-
|
|
519
619
|
reader.onload = function (event) {
|
|
520
620
|
var ret = event.target.result;
|
|
521
|
-
|
|
522
621
|
switch (ext) {
|
|
523
622
|
case "json":
|
|
524
623
|
case "geojson":
|
|
525
624
|
case "topojson":
|
|
526
625
|
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
527
626
|
ret = ret.substring(ret.indexOf("{"));
|
|
528
|
-
|
|
529
627
|
try {
|
|
530
628
|
var data = JSON.parse(ret);
|
|
531
|
-
|
|
532
629
|
if (typeof data == "object" && data) {
|
|
533
630
|
ret = data;
|
|
534
631
|
}
|
|
535
632
|
} catch (e) {}
|
|
536
|
-
|
|
537
|
-
|
|
633
|
+
var style = {
|
|
634
|
+
...that._geojsonStyle
|
|
538
635
|
};
|
|
539
636
|
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
540
|
-
var addType = "geojson";
|
|
541
|
-
|
|
637
|
+
var addType = "geojson";
|
|
638
|
+
// 判断是否是arcgis格式的json数据
|
|
542
639
|
if (ret.geometryType) {
|
|
543
640
|
ds = new Cesium.Kq3dEsriGeoJsonDataSource(name);
|
|
544
641
|
style.label.express = "NAME";
|
|
545
642
|
addType = "arcjson";
|
|
546
643
|
}
|
|
547
|
-
|
|
548
644
|
ds.load(ret, style).then(ds => {
|
|
549
645
|
ds.entities.values.forEach(entity => {
|
|
550
646
|
if (entity.polygon) {
|
|
@@ -555,10 +651,8 @@ class AddDataViewModel {
|
|
|
555
651
|
};
|
|
556
652
|
}
|
|
557
653
|
});
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
654
|
+
that._viewer.dataSources.add(ds);
|
|
655
|
+
// ds.autoAvoid(that._viewer);
|
|
562
656
|
that.flyToLayer(ds);
|
|
563
657
|
resolve("success");
|
|
564
658
|
var layer = {
|
|
@@ -571,13 +665,10 @@ class AddDataViewModel {
|
|
|
571
665
|
addType: addType,
|
|
572
666
|
shapeType: that._layerManager.getShapeType(ds)
|
|
573
667
|
};
|
|
574
|
-
|
|
575
668
|
that._layerManager.addTempLayerNode(layer);
|
|
576
|
-
|
|
577
669
|
cb && cb(layer);
|
|
578
670
|
});
|
|
579
671
|
break;
|
|
580
|
-
|
|
581
672
|
case "kml":
|
|
582
673
|
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
583
674
|
var options = {
|
|
@@ -591,7 +682,6 @@ class AddDataViewModel {
|
|
|
591
682
|
});
|
|
592
683
|
ds.load(data).then(ds => {
|
|
593
684
|
that._viewer.dataSources.add(ds);
|
|
594
|
-
|
|
595
685
|
that.flyToLayer(ds);
|
|
596
686
|
resolve("success");
|
|
597
687
|
var layer = {
|
|
@@ -603,13 +693,10 @@ class AddDataViewModel {
|
|
|
603
693
|
url: data,
|
|
604
694
|
addType: "kml"
|
|
605
695
|
};
|
|
606
|
-
|
|
607
696
|
that._layerManager.addTempLayerNode(layer);
|
|
608
|
-
|
|
609
697
|
cb && cb(layer);
|
|
610
698
|
});
|
|
611
699
|
break;
|
|
612
|
-
|
|
613
700
|
case "kmz":
|
|
614
701
|
var options = {
|
|
615
702
|
name: name,
|
|
@@ -619,7 +706,6 @@ class AddDataViewModel {
|
|
|
619
706
|
var ds = new Cesium.KmlDataSource(options);
|
|
620
707
|
ds.load(file).then(ds => {
|
|
621
708
|
that._viewer.dataSources.add(ds);
|
|
622
|
-
|
|
623
709
|
that.flyToLayer(ds);
|
|
624
710
|
resolve("success");
|
|
625
711
|
var layer = {
|
|
@@ -631,24 +717,18 @@ class AddDataViewModel {
|
|
|
631
717
|
url: file,
|
|
632
718
|
addType: "kml"
|
|
633
719
|
};
|
|
634
|
-
|
|
635
720
|
that._layerManager.addTempLayerNode(layer);
|
|
636
|
-
|
|
637
721
|
cb && cb(layer);
|
|
638
722
|
});
|
|
639
723
|
break;
|
|
640
|
-
|
|
641
724
|
case "czml":
|
|
642
725
|
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
643
|
-
|
|
644
726
|
try {
|
|
645
727
|
var data = JSON.parse(ret);
|
|
646
|
-
|
|
647
728
|
if (typeof data == "object" && data) {
|
|
648
729
|
ret = data;
|
|
649
730
|
}
|
|
650
731
|
} catch (e) {}
|
|
651
|
-
|
|
652
732
|
that._viewer.dataSources.add(Cesium.CzmlDataSource.load(ret, {
|
|
653
733
|
name: name
|
|
654
734
|
})).then(ds => {
|
|
@@ -663,41 +743,27 @@ class AddDataViewModel {
|
|
|
663
743
|
url: ret,
|
|
664
744
|
addType: "czml"
|
|
665
745
|
};
|
|
666
|
-
|
|
667
746
|
that._layerManager.addTempLayerNode(layer);
|
|
668
|
-
|
|
669
747
|
cb && cb(layer);
|
|
670
748
|
});
|
|
671
|
-
|
|
672
|
-
break;
|
|
673
|
-
|
|
674
|
-
case "csv":
|
|
675
749
|
break;
|
|
676
|
-
|
|
677
|
-
case "xls":
|
|
678
|
-
case "xlsx":
|
|
679
|
-
break;
|
|
680
|
-
|
|
681
750
|
default:
|
|
682
751
|
break;
|
|
683
752
|
}
|
|
684
753
|
};
|
|
685
|
-
|
|
686
754
|
reader.onerror = function () {
|
|
687
755
|
console.log(file.name + " read error.");
|
|
688
756
|
reject(file.name + " read error.");
|
|
689
757
|
};
|
|
690
758
|
}
|
|
691
759
|
});
|
|
692
|
-
}
|
|
693
|
-
|
|
760
|
+
}
|
|
694
761
|
|
|
762
|
+
//解析数据源
|
|
695
763
|
parseDataSource(options, cb, loadCustom) {
|
|
696
764
|
options = options || {};
|
|
697
|
-
|
|
698
765
|
if (options.url && options.url !== "") {
|
|
699
766
|
let url = options.url;
|
|
700
|
-
|
|
701
767
|
if (options.type === "stkterrain") {
|
|
702
768
|
if (url.indexOf("?") > 0) {
|
|
703
769
|
url = url.replace("?", "layer.json?");
|
|
@@ -705,27 +771,24 @@ class AddDataViewModel {
|
|
|
705
771
|
url += "layer.json";
|
|
706
772
|
}
|
|
707
773
|
}
|
|
708
|
-
|
|
709
774
|
try {
|
|
710
775
|
new URL(url);
|
|
711
776
|
} catch (error) {
|
|
712
|
-
(0,message/* default */.
|
|
777
|
+
(0,message/* default */.A)({
|
|
713
778
|
message: this._language.errorUrlAddress,
|
|
714
779
|
type: "warning"
|
|
715
780
|
});
|
|
716
781
|
return;
|
|
717
782
|
}
|
|
718
|
-
|
|
719
783
|
if (options.type === "kml") {
|
|
720
784
|
this.parseService(options, cb, loadCustom);
|
|
721
785
|
return;
|
|
722
786
|
}
|
|
723
|
-
|
|
724
787
|
fetch(url).then(data => {
|
|
725
788
|
return data;
|
|
726
789
|
}).then(data => {
|
|
727
790
|
if (data.status !== 200) {
|
|
728
|
-
(0,message/* default */.
|
|
791
|
+
(0,message/* default */.A)({
|
|
729
792
|
message: this._language.serviceNotAvailable,
|
|
730
793
|
type: "warning"
|
|
731
794
|
});
|
|
@@ -735,35 +798,32 @@ class AddDataViewModel {
|
|
|
735
798
|
} catch {}
|
|
736
799
|
}
|
|
737
800
|
}).catch(() => {
|
|
738
|
-
(0,message/* default */.
|
|
801
|
+
(0,message/* default */.A)({
|
|
739
802
|
message: this._language.serviceNotAvailable,
|
|
740
803
|
type: "warning"
|
|
741
804
|
});
|
|
742
805
|
});
|
|
743
806
|
} else {
|
|
744
|
-
(0,message/* default */.
|
|
807
|
+
(0,message/* default */.A)({
|
|
745
808
|
message: this._language.inputUrlAddress,
|
|
746
809
|
type: "warning"
|
|
747
810
|
});
|
|
748
811
|
}
|
|
749
|
-
}
|
|
750
|
-
|
|
812
|
+
}
|
|
751
813
|
|
|
814
|
+
//解析服务
|
|
752
815
|
parseService(options, cb, loadCustom) {
|
|
753
816
|
let that = this;
|
|
754
817
|
let url = options.url;
|
|
755
818
|
let type = options.type || "";
|
|
756
819
|
type = type.toLowerCase();
|
|
757
820
|
let name = options.name;
|
|
758
|
-
|
|
759
821
|
if (!name || name === "") {
|
|
760
822
|
let ext;
|
|
761
|
-
|
|
762
823
|
if (url.lastIndexOf(".") > url.lastIndexOf("/")) {
|
|
763
824
|
ext = url.substring(url.lastIndexOf(".") + 1);
|
|
764
825
|
ext = ext.toLowerCase();
|
|
765
826
|
}
|
|
766
|
-
|
|
767
827
|
if (["kml", "kmz", "czml", "geojson", "json", "topojson"].indexOf(ext) > -1) {
|
|
768
828
|
name = url.substring(url.lastIndexOf("/") + 1);
|
|
769
829
|
} else {
|
|
@@ -773,9 +833,7 @@ class AddDataViewModel {
|
|
|
773
833
|
}
|
|
774
834
|
}
|
|
775
835
|
}
|
|
776
|
-
|
|
777
836
|
let node, layer;
|
|
778
|
-
|
|
779
837
|
switch (type) {
|
|
780
838
|
case "kq3dimageryfile":
|
|
781
839
|
//影像瓦片文件
|
|
@@ -793,21 +851,16 @@ class AddDataViewModel {
|
|
|
793
851
|
url: url,
|
|
794
852
|
addType: type
|
|
795
853
|
};
|
|
796
|
-
|
|
797
854
|
this._layerManager.addTempLayerNode(node);
|
|
798
|
-
|
|
799
855
|
cb && cb(node);
|
|
800
856
|
break;
|
|
801
|
-
|
|
802
857
|
case "obterrain":
|
|
803
858
|
//ob地形瓦片文件
|
|
804
859
|
layer = new Cesium.Kq3dFileTerrainProvider({
|
|
805
860
|
name: name,
|
|
806
861
|
url: url
|
|
807
862
|
});
|
|
808
|
-
|
|
809
863
|
this._layerManager.setTerrain(layer);
|
|
810
|
-
|
|
811
864
|
this.flyToLayer(layer);
|
|
812
865
|
if (!layer.guid) layer.guid = Cesium.createGuid();
|
|
813
866
|
node = {
|
|
@@ -819,14 +872,10 @@ class AddDataViewModel {
|
|
|
819
872
|
url: url,
|
|
820
873
|
addType: type
|
|
821
874
|
};
|
|
822
|
-
|
|
823
875
|
this._layerManager.addTempLayerNode(node);
|
|
824
|
-
|
|
825
876
|
this._layerManager._terrainProviders.push(layer);
|
|
826
|
-
|
|
827
877
|
cb && cb(node);
|
|
828
878
|
break;
|
|
829
|
-
|
|
830
879
|
case "stkterrain":
|
|
831
880
|
//stk地形瓦片文件
|
|
832
881
|
layer = new Cesium.CesiumTerrainProvider({
|
|
@@ -836,9 +885,7 @@ class AddDataViewModel {
|
|
|
836
885
|
requestWaterMask: false
|
|
837
886
|
});
|
|
838
887
|
if (!layer.guid) layer.guid = Cesium.createGuid();
|
|
839
|
-
|
|
840
888
|
this._layerManager.setTerrain(layer);
|
|
841
|
-
|
|
842
889
|
this.flyToLayer(layer);
|
|
843
890
|
node = {
|
|
844
891
|
guid: layer.guid,
|
|
@@ -849,20 +896,15 @@ class AddDataViewModel {
|
|
|
849
896
|
url: url,
|
|
850
897
|
addType: type
|
|
851
898
|
};
|
|
852
|
-
|
|
853
899
|
this._layerManager.addTempLayerNode(node);
|
|
854
|
-
|
|
855
900
|
this._layerManager._terrainProviders.push(layer);
|
|
856
|
-
|
|
857
901
|
cb && cb(node);
|
|
858
902
|
break;
|
|
859
|
-
|
|
860
903
|
case "3dtiles":
|
|
861
904
|
var tileset = this._viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
|
|
862
905
|
name: name,
|
|
863
906
|
url: url
|
|
864
907
|
}));
|
|
865
|
-
|
|
866
908
|
this.flyToLayer(tileset);
|
|
867
909
|
node = {
|
|
868
910
|
guid: tileset.guid,
|
|
@@ -873,22 +915,18 @@ class AddDataViewModel {
|
|
|
873
915
|
url: url,
|
|
874
916
|
addType: type
|
|
875
917
|
};
|
|
876
|
-
|
|
877
918
|
this._layerManager.addTempLayerNode(node);
|
|
878
|
-
|
|
879
919
|
cb && cb(node);
|
|
880
920
|
break;
|
|
881
|
-
|
|
882
921
|
case "kqgis3dserver":
|
|
883
922
|
// KQGIS 三维服务
|
|
884
|
-
var geojsonStyle0 = {
|
|
923
|
+
var geojsonStyle0 = {
|
|
924
|
+
...this._geojsonStyle
|
|
885
925
|
};
|
|
886
|
-
|
|
887
926
|
this._viewer.addKq3dServerLayerGroupExt(url, {
|
|
888
927
|
geojsonStyle: geojsonStyle0
|
|
889
928
|
}).then(group => {
|
|
890
929
|
var layers = group._addedLayers || group._layers;
|
|
891
|
-
|
|
892
930
|
if (layers && layers.length > 0) {
|
|
893
931
|
node = {
|
|
894
932
|
guid: group.guid,
|
|
@@ -899,7 +937,6 @@ class AddDataViewModel {
|
|
|
899
937
|
var serverType = "";
|
|
900
938
|
var addType = "";
|
|
901
939
|
let promiseList = [];
|
|
902
|
-
|
|
903
940
|
for (var i = 0; i < layers.length; i++) {
|
|
904
941
|
if (layers[i] instanceof Cesium.Cesium3DTileset) {
|
|
905
942
|
serverType = "3dtiles";
|
|
@@ -913,13 +950,11 @@ class AddDataViewModel {
|
|
|
913
950
|
serverType = "terrainprovider";
|
|
914
951
|
addType = "obterrain";
|
|
915
952
|
url = layers[i]._originUrl + layers[i]._urlPramas;
|
|
916
|
-
|
|
917
953
|
this._layerManager._terrainProviders.push(layers[i]);
|
|
918
954
|
} else if (layers[i] instanceof Cesium.CesiumTerrainProvider) {
|
|
919
955
|
serverType = "terrainprovider";
|
|
920
956
|
addType = "stkterrain";
|
|
921
957
|
url = layers[i]._originUrl;
|
|
922
|
-
|
|
923
958
|
this._layerManager._terrainProviders.push(layers[i]);
|
|
924
959
|
} else if (layers[i] instanceof Cesium.Kq3dGeoJsonDataSource) {
|
|
925
960
|
serverType = "datasource";
|
|
@@ -937,11 +972,10 @@ class AddDataViewModel {
|
|
|
937
972
|
};
|
|
938
973
|
}
|
|
939
974
|
});
|
|
940
|
-
let shapeType = "";
|
|
941
|
-
|
|
975
|
+
let shapeType = "";
|
|
976
|
+
// 判断geojson点线面类型
|
|
942
977
|
if (ds.entities.values.length > 0) {
|
|
943
978
|
let entity = ds.entities.values[0];
|
|
944
|
-
|
|
945
979
|
if (entity.polygon) {
|
|
946
980
|
shapeType = "polygon";
|
|
947
981
|
} else if (entity.polyline) {
|
|
@@ -950,7 +984,6 @@ class AddDataViewModel {
|
|
|
950
984
|
shapeType = "point";
|
|
951
985
|
}
|
|
952
986
|
}
|
|
953
|
-
|
|
954
987
|
let dsChild = {
|
|
955
988
|
guid: ds.guid,
|
|
956
989
|
name: ds._name,
|
|
@@ -970,7 +1003,6 @@ class AddDataViewModel {
|
|
|
970
1003
|
addType = "s3m";
|
|
971
1004
|
url = layers[i]._url;
|
|
972
1005
|
}
|
|
973
|
-
|
|
974
1006
|
if (serverType !== "datasource") {
|
|
975
1007
|
if (!layers[i].guid) layers[i].guid = Cesium.createGuid();
|
|
976
1008
|
node.children.push({
|
|
@@ -983,19 +1015,14 @@ class AddDataViewModel {
|
|
|
983
1015
|
});
|
|
984
1016
|
}
|
|
985
1017
|
}
|
|
986
|
-
|
|
987
1018
|
Promise.all(promiseList).then(() => {
|
|
988
1019
|
this.flyToLayer(layers[0]);
|
|
989
|
-
|
|
990
1020
|
this._layerManager.addTempLayerNode(node);
|
|
991
|
-
|
|
992
1021
|
cb && cb(node);
|
|
993
1022
|
});
|
|
994
1023
|
}
|
|
995
1024
|
});
|
|
996
|
-
|
|
997
1025
|
break;
|
|
998
|
-
|
|
999
1026
|
case "kqgisimageserver":
|
|
1000
1027
|
// KQGIS 影像服务
|
|
1001
1028
|
node = {
|
|
@@ -1008,7 +1035,6 @@ class AddDataViewModel {
|
|
|
1008
1035
|
service.init(result => {
|
|
1009
1036
|
if (result.resultcode === "success") {
|
|
1010
1037
|
let list = service.collectionInfoList;
|
|
1011
|
-
|
|
1012
1038
|
if (list && list.length > 0) {
|
|
1013
1039
|
list.forEach(item => {
|
|
1014
1040
|
layer = that._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dKQGISServerImageryProviderExt({
|
|
@@ -1026,13 +1052,10 @@ class AddDataViewModel {
|
|
|
1026
1052
|
addType: type,
|
|
1027
1053
|
layerName: item.collectionName,
|
|
1028
1054
|
type: "Image" // 图层树显示图标使用
|
|
1029
|
-
|
|
1030
1055
|
});
|
|
1031
1056
|
});
|
|
1032
1057
|
this.flyToLayer(layer);
|
|
1033
|
-
|
|
1034
1058
|
this._layerManager.addTempLayerNode(node);
|
|
1035
|
-
|
|
1036
1059
|
cb && cb(node);
|
|
1037
1060
|
}
|
|
1038
1061
|
} else {
|
|
@@ -1040,12 +1063,10 @@ class AddDataViewModel {
|
|
|
1040
1063
|
}
|
|
1041
1064
|
});
|
|
1042
1065
|
break;
|
|
1043
|
-
|
|
1044
1066
|
case "kqgisdataserver":
|
|
1045
1067
|
// KQGIS 数据服务
|
|
1046
1068
|
// addDataServer(url, name);
|
|
1047
1069
|
break;
|
|
1048
|
-
|
|
1049
1070
|
case "kqgismapserver":
|
|
1050
1071
|
// KQGIS 地图服务
|
|
1051
1072
|
if (loadCustom) {
|
|
@@ -1055,41 +1076,37 @@ class AddDataViewModel {
|
|
|
1055
1076
|
});
|
|
1056
1077
|
return;
|
|
1057
1078
|
}
|
|
1058
|
-
|
|
1059
1079
|
node = {
|
|
1060
1080
|
guid: Cesium.createGuid(),
|
|
1061
1081
|
name: name,
|
|
1062
1082
|
children: [],
|
|
1063
1083
|
lsType: "ls"
|
|
1064
|
-
};
|
|
1065
|
-
|
|
1084
|
+
};
|
|
1085
|
+
//使用二维方式解析服务
|
|
1066
1086
|
let serverName = url.split("services/")[1].split("/")[0];
|
|
1067
1087
|
let serverUrl = url.split("services/")[0] + "services/";
|
|
1068
1088
|
let token;
|
|
1069
|
-
|
|
1070
1089
|
if (url.indexOf("ua_token") != -1) {
|
|
1071
1090
|
token = url.split("ua_token=")[1].split("&")[0];
|
|
1072
1091
|
}
|
|
1073
|
-
|
|
1074
1092
|
let webMapService = new (webmapservice_default())(serverName, {
|
|
1075
1093
|
token: token,
|
|
1076
1094
|
serviceUrl: serverUrl
|
|
1077
1095
|
});
|
|
1078
1096
|
webMapService.getMapInfo().then(mapInfo => {
|
|
1079
1097
|
if (mapInfo.resultcode === "error") {
|
|
1080
|
-
(0,message/* default */.
|
|
1098
|
+
(0,message/* default */.A)({
|
|
1081
1099
|
message: mapInfo.message,
|
|
1082
1100
|
type: "warning"
|
|
1083
1101
|
});
|
|
1084
1102
|
return;
|
|
1085
1103
|
}
|
|
1086
|
-
|
|
1087
1104
|
mapInfo = mapInfo.result;
|
|
1088
1105
|
let mapServerInfo = (0,util_.formatKQMapInfo)(mapInfo, serverUrl, serverName, token, null, true);
|
|
1089
1106
|
let showLayers = [];
|
|
1090
1107
|
showLayers = showLayers.concat(mapServerInfo.layers_show);
|
|
1091
|
-
showLayers.reverse();
|
|
1092
|
-
|
|
1108
|
+
showLayers.reverse();
|
|
1109
|
+
//获取图层筛选类型时用
|
|
1093
1110
|
showLayers.forEach(layer => {
|
|
1094
1111
|
layer.sourceType = "kqserver";
|
|
1095
1112
|
});
|
|
@@ -1103,10 +1120,8 @@ class AddDataViewModel {
|
|
|
1103
1120
|
show: layer.visible
|
|
1104
1121
|
});
|
|
1105
1122
|
imageryLayer._guid = layer.guid;
|
|
1106
|
-
|
|
1107
1123
|
this._viewer.imageryLayers.add(imageryLayer);
|
|
1108
1124
|
}, this);
|
|
1109
|
-
|
|
1110
1125
|
if (mapInfo.rect84) {
|
|
1111
1126
|
if (mapInfo.rect84 instanceof Array) {
|
|
1112
1127
|
this._viewer.camera.flyTo({
|
|
@@ -1118,26 +1133,21 @@ class AddDataViewModel {
|
|
|
1118
1133
|
});
|
|
1119
1134
|
}
|
|
1120
1135
|
}
|
|
1121
|
-
|
|
1122
1136
|
setChildrenAddType(mapServerInfo.layerTreeData, type);
|
|
1123
1137
|
mapServerInfo.layerTreeData.forEach(layerData => {
|
|
1124
1138
|
layerData.url = url;
|
|
1125
1139
|
node.children.push(layerData);
|
|
1126
1140
|
});
|
|
1127
|
-
|
|
1128
1141
|
this._layerManager.addTempLayerNode(node, 1);
|
|
1129
|
-
|
|
1130
1142
|
cb && cb(node);
|
|
1131
1143
|
});
|
|
1132
1144
|
break;
|
|
1133
|
-
|
|
1134
1145
|
case "arcgismapserver":
|
|
1135
1146
|
// ARCGIS 地图服务
|
|
1136
1147
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dArcGISMapServerImageryProvider({
|
|
1137
1148
|
name: name,
|
|
1138
1149
|
url: url,
|
|
1139
1150
|
usePreCachedTilesIfAvailable: false //使用export请求可支持自定义比例尺
|
|
1140
|
-
|
|
1141
1151
|
}));
|
|
1142
1152
|
this.flyToLayer(layer);
|
|
1143
1153
|
node = {
|
|
@@ -1149,12 +1159,9 @@ class AddDataViewModel {
|
|
|
1149
1159
|
url: url,
|
|
1150
1160
|
addType: type
|
|
1151
1161
|
};
|
|
1152
|
-
|
|
1153
1162
|
this._layerManager.addTempLayerNode(node);
|
|
1154
|
-
|
|
1155
1163
|
cb && cb(node);
|
|
1156
1164
|
break;
|
|
1157
|
-
|
|
1158
1165
|
case "mvt":
|
|
1159
1166
|
// 矢量瓦片
|
|
1160
1167
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dMvtImageryProviderExt({
|
|
@@ -1171,14 +1178,10 @@ class AddDataViewModel {
|
|
|
1171
1178
|
url: url,
|
|
1172
1179
|
addType: type,
|
|
1173
1180
|
renderType: "vectortile" // 图层树显示图标使用
|
|
1174
|
-
|
|
1175
1181
|
};
|
|
1176
|
-
|
|
1177
1182
|
this._layerManager.addTempLayerNode(node);
|
|
1178
|
-
|
|
1179
1183
|
cb && cb(node);
|
|
1180
1184
|
break;
|
|
1181
|
-
|
|
1182
1185
|
case "kqgisdataflowserver":
|
|
1183
1186
|
// KQGIS 数据流服务
|
|
1184
1187
|
let guid = Cesium.createGuid();
|
|
@@ -1202,14 +1205,10 @@ class AddDataViewModel {
|
|
|
1202
1205
|
url: url,
|
|
1203
1206
|
addType: type
|
|
1204
1207
|
};
|
|
1205
|
-
|
|
1206
1208
|
this._layerManager.addTempLayerNode(node);
|
|
1207
|
-
|
|
1208
1209
|
this._layerManager._dataFlowLayerList.push(layer);
|
|
1209
|
-
|
|
1210
1210
|
cb && cb(node);
|
|
1211
1211
|
break;
|
|
1212
|
-
|
|
1213
1212
|
case "wms":
|
|
1214
1213
|
this._viewer.addWMSLayerGroup(url).then(group => {
|
|
1215
1214
|
node = {
|
|
@@ -1218,16 +1217,13 @@ class AddDataViewModel {
|
|
|
1218
1217
|
children: [],
|
|
1219
1218
|
lsType: "ls",
|
|
1220
1219
|
serverType: "ogcwms" //图层树显示图标使用
|
|
1221
|
-
|
|
1222
1220
|
};
|
|
1223
1221
|
var layers = group._addedLayers || group._layers;
|
|
1224
|
-
|
|
1225
1222
|
if (layers) {
|
|
1226
1223
|
for (var i = layers.length - 1; i >= 0; i--) {
|
|
1227
1224
|
if (i === 0) {
|
|
1228
1225
|
this.flyToLayer(layers[i]);
|
|
1229
1226
|
}
|
|
1230
|
-
|
|
1231
1227
|
node.children.push({
|
|
1232
1228
|
guid: layers[i].guid,
|
|
1233
1229
|
name: layers[i].name,
|
|
@@ -1239,17 +1235,12 @@ class AddDataViewModel {
|
|
|
1239
1235
|
});
|
|
1240
1236
|
}
|
|
1241
1237
|
}
|
|
1242
|
-
|
|
1243
1238
|
this._layerManager.addTempLayerNode(node);
|
|
1244
|
-
|
|
1245
1239
|
cb && cb(node);
|
|
1246
1240
|
});
|
|
1247
|
-
|
|
1248
1241
|
break;
|
|
1249
|
-
|
|
1250
1242
|
case "wmts":
|
|
1251
1243
|
case "kqgistileserver": // KQGIS 瓦片服务
|
|
1252
|
-
|
|
1253
1244
|
case "kqgisaggregationserver":
|
|
1254
1245
|
// KQGIS 聚合服务
|
|
1255
1246
|
if (type === "kqgistileserver") {
|
|
@@ -1259,9 +1250,7 @@ class AddDataViewModel {
|
|
|
1259
1250
|
url += "/wmts";
|
|
1260
1251
|
}
|
|
1261
1252
|
}
|
|
1262
|
-
|
|
1263
1253
|
let defaultName = "wmts";
|
|
1264
|
-
|
|
1265
1254
|
this._viewer.addWMTSLayerGroup(url).then(group => {
|
|
1266
1255
|
// if(type === "kqgistileserver") defaultName = name;
|
|
1267
1256
|
if (type === "kqgisaggregationserver") defaultName = "aggregation";
|
|
@@ -1271,20 +1260,16 @@ class AddDataViewModel {
|
|
|
1271
1260
|
children: [],
|
|
1272
1261
|
lsType: "ls"
|
|
1273
1262
|
};
|
|
1274
|
-
|
|
1275
1263
|
if (type === "wmts") {
|
|
1276
1264
|
//图层树显示图标使用
|
|
1277
1265
|
node.serverType = "ogcwmts";
|
|
1278
1266
|
}
|
|
1279
|
-
|
|
1280
1267
|
var layers = group._addedLayers || group._layers;
|
|
1281
|
-
|
|
1282
1268
|
if (layers) {
|
|
1283
1269
|
for (var i = layers.length - 1; i >= 0; i--) {
|
|
1284
1270
|
if (i === 0) {
|
|
1285
1271
|
this.flyToLayer(layers[i]);
|
|
1286
1272
|
}
|
|
1287
|
-
|
|
1288
1273
|
node.children.push({
|
|
1289
1274
|
guid: layers[i].guid,
|
|
1290
1275
|
name: layers[i].name,
|
|
@@ -1296,14 +1281,10 @@ class AddDataViewModel {
|
|
|
1296
1281
|
});
|
|
1297
1282
|
}
|
|
1298
1283
|
}
|
|
1299
|
-
|
|
1300
1284
|
this._layerManager.addTempLayerNode(node);
|
|
1301
|
-
|
|
1302
1285
|
cb && cb(node);
|
|
1303
1286
|
});
|
|
1304
|
-
|
|
1305
1287
|
break;
|
|
1306
|
-
|
|
1307
1288
|
case "wfs":
|
|
1308
1289
|
var wfsProvider = new Cesium.Kq3dWebFeatureServiceProvider({
|
|
1309
1290
|
url: url,
|
|
@@ -1312,9 +1293,8 @@ class AddDataViewModel {
|
|
|
1312
1293
|
wfsProvider.load().then(function (data) {
|
|
1313
1294
|
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
1314
1295
|
ds.load(data, that._geojsonStyle).then(ds => {
|
|
1315
|
-
that._viewer.dataSources.add(ds);
|
|
1316
|
-
|
|
1317
|
-
|
|
1296
|
+
that._viewer.dataSources.add(ds);
|
|
1297
|
+
// ds.autoAvoid(that._viewer);
|
|
1318
1298
|
that.flyToLayer(ds);
|
|
1319
1299
|
node = {
|
|
1320
1300
|
guid: ds.guid,
|
|
@@ -1325,14 +1305,11 @@ class AddDataViewModel {
|
|
|
1325
1305
|
url: url,
|
|
1326
1306
|
addType: type
|
|
1327
1307
|
};
|
|
1328
|
-
|
|
1329
1308
|
that._layerManager.addTempLayerNode(node);
|
|
1330
|
-
|
|
1331
1309
|
cb && cb(node);
|
|
1332
1310
|
});
|
|
1333
1311
|
});
|
|
1334
1312
|
break;
|
|
1335
|
-
|
|
1336
1313
|
case "geojson":
|
|
1337
1314
|
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
1338
1315
|
ds.load(url, this._geojsonStyle).then(ds => {
|
|
@@ -1345,10 +1322,8 @@ class AddDataViewModel {
|
|
|
1345
1322
|
};
|
|
1346
1323
|
}
|
|
1347
1324
|
}, this);
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1325
|
+
this._viewer.dataSources.add(ds);
|
|
1326
|
+
// ds.autoAvoid(this._viewer);
|
|
1352
1327
|
that.flyToLayer(ds);
|
|
1353
1328
|
node = {
|
|
1354
1329
|
guid: ds.guid,
|
|
@@ -1360,16 +1335,14 @@ class AddDataViewModel {
|
|
|
1360
1335
|
addType: type,
|
|
1361
1336
|
shapeType: this._layerManager.getShapeType(ds)
|
|
1362
1337
|
};
|
|
1363
|
-
|
|
1364
1338
|
this._layerManager.addTempLayerNode(node);
|
|
1365
|
-
|
|
1366
1339
|
cb && cb(node);
|
|
1367
1340
|
});
|
|
1368
1341
|
break;
|
|
1369
|
-
|
|
1370
1342
|
case "arcjson":
|
|
1371
1343
|
var ds = new Cesium.Kq3dEsriGeoJsonDataSource(name);
|
|
1372
|
-
var geojsonStyle = {
|
|
1344
|
+
var geojsonStyle = {
|
|
1345
|
+
...this._geojsonStyle
|
|
1373
1346
|
};
|
|
1374
1347
|
geojsonStyle.label.express = "NAME";
|
|
1375
1348
|
ds.load(url, geojsonStyle).then(ds => {
|
|
@@ -1382,9 +1355,7 @@ class AddDataViewModel {
|
|
|
1382
1355
|
};
|
|
1383
1356
|
}
|
|
1384
1357
|
}, this);
|
|
1385
|
-
|
|
1386
1358
|
this._viewer.dataSources.add(ds);
|
|
1387
|
-
|
|
1388
1359
|
that.flyToLayer(ds);
|
|
1389
1360
|
node = {
|
|
1390
1361
|
guid: ds.guid,
|
|
@@ -1396,13 +1367,10 @@ class AddDataViewModel {
|
|
|
1396
1367
|
addType: type,
|
|
1397
1368
|
shapeType: this._layerManager.getShapeType(ds)
|
|
1398
1369
|
};
|
|
1399
|
-
|
|
1400
1370
|
this._layerManager.addTempLayerNode(node);
|
|
1401
|
-
|
|
1402
1371
|
cb && cb(node);
|
|
1403
1372
|
});
|
|
1404
1373
|
break;
|
|
1405
|
-
|
|
1406
1374
|
case "kml":
|
|
1407
1375
|
var ds = new Cesium.KmlDataSource({
|
|
1408
1376
|
name: name,
|
|
@@ -1411,7 +1379,6 @@ class AddDataViewModel {
|
|
|
1411
1379
|
});
|
|
1412
1380
|
ds.load(url).then(ds => {
|
|
1413
1381
|
this._viewer.dataSources.add(ds);
|
|
1414
|
-
|
|
1415
1382
|
that.flyToLayer(ds);
|
|
1416
1383
|
node = {
|
|
1417
1384
|
guid: ds.guid,
|
|
@@ -1422,18 +1389,14 @@ class AddDataViewModel {
|
|
|
1422
1389
|
url: url,
|
|
1423
1390
|
addType: type
|
|
1424
1391
|
};
|
|
1425
|
-
|
|
1426
1392
|
this._layerManager.addTempLayerNode(node);
|
|
1427
|
-
|
|
1428
1393
|
cb && cb(node);
|
|
1429
1394
|
});
|
|
1430
1395
|
break;
|
|
1431
|
-
|
|
1432
1396
|
case "czml":
|
|
1433
1397
|
var ds = new Cesium.CzmlDataSource(name);
|
|
1434
1398
|
ds.load(url).then(ds => {
|
|
1435
1399
|
this._viewer.dataSources.add(ds);
|
|
1436
|
-
|
|
1437
1400
|
that.flyToLayer(ds);
|
|
1438
1401
|
node = {
|
|
1439
1402
|
guid: ds.guid,
|
|
@@ -1444,13 +1407,10 @@ class AddDataViewModel {
|
|
|
1444
1407
|
url: url,
|
|
1445
1408
|
addType: type
|
|
1446
1409
|
};
|
|
1447
|
-
|
|
1448
1410
|
this._layerManager.addTempLayerNode(node);
|
|
1449
|
-
|
|
1450
1411
|
cb && cb(node);
|
|
1451
1412
|
});
|
|
1452
1413
|
break;
|
|
1453
|
-
|
|
1454
1414
|
case "s3m":
|
|
1455
1415
|
layer = this._viewer.scene.primitives.add(new Cesium.Kq3dS3MTilesLayer({
|
|
1456
1416
|
context: this._viewer.scene._context,
|
|
@@ -1469,23 +1429,19 @@ class AddDataViewModel {
|
|
|
1469
1429
|
url: url,
|
|
1470
1430
|
addType: type
|
|
1471
1431
|
};
|
|
1472
|
-
|
|
1473
1432
|
this._layerManager.addTempLayerNode(node);
|
|
1474
|
-
|
|
1475
1433
|
cb && cb(node);
|
|
1476
1434
|
break;
|
|
1477
|
-
|
|
1478
1435
|
default:
|
|
1479
1436
|
break;
|
|
1480
1437
|
}
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1438
|
+
}
|
|
1483
1439
|
|
|
1440
|
+
// 添加数据服务
|
|
1484
1441
|
addDataServer(url, name) {
|
|
1485
1442
|
window.KqGIS.datasourceService(url).getDatasources(async e => {
|
|
1486
1443
|
if (e.result.resultcode === "success") {
|
|
1487
1444
|
let datasourceList = e.result.result.datasources;
|
|
1488
|
-
|
|
1489
1445
|
if (datasourceList) {
|
|
1490
1446
|
for (let i = 0; i < datasourceList.length; i++) {
|
|
1491
1447
|
await _getDatasetList(url, datasourceList[i].datasourceName);
|
|
@@ -1498,7 +1454,6 @@ class AddDataViewModel {
|
|
|
1498
1454
|
console.error(err);
|
|
1499
1455
|
});
|
|
1500
1456
|
}
|
|
1501
|
-
|
|
1502
1457
|
_getDatasetList(url, dataSourceName) {
|
|
1503
1458
|
let params = new window.KqGIS.Data.GetDatasetsInfoParams({
|
|
1504
1459
|
datasourceName: dataSourceName
|
|
@@ -1517,7 +1472,6 @@ class AddDataViewModel {
|
|
|
1517
1472
|
});
|
|
1518
1473
|
});
|
|
1519
1474
|
}
|
|
1520
|
-
|
|
1521
1475
|
_getFeatureList(url, datasourceName, datasetName) {
|
|
1522
1476
|
let params = new window.KqGIS.Data.GetFeaturesParamsBase({
|
|
1523
1477
|
datasourceName: datasourceName,
|
|
@@ -1541,10 +1495,8 @@ class AddDataViewModel {
|
|
|
1541
1495
|
});
|
|
1542
1496
|
});
|
|
1543
1497
|
}
|
|
1544
|
-
|
|
1545
1498
|
flyToLayer(layer) {
|
|
1546
1499
|
let viewer = this._viewer;
|
|
1547
|
-
|
|
1548
1500
|
if (layer instanceof Cesium.ImageryLayer) {
|
|
1549
1501
|
layer.getViewableRectangle().then(function (rectangle) {
|
|
1550
1502
|
viewer.camera.flyTo({
|
|
@@ -1552,7 +1504,10 @@ class AddDataViewModel {
|
|
|
1552
1504
|
});
|
|
1553
1505
|
});
|
|
1554
1506
|
} else if (layer instanceof Cesium.Cesium3DTileset) {
|
|
1555
|
-
viewer.zoomTo(layer);
|
|
1507
|
+
// viewer.zoomTo(layer);
|
|
1508
|
+
layer.readyPromise.then(function () {
|
|
1509
|
+
viewer.camera.flyToBoundingSphere(layer.boundingSphere);
|
|
1510
|
+
});
|
|
1556
1511
|
} else if (layer instanceof Cesium.Kq3dS3MTilesLayer) {
|
|
1557
1512
|
layer.readyPromise.then(function (tileset) {
|
|
1558
1513
|
viewer.camera.flyTo({
|
|
@@ -1581,13 +1536,12 @@ class AddDataViewModel {
|
|
|
1581
1536
|
});
|
|
1582
1537
|
}
|
|
1583
1538
|
}
|
|
1539
|
+
}
|
|
1584
1540
|
|
|
1585
|
-
|
|
1586
|
-
|
|
1541
|
+
// 设置子节点addType属性
|
|
1587
1542
|
function setChildrenAddType(nodeList, addType) {
|
|
1588
1543
|
for (let i = 0; i < nodeList.length; i++) {
|
|
1589
1544
|
const node = nodeList[i];
|
|
1590
|
-
|
|
1591
1545
|
if (node.children) {
|
|
1592
1546
|
setChildrenAddType(node.children, addType);
|
|
1593
1547
|
} else {
|
|
@@ -1596,10 +1550,12 @@ function setChildrenAddType(nodeList, addType) {
|
|
|
1596
1550
|
}
|
|
1597
1551
|
}
|
|
1598
1552
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
1599
|
-
var vue_i18n_cjs_js_ = __webpack_require__(
|
|
1553
|
+
var vue_i18n_cjs_js_ = __webpack_require__(3579);
|
|
1600
1554
|
;// 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
|
|
1601
1555
|
|
|
1602
1556
|
|
|
1557
|
+
|
|
1558
|
+
|
|
1603
1559
|
const _hoisted_1 = {
|
|
1604
1560
|
class: "kq3d-add-data-box"
|
|
1605
1561
|
};
|
|
@@ -1644,14 +1600,13 @@ const _hoisted_12 = {
|
|
|
1644
1600
|
const __default__ = {
|
|
1645
1601
|
name: "Kq3dAddData"
|
|
1646
1602
|
};
|
|
1647
|
-
/* harmony default export */ var AddDatavue_type_script_setup_true_lang_js = (
|
|
1603
|
+
/* harmony default export */ var AddDatavue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
|
|
1648
1604
|
props: {
|
|
1649
1605
|
// 是否显示阴影
|
|
1650
1606
|
showShadow: {
|
|
1651
1607
|
type: Boolean,
|
|
1652
1608
|
default: true
|
|
1653
1609
|
},
|
|
1654
|
-
|
|
1655
1610
|
/**
|
|
1656
1611
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
1657
1612
|
*/
|
|
@@ -1714,17 +1669,16 @@ const __default__ = {
|
|
|
1714
1669
|
type: String
|
|
1715
1670
|
}
|
|
1716
1671
|
},
|
|
1717
|
-
|
|
1718
1672
|
setup(__props, {
|
|
1719
|
-
expose
|
|
1673
|
+
expose: __expose
|
|
1720
1674
|
}) {
|
|
1721
|
-
|
|
1722
|
-
let accept = ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt";
|
|
1675
|
+
let accept = ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt,.dwg,.dfx";
|
|
1723
1676
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
1724
|
-
let selectTypeIndex = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
1725
|
-
|
|
1726
|
-
let dataSourceTypeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); //选择的数据源类型
|
|
1677
|
+
let selectTypeIndex = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
1727
1678
|
|
|
1679
|
+
//URL服务支持的数据源类型
|
|
1680
|
+
let dataSourceTypeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
1681
|
+
//选择的数据源类型
|
|
1728
1682
|
let dataSourceType = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
1729
1683
|
let dataSource = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
1730
1684
|
url: "",
|
|
@@ -1733,35 +1687,36 @@ const __default__ = {
|
|
|
1733
1687
|
let upload_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
1734
1688
|
let upload_btn_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
1735
1689
|
let fileList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
1736
|
-
let loadingFile = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
1690
|
+
let loadingFile = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
1737
1691
|
|
|
1692
|
+
// 获取组件传参
|
|
1693
|
+
const props = __props;
|
|
1738
1694
|
let operatorArray = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)(() => {
|
|
1739
1695
|
let array = [];
|
|
1740
1696
|
let list = [...fileList.value];
|
|
1741
1697
|
let len = list.length;
|
|
1742
|
-
|
|
1743
1698
|
for (let i = 0, j = 0; i < len; i += 3, j++) {
|
|
1744
1699
|
array[j] = list.splice(0, 3);
|
|
1745
1700
|
}
|
|
1746
|
-
|
|
1747
1701
|
return array;
|
|
1748
1702
|
});
|
|
1749
1703
|
let disabled = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)(() => {
|
|
1750
1704
|
let flag = true;
|
|
1751
|
-
|
|
1752
1705
|
if (fileList.value.length > 0) {
|
|
1753
1706
|
flag = false;
|
|
1754
1707
|
}
|
|
1755
|
-
|
|
1756
1708
|
return flag;
|
|
1757
|
-
});
|
|
1709
|
+
});
|
|
1758
1710
|
|
|
1759
|
-
|
|
1711
|
+
// 组件容器Ref
|
|
1712
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
1760
1713
|
|
|
1714
|
+
// 生成组件默认header
|
|
1761
1715
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
1762
1716
|
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
1763
|
-
let viewModel = null;
|
|
1717
|
+
let viewModel = null;
|
|
1764
1718
|
|
|
1719
|
+
// 国际化
|
|
1765
1720
|
let {
|
|
1766
1721
|
locale,
|
|
1767
1722
|
messages
|
|
@@ -1773,9 +1728,9 @@ const __default__ = {
|
|
|
1773
1728
|
dataSourceTypeList.value = setDataSourceType();
|
|
1774
1729
|
dataSourceType.value = dataSourceTypeList.value[selectTypeIndex.value];
|
|
1775
1730
|
});
|
|
1776
|
-
|
|
1777
1731
|
function setDataSourceType() {
|
|
1778
|
-
let types = [
|
|
1732
|
+
let types = [
|
|
1733
|
+
// {
|
|
1779
1734
|
// type: 'kq3dimageryfile',
|
|
1780
1735
|
// name: language.value.ImagertyTileFile,
|
|
1781
1736
|
// namePlaceholder: language.value.optional,
|
|
@@ -1800,7 +1755,8 @@ const __default__ = {
|
|
|
1800
1755
|
namePlaceholder: language.value.optional,
|
|
1801
1756
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map",
|
|
1802
1757
|
description: language.value.imagertyMapServerdescription
|
|
1803
|
-
},
|
|
1758
|
+
},
|
|
1759
|
+
// {
|
|
1804
1760
|
// type: "kqgisdataserver",
|
|
1805
1761
|
// name: language.value.KQGISDataServer,
|
|
1806
1762
|
// namePlaceholder: language.value.optional,
|
|
@@ -1904,22 +1860,17 @@ const __default__ = {
|
|
|
1904
1860
|
namePlaceholder: language.value.optional,
|
|
1905
1861
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.czml',
|
|
1906
1862
|
description: language.value.imagertyCZMLdescription
|
|
1907
|
-
}*/
|
|
1908
|
-
];
|
|
1909
|
-
|
|
1863
|
+
}*/];
|
|
1910
1864
|
if (props.hideServiceTypes) {
|
|
1911
1865
|
let indexList = props.hideServiceTypes.split(',');
|
|
1912
|
-
|
|
1913
1866
|
for (let i = types.length - 1; i >= 0; i--) {
|
|
1914
1867
|
if (indexList.includes(i.toString())) {
|
|
1915
1868
|
types.splice(i, 1);
|
|
1916
1869
|
}
|
|
1917
1870
|
}
|
|
1918
1871
|
}
|
|
1919
|
-
|
|
1920
1872
|
return types;
|
|
1921
1873
|
}
|
|
1922
|
-
|
|
1923
1874
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
1924
1875
|
(0,util_.updatePosition)(boxRef.value, props);
|
|
1925
1876
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
@@ -1940,49 +1891,49 @@ const __default__ = {
|
|
|
1940
1891
|
}
|
|
1941
1892
|
});
|
|
1942
1893
|
});
|
|
1894
|
+
|
|
1943
1895
|
/**
|
|
1944
1896
|
* @description 监听header生成
|
|
1945
1897
|
*/
|
|
1946
|
-
|
|
1947
1898
|
const watchCreateHeaderTemp = () => {
|
|
1948
1899
|
if (props.showHeaderTemp) {
|
|
1949
1900
|
// 生成headerTemp
|
|
1950
1901
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, addDataTitle);
|
|
1951
1902
|
}
|
|
1952
|
-
};
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
function handleChange(pane) {} // 切换类型
|
|
1903
|
+
};
|
|
1956
1904
|
|
|
1905
|
+
// 切换tab页
|
|
1906
|
+
function handleChange(pane) {}
|
|
1957
1907
|
|
|
1908
|
+
// 切换类型
|
|
1958
1909
|
function changeType(index) {
|
|
1959
1910
|
dataSourceType.value = dataSourceTypeList.value[index];
|
|
1960
1911
|
dataSource.url = "";
|
|
1961
1912
|
dataSource.name = "";
|
|
1962
|
-
}
|
|
1963
|
-
|
|
1913
|
+
}
|
|
1964
1914
|
|
|
1915
|
+
//选择文件
|
|
1965
1916
|
function changeFile(file) {
|
|
1966
1917
|
fileList.value.push(file);
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1918
|
+
}
|
|
1969
1919
|
|
|
1920
|
+
// 删除文件
|
|
1970
1921
|
function removeFile(file) {
|
|
1971
1922
|
fileList.value.forEach((item, index) => {
|
|
1972
1923
|
if (item.uid === file.uid) {
|
|
1973
1924
|
fileList.value.splice(index, 1);
|
|
1974
1925
|
}
|
|
1975
1926
|
});
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1927
|
+
}
|
|
1978
1928
|
|
|
1929
|
+
//清空所有文件
|
|
1979
1930
|
function removeFiles() {
|
|
1980
1931
|
upload_ref.value.$refs.child.clearFiles();
|
|
1981
1932
|
upload_btn_ref.value.$refs.child.clearFiles();
|
|
1982
1933
|
fileList.value = [];
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1934
|
+
}
|
|
1985
1935
|
|
|
1936
|
+
//加载文件
|
|
1986
1937
|
function loadFiles() {
|
|
1987
1938
|
loadingFile.value = true;
|
|
1988
1939
|
let promiseList = [];
|
|
@@ -1993,51 +1944,39 @@ const __default__ = {
|
|
|
1993
1944
|
removeFiles();
|
|
1994
1945
|
loadingFile.value = false;
|
|
1995
1946
|
});
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1947
|
+
}
|
|
1998
1948
|
|
|
1949
|
+
//加载URL
|
|
1999
1950
|
function loadURL() {
|
|
2000
1951
|
viewModel.parseDataSource({
|
|
2001
1952
|
type: dataSourceType.value.type,
|
|
2002
1953
|
url: dataSource.url,
|
|
2003
1954
|
name: dataSource.name
|
|
2004
1955
|
}, props.loadCallback, props.loadCustom);
|
|
2005
|
-
}
|
|
2006
|
-
|
|
1956
|
+
}
|
|
2007
1957
|
|
|
1958
|
+
// 重置
|
|
2008
1959
|
function reset() {
|
|
2009
1960
|
dataSource.url = "";
|
|
2010
1961
|
dataSource.name = "";
|
|
2011
|
-
}
|
|
2012
|
-
|
|
1962
|
+
}
|
|
2013
1963
|
|
|
1964
|
+
// 销毁
|
|
2014
1965
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {});
|
|
2015
|
-
|
|
1966
|
+
__expose({});
|
|
2016
1967
|
return (_ctx, _cache) => {
|
|
2017
1968
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
2018
|
-
|
|
2019
1969
|
const _component_kq_upload = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-upload");
|
|
2020
|
-
|
|
2021
1970
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
2022
|
-
|
|
2023
1971
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
2024
|
-
|
|
2025
1972
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
2026
|
-
|
|
2027
1973
|
const _component_kq_tab_pane = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-tab-pane");
|
|
2028
|
-
|
|
2029
1974
|
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
2030
|
-
|
|
2031
1975
|
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
2032
|
-
|
|
2033
1976
|
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
2034
|
-
|
|
2035
1977
|
const _component_kq_input = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input");
|
|
2036
|
-
|
|
2037
1978
|
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
2038
|
-
|
|
2039
1979
|
const _component_kq_tabs = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-tabs");
|
|
2040
|
-
|
|
2041
1980
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
2042
1981
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-add-data", {
|
|
2043
1982
|
'kq-box-shadow': __props.showShadow
|
|
@@ -2048,9 +1987,7 @@ const __default__ = {
|
|
|
2048
1987
|
key: 0,
|
|
2049
1988
|
ref_key: "headerTempRef",
|
|
2050
1989
|
ref: headerTempRef
|
|
2051
|
-
}, null, 512
|
|
2052
|
-
/* NEED_PATCH */
|
|
2053
|
-
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_tabs, {
|
|
1990
|
+
}, null, 512 /* NEED_PATCH */)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_tabs, {
|
|
2054
1991
|
modelValue: props.activeName,
|
|
2055
1992
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => props.activeName = $event),
|
|
2056
1993
|
onTabChange: handleChange
|
|
@@ -2062,42 +1999,28 @@ const __default__ = {
|
|
|
2062
1999
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
2063
2000
|
class: "kq3d-add-data-title"
|
|
2064
2001
|
}, {
|
|
2065
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fileFormatDescription), 1
|
|
2066
|
-
/*
|
|
2067
|
-
)]),
|
|
2068
|
-
_: 1
|
|
2069
|
-
/* STABLE */
|
|
2070
|
-
|
|
2002
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fileFormatDescription), 1 /* TEXT */)]),
|
|
2003
|
+
_: 1 /* STABLE */
|
|
2071
2004
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
2072
2005
|
class: "kq3d-add-data-tip"
|
|
2073
2006
|
}, {
|
|
2074
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fileFormatDescriptionTips), 1
|
|
2075
|
-
/*
|
|
2076
|
-
)]),
|
|
2077
|
-
_: 1
|
|
2078
|
-
/* STABLE */
|
|
2079
|
-
|
|
2007
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fileFormatDescriptionTips), 1 /* TEXT */)]),
|
|
2008
|
+
_: 1 /* STABLE */
|
|
2080
2009
|
})]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <div>\r\n <kq-row>{{ language.coordinateSystemDescription }}</kq-row>\r\n <kq-row class=\"kq3d-add-data-tip\">{{ language.coordinateSystemDescriptionTips }}</kq-row>\r\n </div> "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_upload, {
|
|
2081
2010
|
drag: "",
|
|
2082
2011
|
action: "",
|
|
2083
2012
|
"show-file-list": false,
|
|
2084
2013
|
"auto-upload": false,
|
|
2085
2014
|
"file-list": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList),
|
|
2086
|
-
"onUpdate:
|
|
2015
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(fileList) ? fileList.value = $event : fileList = $event),
|
|
2087
2016
|
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(accept),
|
|
2088
2017
|
"on-change": changeFile,
|
|
2089
2018
|
ref_key: "upload_ref",
|
|
2090
2019
|
ref: upload_ref
|
|
2091
2020
|
}, {
|
|
2092
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).dragFileToArea), 1
|
|
2093
|
-
/*
|
|
2094
|
-
|
|
2095
|
-
_: 1
|
|
2096
|
-
/* STABLE */
|
|
2097
|
-
|
|
2098
|
-
}, 8
|
|
2099
|
-
/* PROPS */
|
|
2100
|
-
, ["file-list", "accept"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList).length === 0]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_4, [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(operatorArray), (rowItem, i) => {
|
|
2021
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).dragFileToArea), 1 /* TEXT */)]),
|
|
2022
|
+
_: 1 /* STABLE */
|
|
2023
|
+
}, 8 /* PROPS */, ["file-list", "accept"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList).length === 0]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_4, [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(operatorArray), (rowItem, i) => {
|
|
2101
2024
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
|
|
2102
2025
|
key: i,
|
|
2103
2026
|
gutter: 20
|
|
@@ -2111,44 +2034,22 @@ const __default__ = {
|
|
|
2111
2034
|
class: "kq3d-add-data-doc"
|
|
2112
2035
|
}, {
|
|
2113
2036
|
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)(icons_vue_.Document))]),
|
|
2114
|
-
_: 1
|
|
2115
|
-
/* STABLE */
|
|
2116
|
-
|
|
2037
|
+
_: 1 /* STABLE */
|
|
2117
2038
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", {
|
|
2118
2039
|
title: file.name
|
|
2119
|
-
}, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(file.name), 9
|
|
2120
|
-
/* TEXT, PROPS */
|
|
2121
|
-
, _hoisted_6), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
|
|
2040
|
+
}, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(file.name), 9 /* TEXT, PROPS */, _hoisted_6), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
|
|
2122
2041
|
class: "kq3d-add-data-close",
|
|
2123
2042
|
onClick: $event => removeFile(file)
|
|
2124
2043
|
}, {
|
|
2125
2044
|
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)(icons_vue_.CircleClose))]),
|
|
2126
|
-
_: 2
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
}, 1024
|
|
2136
|
-
/* DYNAMIC_SLOTS */
|
|
2137
|
-
);
|
|
2138
|
-
}), 128
|
|
2139
|
-
/* KEYED_FRAGMENT */
|
|
2140
|
-
))]),
|
|
2141
|
-
_: 2
|
|
2142
|
-
/* DYNAMIC */
|
|
2143
|
-
|
|
2144
|
-
}, 1024
|
|
2145
|
-
/* DYNAMIC_SLOTS */
|
|
2146
|
-
);
|
|
2147
|
-
}), 128
|
|
2148
|
-
/* KEYED_FRAGMENT */
|
|
2149
|
-
))], 512
|
|
2150
|
-
/* NEED_PATCH */
|
|
2151
|
-
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList).length > 0]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_7, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderSlot)(_ctx.$slots, "loadingFilesSwitch"), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_8, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_upload, {
|
|
2045
|
+
_: 2 /* DYNAMIC */
|
|
2046
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])])]),
|
|
2047
|
+
_: 2 /* DYNAMIC */
|
|
2048
|
+
}, 1024 /* DYNAMIC_SLOTS */);
|
|
2049
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
2050
|
+
_: 2 /* DYNAMIC */
|
|
2051
|
+
}, 1024 /* DYNAMIC_SLOTS */);
|
|
2052
|
+
}), 128 /* KEYED_FRAGMENT */))], 512 /* NEED_PATCH */), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList).length > 0]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_7, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderSlot)(_ctx.$slots, "loadingFilesSwitch"), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_8, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_upload, {
|
|
2152
2053
|
action: "",
|
|
2153
2054
|
"show-file-list": false,
|
|
2154
2055
|
"auto-upload": false,
|
|
@@ -2162,55 +2063,29 @@ const __default__ = {
|
|
|
2162
2063
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).selectFiles,
|
|
2163
2064
|
type: "primary"
|
|
2164
2065
|
}, {
|
|
2165
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).selectFiles), 1
|
|
2166
|
-
/*
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
}, 8
|
|
2172
|
-
/* PROPS */
|
|
2173
|
-
, ["title"])]),
|
|
2174
|
-
_: 1
|
|
2175
|
-
/* STABLE */
|
|
2176
|
-
|
|
2177
|
-
}, 8
|
|
2178
|
-
/* PROPS */
|
|
2179
|
-
, ["accept"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
2066
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).selectFiles), 1 /* TEXT */)]),
|
|
2067
|
+
_: 1 /* STABLE */
|
|
2068
|
+
}, 8 /* PROPS */, ["title"])]),
|
|
2069
|
+
_: 1 /* STABLE */
|
|
2070
|
+
}, 8 /* PROPS */, ["accept"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
2180
2071
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => removeFiles(), ["stop"])),
|
|
2181
2072
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearFiles,
|
|
2182
2073
|
type: "primary"
|
|
2183
2074
|
}, {
|
|
2184
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearFiles), 1
|
|
2185
|
-
/*
|
|
2186
|
-
|
|
2187
|
-
_: 1
|
|
2188
|
-
/* STABLE */
|
|
2189
|
-
|
|
2190
|
-
}, 8
|
|
2191
|
-
/* PROPS */
|
|
2192
|
-
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
2075
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearFiles), 1 /* TEXT */)]),
|
|
2076
|
+
_: 1 /* STABLE */
|
|
2077
|
+
}, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
2193
2078
|
onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => loadFiles(), ["stop"])),
|
|
2194
2079
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).loadFiles,
|
|
2195
2080
|
type: "primary",
|
|
2196
2081
|
disabled: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(disabled),
|
|
2197
2082
|
loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(loadingFile)
|
|
2198
2083
|
}, {
|
|
2199
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).loadFiles), 1
|
|
2200
|
-
/*
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
}, 8
|
|
2206
|
-
/* PROPS */
|
|
2207
|
-
, ["title", "disabled", "loading"])])])]),
|
|
2208
|
-
_: 3
|
|
2209
|
-
/* FORWARDED */
|
|
2210
|
-
|
|
2211
|
-
}, 8
|
|
2212
|
-
/* PROPS */
|
|
2213
|
-
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_tab_pane, {
|
|
2084
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).loadFiles), 1 /* TEXT */)]),
|
|
2085
|
+
_: 1 /* STABLE */
|
|
2086
|
+
}, 8 /* PROPS */, ["title", "disabled", "loading"])])])]),
|
|
2087
|
+
_: 3 /* FORWARDED */
|
|
2088
|
+
}, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_tab_pane, {
|
|
2214
2089
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).urlData,
|
|
2215
2090
|
name: "url"
|
|
2216
2091
|
}, {
|
|
@@ -2232,29 +2107,13 @@ const __default__ = {
|
|
|
2232
2107
|
key: item.name,
|
|
2233
2108
|
label: item.name,
|
|
2234
2109
|
value: index
|
|
2235
|
-
}, null, 8
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
/* STABLE */
|
|
2243
|
-
|
|
2244
|
-
}, 8
|
|
2245
|
-
/* PROPS */
|
|
2246
|
-
, ["modelValue"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_9, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSourceType).description), 1
|
|
2247
|
-
/* TEXT */
|
|
2248
|
-
)]),
|
|
2249
|
-
_: 1
|
|
2250
|
-
/* STABLE */
|
|
2251
|
-
|
|
2252
|
-
}, 8
|
|
2253
|
-
/* PROPS */
|
|
2254
|
-
, ["label"])]),
|
|
2255
|
-
_: 1
|
|
2256
|
-
/* STABLE */
|
|
2257
|
-
|
|
2110
|
+
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
2111
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
2112
|
+
_: 1 /* STABLE */
|
|
2113
|
+
}, 8 /* PROPS */, ["modelValue"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_9, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSourceType).description), 1 /* TEXT */)]),
|
|
2114
|
+
_: 1 /* STABLE */
|
|
2115
|
+
}, 8 /* PROPS */, ["label"])]),
|
|
2116
|
+
_: 1 /* STABLE */
|
|
2258
2117
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
2259
2118
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
2260
2119
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).url
|
|
@@ -2263,20 +2122,10 @@ const __default__ = {
|
|
|
2263
2122
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSource).url,
|
|
2264
2123
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSource).url = $event),
|
|
2265
2124
|
placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSourceType).urlPlaceholder
|
|
2266
|
-
}, null, 8
|
|
2267
|
-
/*
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
)]),
|
|
2271
|
-
_: 1
|
|
2272
|
-
/* STABLE */
|
|
2273
|
-
|
|
2274
|
-
}, 8
|
|
2275
|
-
/* PROPS */
|
|
2276
|
-
, ["label"])]),
|
|
2277
|
-
_: 1
|
|
2278
|
-
/* STABLE */
|
|
2279
|
-
|
|
2125
|
+
}, null, 8 /* PROPS */, ["modelValue", "placeholder"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_10, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSourceType).urlPlaceholder), 1 /* TEXT */)]),
|
|
2126
|
+
_: 1 /* STABLE */
|
|
2127
|
+
}, 8 /* PROPS */, ["label"])]),
|
|
2128
|
+
_: 1 /* STABLE */
|
|
2280
2129
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
2281
2130
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
2282
2131
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).nodeName
|
|
@@ -2285,65 +2134,32 @@ const __default__ = {
|
|
|
2285
2134
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSource).name,
|
|
2286
2135
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSource).name = $event),
|
|
2287
2136
|
placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSourceType).namePlaceholder
|
|
2288
|
-
}, null, 8
|
|
2289
|
-
/*
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
/* STABLE */
|
|
2293
|
-
|
|
2294
|
-
}, 8
|
|
2295
|
-
/* PROPS */
|
|
2296
|
-
, ["label"])]),
|
|
2297
|
-
_: 1
|
|
2298
|
-
/* STABLE */
|
|
2299
|
-
|
|
2137
|
+
}, null, 8 /* PROPS */, ["modelValue", "placeholder"])]),
|
|
2138
|
+
_: 1 /* STABLE */
|
|
2139
|
+
}, 8 /* PROPS */, ["label"])]),
|
|
2140
|
+
_: 1 /* STABLE */
|
|
2300
2141
|
})]),
|
|
2301
|
-
_: 1
|
|
2302
|
-
/* STABLE */
|
|
2303
|
-
|
|
2142
|
+
_: 1 /* STABLE */
|
|
2304
2143
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_11, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderSlot)(_ctx.$slots, "loadingURLSwitch"), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_12, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
2305
2144
|
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => loadURL(), ["stop"])),
|
|
2306
2145
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).loadFiles,
|
|
2307
2146
|
type: "primary"
|
|
2308
2147
|
}, {
|
|
2309
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).loadFiles), 1
|
|
2310
|
-
/*
|
|
2311
|
-
|
|
2312
|
-
_: 1
|
|
2313
|
-
/* STABLE */
|
|
2314
|
-
|
|
2315
|
-
}, 8
|
|
2316
|
-
/* PROPS */
|
|
2317
|
-
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
2148
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).loadFiles), 1 /* TEXT */)]),
|
|
2149
|
+
_: 1 /* STABLE */
|
|
2150
|
+
}, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
2318
2151
|
onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => reset(), ["stop"])),
|
|
2319
2152
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).reset
|
|
2320
2153
|
}, {
|
|
2321
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).reset), 1
|
|
2322
|
-
/*
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
/* PROPS */
|
|
2329
|
-
, ["title"])])])]),
|
|
2330
|
-
_: 3
|
|
2331
|
-
/* FORWARDED */
|
|
2332
|
-
|
|
2333
|
-
}, 8
|
|
2334
|
-
/* PROPS */
|
|
2335
|
-
, ["label"])])]),
|
|
2336
|
-
_: 3
|
|
2337
|
-
/* FORWARDED */
|
|
2338
|
-
|
|
2339
|
-
}, 8
|
|
2340
|
-
/* PROPS */
|
|
2341
|
-
, ["modelValue"])], 2
|
|
2342
|
-
/* CLASS */
|
|
2343
|
-
);
|
|
2154
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).reset), 1 /* TEXT */)]),
|
|
2155
|
+
_: 1 /* STABLE */
|
|
2156
|
+
}, 8 /* PROPS */, ["title"])])])]),
|
|
2157
|
+
_: 3 /* FORWARDED */
|
|
2158
|
+
}, 8 /* PROPS */, ["label"])])]),
|
|
2159
|
+
_: 3 /* FORWARDED */
|
|
2160
|
+
}, 8 /* PROPS */, ["modelValue"])], 2 /* CLASS */);
|
|
2344
2161
|
};
|
|
2345
2162
|
}
|
|
2346
|
-
|
|
2347
2163
|
}));
|
|
2348
2164
|
;// CONCATENATED MODULE: ./src/webgl/adddata/AddData.vue?vue&type=script&setup=true&lang=js
|
|
2349
2165
|
|
|
@@ -2355,10 +2171,13 @@ const __exports__ = AddDatavue_type_script_setup_true_lang_js;
|
|
|
2355
2171
|
|
|
2356
2172
|
/* harmony default export */ var AddData = (__exports__);
|
|
2357
2173
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
2358
|
-
var init_js_ = __webpack_require__(
|
|
2174
|
+
var init_js_ = __webpack_require__(455);
|
|
2359
2175
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
2360
2176
|
;// CONCATENATED MODULE: ./src/webgl/adddata/index.js
|
|
2361
|
-
|
|
2177
|
+
/*
|
|
2178
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
2179
|
+
* All rights reserved.
|
|
2180
|
+
*/
|
|
2362
2181
|
|
|
2363
2182
|
|
|
2364
2183
|
|
|
@@ -2367,8 +2186,6 @@ AddData.install = (Vue, opts) => {
|
|
|
2367
2186
|
Vue.component(AddData.name, AddData);
|
|
2368
2187
|
};
|
|
2369
2188
|
|
|
2370
|
-
|
|
2371
|
-
}();
|
|
2372
2189
|
/******/ return __webpack_exports__;
|
|
2373
2190
|
/******/ })()
|
|
2374
2191
|
;
|