@kq_npm/client3d_webgl_vue 4.0.7-beta → 4.0.9-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 +197 -64
- package/baseterraingallery/index.js +3 -2
- package/index.js +245 -76
- package/package.json +1 -1
- package/scenceview/index.js +248 -79
package/scenceview/index.js
CHANGED
|
@@ -93,7 +93,7 @@ element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) =>
|
|
|
93
93
|
|
|
94
94
|
/***/ }),
|
|
95
95
|
|
|
96
|
-
/***/
|
|
96
|
+
/***/ 5110:
|
|
97
97
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
98
98
|
|
|
99
99
|
|
|
@@ -123,11 +123,15 @@ var util_ = __webpack_require__(9519);
|
|
|
123
123
|
var message = __webpack_require__(1349);
|
|
124
124
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
|
|
125
125
|
var const_image_ = __webpack_require__(9702);
|
|
126
|
+
;// CONCATENATED MODULE: external "papaparse"
|
|
127
|
+
var external_papaparse_namespaceObject = require("papaparse");
|
|
128
|
+
var external_papaparse_default = /*#__PURE__*/__webpack_require__.n(external_papaparse_namespaceObject);
|
|
126
129
|
;// CONCATENATED MODULE: ./src/webgl/adddata/AddDataViewModel.js
|
|
127
130
|
|
|
128
131
|
|
|
129
132
|
|
|
130
133
|
|
|
134
|
+
|
|
131
135
|
//添加数据逻辑类
|
|
132
136
|
|
|
133
137
|
class AddDataViewModel {
|
|
@@ -151,13 +155,15 @@ class AddDataViewModel {
|
|
|
151
155
|
style: Cesium.LabelStyle.FILL_AND_OUTLINE,
|
|
152
156
|
eyeOffset: Cesium.Cartesian3.ZERO,
|
|
153
157
|
pixelOffset: new Cesium.Cartesian2(0, -8),
|
|
154
|
-
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
158
|
+
disableDepthTestDistance: 10000000 // disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
159
|
+
|
|
155
160
|
},
|
|
156
161
|
billboard: {
|
|
157
162
|
image: const_image_.BILLBOARD_IMAGE_URL,
|
|
158
163
|
width: 12,
|
|
159
164
|
height: 12,
|
|
160
|
-
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
165
|
+
disableDepthTestDistance: 10000000 // disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
166
|
+
|
|
161
167
|
},
|
|
162
168
|
polyline: {
|
|
163
169
|
width: 2.0,
|
|
@@ -212,8 +218,7 @@ class AddDataViewModel {
|
|
|
212
218
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
213
219
|
|
|
214
220
|
|
|
215
|
-
that.
|
|
216
|
-
|
|
221
|
+
that.flyToLayer(ds);
|
|
217
222
|
resolve("success");
|
|
218
223
|
var layer = {
|
|
219
224
|
guid: ds.guid,
|
|
@@ -231,7 +236,7 @@ class AddDataViewModel {
|
|
|
231
236
|
cb && cb(layer);
|
|
232
237
|
});
|
|
233
238
|
} else {
|
|
234
|
-
reject(file.name + "
|
|
239
|
+
reject(file.name + " file parser error.");
|
|
235
240
|
cb && cb("error");
|
|
236
241
|
}
|
|
237
242
|
});
|
|
@@ -254,8 +259,129 @@ class AddDataViewModel {
|
|
|
254
259
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
255
260
|
|
|
256
261
|
|
|
257
|
-
that.
|
|
262
|
+
that.flyToLayer(ds);
|
|
263
|
+
resolve("success");
|
|
264
|
+
var layer = {
|
|
265
|
+
guid: ds.guid,
|
|
266
|
+
name: name,
|
|
267
|
+
visible: true,
|
|
268
|
+
serverType: "datasource",
|
|
269
|
+
lsType: "ls",
|
|
270
|
+
url: res,
|
|
271
|
+
addType: "geojson",
|
|
272
|
+
shapeType: that._layerManager.getShapeType(ds)
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
that._layerManager.addTempLayerNode(layer);
|
|
276
|
+
|
|
277
|
+
cb && cb(layer);
|
|
278
|
+
});
|
|
279
|
+
} else {
|
|
280
|
+
reject(file.name + " file parser error.");
|
|
281
|
+
cb && cb("error");
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
} else if (ext === "csv") {
|
|
285
|
+
(0,util_.readFile)(file, res => {
|
|
286
|
+
var features = external_papaparse_default().parse(res, {
|
|
287
|
+
skipEmptyLines: true,
|
|
288
|
+
header: true
|
|
289
|
+
}).data;
|
|
290
|
+
let _featureCollection = {
|
|
291
|
+
type: "FeatureCollection",
|
|
292
|
+
features: []
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
for (var i = 0; i < features.length; i++) {
|
|
296
|
+
let item = features[i];
|
|
297
|
+
let lat = null;
|
|
298
|
+
let lng = null;
|
|
299
|
+
let properties = {};
|
|
300
|
+
|
|
301
|
+
for (var j in item) {
|
|
302
|
+
if (j.toUpperCase().indexOf("LAT") != -1) {
|
|
303
|
+
lat = item[j];
|
|
304
|
+
} else if (j.toUpperCase().indexOf("LNG") != -1 || j.toUpperCase().indexOf("LON") != -1) {
|
|
305
|
+
lng = item[j];
|
|
306
|
+
} else if (j.toUpperCase() === "X") {
|
|
307
|
+
lat = item[j];
|
|
308
|
+
} else if (j.toUpperCase() === "Y") {
|
|
309
|
+
lng = item[j];
|
|
310
|
+
} else {
|
|
311
|
+
properties[j] = item[j];
|
|
312
|
+
}
|
|
313
|
+
} // 点数据
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
if (lat && lng) {
|
|
317
|
+
let _point = {
|
|
318
|
+
type: "Feature",
|
|
319
|
+
geometry: {
|
|
320
|
+
type: "Point",
|
|
321
|
+
coordinates: [Number(lng), Number(lat)]
|
|
322
|
+
},
|
|
323
|
+
properties: properties
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
_featureCollection.features.push(_point);
|
|
327
|
+
} else {}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
if (_featureCollection.features.length > 0) {
|
|
331
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
332
|
+
ds.load(_featureCollection, that._geojsonStyle).then(ds => {
|
|
333
|
+
ds.entities.values.forEach(entity => {
|
|
334
|
+
if (entity.polygon) {
|
|
335
|
+
entity.polyline = {
|
|
336
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
337
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
338
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
that._viewer.dataSources.add(ds);
|
|
344
|
+
|
|
345
|
+
that.flyToLayer(ds);
|
|
346
|
+
resolve("success");
|
|
347
|
+
var layer = {
|
|
348
|
+
guid: ds.guid,
|
|
349
|
+
name: name,
|
|
350
|
+
visible: true,
|
|
351
|
+
serverType: "datasource",
|
|
352
|
+
lsType: "ls",
|
|
353
|
+
url: _featureCollection,
|
|
354
|
+
addType: "geojson",
|
|
355
|
+
shapeType: that._layerManager.getShapeType(ds)
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
that._layerManager.addTempLayerNode(layer);
|
|
359
|
+
|
|
360
|
+
cb && cb(layer);
|
|
361
|
+
});
|
|
362
|
+
} else {
|
|
363
|
+
reject(file.name + " file parser error.");
|
|
364
|
+
cb && cb("error");
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
} else if (ext === "xls" || ext === "xlsx") {
|
|
368
|
+
(0,util_.readExcel)(file, this._language, res => {
|
|
369
|
+
if (res) {
|
|
370
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
371
|
+
ds.load(res, that._geojsonStyle).then(ds => {
|
|
372
|
+
ds.entities.values.forEach(entity => {
|
|
373
|
+
if (entity.polygon) {
|
|
374
|
+
entity.polyline = {
|
|
375
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
376
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
377
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
that._viewer.dataSources.add(ds);
|
|
258
383
|
|
|
384
|
+
that.flyToLayer(ds);
|
|
259
385
|
resolve("success");
|
|
260
386
|
var layer = {
|
|
261
387
|
guid: ds.guid,
|
|
@@ -273,7 +399,8 @@ class AddDataViewModel {
|
|
|
273
399
|
cb && cb(layer);
|
|
274
400
|
});
|
|
275
401
|
} else {
|
|
276
|
-
reject(file.name + "
|
|
402
|
+
reject(file.name + " file parser error.");
|
|
403
|
+
cb && cb("error");
|
|
277
404
|
}
|
|
278
405
|
});
|
|
279
406
|
} else {
|
|
@@ -327,8 +454,7 @@ class AddDataViewModel {
|
|
|
327
454
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
328
455
|
|
|
329
456
|
|
|
330
|
-
that.
|
|
331
|
-
|
|
457
|
+
that.flyToLayer(ds);
|
|
332
458
|
resolve("success");
|
|
333
459
|
var layer = {
|
|
334
460
|
guid: ds.guid,
|
|
@@ -361,8 +487,7 @@ class AddDataViewModel {
|
|
|
361
487
|
ds.load(data).then(ds => {
|
|
362
488
|
that._viewer.dataSources.add(ds);
|
|
363
489
|
|
|
364
|
-
that.
|
|
365
|
-
|
|
490
|
+
that.flyToLayer(ds);
|
|
366
491
|
resolve("success");
|
|
367
492
|
var layer = {
|
|
368
493
|
guid: ds.guid,
|
|
@@ -390,8 +515,7 @@ class AddDataViewModel {
|
|
|
390
515
|
ds.load(file).then(ds => {
|
|
391
516
|
that._viewer.dataSources.add(ds);
|
|
392
517
|
|
|
393
|
-
that.
|
|
394
|
-
|
|
518
|
+
that.flyToLayer(ds);
|
|
395
519
|
resolve("success");
|
|
396
520
|
var layer = {
|
|
397
521
|
guid: ds.guid,
|
|
@@ -423,8 +547,7 @@ class AddDataViewModel {
|
|
|
423
547
|
that._viewer.dataSources.add(Cesium.CzmlDataSource.load(ret, {
|
|
424
548
|
name: name
|
|
425
549
|
})).then(ds => {
|
|
426
|
-
that.
|
|
427
|
-
|
|
550
|
+
that.flyToLayer(ds);
|
|
428
551
|
resolve("success");
|
|
429
552
|
var layer = {
|
|
430
553
|
guid: ds.guid,
|
|
@@ -464,7 +587,7 @@ class AddDataViewModel {
|
|
|
464
587
|
} //解析数据源
|
|
465
588
|
|
|
466
589
|
|
|
467
|
-
parseDataSource(options, cb) {
|
|
590
|
+
parseDataSource(options, cb, loadCustom) {
|
|
468
591
|
options = options || {};
|
|
469
592
|
|
|
470
593
|
if (options.url && options.url !== "") {
|
|
@@ -483,13 +606,13 @@ class AddDataViewModel {
|
|
|
483
606
|
} catch (error) {
|
|
484
607
|
(0,message/* default */.Z)({
|
|
485
608
|
message: this._language.errorUrlAddress,
|
|
486
|
-
type: "
|
|
609
|
+
type: "warning"
|
|
487
610
|
});
|
|
488
611
|
return;
|
|
489
612
|
}
|
|
490
613
|
|
|
491
614
|
if (options.type === "kml") {
|
|
492
|
-
this.parseService(options, cb);
|
|
615
|
+
this.parseService(options, cb, loadCustom);
|
|
493
616
|
return;
|
|
494
617
|
}
|
|
495
618
|
|
|
@@ -499,17 +622,17 @@ class AddDataViewModel {
|
|
|
499
622
|
if (data.status !== 200) {
|
|
500
623
|
(0,message/* default */.Z)({
|
|
501
624
|
message: this._language.serviceNotAvailable,
|
|
502
|
-
type: "
|
|
625
|
+
type: "warning"
|
|
503
626
|
});
|
|
504
627
|
} else {
|
|
505
628
|
try {
|
|
506
|
-
this.parseService(options, cb);
|
|
629
|
+
this.parseService(options, cb, loadCustom);
|
|
507
630
|
} catch {}
|
|
508
631
|
}
|
|
509
632
|
}).catch(() => {
|
|
510
633
|
(0,message/* default */.Z)({
|
|
511
634
|
message: this._language.serviceNotAvailable,
|
|
512
|
-
type: "
|
|
635
|
+
type: "warning"
|
|
513
636
|
});
|
|
514
637
|
});
|
|
515
638
|
} else {
|
|
@@ -521,7 +644,7 @@ class AddDataViewModel {
|
|
|
521
644
|
} //解析服务
|
|
522
645
|
|
|
523
646
|
|
|
524
|
-
parseService(options, cb) {
|
|
647
|
+
parseService(options, cb, loadCustom) {
|
|
525
648
|
let that = this;
|
|
526
649
|
let url = options.url;
|
|
527
650
|
let type = options.type || "";
|
|
@@ -737,7 +860,7 @@ class AddDataViewModel {
|
|
|
737
860
|
});
|
|
738
861
|
promiseList.push(promise);
|
|
739
862
|
} else if (layers[i] instanceof Cesium.Kq3dS3MTilesLayer) {
|
|
740
|
-
serverType = "
|
|
863
|
+
serverType = "3dtiles";
|
|
741
864
|
addType = "s3m";
|
|
742
865
|
url = layers[i]._url;
|
|
743
866
|
}
|
|
@@ -834,6 +957,14 @@ class AddDataViewModel {
|
|
|
834
957
|
break;
|
|
835
958
|
|
|
836
959
|
case "kqgismapserver":
|
|
960
|
+
if (loadCustom) {
|
|
961
|
+
loadCustom({
|
|
962
|
+
name,
|
|
963
|
+
url
|
|
964
|
+
});
|
|
965
|
+
return;
|
|
966
|
+
}
|
|
967
|
+
|
|
837
968
|
node = {
|
|
838
969
|
guid: Cesium.createGuid(),
|
|
839
970
|
name: name,
|
|
@@ -857,7 +988,7 @@ class AddDataViewModel {
|
|
|
857
988
|
if (mapInfo.resultcode === "error") {
|
|
858
989
|
(0,message/* default */.Z)({
|
|
859
990
|
message: mapInfo.message,
|
|
860
|
-
type: "
|
|
991
|
+
type: "warning"
|
|
861
992
|
});
|
|
862
993
|
return;
|
|
863
994
|
}
|
|
@@ -912,7 +1043,9 @@ class AddDataViewModel {
|
|
|
912
1043
|
case "arcgismapserver":
|
|
913
1044
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dArcGISMapServerImageryProvider({
|
|
914
1045
|
name: name,
|
|
915
|
-
url: url
|
|
1046
|
+
url: url,
|
|
1047
|
+
usePreCachedTilesIfAvailable: false //使用export请求可支持自定义比例尺
|
|
1048
|
+
|
|
916
1049
|
}));
|
|
917
1050
|
this.flyToLayer(layer);
|
|
918
1051
|
node = {
|
|
@@ -1086,8 +1219,7 @@ class AddDataViewModel {
|
|
|
1086
1219
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
1087
1220
|
|
|
1088
1221
|
|
|
1089
|
-
that.
|
|
1090
|
-
|
|
1222
|
+
that.flyToLayer(ds);
|
|
1091
1223
|
node = {
|
|
1092
1224
|
guid: ds.guid,
|
|
1093
1225
|
name: name,
|
|
@@ -1121,8 +1253,7 @@ class AddDataViewModel {
|
|
|
1121
1253
|
this._viewer.dataSources.add(ds); // ds.autoAvoid(this._viewer);
|
|
1122
1254
|
|
|
1123
1255
|
|
|
1124
|
-
|
|
1125
|
-
|
|
1256
|
+
that.flyToLayer(ds);
|
|
1126
1257
|
node = {
|
|
1127
1258
|
guid: ds.guid,
|
|
1128
1259
|
name: name,
|
|
@@ -1158,8 +1289,7 @@ class AddDataViewModel {
|
|
|
1158
1289
|
|
|
1159
1290
|
this._viewer.dataSources.add(ds);
|
|
1160
1291
|
|
|
1161
|
-
|
|
1162
|
-
|
|
1292
|
+
that.flyToLayer(ds);
|
|
1163
1293
|
node = {
|
|
1164
1294
|
guid: ds.guid,
|
|
1165
1295
|
name: name,
|
|
@@ -1186,8 +1316,7 @@ class AddDataViewModel {
|
|
|
1186
1316
|
ds.load(url).then(ds => {
|
|
1187
1317
|
this._viewer.dataSources.add(ds);
|
|
1188
1318
|
|
|
1189
|
-
|
|
1190
|
-
|
|
1319
|
+
that.flyToLayer(ds);
|
|
1191
1320
|
node = {
|
|
1192
1321
|
guid: ds.guid,
|
|
1193
1322
|
name: name,
|
|
@@ -1209,8 +1338,7 @@ class AddDataViewModel {
|
|
|
1209
1338
|
ds.load(url).then(ds => {
|
|
1210
1339
|
this._viewer.dataSources.add(ds);
|
|
1211
1340
|
|
|
1212
|
-
|
|
1213
|
-
|
|
1341
|
+
that.flyToLayer(ds);
|
|
1214
1342
|
node = {
|
|
1215
1343
|
guid: ds.guid,
|
|
1216
1344
|
name: name,
|
|
@@ -1273,7 +1401,7 @@ class AddDataViewModel {
|
|
|
1273
1401
|
destination: tileset.rectangle
|
|
1274
1402
|
});
|
|
1275
1403
|
});
|
|
1276
|
-
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource) {
|
|
1404
|
+
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource || layer instanceof Cesium.Kq3dEsriGeoJsonDataSource) {
|
|
1277
1405
|
let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
|
|
1278
1406
|
viewer.flyTo(layer, {
|
|
1279
1407
|
offset
|
|
@@ -1353,7 +1481,6 @@ const _hoisted_12 = {
|
|
|
1353
1481
|
|
|
1354
1482
|
|
|
1355
1483
|
|
|
1356
|
-
//accept=".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt"
|
|
1357
1484
|
|
|
1358
1485
|
const __default__ = {
|
|
1359
1486
|
name: "Kq3dAddData"
|
|
@@ -1390,6 +1517,11 @@ const __default__ = {
|
|
|
1390
1517
|
type: Function,
|
|
1391
1518
|
default: null
|
|
1392
1519
|
},
|
|
1520
|
+
// 自定义加载函数, 只对KQGIS REST服务生效, earthstudio使用
|
|
1521
|
+
loadCustom: {
|
|
1522
|
+
type: Function,
|
|
1523
|
+
default: null
|
|
1524
|
+
},
|
|
1393
1525
|
// 是否生成HeaderTemp
|
|
1394
1526
|
showHeaderTemp: {
|
|
1395
1527
|
type: Boolean,
|
|
@@ -1424,6 +1556,7 @@ const __default__ = {
|
|
|
1424
1556
|
expose
|
|
1425
1557
|
}) {
|
|
1426
1558
|
const props = __props;
|
|
1559
|
+
let accept = ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt";
|
|
1427
1560
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
1428
1561
|
let selectTypeIndex = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0); //URL服务支持的数据源类型
|
|
1429
1562
|
|
|
@@ -1482,104 +1615,104 @@ const __default__ = {
|
|
|
1482
1615
|
return [// {
|
|
1483
1616
|
// type: 'kq3dimageryfile',
|
|
1484
1617
|
// name: language.value.ImagertyTileFile,
|
|
1485
|
-
// namePlaceholder: language.value.
|
|
1618
|
+
// namePlaceholder: language.value.optional,
|
|
1486
1619
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
1487
1620
|
// description: language.value.imagertyTileFiledescription
|
|
1488
1621
|
// }, {
|
|
1489
1622
|
// type: 'obterrain',
|
|
1490
1623
|
// name: language.value.ObTerrainTileFile,
|
|
1491
|
-
// namePlaceholder: language.value.
|
|
1624
|
+
// namePlaceholder: language.value.optional,
|
|
1492
1625
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
1493
1626
|
// description: language.value.imagertyObTerrainTileFiledescription
|
|
1494
1627
|
// },
|
|
1495
1628
|
{
|
|
1496
1629
|
type: "kqgis3dserver",
|
|
1497
1630
|
name: language.value.KQGIS3DServer,
|
|
1498
|
-
namePlaceholder: language.value.
|
|
1631
|
+
namePlaceholder: language.value.optional,
|
|
1499
1632
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/realspace",
|
|
1500
1633
|
description: language.value.imagerty3DServerdescription
|
|
1501
1634
|
}, {
|
|
1502
1635
|
type: "kqgismapserver",
|
|
1503
1636
|
name: language.value.KQGISMapServer,
|
|
1504
|
-
namePlaceholder: language.value.
|
|
1637
|
+
namePlaceholder: language.value.optional,
|
|
1505
1638
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map",
|
|
1506
1639
|
description: language.value.imagertyMapServerdescription
|
|
1507
1640
|
}, {
|
|
1508
1641
|
type: "kqgisimageserver",
|
|
1509
1642
|
name: language.value.KQGISImageServer,
|
|
1510
|
-
namePlaceholder: language.value.
|
|
1643
|
+
namePlaceholder: language.value.optional,
|
|
1511
1644
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/image",
|
|
1512
1645
|
description: language.value.imagertyImageServerdescription
|
|
1513
1646
|
}, {
|
|
1514
1647
|
type: "kqgisdataflowserver",
|
|
1515
1648
|
name: language.value.KQGISDataflowServer,
|
|
1516
|
-
namePlaceholder: language.value.
|
|
1649
|
+
namePlaceholder: language.value.optional,
|
|
1517
1650
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/streaming/rest/services/<servername>/dataflow",
|
|
1518
1651
|
description: language.value.imagertyDataflowServerdescription
|
|
1519
1652
|
}, {
|
|
1520
1653
|
type: "kqgistileserver",
|
|
1521
1654
|
name: language.value.KQGISTileServer,
|
|
1522
|
-
namePlaceholder: language.value.
|
|
1655
|
+
namePlaceholder: language.value.optional,
|
|
1523
1656
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
|
|
1524
1657
|
description: language.value.imagertyTileServerdescription
|
|
1525
1658
|
}, {
|
|
1526
1659
|
type: "kqgisaggregationserver",
|
|
1527
1660
|
name: language.value.KQGISAggregationServer,
|
|
1528
|
-
namePlaceholder: language.value.
|
|
1661
|
+
namePlaceholder: language.value.optional,
|
|
1529
1662
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
1530
1663
|
description: language.value.imagertyAggregationServerdescription
|
|
1531
1664
|
}, {
|
|
1532
1665
|
type: "s3m",
|
|
1533
1666
|
name: language.value.S3M,
|
|
1534
|
-
namePlaceholder: language.value.
|
|
1667
|
+
namePlaceholder: language.value.optional,
|
|
1535
1668
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/realspace/datas/xxx/config",
|
|
1536
1669
|
description: language.value.imagertyS3Mdescription
|
|
1537
1670
|
}, {
|
|
1538
1671
|
type: "arcgismapserver",
|
|
1539
1672
|
name: language.value.ArcGISMapServer,
|
|
1540
|
-
namePlaceholder: language.value.
|
|
1673
|
+
namePlaceholder: language.value.optional,
|
|
1541
1674
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/ArcGIS/rest/services/<servername>/MapServer",
|
|
1542
1675
|
description: language.value.imagertyArcGISMapServerdescription
|
|
1543
1676
|
}, {
|
|
1544
1677
|
type: "wms",
|
|
1545
1678
|
name: language.value.OGCWMS,
|
|
1546
|
-
namePlaceholder: language.value.
|
|
1679
|
+
namePlaceholder: language.value.optional,
|
|
1547
1680
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wms",
|
|
1548
1681
|
description: language.value.imagertyOGCWMSdescription
|
|
1549
1682
|
}, {
|
|
1550
1683
|
type: "wmts",
|
|
1551
1684
|
name: language.value.OGCWMTS,
|
|
1552
|
-
namePlaceholder: language.value.
|
|
1685
|
+
namePlaceholder: language.value.optional,
|
|
1553
1686
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
1554
1687
|
description: language.value.imagertyOGCWMTSdescription
|
|
1555
1688
|
}, {
|
|
1556
1689
|
type: "3dtiles",
|
|
1557
1690
|
name: language.value.Cesium3DTilesFile,
|
|
1558
|
-
namePlaceholder: language.value.
|
|
1691
|
+
namePlaceholder: language.value.optional,
|
|
1559
1692
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/tileset.json",
|
|
1560
1693
|
description: language.value.imagerty3DTilesFiledescription
|
|
1561
1694
|
}, {
|
|
1562
1695
|
type: "stkterrain",
|
|
1563
1696
|
name: language.value.StkTerrainTileFile,
|
|
1564
|
-
namePlaceholder: language.value.
|
|
1697
|
+
namePlaceholder: language.value.optional,
|
|
1565
1698
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/<foldername>/",
|
|
1566
1699
|
description: language.value.imagertyStkTerrainTileFiledescription
|
|
1567
1700
|
}, {
|
|
1568
1701
|
type: "geojson",
|
|
1569
1702
|
name: language.value.GeoJson,
|
|
1570
|
-
namePlaceholder: language.value.
|
|
1703
|
+
namePlaceholder: language.value.optional,
|
|
1571
1704
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
|
|
1572
1705
|
description: language.value.imagertyGeoJsondescription
|
|
1573
1706
|
}, {
|
|
1574
1707
|
type: "arcjson",
|
|
1575
1708
|
name: language.value.ArcJson,
|
|
1576
|
-
namePlaceholder: language.value.
|
|
1709
|
+
namePlaceholder: language.value.optional,
|
|
1577
1710
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.json",
|
|
1578
1711
|
description: language.value.imagertyArcJsondescription
|
|
1579
1712
|
}, {
|
|
1580
1713
|
type: "mvt",
|
|
1581
1714
|
name: language.value.MVT,
|
|
1582
|
-
namePlaceholder: language.value.
|
|
1715
|
+
namePlaceholder: language.value.optional,
|
|
1583
1716
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
|
|
1584
1717
|
description: language.value.imagertyMVTdescription
|
|
1585
1718
|
}
|
|
@@ -1592,13 +1725,13 @@ const __default__ = {
|
|
|
1592
1725
|
}, {
|
|
1593
1726
|
type: 'kml',
|
|
1594
1727
|
name: language.value.KML,
|
|
1595
|
-
namePlaceholder: language.value.
|
|
1728
|
+
namePlaceholder: language.value.optional,
|
|
1596
1729
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.kml',
|
|
1597
1730
|
description: language.value.imagertyKMLdescription
|
|
1598
1731
|
}, {
|
|
1599
1732
|
type: 'czml',
|
|
1600
1733
|
name: language.value.CZML,
|
|
1601
|
-
namePlaceholder: language.value.
|
|
1734
|
+
namePlaceholder: language.value.optional,
|
|
1602
1735
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.czml',
|
|
1603
1736
|
description: language.value.imagertyCZMLdescription
|
|
1604
1737
|
}*/
|
|
@@ -1686,7 +1819,7 @@ const __default__ = {
|
|
|
1686
1819
|
type: dataSourceType.value.type,
|
|
1687
1820
|
url: dataSource.url,
|
|
1688
1821
|
name: dataSource.name
|
|
1689
|
-
}, props.loadCallback);
|
|
1822
|
+
}, props.loadCallback, props.loadCustom);
|
|
1690
1823
|
} // 重置
|
|
1691
1824
|
|
|
1692
1825
|
|
|
@@ -1769,7 +1902,7 @@ const __default__ = {
|
|
|
1769
1902
|
"auto-upload": false,
|
|
1770
1903
|
"file-list": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList),
|
|
1771
1904
|
"onUpdate:file-list": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(fileList) ? fileList.value = $event : fileList = $event),
|
|
1772
|
-
accept:
|
|
1905
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(accept),
|
|
1773
1906
|
"on-change": changeFile,
|
|
1774
1907
|
ref_key: "upload_ref",
|
|
1775
1908
|
ref: upload_ref
|
|
@@ -1782,7 +1915,7 @@ const __default__ = {
|
|
|
1782
1915
|
|
|
1783
1916
|
}, 8
|
|
1784
1917
|
/* PROPS */
|
|
1785
|
-
, ["file-list"]), [[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) => {
|
|
1918
|
+
, ["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) => {
|
|
1786
1919
|
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, {
|
|
1787
1920
|
key: i,
|
|
1788
1921
|
gutter: 20
|
|
@@ -1837,7 +1970,7 @@ const __default__ = {
|
|
|
1837
1970
|
action: "",
|
|
1838
1971
|
"show-file-list": false,
|
|
1839
1972
|
"auto-upload": false,
|
|
1840
|
-
accept:
|
|
1973
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(accept),
|
|
1841
1974
|
ref_key: "upload_btn_ref",
|
|
1842
1975
|
ref: upload_btn_ref,
|
|
1843
1976
|
class: "kq3d-add-data-footer-upload",
|
|
@@ -1859,9 +1992,9 @@ const __default__ = {
|
|
|
1859
1992
|
_: 1
|
|
1860
1993
|
/* STABLE */
|
|
1861
1994
|
|
|
1862
|
-
},
|
|
1863
|
-
/*
|
|
1864
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1995
|
+
}, 8
|
|
1996
|
+
/* PROPS */
|
|
1997
|
+
, ["accept"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1865
1998
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => removeFiles(), ["stop"])),
|
|
1866
1999
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearFiles,
|
|
1867
2000
|
type: "primary"
|
|
@@ -1963,7 +2096,7 @@ const __default__ = {
|
|
|
1963
2096
|
|
|
1964
2097
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1965
2098
|
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, {
|
|
1966
|
-
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).
|
|
2099
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).nodeName
|
|
1967
2100
|
}, {
|
|
1968
2101
|
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_input, {
|
|
1969
2102
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSource).name,
|
|
@@ -2841,8 +2974,9 @@ const __default__ = {
|
|
|
2841
2974
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
2842
2975
|
if (scenceView) {
|
|
2843
2976
|
changSelectTerrain();
|
|
2844
|
-
viewModel = new BaseterrainGalleryViewModel/* default */.Z(scenceView._viewer);
|
|
2845
|
-
|
|
2977
|
+
viewModel = new BaseterrainGalleryViewModel/* default */.Z(scenceView._viewer); // 初始化无地形时不需要设置地形, 如果将地形设置为无地形可能会影响其他功能添加的地形
|
|
2978
|
+
|
|
2979
|
+
if (currentIndex.value != 2) viewModel.setTerrainType(currentIndex.value);
|
|
2846
2980
|
}
|
|
2847
2981
|
});
|
|
2848
2982
|
});
|
|
@@ -36479,8 +36613,8 @@ var isolineanalysis = __webpack_require__(9783);
|
|
|
36479
36613
|
var boxclip = __webpack_require__(4510);
|
|
36480
36614
|
// EXTERNAL MODULE: ./src/webgl/planeclip/index.js + 4 modules
|
|
36481
36615
|
var planeclip = __webpack_require__(9736);
|
|
36482
|
-
// EXTERNAL MODULE: ./src/webgl/adddata/index.js +
|
|
36483
|
-
var adddata = __webpack_require__(
|
|
36616
|
+
// EXTERNAL MODULE: ./src/webgl/adddata/index.js + 5 modules
|
|
36617
|
+
var adddata = __webpack_require__(5110);
|
|
36484
36618
|
// EXTERNAL MODULE: ./src/webgl/particleeffect/index.js + 4 modules
|
|
36485
36619
|
var particleeffect = __webpack_require__(828);
|
|
36486
36620
|
// EXTERNAL MODULE: ./src/webgl/weathereffect/index.js + 4 modules
|
|
@@ -37170,10 +37304,6 @@ class DrawManager {
|
|
|
37170
37304
|
delete style.billboard;
|
|
37171
37305
|
}
|
|
37172
37306
|
|
|
37173
|
-
if (geojsonData.type === "Feature") {
|
|
37174
|
-
geojsonData.properties = geojsonData.properties || {};
|
|
37175
|
-
}
|
|
37176
|
-
|
|
37177
37307
|
this._viewer.scene.globe.depthTestAgainstTerrain = false;
|
|
37178
37308
|
|
|
37179
37309
|
let geojsonDs = this._viewer.dataSources.getByName(idCustom);
|
|
@@ -37208,8 +37338,11 @@ class DrawManager {
|
|
|
37208
37338
|
}
|
|
37209
37339
|
|
|
37210
37340
|
if (isLocation) {
|
|
37341
|
+
let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
|
|
37342
|
+
|
|
37211
37343
|
that._viewer.flyTo(ds, {
|
|
37212
|
-
duration: 1.5
|
|
37344
|
+
duration: 1.5,
|
|
37345
|
+
offset
|
|
37213
37346
|
});
|
|
37214
37347
|
}
|
|
37215
37348
|
|
|
@@ -38074,6 +38207,10 @@ class LayerManager {
|
|
|
38074
38207
|
}
|
|
38075
38208
|
} else if (layerData.sourceType === "kqimageserver") {
|
|
38076
38209
|
type = "kqgisimageserver";
|
|
38210
|
+
|
|
38211
|
+
if (layerData.renderType === "weather") {
|
|
38212
|
+
type = "kqgisweatherserver";
|
|
38213
|
+
}
|
|
38077
38214
|
} else if (layerData.sourceType === "kq3dserver") {
|
|
38078
38215
|
type = "kqgis3dserver";
|
|
38079
38216
|
} else if (layerData.sourceType === "mvt") {
|
|
@@ -38210,7 +38347,7 @@ class LayerManager {
|
|
|
38210
38347
|
|
|
38211
38348
|
case "s3m":
|
|
38212
38349
|
layerData.visible = isAdd;
|
|
38213
|
-
layerData.serverType = "
|
|
38350
|
+
layerData.serverType = "3dtiles";
|
|
38214
38351
|
|
|
38215
38352
|
if (isAdd) {
|
|
38216
38353
|
layer = this._viewer.scene.primitives.add(new Cesium.Kq3dS3MTilesLayer({
|
|
@@ -38227,7 +38364,8 @@ class LayerManager {
|
|
|
38227
38364
|
case "kqgis3dserver":
|
|
38228
38365
|
var that = this;
|
|
38229
38366
|
layerData.visible = isAdd;
|
|
38230
|
-
promise = this._viewer.addKq3dServerLayerGroupExt(url
|
|
38367
|
+
promise = this._viewer.addKq3dServerLayerGroupExt(url, { ...params
|
|
38368
|
+
}).then(group => {
|
|
38231
38369
|
var layers = group._addedLayers || group._layers;
|
|
38232
38370
|
|
|
38233
38371
|
if (layers && layers.length > 0) {
|
|
@@ -38255,6 +38393,9 @@ class LayerManager {
|
|
|
38255
38393
|
serverType = "datasource";
|
|
38256
38394
|
layer.show = isAdd;
|
|
38257
38395
|
layerData.shapeType = that.getShapeType(layer);
|
|
38396
|
+
} else if (layer instanceof Cesium.Kq3dS3MTilesLayer) {
|
|
38397
|
+
serverType = "3dtiles";
|
|
38398
|
+
layer.show = isAdd;
|
|
38258
38399
|
}
|
|
38259
38400
|
|
|
38260
38401
|
layer._guid = layerData.guid;
|
|
@@ -38264,6 +38405,7 @@ class LayerManager {
|
|
|
38264
38405
|
break;
|
|
38265
38406
|
|
|
38266
38407
|
case "kqgisimageserver":
|
|
38408
|
+
//kqgis影像服务-栅格数据
|
|
38267
38409
|
layerData.visible = isAdd;
|
|
38268
38410
|
layerData.serverType = "imagerylayer";
|
|
38269
38411
|
layerData.type = "Image"; // 图层树显示图标使用
|
|
@@ -38280,6 +38422,26 @@ class LayerManager {
|
|
|
38280
38422
|
|
|
38281
38423
|
break;
|
|
38282
38424
|
|
|
38425
|
+
case "kqgisweatherserver":
|
|
38426
|
+
//kqgis影像服务-气象数据
|
|
38427
|
+
layerData.visible = isAdd;
|
|
38428
|
+
layerData.serverType = "imagerylayer";
|
|
38429
|
+
|
|
38430
|
+
if (isAdd) {
|
|
38431
|
+
if (url.indexOf("/image/wmts") < 0) {
|
|
38432
|
+
url = url.replace("/image", "/image/wmts");
|
|
38433
|
+
}
|
|
38434
|
+
|
|
38435
|
+
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dContourImageryProviderExt({
|
|
38436
|
+
name: name,
|
|
38437
|
+
url: url,
|
|
38438
|
+
...params
|
|
38439
|
+
}));
|
|
38440
|
+
layer._guid = layerData.guid;
|
|
38441
|
+
}
|
|
38442
|
+
|
|
38443
|
+
break;
|
|
38444
|
+
|
|
38283
38445
|
case "kqgismapserver":
|
|
38284
38446
|
if (layerData.sourceLayers) {
|
|
38285
38447
|
var layerInfo = layerData.sourceLayers.find(item => {
|
|
@@ -38322,6 +38484,8 @@ class LayerManager {
|
|
|
38322
38484
|
name: name,
|
|
38323
38485
|
url: url,
|
|
38324
38486
|
layers: layerData.id + "",
|
|
38487
|
+
usePreCachedTilesIfAvailable: false,
|
|
38488
|
+
//使用export请求可支持自定义比例尺
|
|
38325
38489
|
...params
|
|
38326
38490
|
}));
|
|
38327
38491
|
layer._guid = layerData.guid;
|
|
@@ -38369,7 +38533,8 @@ class LayerManager {
|
|
|
38369
38533
|
|
|
38370
38534
|
case "wms":
|
|
38371
38535
|
//配置id时只能是单个图层
|
|
38372
|
-
if (layerData.rect84) {
|
|
38536
|
+
if (layerData.rect84 && layerData.sourceType !== "service" && layerData.dataSourceType !== "service") {
|
|
38537
|
+
// 大数据wms服务使用
|
|
38373
38538
|
layerData.visible = isAdd;
|
|
38374
38539
|
layerData.serverType = "imagerylayer";
|
|
38375
38540
|
|
|
@@ -38409,7 +38574,9 @@ class LayerManager {
|
|
|
38409
38574
|
layerData.serverType = "imagerylayer";
|
|
38410
38575
|
|
|
38411
38576
|
if (isAdd) {
|
|
38412
|
-
|
|
38577
|
+
if (params.url) url = params.url; // 设置多子域时使用
|
|
38578
|
+
|
|
38579
|
+
promise = this._viewer.addWMSLayerGroup(url, { ...params,
|
|
38413
38580
|
layers: layerData.id + ""
|
|
38414
38581
|
}).then(group => {
|
|
38415
38582
|
var layers = group._addedLayers || group._layers;
|
|
@@ -38447,7 +38614,9 @@ class LayerManager {
|
|
|
38447
38614
|
layerData.serverType = "imagerylayer"; //配置id时只能是单个图层
|
|
38448
38615
|
|
|
38449
38616
|
if (isAdd) {
|
|
38450
|
-
|
|
38617
|
+
if (params.url) url = params.url; // 设置多子域时使用
|
|
38618
|
+
|
|
38619
|
+
promise = this._viewer.addWMTSLayerGroup(url, { ...params,
|
|
38451
38620
|
layers: layerData.id + ""
|
|
38452
38621
|
}).then(group => {
|
|
38453
38622
|
var layers = group._addedLayers || group._layers;
|