@kq_npm/client3d_webgl_vue 4.0.8-beta → 4.1.0-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 +277 -86
- package/index.js +548 -132
- package/light/index.js +1 -1
- package/limitheightanalysis/index.js +3 -1
- package/package.json +1 -1
- package/scenceview/index.js +557 -138
- package/sceneset/index.js +393 -7
- package/videofusion/index.js +49 -15
- package/videoproject/index.js +50 -21
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);
|
|
258
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);
|
|
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 || "";
|
|
@@ -652,6 +775,7 @@ class AddDataViewModel {
|
|
|
652
775
|
break;
|
|
653
776
|
|
|
654
777
|
case "kqgis3dserver":
|
|
778
|
+
// KQGIS 三维服务
|
|
655
779
|
var geojsonStyle0 = { ...this._geojsonStyle
|
|
656
780
|
};
|
|
657
781
|
|
|
@@ -775,7 +899,7 @@ class AddDataViewModel {
|
|
|
775
899
|
children: [],
|
|
776
900
|
lsType: "ls"
|
|
777
901
|
};
|
|
778
|
-
const service = new KqGIS.Map.GetMapImageInfoService(url);
|
|
902
|
+
const service = new window.KqGIS.Map.GetMapImageInfoService(url);
|
|
779
903
|
service.init(result => {
|
|
780
904
|
if (result.resultcode === "success") {
|
|
781
905
|
let list = service.collectionInfoList;
|
|
@@ -809,31 +933,24 @@ class AddDataViewModel {
|
|
|
809
933
|
} else {
|
|
810
934
|
console.log("解析服务原始信息失败.");
|
|
811
935
|
}
|
|
812
|
-
});
|
|
813
|
-
|
|
814
|
-
// name: name,
|
|
815
|
-
// url: url,
|
|
816
|
-
// layerName: name
|
|
817
|
-
// })
|
|
818
|
-
// );
|
|
819
|
-
// this.flyToLayer(layer);
|
|
820
|
-
// node = {
|
|
821
|
-
// guid: layer.guid,
|
|
822
|
-
// name: name,
|
|
823
|
-
// visible: true,
|
|
824
|
-
// serverType: "imagerylayer",
|
|
825
|
-
// lsType: "ls",
|
|
826
|
-
// url: url,
|
|
827
|
-
// addType: type,
|
|
828
|
-
// layerName: name,
|
|
829
|
-
// type: "Image" // 图层树显示图标使用
|
|
830
|
-
// };
|
|
831
|
-
// this._layerManager.addTempLayerNode(node);
|
|
832
|
-
// cb && cb(node);
|
|
936
|
+
});
|
|
937
|
+
break;
|
|
833
938
|
|
|
939
|
+
case "kqgisdataserver":
|
|
940
|
+
// KQGIS 数据服务
|
|
941
|
+
// addDataServer(url, name);
|
|
834
942
|
break;
|
|
835
943
|
|
|
836
944
|
case "kqgismapserver":
|
|
945
|
+
// KQGIS 地图服务
|
|
946
|
+
if (loadCustom) {
|
|
947
|
+
loadCustom({
|
|
948
|
+
name,
|
|
949
|
+
url
|
|
950
|
+
});
|
|
951
|
+
return;
|
|
952
|
+
}
|
|
953
|
+
|
|
837
954
|
node = {
|
|
838
955
|
guid: Cesium.createGuid(),
|
|
839
956
|
name: name,
|
|
@@ -857,7 +974,7 @@ class AddDataViewModel {
|
|
|
857
974
|
if (mapInfo.resultcode === "error") {
|
|
858
975
|
(0,message/* default */.Z)({
|
|
859
976
|
message: mapInfo.message,
|
|
860
|
-
type: "
|
|
977
|
+
type: "warning"
|
|
861
978
|
});
|
|
862
979
|
return;
|
|
863
980
|
}
|
|
@@ -910,6 +1027,7 @@ class AddDataViewModel {
|
|
|
910
1027
|
break;
|
|
911
1028
|
|
|
912
1029
|
case "arcgismapserver":
|
|
1030
|
+
// ARCGIS 地图服务
|
|
913
1031
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dArcGISMapServerImageryProvider({
|
|
914
1032
|
name: name,
|
|
915
1033
|
url: url,
|
|
@@ -933,6 +1051,7 @@ class AddDataViewModel {
|
|
|
933
1051
|
break;
|
|
934
1052
|
|
|
935
1053
|
case "mvt":
|
|
1054
|
+
// 矢量瓦片
|
|
936
1055
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dMvtImageryProviderExt({
|
|
937
1056
|
name: name,
|
|
938
1057
|
style: url
|
|
@@ -956,6 +1075,7 @@ class AddDataViewModel {
|
|
|
956
1075
|
break;
|
|
957
1076
|
|
|
958
1077
|
case "kqgisdataflowserver":
|
|
1078
|
+
// KQGIS 数据流服务
|
|
959
1079
|
let guid = Cesium.createGuid();
|
|
960
1080
|
layer = new Cesium.Kq3dDataFlowLayer(this._viewer, {
|
|
961
1081
|
url: url,
|
|
@@ -1023,8 +1143,10 @@ class AddDataViewModel {
|
|
|
1023
1143
|
break;
|
|
1024
1144
|
|
|
1025
1145
|
case "wmts":
|
|
1026
|
-
case "kqgistileserver":
|
|
1146
|
+
case "kqgistileserver": // KQGIS 瓦片服务
|
|
1147
|
+
|
|
1027
1148
|
case "kqgisaggregationserver":
|
|
1149
|
+
// KQGIS 聚合服务
|
|
1028
1150
|
if (type === "kqgistileserver") {
|
|
1029
1151
|
if (url.indexOf("?") > 0) {
|
|
1030
1152
|
url = url.replace("?", "/wmts?");
|
|
@@ -1088,8 +1210,7 @@ class AddDataViewModel {
|
|
|
1088
1210
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
1089
1211
|
|
|
1090
1212
|
|
|
1091
|
-
that.
|
|
1092
|
-
|
|
1213
|
+
that.flyToLayer(ds);
|
|
1093
1214
|
node = {
|
|
1094
1215
|
guid: ds.guid,
|
|
1095
1216
|
name: name,
|
|
@@ -1123,8 +1244,7 @@ class AddDataViewModel {
|
|
|
1123
1244
|
this._viewer.dataSources.add(ds); // ds.autoAvoid(this._viewer);
|
|
1124
1245
|
|
|
1125
1246
|
|
|
1126
|
-
|
|
1127
|
-
|
|
1247
|
+
that.flyToLayer(ds);
|
|
1128
1248
|
node = {
|
|
1129
1249
|
guid: ds.guid,
|
|
1130
1250
|
name: name,
|
|
@@ -1160,8 +1280,7 @@ class AddDataViewModel {
|
|
|
1160
1280
|
|
|
1161
1281
|
this._viewer.dataSources.add(ds);
|
|
1162
1282
|
|
|
1163
|
-
|
|
1164
|
-
|
|
1283
|
+
that.flyToLayer(ds);
|
|
1165
1284
|
node = {
|
|
1166
1285
|
guid: ds.guid,
|
|
1167
1286
|
name: name,
|
|
@@ -1188,8 +1307,7 @@ class AddDataViewModel {
|
|
|
1188
1307
|
ds.load(url).then(ds => {
|
|
1189
1308
|
this._viewer.dataSources.add(ds);
|
|
1190
1309
|
|
|
1191
|
-
|
|
1192
|
-
|
|
1310
|
+
that.flyToLayer(ds);
|
|
1193
1311
|
node = {
|
|
1194
1312
|
guid: ds.guid,
|
|
1195
1313
|
name: name,
|
|
@@ -1211,8 +1329,7 @@ class AddDataViewModel {
|
|
|
1211
1329
|
ds.load(url).then(ds => {
|
|
1212
1330
|
this._viewer.dataSources.add(ds);
|
|
1213
1331
|
|
|
1214
|
-
|
|
1215
|
-
|
|
1332
|
+
that.flyToLayer(ds);
|
|
1216
1333
|
node = {
|
|
1217
1334
|
guid: ds.guid,
|
|
1218
1335
|
name: name,
|
|
@@ -1256,6 +1373,68 @@ class AddDataViewModel {
|
|
|
1256
1373
|
default:
|
|
1257
1374
|
break;
|
|
1258
1375
|
}
|
|
1376
|
+
} // 添加数据服务
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
addDataServer(url, name) {
|
|
1380
|
+
window.KqGIS.datasourceService(url).getDatasources(async e => {
|
|
1381
|
+
if (e.result.resultcode === 'success') {
|
|
1382
|
+
let datasourceList = e.result.result.datasources;
|
|
1383
|
+
|
|
1384
|
+
if (datasourceList) {
|
|
1385
|
+
for (let i = 0; i < datasourceList.length; i++) {
|
|
1386
|
+
await _getDatasetList(url, datasourceList[i].datasourceName);
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
} else {
|
|
1390
|
+
console.error(e);
|
|
1391
|
+
}
|
|
1392
|
+
}, err => {
|
|
1393
|
+
console.error(err);
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
_getDatasetList(url, dataSourceName) {
|
|
1398
|
+
let params = new window.KqGIS.Data.GetDatasetsInfoParams({
|
|
1399
|
+
datasourceName: dataSourceName
|
|
1400
|
+
});
|
|
1401
|
+
return new Promise((resolve, reject) => {
|
|
1402
|
+
window.KqGIS.datasetService(url).getDatasets(params, e => {
|
|
1403
|
+
if (e.result.resultcode === 'success') {
|
|
1404
|
+
resolve(e.result.result.datasets);
|
|
1405
|
+
} else {
|
|
1406
|
+
console.error(e);
|
|
1407
|
+
reject([]);
|
|
1408
|
+
}
|
|
1409
|
+
}, err => {
|
|
1410
|
+
console.error(err);
|
|
1411
|
+
reject([]);
|
|
1412
|
+
});
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
_getFeatureList(url, datasourceName, datasetName) {
|
|
1417
|
+
let params = new window.KqGIS.Data.GetFeaturesParamsBase({
|
|
1418
|
+
datasourceName: datasourceName,
|
|
1419
|
+
datasetName: datasetName,
|
|
1420
|
+
hasGeometry: true,
|
|
1421
|
+
returnContent: true,
|
|
1422
|
+
outSRS: 'EPSG:4326'
|
|
1423
|
+
});
|
|
1424
|
+
return new Promise((resolve, reject) => {
|
|
1425
|
+
window.KqGIS.dataFeatureService(url).getFeatureList(params, e => {
|
|
1426
|
+
if (e.result.resultcode === 'success') {
|
|
1427
|
+
e.result.result['datasetName'] = datasetName;
|
|
1428
|
+
resolve(e.result.result);
|
|
1429
|
+
} else {
|
|
1430
|
+
console.error(e);
|
|
1431
|
+
reject(null);
|
|
1432
|
+
}
|
|
1433
|
+
}, err => {
|
|
1434
|
+
console.error(err);
|
|
1435
|
+
resolve(null);
|
|
1436
|
+
});
|
|
1437
|
+
});
|
|
1259
1438
|
}
|
|
1260
1439
|
|
|
1261
1440
|
flyToLayer(layer) {
|
|
@@ -1275,7 +1454,7 @@ class AddDataViewModel {
|
|
|
1275
1454
|
destination: tileset.rectangle
|
|
1276
1455
|
});
|
|
1277
1456
|
});
|
|
1278
|
-
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource) {
|
|
1457
|
+
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource || layer instanceof Cesium.Kq3dEsriGeoJsonDataSource) {
|
|
1279
1458
|
let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
|
|
1280
1459
|
viewer.flyTo(layer, {
|
|
1281
1460
|
offset
|
|
@@ -1355,7 +1534,6 @@ const _hoisted_12 = {
|
|
|
1355
1534
|
|
|
1356
1535
|
|
|
1357
1536
|
|
|
1358
|
-
//accept=".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt"
|
|
1359
1537
|
|
|
1360
1538
|
const __default__ = {
|
|
1361
1539
|
name: "Kq3dAddData"
|
|
@@ -1392,6 +1570,11 @@ const __default__ = {
|
|
|
1392
1570
|
type: Function,
|
|
1393
1571
|
default: null
|
|
1394
1572
|
},
|
|
1573
|
+
// 自定义加载函数, 只对KQGIS REST服务生效, earthstudio使用
|
|
1574
|
+
loadCustom: {
|
|
1575
|
+
type: Function,
|
|
1576
|
+
default: null
|
|
1577
|
+
},
|
|
1395
1578
|
// 是否生成HeaderTemp
|
|
1396
1579
|
showHeaderTemp: {
|
|
1397
1580
|
type: Boolean,
|
|
@@ -1426,6 +1609,7 @@ const __default__ = {
|
|
|
1426
1609
|
expose
|
|
1427
1610
|
}) {
|
|
1428
1611
|
const props = __props;
|
|
1612
|
+
let accept = ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt";
|
|
1429
1613
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
1430
1614
|
let selectTypeIndex = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0); //URL服务支持的数据源类型
|
|
1431
1615
|
|
|
@@ -1484,104 +1668,111 @@ const __default__ = {
|
|
|
1484
1668
|
return [// {
|
|
1485
1669
|
// type: 'kq3dimageryfile',
|
|
1486
1670
|
// name: language.value.ImagertyTileFile,
|
|
1487
|
-
// namePlaceholder: language.value.
|
|
1671
|
+
// namePlaceholder: language.value.optional,
|
|
1488
1672
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
1489
1673
|
// description: language.value.imagertyTileFiledescription
|
|
1490
1674
|
// }, {
|
|
1491
1675
|
// type: 'obterrain',
|
|
1492
1676
|
// name: language.value.ObTerrainTileFile,
|
|
1493
|
-
// namePlaceholder: language.value.
|
|
1677
|
+
// namePlaceholder: language.value.optional,
|
|
1494
1678
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
1495
1679
|
// description: language.value.imagertyObTerrainTileFiledescription
|
|
1496
1680
|
// },
|
|
1497
1681
|
{
|
|
1498
1682
|
type: "kqgis3dserver",
|
|
1499
1683
|
name: language.value.KQGIS3DServer,
|
|
1500
|
-
namePlaceholder: language.value.
|
|
1684
|
+
namePlaceholder: language.value.optional,
|
|
1501
1685
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/realspace",
|
|
1502
1686
|
description: language.value.imagerty3DServerdescription
|
|
1503
1687
|
}, {
|
|
1504
1688
|
type: "kqgismapserver",
|
|
1505
1689
|
name: language.value.KQGISMapServer,
|
|
1506
|
-
namePlaceholder: language.value.
|
|
1690
|
+
namePlaceholder: language.value.optional,
|
|
1507
1691
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map",
|
|
1508
1692
|
description: language.value.imagertyMapServerdescription
|
|
1509
|
-
}, {
|
|
1693
|
+
}, // {
|
|
1694
|
+
// type: "kqgisdataserver",
|
|
1695
|
+
// name: language.value.KQGISDataServer,
|
|
1696
|
+
// namePlaceholder: language.value.optional,
|
|
1697
|
+
// urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/data",
|
|
1698
|
+
// description: language.value.imagertyDataServerdescription
|
|
1699
|
+
// },
|
|
1700
|
+
{
|
|
1510
1701
|
type: "kqgisimageserver",
|
|
1511
1702
|
name: language.value.KQGISImageServer,
|
|
1512
|
-
namePlaceholder: language.value.
|
|
1703
|
+
namePlaceholder: language.value.optional,
|
|
1513
1704
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/image",
|
|
1514
1705
|
description: language.value.imagertyImageServerdescription
|
|
1515
1706
|
}, {
|
|
1516
1707
|
type: "kqgisdataflowserver",
|
|
1517
1708
|
name: language.value.KQGISDataflowServer,
|
|
1518
|
-
namePlaceholder: language.value.
|
|
1709
|
+
namePlaceholder: language.value.optional,
|
|
1519
1710
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/streaming/rest/services/<servername>/dataflow",
|
|
1520
1711
|
description: language.value.imagertyDataflowServerdescription
|
|
1521
1712
|
}, {
|
|
1522
1713
|
type: "kqgistileserver",
|
|
1523
1714
|
name: language.value.KQGISTileServer,
|
|
1524
|
-
namePlaceholder: language.value.
|
|
1715
|
+
namePlaceholder: language.value.optional,
|
|
1525
1716
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
|
|
1526
1717
|
description: language.value.imagertyTileServerdescription
|
|
1527
1718
|
}, {
|
|
1528
1719
|
type: "kqgisaggregationserver",
|
|
1529
1720
|
name: language.value.KQGISAggregationServer,
|
|
1530
|
-
namePlaceholder: language.value.
|
|
1721
|
+
namePlaceholder: language.value.optional,
|
|
1531
1722
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
1532
1723
|
description: language.value.imagertyAggregationServerdescription
|
|
1533
1724
|
}, {
|
|
1534
1725
|
type: "s3m",
|
|
1535
1726
|
name: language.value.S3M,
|
|
1536
|
-
namePlaceholder: language.value.
|
|
1727
|
+
namePlaceholder: language.value.optional,
|
|
1537
1728
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/realspace/datas/xxx/config",
|
|
1538
1729
|
description: language.value.imagertyS3Mdescription
|
|
1539
1730
|
}, {
|
|
1540
1731
|
type: "arcgismapserver",
|
|
1541
1732
|
name: language.value.ArcGISMapServer,
|
|
1542
|
-
namePlaceholder: language.value.
|
|
1733
|
+
namePlaceholder: language.value.optional,
|
|
1543
1734
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/ArcGIS/rest/services/<servername>/MapServer",
|
|
1544
1735
|
description: language.value.imagertyArcGISMapServerdescription
|
|
1545
1736
|
}, {
|
|
1546
1737
|
type: "wms",
|
|
1547
1738
|
name: language.value.OGCWMS,
|
|
1548
|
-
namePlaceholder: language.value.
|
|
1739
|
+
namePlaceholder: language.value.optional,
|
|
1549
1740
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wms",
|
|
1550
1741
|
description: language.value.imagertyOGCWMSdescription
|
|
1551
1742
|
}, {
|
|
1552
1743
|
type: "wmts",
|
|
1553
1744
|
name: language.value.OGCWMTS,
|
|
1554
|
-
namePlaceholder: language.value.
|
|
1745
|
+
namePlaceholder: language.value.optional,
|
|
1555
1746
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
1556
1747
|
description: language.value.imagertyOGCWMTSdescription
|
|
1557
1748
|
}, {
|
|
1558
1749
|
type: "3dtiles",
|
|
1559
1750
|
name: language.value.Cesium3DTilesFile,
|
|
1560
|
-
namePlaceholder: language.value.
|
|
1751
|
+
namePlaceholder: language.value.optional,
|
|
1561
1752
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/tileset.json",
|
|
1562
1753
|
description: language.value.imagerty3DTilesFiledescription
|
|
1563
1754
|
}, {
|
|
1564
1755
|
type: "stkterrain",
|
|
1565
1756
|
name: language.value.StkTerrainTileFile,
|
|
1566
|
-
namePlaceholder: language.value.
|
|
1757
|
+
namePlaceholder: language.value.optional,
|
|
1567
1758
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/<foldername>/",
|
|
1568
1759
|
description: language.value.imagertyStkTerrainTileFiledescription
|
|
1569
1760
|
}, {
|
|
1570
1761
|
type: "geojson",
|
|
1571
1762
|
name: language.value.GeoJson,
|
|
1572
|
-
namePlaceholder: language.value.
|
|
1763
|
+
namePlaceholder: language.value.optional,
|
|
1573
1764
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
|
|
1574
1765
|
description: language.value.imagertyGeoJsondescription
|
|
1575
1766
|
}, {
|
|
1576
1767
|
type: "arcjson",
|
|
1577
1768
|
name: language.value.ArcJson,
|
|
1578
|
-
namePlaceholder: language.value.
|
|
1769
|
+
namePlaceholder: language.value.optional,
|
|
1579
1770
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.json",
|
|
1580
1771
|
description: language.value.imagertyArcJsondescription
|
|
1581
1772
|
}, {
|
|
1582
1773
|
type: "mvt",
|
|
1583
1774
|
name: language.value.MVT,
|
|
1584
|
-
namePlaceholder: language.value.
|
|
1775
|
+
namePlaceholder: language.value.optional,
|
|
1585
1776
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
|
|
1586
1777
|
description: language.value.imagertyMVTdescription
|
|
1587
1778
|
}
|
|
@@ -1594,13 +1785,13 @@ const __default__ = {
|
|
|
1594
1785
|
}, {
|
|
1595
1786
|
type: 'kml',
|
|
1596
1787
|
name: language.value.KML,
|
|
1597
|
-
namePlaceholder: language.value.
|
|
1788
|
+
namePlaceholder: language.value.optional,
|
|
1598
1789
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.kml',
|
|
1599
1790
|
description: language.value.imagertyKMLdescription
|
|
1600
1791
|
}, {
|
|
1601
1792
|
type: 'czml',
|
|
1602
1793
|
name: language.value.CZML,
|
|
1603
|
-
namePlaceholder: language.value.
|
|
1794
|
+
namePlaceholder: language.value.optional,
|
|
1604
1795
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.czml',
|
|
1605
1796
|
description: language.value.imagertyCZMLdescription
|
|
1606
1797
|
}*/
|
|
@@ -1688,7 +1879,7 @@ const __default__ = {
|
|
|
1688
1879
|
type: dataSourceType.value.type,
|
|
1689
1880
|
url: dataSource.url,
|
|
1690
1881
|
name: dataSource.name
|
|
1691
|
-
}, props.loadCallback);
|
|
1882
|
+
}, props.loadCallback, props.loadCustom);
|
|
1692
1883
|
} // 重置
|
|
1693
1884
|
|
|
1694
1885
|
|
|
@@ -1771,7 +1962,7 @@ const __default__ = {
|
|
|
1771
1962
|
"auto-upload": false,
|
|
1772
1963
|
"file-list": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList),
|
|
1773
1964
|
"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),
|
|
1774
|
-
accept:
|
|
1965
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(accept),
|
|
1775
1966
|
"on-change": changeFile,
|
|
1776
1967
|
ref_key: "upload_ref",
|
|
1777
1968
|
ref: upload_ref
|
|
@@ -1784,7 +1975,7 @@ const __default__ = {
|
|
|
1784
1975
|
|
|
1785
1976
|
}, 8
|
|
1786
1977
|
/* PROPS */
|
|
1787
|
-
, ["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) => {
|
|
1978
|
+
, ["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) => {
|
|
1788
1979
|
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, {
|
|
1789
1980
|
key: i,
|
|
1790
1981
|
gutter: 20
|
|
@@ -1839,7 +2030,7 @@ const __default__ = {
|
|
|
1839
2030
|
action: "",
|
|
1840
2031
|
"show-file-list": false,
|
|
1841
2032
|
"auto-upload": false,
|
|
1842
|
-
accept:
|
|
2033
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(accept),
|
|
1843
2034
|
ref_key: "upload_btn_ref",
|
|
1844
2035
|
ref: upload_btn_ref,
|
|
1845
2036
|
class: "kq3d-add-data-footer-upload",
|
|
@@ -1861,9 +2052,9 @@ const __default__ = {
|
|
|
1861
2052
|
_: 1
|
|
1862
2053
|
/* STABLE */
|
|
1863
2054
|
|
|
1864
|
-
},
|
|
1865
|
-
/*
|
|
1866
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
2055
|
+
}, 8
|
|
2056
|
+
/* PROPS */
|
|
2057
|
+
, ["accept"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1867
2058
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => removeFiles(), ["stop"])),
|
|
1868
2059
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearFiles,
|
|
1869
2060
|
type: "primary"
|
|
@@ -1965,7 +2156,7 @@ const __default__ = {
|
|
|
1965
2156
|
|
|
1966
2157
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1967
2158
|
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, {
|
|
1968
|
-
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).
|
|
2159
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).nodeName
|
|
1969
2160
|
}, {
|
|
1970
2161
|
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, {
|
|
1971
2162
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSource).name,
|
|
@@ -15266,7 +15457,7 @@ const __default__ = {
|
|
|
15266
15457
|
class: "rowclass"
|
|
15267
15458
|
}, {
|
|
15268
15459
|
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, {
|
|
15269
|
-
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).
|
|
15460
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).lightColor
|
|
15270
15461
|
}, {
|
|
15271
15462
|
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_row, {
|
|
15272
15463
|
style: {
|
|
@@ -15755,7 +15946,9 @@ class LimitHeightAnalysisViewModel {
|
|
|
15755
15946
|
|
|
15756
15947
|
|
|
15757
15948
|
destroy() {
|
|
15758
|
-
this.
|
|
15949
|
+
this.clear();
|
|
15950
|
+
this._drawFinishedEventListener && this._drawFinishedEventListener();
|
|
15951
|
+
this._drawFinishedEventListener = null;
|
|
15759
15952
|
}
|
|
15760
15953
|
|
|
15761
15954
|
}
|
|
@@ -23446,7 +23639,7 @@ ScanEffect.install = (Vue, opts) => {
|
|
|
23446
23639
|
|
|
23447
23640
|
/***/ }),
|
|
23448
23641
|
|
|
23449
|
-
/***/
|
|
23642
|
+
/***/ 8876:
|
|
23450
23643
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
23451
23644
|
|
|
23452
23645
|
|
|
@@ -23517,6 +23710,7 @@ class SceneSetViewModel {
|
|
|
23517
23710
|
|
|
23518
23711
|
this._viewer = viewer;
|
|
23519
23712
|
this._defaultSkyBox = viewer.scene.skyBox;
|
|
23713
|
+
this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
|
|
23520
23714
|
} // 获取场景内容
|
|
23521
23715
|
|
|
23522
23716
|
|
|
@@ -23872,8 +24066,6 @@ class SceneSetViewModel {
|
|
|
23872
24066
|
|
|
23873
24067
|
|
|
23874
24068
|
showGrid(type) {
|
|
23875
|
-
console.log(this._viewer.scene.kq3dUndergroundManager);
|
|
23876
|
-
|
|
23877
24069
|
if (this._gridLayer) {
|
|
23878
24070
|
this._viewer.imageryLayers.remove(this._gridLayer);
|
|
23879
24071
|
|
|
@@ -23897,10 +24089,6 @@ class SceneSetViewModel {
|
|
|
23897
24089
|
|
|
23898
24090
|
|
|
23899
24091
|
openUnderground(isOpen) {
|
|
23900
|
-
if (!this._undergroundManager) {
|
|
23901
|
-
this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
|
|
23902
|
-
}
|
|
23903
|
-
|
|
23904
24092
|
this._undergroundManager.undergroundEnabled = isOpen;
|
|
23905
24093
|
this._undergroundManager.transparentEnabled = isOpen;
|
|
23906
24094
|
} // 设置地表透明度
|
|
@@ -25380,10 +25568,33 @@ const __default__ = {
|
|
|
25380
25568
|
}));
|
|
25381
25569
|
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=script&setup=true&lang=js
|
|
25382
25570
|
|
|
25571
|
+
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
25572
|
+
var injectStylesIntoStyleTag = __webpack_require__(3379);
|
|
25573
|
+
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
25574
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
|
|
25575
|
+
var SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss = __webpack_require__(3825);
|
|
25576
|
+
;// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
|
|
25577
|
+
|
|
25578
|
+
|
|
25579
|
+
|
|
25580
|
+
var options = {};
|
|
25581
|
+
|
|
25582
|
+
options.insert = "head";
|
|
25583
|
+
options.singleton = false;
|
|
25584
|
+
|
|
25585
|
+
var update = injectStylesIntoStyleTag_default()(SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss/* default */.Z, options);
|
|
25586
|
+
|
|
25587
|
+
|
|
25588
|
+
|
|
25589
|
+
/* harmony default export */ var sceneset_SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss = (SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss/* default.locals */.Z.locals || {});
|
|
25590
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
|
|
25591
|
+
|
|
25383
25592
|
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue
|
|
25384
25593
|
|
|
25385
25594
|
|
|
25386
25595
|
|
|
25596
|
+
;
|
|
25597
|
+
|
|
25387
25598
|
const __exports__ = SceneSetvue_type_script_setup_true_lang_js;
|
|
25388
25599
|
|
|
25389
25600
|
/* harmony default export */ var SceneSet = (__exports__);
|
|
@@ -31460,11 +31671,20 @@ class VideoFusiontViewModel {
|
|
|
31460
31671
|
|
|
31461
31672
|
|
|
31462
31673
|
fusion() {
|
|
31674
|
+
let type = 3;
|
|
31675
|
+
|
|
31676
|
+
if (this._options.videoPath.indexOf('.m3u8') > 0) {
|
|
31677
|
+
type = 5;
|
|
31678
|
+
}
|
|
31679
|
+
|
|
31463
31680
|
this.clear();
|
|
31464
31681
|
let cartographic = Cesium.Cartographic.fromCartesian(this._viewer.camera.positionWC);
|
|
31682
|
+
this._options.heading = Cesium.Math.toDegrees(this._viewer.camera.heading);
|
|
31683
|
+
this._options.pitch = Cesium.Math.toDegrees(this._viewer.camera.pitch);
|
|
31684
|
+
this._options.roll = Cesium.Math.toDegrees(this._viewer.camera.roll);
|
|
31465
31685
|
var param = {
|
|
31466
31686
|
url: this._options.videoPath,
|
|
31467
|
-
type:
|
|
31687
|
+
type: type,
|
|
31468
31688
|
position: {
|
|
31469
31689
|
x: Cesium.Math.toDegrees(cartographic.longitude),
|
|
31470
31690
|
y: Cesium.Math.toDegrees(cartographic.latitude),
|
|
@@ -31494,6 +31714,15 @@ class VideoFusiontViewModel {
|
|
|
31494
31714
|
if (this._videoFusion) {
|
|
31495
31715
|
return this._videoFusion.param.position;
|
|
31496
31716
|
}
|
|
31717
|
+
} // 获取HeadingPitchRoll
|
|
31718
|
+
|
|
31719
|
+
|
|
31720
|
+
getHeadingPitchRoll() {
|
|
31721
|
+
return {
|
|
31722
|
+
heading: Math.round(this._options.heading),
|
|
31723
|
+
pitch: Math.round(this._options.pitch),
|
|
31724
|
+
roll: Math.round(this._options.roll)
|
|
31725
|
+
};
|
|
31497
31726
|
} //飞入
|
|
31498
31727
|
|
|
31499
31728
|
|
|
@@ -31719,9 +31948,6 @@ const __default__ = {
|
|
|
31719
31948
|
expose
|
|
31720
31949
|
}) {
|
|
31721
31950
|
const props = __props;
|
|
31722
|
-
const {
|
|
31723
|
-
proxy
|
|
31724
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
31725
31951
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
31726
31952
|
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 获取组件传参
|
|
31727
31953
|
|
|
@@ -31740,15 +31966,17 @@ const __default__ = {
|
|
|
31740
31966
|
videoPath: props.settingParams && props.settingParams.videoPath || "",
|
|
31741
31967
|
fov: props.settingParams && props.settingParams.fov || 40,
|
|
31742
31968
|
far: props.settingParams && props.settingParams.far || 50,
|
|
31743
|
-
heading:
|
|
31744
|
-
pitch:
|
|
31745
|
-
roll:
|
|
31969
|
+
heading: 0,
|
|
31970
|
+
pitch: 0,
|
|
31971
|
+
roll: 0,
|
|
31746
31972
|
alpha: props.settingParams && props.settingParams.alpha || 1.0,
|
|
31747
31973
|
eclosion: props.settingParams && props.settingParams.eclosion || 0.5,
|
|
31748
31974
|
showHideLine: props.settingParams && props.settingParams.showHideLine !== undefined || false
|
|
31749
31975
|
}); // 显示坐标
|
|
31750
31976
|
|
|
31751
|
-
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
31977
|
+
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 显示朝向角俯仰角翻转角
|
|
31978
|
+
|
|
31979
|
+
let showHpr = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
31752
31980
|
let viewModel = null; // 组件容器Ref
|
|
31753
31981
|
|
|
31754
31982
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
@@ -31781,9 +32009,6 @@ const __default__ = {
|
|
|
31781
32009
|
videoPath: formItem.videoPath,
|
|
31782
32010
|
fov: formItem.fov,
|
|
31783
32011
|
far: formItem.far,
|
|
31784
|
-
heading: formItem.heading,
|
|
31785
|
-
pitch: formItem.pitch,
|
|
31786
|
-
roll: formItem.roll,
|
|
31787
32012
|
alpha: formItem.alpha,
|
|
31788
32013
|
eclosion: formItem.eclosion,
|
|
31789
32014
|
showHideLine: formItem.showHideLine
|
|
@@ -31870,6 +32095,7 @@ const __default__ = {
|
|
|
31870
32095
|
if (viewModel) {
|
|
31871
32096
|
viewModel.fusion();
|
|
31872
32097
|
setCoordinate();
|
|
32098
|
+
serHpr();
|
|
31873
32099
|
}
|
|
31874
32100
|
}
|
|
31875
32101
|
}
|
|
@@ -31889,6 +32115,18 @@ const __default__ = {
|
|
|
31889
32115
|
formItem.maxHeight = coordinate.z + heightOffset;
|
|
31890
32116
|
showCoordinate.value = true;
|
|
31891
32117
|
}
|
|
32118
|
+
} // 设置朝向角俯仰角翻转角
|
|
32119
|
+
|
|
32120
|
+
|
|
32121
|
+
function serHpr() {
|
|
32122
|
+
let hpr = viewModel.getHeadingPitchRoll();
|
|
32123
|
+
|
|
32124
|
+
if (hpr) {
|
|
32125
|
+
formItem.heading = hpr.heading;
|
|
32126
|
+
formItem.pitch = hpr.pitch;
|
|
32127
|
+
formItem.roll = hpr.roll;
|
|
32128
|
+
showHpr.value = true;
|
|
32129
|
+
}
|
|
31892
32130
|
} // 飞入
|
|
31893
32131
|
|
|
31894
32132
|
|
|
@@ -31899,6 +32137,7 @@ const __default__ = {
|
|
|
31899
32137
|
|
|
31900
32138
|
function clearResult() {
|
|
31901
32139
|
showCoordinate.value = false;
|
|
32140
|
+
showHpr.value = false;
|
|
31902
32141
|
viewModel && viewModel.clear();
|
|
31903
32142
|
} // 销毁
|
|
31904
32143
|
|
|
@@ -32305,7 +32544,7 @@ const __default__ = {
|
|
|
32305
32544
|
_: 1
|
|
32306
32545
|
/* STABLE */
|
|
32307
32546
|
|
|
32308
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
32547
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
32309
32548
|
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, {
|
|
32310
32549
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heading
|
|
32311
32550
|
}, {
|
|
@@ -32361,7 +32600,9 @@ const __default__ = {
|
|
|
32361
32600
|
_: 1
|
|
32362
32601
|
/* STABLE */
|
|
32363
32602
|
|
|
32364
|
-
}
|
|
32603
|
+
}, 512
|
|
32604
|
+
/* NEED_PATCH */
|
|
32605
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
32365
32606
|
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, {
|
|
32366
32607
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pitch
|
|
32367
32608
|
}, {
|
|
@@ -32417,7 +32658,9 @@ const __default__ = {
|
|
|
32417
32658
|
_: 1
|
|
32418
32659
|
/* STABLE */
|
|
32419
32660
|
|
|
32420
|
-
}
|
|
32661
|
+
}, 512
|
|
32662
|
+
/* NEED_PATCH */
|
|
32663
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
32421
32664
|
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, {
|
|
32422
32665
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).roll
|
|
32423
32666
|
}, {
|
|
@@ -32473,7 +32716,9 @@ const __default__ = {
|
|
|
32473
32716
|
_: 1
|
|
32474
32717
|
/* STABLE */
|
|
32475
32718
|
|
|
32476
|
-
}
|
|
32719
|
+
}, 512
|
|
32720
|
+
/* NEED_PATCH */
|
|
32721
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
32477
32722
|
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, {
|
|
32478
32723
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).transparents
|
|
32479
32724
|
}, {
|
|
@@ -32762,11 +33007,14 @@ class VideoProjectViewModel {
|
|
|
32762
33007
|
project() {
|
|
32763
33008
|
this.clear();
|
|
32764
33009
|
let position = Cesium.Cartesian3.clone(this._viewer.camera.positionWC);
|
|
33010
|
+
this._options.heading = this._viewer.camera.heading;
|
|
33011
|
+
this._options.pitch = this._viewer.camera.pitch;
|
|
33012
|
+
this._options.roll = this._viewer.camera.roll;
|
|
32765
33013
|
let options = {
|
|
32766
33014
|
position: position,
|
|
32767
|
-
heading:
|
|
32768
|
-
pitch:
|
|
32769
|
-
roll:
|
|
33015
|
+
heading: this._options.heading,
|
|
33016
|
+
pitch: this._options.pitch,
|
|
33017
|
+
roll: this._options.roll,
|
|
32770
33018
|
fov: Cesium.Math.toRadians(this._options.fov),
|
|
32771
33019
|
aspectRatio: this._options.aspectRatio,
|
|
32772
33020
|
far: this._options.far,
|
|
@@ -32795,6 +33043,15 @@ class VideoProjectViewModel {
|
|
|
32795
33043
|
height: cartographic.height
|
|
32796
33044
|
};
|
|
32797
33045
|
}
|
|
33046
|
+
} // 获取HeadingPitchRoll
|
|
33047
|
+
|
|
33048
|
+
|
|
33049
|
+
getHeadingPitchRoll() {
|
|
33050
|
+
return {
|
|
33051
|
+
heading: Math.round(Cesium.Math.toDegrees(this._options.heading)),
|
|
33052
|
+
pitch: Math.round(Cesium.Math.toDegrees(this._options.pitch)),
|
|
33053
|
+
roll: Math.round(Cesium.Math.toDegrees(this._options.roll))
|
|
33054
|
+
};
|
|
32798
33055
|
} //飞入
|
|
32799
33056
|
|
|
32800
33057
|
|
|
@@ -32803,9 +33060,9 @@ class VideoProjectViewModel {
|
|
|
32803
33060
|
this._viewer.camera.flyTo({
|
|
32804
33061
|
destination: this._projectVideo.position,
|
|
32805
33062
|
orientation: {
|
|
32806
|
-
heading:
|
|
32807
|
-
pitch:
|
|
32808
|
-
roll:
|
|
33063
|
+
heading: this._options.heading,
|
|
33064
|
+
pitch: this._options.pitch,
|
|
33065
|
+
roll: this._options.roll
|
|
32809
33066
|
}
|
|
32810
33067
|
});
|
|
32811
33068
|
}
|
|
@@ -32988,9 +33245,6 @@ const __default__ = {
|
|
|
32988
33245
|
expose
|
|
32989
33246
|
}) {
|
|
32990
33247
|
const props = __props;
|
|
32991
|
-
const {
|
|
32992
|
-
proxy
|
|
32993
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
32994
33248
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
32995
33249
|
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 获取组件传参
|
|
32996
33250
|
|
|
@@ -33006,18 +33260,20 @@ const __default__ = {
|
|
|
33006
33260
|
height: 0,
|
|
33007
33261
|
minHeight: -heightOffset,
|
|
33008
33262
|
maxHeight: heightOffset,
|
|
33263
|
+
heading: 0,
|
|
33264
|
+
pitch: 0,
|
|
33265
|
+
roll: 0,
|
|
33009
33266
|
videoPath: props.settingParams && props.settingParams.videoPath || "",
|
|
33010
33267
|
projectType: props.settingParams && props.settingParams.projectType || 1,
|
|
33011
33268
|
fov: props.settingParams && props.settingParams.fov || 20,
|
|
33012
33269
|
aspectRatio: props.settingParams && props.settingParams.aspectRatio || 1.6,
|
|
33013
33270
|
far: props.settingParams && props.settingParams.far || 50,
|
|
33014
|
-
heading: props.settingParams && props.settingParams.heading || 330,
|
|
33015
|
-
pitch: props.settingParams && props.settingParams.pitch || -12,
|
|
33016
|
-
roll: props.settingParams && props.settingParams.roll || 0,
|
|
33017
33271
|
showHideLine: props.settingParams && props.settingParams.showHideLine !== undefined || true
|
|
33018
33272
|
}); // 显示坐标
|
|
33019
33273
|
|
|
33020
|
-
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
33274
|
+
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 显示朝向角俯仰角翻转角
|
|
33275
|
+
|
|
33276
|
+
let showHpr = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
33021
33277
|
let viewModel = null; // 组件容器Ref
|
|
33022
33278
|
|
|
33023
33279
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
@@ -33052,9 +33308,6 @@ const __default__ = {
|
|
|
33052
33308
|
fov: formItem.fov,
|
|
33053
33309
|
aspectRatio: formItem.aspectRatio,
|
|
33054
33310
|
far: formItem.far,
|
|
33055
|
-
heading: formItem.heading,
|
|
33056
|
-
pitch: formItem.pitch,
|
|
33057
|
-
roll: formItem.roll,
|
|
33058
33311
|
showHideLine: formItem.showHideLine
|
|
33059
33312
|
};
|
|
33060
33313
|
viewModel = new VideoProjectViewModel/* default */.Z(scenceView, options);
|
|
@@ -33139,9 +33392,11 @@ const __default__ = {
|
|
|
33139
33392
|
if (viewModel) {
|
|
33140
33393
|
viewModel.project();
|
|
33141
33394
|
setCoordinate();
|
|
33395
|
+
serHpr();
|
|
33142
33396
|
}
|
|
33143
33397
|
}
|
|
33144
|
-
}
|
|
33398
|
+
} // 设置坐标
|
|
33399
|
+
|
|
33145
33400
|
|
|
33146
33401
|
function setCoordinate() {
|
|
33147
33402
|
let coordinate = viewModel.getProjectCoordinate();
|
|
@@ -33158,6 +33413,18 @@ const __default__ = {
|
|
|
33158
33413
|
formItem.maxHeight = coordinate.height + heightOffset;
|
|
33159
33414
|
showCoordinate.value = true;
|
|
33160
33415
|
}
|
|
33416
|
+
} // 设置朝向角俯仰角翻转角
|
|
33417
|
+
|
|
33418
|
+
|
|
33419
|
+
function serHpr() {
|
|
33420
|
+
let hpr = viewModel.getHeadingPitchRoll();
|
|
33421
|
+
|
|
33422
|
+
if (hpr) {
|
|
33423
|
+
formItem.heading = hpr.heading;
|
|
33424
|
+
formItem.pitch = hpr.pitch;
|
|
33425
|
+
formItem.roll = hpr.roll;
|
|
33426
|
+
showHpr.value = true;
|
|
33427
|
+
}
|
|
33161
33428
|
} // 飞入
|
|
33162
33429
|
|
|
33163
33430
|
|
|
@@ -33168,6 +33435,7 @@ const __default__ = {
|
|
|
33168
33435
|
|
|
33169
33436
|
function clearResult() {
|
|
33170
33437
|
showCoordinate.value = false;
|
|
33438
|
+
showHpr.value = false;
|
|
33171
33439
|
viewModel && viewModel.clear();
|
|
33172
33440
|
} // 销毁
|
|
33173
33441
|
|
|
@@ -33689,7 +33957,7 @@ const __default__ = {
|
|
|
33689
33957
|
_: 1
|
|
33690
33958
|
/* STABLE */
|
|
33691
33959
|
|
|
33692
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
33960
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
33693
33961
|
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, {
|
|
33694
33962
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heading
|
|
33695
33963
|
}, {
|
|
@@ -33745,7 +34013,9 @@ const __default__ = {
|
|
|
33745
34013
|
_: 1
|
|
33746
34014
|
/* STABLE */
|
|
33747
34015
|
|
|
33748
|
-
}
|
|
34016
|
+
}, 512
|
|
34017
|
+
/* NEED_PATCH */
|
|
34018
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
33749
34019
|
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, {
|
|
33750
34020
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pitch
|
|
33751
34021
|
}, {
|
|
@@ -33801,7 +34071,9 @@ const __default__ = {
|
|
|
33801
34071
|
_: 1
|
|
33802
34072
|
/* STABLE */
|
|
33803
34073
|
|
|
33804
|
-
}
|
|
34074
|
+
}, 512
|
|
34075
|
+
/* NEED_PATCH */
|
|
34076
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
33805
34077
|
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, {
|
|
33806
34078
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).roll
|
|
33807
34079
|
}, {
|
|
@@ -33857,7 +34129,9 @@ const __default__ = {
|
|
|
33857
34129
|
_: 1
|
|
33858
34130
|
/* STABLE */
|
|
33859
34131
|
|
|
33860
|
-
}
|
|
34132
|
+
}, 512
|
|
34133
|
+
/* NEED_PATCH */
|
|
34134
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
33861
34135
|
style: {
|
|
33862
34136
|
"margin-bottom": "8px"
|
|
33863
34137
|
}
|
|
@@ -35939,6 +36213,22 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".coord-sightline{background:rgba(42,42
|
|
|
35939
36213
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
35940
36214
|
|
|
35941
36215
|
|
|
36216
|
+
/***/ }),
|
|
36217
|
+
|
|
36218
|
+
/***/ 3825:
|
|
36219
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
36220
|
+
|
|
36221
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7705);
|
|
36222
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
36223
|
+
// Imports
|
|
36224
|
+
|
|
36225
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
36226
|
+
// Module
|
|
36227
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".cesium-performanceDisplay-defaultContainer{top:unset !important;bottom:16px;right:64px !important}", ""]);
|
|
36228
|
+
// Exports
|
|
36229
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
36230
|
+
|
|
36231
|
+
|
|
35942
36232
|
/***/ }),
|
|
35943
36233
|
|
|
35944
36234
|
/***/ 6854:
|
|
@@ -36482,8 +36772,8 @@ var isolineanalysis = __webpack_require__(9783);
|
|
|
36482
36772
|
var boxclip = __webpack_require__(4510);
|
|
36483
36773
|
// EXTERNAL MODULE: ./src/webgl/planeclip/index.js + 4 modules
|
|
36484
36774
|
var planeclip = __webpack_require__(9736);
|
|
36485
|
-
// EXTERNAL MODULE: ./src/webgl/adddata/index.js +
|
|
36486
|
-
var adddata = __webpack_require__(
|
|
36775
|
+
// EXTERNAL MODULE: ./src/webgl/adddata/index.js + 5 modules
|
|
36776
|
+
var adddata = __webpack_require__(5110);
|
|
36487
36777
|
// EXTERNAL MODULE: ./src/webgl/particleeffect/index.js + 4 modules
|
|
36488
36778
|
var particleeffect = __webpack_require__(828);
|
|
36489
36779
|
// EXTERNAL MODULE: ./src/webgl/weathereffect/index.js + 4 modules
|
|
@@ -36504,8 +36794,8 @@ var statusbar = __webpack_require__(4388);
|
|
|
36504
36794
|
var videoproject = __webpack_require__(7413);
|
|
36505
36795
|
// EXTERNAL MODULE: ./src/webgl/videofusion/index.js + 3 modules
|
|
36506
36796
|
var videofusion = __webpack_require__(7942);
|
|
36507
|
-
// EXTERNAL MODULE: ./src/webgl/sceneset/index.js +
|
|
36508
|
-
var sceneset = __webpack_require__(
|
|
36797
|
+
// EXTERNAL MODULE: ./src/webgl/sceneset/index.js + 7 modules
|
|
36798
|
+
var sceneset = __webpack_require__(8876);
|
|
36509
36799
|
// EXTERNAL MODULE: ./src/webgl/light/index.js + 3 modules
|
|
36510
36800
|
var light = __webpack_require__(9001);
|
|
36511
36801
|
// EXTERNAL MODULE: ./src/webgl/geologicalbodyanalysis/index.js + 4 modules
|
|
@@ -37586,6 +37876,105 @@ class DrawManager {
|
|
|
37586
37876
|
return layerList;
|
|
37587
37877
|
}
|
|
37588
37878
|
|
|
37879
|
+
createShapeFromFeature(feature, callFun, style, isLocation) {
|
|
37880
|
+
let type = feature.geometry.type;
|
|
37881
|
+
let shape = null,
|
|
37882
|
+
coordinate = null;
|
|
37883
|
+
let positions = [];
|
|
37884
|
+
|
|
37885
|
+
switch (type) {
|
|
37886
|
+
case "Point":
|
|
37887
|
+
case "MultiPoint":
|
|
37888
|
+
coordinate = feature.geometry.coordinates;
|
|
37889
|
+
if (type === "MultiPoint") coordinate = coordinate[0];
|
|
37890
|
+
let position = Cesium.Cartesian3.fromDegrees(coordinate[0], coordinate[1]);
|
|
37891
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type, '', {
|
|
37892
|
+
position: position,
|
|
37893
|
+
disableDepthTestDistance: Number.POSITIVE_INFINITY,
|
|
37894
|
+
width: 32,
|
|
37895
|
+
height: 32,
|
|
37896
|
+
image: const_image_.MARKER_URL
|
|
37897
|
+
});
|
|
37898
|
+
break;
|
|
37899
|
+
|
|
37900
|
+
case "LineString":
|
|
37901
|
+
case "MultiLineString":
|
|
37902
|
+
coordinate = feature.geometry.coordinates;
|
|
37903
|
+
if (type === "MultiLineString") coordinate = coordinate[0];
|
|
37904
|
+
positions = [];
|
|
37905
|
+
coordinate.forEach(arr => {
|
|
37906
|
+
positions.push(Cesium.Cartesian3.fromDegrees(arr[0], arr[1]));
|
|
37907
|
+
});
|
|
37908
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type, '线', {
|
|
37909
|
+
controlPoints: positions,
|
|
37910
|
+
color: Cesium.Color.fromCssColorString(style.color),
|
|
37911
|
+
width: style.weight,
|
|
37912
|
+
clampToGround: true
|
|
37913
|
+
});
|
|
37914
|
+
break;
|
|
37915
|
+
|
|
37916
|
+
case "Polygon":
|
|
37917
|
+
case "MultiPolygon":
|
|
37918
|
+
coordinate = feature.geometry.coordinates[0];
|
|
37919
|
+
if (type === "MultiPolygon") coordinate = coordinate[0];
|
|
37920
|
+
positions = [];
|
|
37921
|
+
coordinate.forEach(arr => {
|
|
37922
|
+
positions.push(Cesium.Cartesian3.fromDegrees(arr[0], arr[1]));
|
|
37923
|
+
});
|
|
37924
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type, '面', {
|
|
37925
|
+
controlPoints: positions,
|
|
37926
|
+
color: Cesium.Color.fromCssColorString(style.color),
|
|
37927
|
+
width: style.weight,
|
|
37928
|
+
fillColor: Cesium.Color.fromCssColorString(style.fillColor).withAlpha(style.fillOpacity),
|
|
37929
|
+
fill: true,
|
|
37930
|
+
clampToGround: true
|
|
37931
|
+
});
|
|
37932
|
+
break;
|
|
37933
|
+
|
|
37934
|
+
default:
|
|
37935
|
+
break;
|
|
37936
|
+
}
|
|
37937
|
+
|
|
37938
|
+
if (shape) {
|
|
37939
|
+
this._drawLayer.add(shape);
|
|
37940
|
+
|
|
37941
|
+
if (callFun) callFun(shape.guid);
|
|
37942
|
+
|
|
37943
|
+
if (isLocation) {
|
|
37944
|
+
setTimeout(() => {
|
|
37945
|
+
this._drawHandler.startEdit(shape);
|
|
37946
|
+
|
|
37947
|
+
let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
|
|
37948
|
+
|
|
37949
|
+
this._viewer.camera.flyToBoundingSphere(shape.boundingSphere, {
|
|
37950
|
+
duration: 1.5,
|
|
37951
|
+
offset
|
|
37952
|
+
});
|
|
37953
|
+
}, 200);
|
|
37954
|
+
}
|
|
37955
|
+
}
|
|
37956
|
+
}
|
|
37957
|
+
|
|
37958
|
+
startEditById(id) {
|
|
37959
|
+
let shape = this._drawLayer.getById(id);
|
|
37960
|
+
|
|
37961
|
+
if (shape) {
|
|
37962
|
+
this._drawHandler.startEdit(shape);
|
|
37963
|
+
}
|
|
37964
|
+
}
|
|
37965
|
+
|
|
37966
|
+
getFeatureById(id) {
|
|
37967
|
+
let feature = null;
|
|
37968
|
+
|
|
37969
|
+
let shape = this._drawLayer.getById(id);
|
|
37970
|
+
|
|
37971
|
+
if (shape) {
|
|
37972
|
+
feature = shapeToGeoFeature(shape);
|
|
37973
|
+
}
|
|
37974
|
+
|
|
37975
|
+
return feature;
|
|
37976
|
+
}
|
|
37977
|
+
|
|
37589
37978
|
removeGeometryById(id) {
|
|
37590
37979
|
this._drawLayer.removeById(id); // 删除图形关联的样式设置框
|
|
37591
37980
|
|
|
@@ -38076,6 +38465,10 @@ class LayerManager {
|
|
|
38076
38465
|
}
|
|
38077
38466
|
} else if (layerData.sourceType === "kqimageserver") {
|
|
38078
38467
|
type = "kqgisimageserver";
|
|
38468
|
+
|
|
38469
|
+
if (layerData.renderType === "weather") {
|
|
38470
|
+
type = "kqgisweatherserver";
|
|
38471
|
+
}
|
|
38079
38472
|
} else if (layerData.sourceType === "kq3dserver") {
|
|
38080
38473
|
type = "kqgis3dserver";
|
|
38081
38474
|
} else if (layerData.sourceType === "mvt") {
|
|
@@ -38229,7 +38622,8 @@ class LayerManager {
|
|
|
38229
38622
|
case "kqgis3dserver":
|
|
38230
38623
|
var that = this;
|
|
38231
38624
|
layerData.visible = isAdd;
|
|
38232
|
-
promise = this._viewer.addKq3dServerLayerGroupExt(url
|
|
38625
|
+
promise = this._viewer.addKq3dServerLayerGroupExt(url, { ...params
|
|
38626
|
+
}).then(group => {
|
|
38233
38627
|
var layers = group._addedLayers || group._layers;
|
|
38234
38628
|
|
|
38235
38629
|
if (layers && layers.length > 0) {
|
|
@@ -38269,6 +38663,7 @@ class LayerManager {
|
|
|
38269
38663
|
break;
|
|
38270
38664
|
|
|
38271
38665
|
case "kqgisimageserver":
|
|
38666
|
+
//kqgis影像服务-栅格数据
|
|
38272
38667
|
layerData.visible = isAdd;
|
|
38273
38668
|
layerData.serverType = "imagerylayer";
|
|
38274
38669
|
layerData.type = "Image"; // 图层树显示图标使用
|
|
@@ -38285,6 +38680,26 @@ class LayerManager {
|
|
|
38285
38680
|
|
|
38286
38681
|
break;
|
|
38287
38682
|
|
|
38683
|
+
case "kqgisweatherserver":
|
|
38684
|
+
//kqgis影像服务-气象数据
|
|
38685
|
+
layerData.visible = isAdd;
|
|
38686
|
+
layerData.serverType = "imagerylayer";
|
|
38687
|
+
|
|
38688
|
+
if (isAdd) {
|
|
38689
|
+
if (url.indexOf("/image/wmts") < 0) {
|
|
38690
|
+
url = url.replace("/image", "/image/wmts");
|
|
38691
|
+
}
|
|
38692
|
+
|
|
38693
|
+
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dContourImageryProviderExt({
|
|
38694
|
+
name: name,
|
|
38695
|
+
url: url,
|
|
38696
|
+
...params
|
|
38697
|
+
}));
|
|
38698
|
+
layer._guid = layerData.guid;
|
|
38699
|
+
}
|
|
38700
|
+
|
|
38701
|
+
break;
|
|
38702
|
+
|
|
38288
38703
|
case "kqgismapserver":
|
|
38289
38704
|
if (layerData.sourceLayers) {
|
|
38290
38705
|
var layerInfo = layerData.sourceLayers.find(item => {
|
|
@@ -38376,7 +38791,7 @@ class LayerManager {
|
|
|
38376
38791
|
|
|
38377
38792
|
case "wms":
|
|
38378
38793
|
//配置id时只能是单个图层
|
|
38379
|
-
if (layerData.rect84 && layerData.sourceType !== "service") {
|
|
38794
|
+
if (layerData.rect84 && layerData.sourceType !== "service" && layerData.dataSourceType !== "service") {
|
|
38380
38795
|
// 大数据wms服务使用
|
|
38381
38796
|
layerData.visible = isAdd;
|
|
38382
38797
|
layerData.serverType = "imagerylayer";
|
|
@@ -38417,6 +38832,8 @@ class LayerManager {
|
|
|
38417
38832
|
layerData.serverType = "imagerylayer";
|
|
38418
38833
|
|
|
38419
38834
|
if (isAdd) {
|
|
38835
|
+
if (params.url) url = params.url; // 设置多子域时使用
|
|
38836
|
+
|
|
38420
38837
|
promise = this._viewer.addWMSLayerGroup(url, { ...params,
|
|
38421
38838
|
layers: layerData.id + ""
|
|
38422
38839
|
}).then(group => {
|
|
@@ -38455,6 +38872,8 @@ class LayerManager {
|
|
|
38455
38872
|
layerData.serverType = "imagerylayer"; //配置id时只能是单个图层
|
|
38456
38873
|
|
|
38457
38874
|
if (isAdd) {
|
|
38875
|
+
if (params.url) url = params.url; // 设置多子域时使用
|
|
38876
|
+
|
|
38458
38877
|
promise = this._viewer.addWMTSLayerGroup(url, { ...params,
|
|
38459
38878
|
layers: layerData.id + ""
|
|
38460
38879
|
}).then(group => {
|