@kq_npm/client3d_webgl_vue 4.0.8-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 +193 -62
- package/index.js +225 -64
- package/package.json +1 -1
- package/scenceview/index.js +228 -67
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
|
+
|
|
258
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);
|
|
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 || "";
|
|
@@ -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
|
}
|
|
@@ -1088,8 +1219,7 @@ class AddDataViewModel {
|
|
|
1088
1219
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
1089
1220
|
|
|
1090
1221
|
|
|
1091
|
-
that.
|
|
1092
|
-
|
|
1222
|
+
that.flyToLayer(ds);
|
|
1093
1223
|
node = {
|
|
1094
1224
|
guid: ds.guid,
|
|
1095
1225
|
name: name,
|
|
@@ -1123,8 +1253,7 @@ class AddDataViewModel {
|
|
|
1123
1253
|
this._viewer.dataSources.add(ds); // ds.autoAvoid(this._viewer);
|
|
1124
1254
|
|
|
1125
1255
|
|
|
1126
|
-
|
|
1127
|
-
|
|
1256
|
+
that.flyToLayer(ds);
|
|
1128
1257
|
node = {
|
|
1129
1258
|
guid: ds.guid,
|
|
1130
1259
|
name: name,
|
|
@@ -1160,8 +1289,7 @@ class AddDataViewModel {
|
|
|
1160
1289
|
|
|
1161
1290
|
this._viewer.dataSources.add(ds);
|
|
1162
1291
|
|
|
1163
|
-
|
|
1164
|
-
|
|
1292
|
+
that.flyToLayer(ds);
|
|
1165
1293
|
node = {
|
|
1166
1294
|
guid: ds.guid,
|
|
1167
1295
|
name: name,
|
|
@@ -1188,8 +1316,7 @@ class AddDataViewModel {
|
|
|
1188
1316
|
ds.load(url).then(ds => {
|
|
1189
1317
|
this._viewer.dataSources.add(ds);
|
|
1190
1318
|
|
|
1191
|
-
|
|
1192
|
-
|
|
1319
|
+
that.flyToLayer(ds);
|
|
1193
1320
|
node = {
|
|
1194
1321
|
guid: ds.guid,
|
|
1195
1322
|
name: name,
|
|
@@ -1211,8 +1338,7 @@ class AddDataViewModel {
|
|
|
1211
1338
|
ds.load(url).then(ds => {
|
|
1212
1339
|
this._viewer.dataSources.add(ds);
|
|
1213
1340
|
|
|
1214
|
-
|
|
1215
|
-
|
|
1341
|
+
that.flyToLayer(ds);
|
|
1216
1342
|
node = {
|
|
1217
1343
|
guid: ds.guid,
|
|
1218
1344
|
name: name,
|
|
@@ -1275,7 +1401,7 @@ class AddDataViewModel {
|
|
|
1275
1401
|
destination: tileset.rectangle
|
|
1276
1402
|
});
|
|
1277
1403
|
});
|
|
1278
|
-
} 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) {
|
|
1279
1405
|
let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
|
|
1280
1406
|
viewer.flyTo(layer, {
|
|
1281
1407
|
offset
|
|
@@ -1355,7 +1481,6 @@ const _hoisted_12 = {
|
|
|
1355
1481
|
|
|
1356
1482
|
|
|
1357
1483
|
|
|
1358
|
-
//accept=".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt"
|
|
1359
1484
|
|
|
1360
1485
|
const __default__ = {
|
|
1361
1486
|
name: "Kq3dAddData"
|
|
@@ -1392,6 +1517,11 @@ const __default__ = {
|
|
|
1392
1517
|
type: Function,
|
|
1393
1518
|
default: null
|
|
1394
1519
|
},
|
|
1520
|
+
// 自定义加载函数, 只对KQGIS REST服务生效, earthstudio使用
|
|
1521
|
+
loadCustom: {
|
|
1522
|
+
type: Function,
|
|
1523
|
+
default: null
|
|
1524
|
+
},
|
|
1395
1525
|
// 是否生成HeaderTemp
|
|
1396
1526
|
showHeaderTemp: {
|
|
1397
1527
|
type: Boolean,
|
|
@@ -1426,6 +1556,7 @@ const __default__ = {
|
|
|
1426
1556
|
expose
|
|
1427
1557
|
}) {
|
|
1428
1558
|
const props = __props;
|
|
1559
|
+
let accept = ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt";
|
|
1429
1560
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
1430
1561
|
let selectTypeIndex = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0); //URL服务支持的数据源类型
|
|
1431
1562
|
|
|
@@ -1484,104 +1615,104 @@ const __default__ = {
|
|
|
1484
1615
|
return [// {
|
|
1485
1616
|
// type: 'kq3dimageryfile',
|
|
1486
1617
|
// name: language.value.ImagertyTileFile,
|
|
1487
|
-
// namePlaceholder: language.value.
|
|
1618
|
+
// namePlaceholder: language.value.optional,
|
|
1488
1619
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
1489
1620
|
// description: language.value.imagertyTileFiledescription
|
|
1490
1621
|
// }, {
|
|
1491
1622
|
// type: 'obterrain',
|
|
1492
1623
|
// name: language.value.ObTerrainTileFile,
|
|
1493
|
-
// namePlaceholder: language.value.
|
|
1624
|
+
// namePlaceholder: language.value.optional,
|
|
1494
1625
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
1495
1626
|
// description: language.value.imagertyObTerrainTileFiledescription
|
|
1496
1627
|
// },
|
|
1497
1628
|
{
|
|
1498
1629
|
type: "kqgis3dserver",
|
|
1499
1630
|
name: language.value.KQGIS3DServer,
|
|
1500
|
-
namePlaceholder: language.value.
|
|
1631
|
+
namePlaceholder: language.value.optional,
|
|
1501
1632
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/realspace",
|
|
1502
1633
|
description: language.value.imagerty3DServerdescription
|
|
1503
1634
|
}, {
|
|
1504
1635
|
type: "kqgismapserver",
|
|
1505
1636
|
name: language.value.KQGISMapServer,
|
|
1506
|
-
namePlaceholder: language.value.
|
|
1637
|
+
namePlaceholder: language.value.optional,
|
|
1507
1638
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map",
|
|
1508
1639
|
description: language.value.imagertyMapServerdescription
|
|
1509
1640
|
}, {
|
|
1510
1641
|
type: "kqgisimageserver",
|
|
1511
1642
|
name: language.value.KQGISImageServer,
|
|
1512
|
-
namePlaceholder: language.value.
|
|
1643
|
+
namePlaceholder: language.value.optional,
|
|
1513
1644
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/image",
|
|
1514
1645
|
description: language.value.imagertyImageServerdescription
|
|
1515
1646
|
}, {
|
|
1516
1647
|
type: "kqgisdataflowserver",
|
|
1517
1648
|
name: language.value.KQGISDataflowServer,
|
|
1518
|
-
namePlaceholder: language.value.
|
|
1649
|
+
namePlaceholder: language.value.optional,
|
|
1519
1650
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/streaming/rest/services/<servername>/dataflow",
|
|
1520
1651
|
description: language.value.imagertyDataflowServerdescription
|
|
1521
1652
|
}, {
|
|
1522
1653
|
type: "kqgistileserver",
|
|
1523
1654
|
name: language.value.KQGISTileServer,
|
|
1524
|
-
namePlaceholder: language.value.
|
|
1655
|
+
namePlaceholder: language.value.optional,
|
|
1525
1656
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
|
|
1526
1657
|
description: language.value.imagertyTileServerdescription
|
|
1527
1658
|
}, {
|
|
1528
1659
|
type: "kqgisaggregationserver",
|
|
1529
1660
|
name: language.value.KQGISAggregationServer,
|
|
1530
|
-
namePlaceholder: language.value.
|
|
1661
|
+
namePlaceholder: language.value.optional,
|
|
1531
1662
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
1532
1663
|
description: language.value.imagertyAggregationServerdescription
|
|
1533
1664
|
}, {
|
|
1534
1665
|
type: "s3m",
|
|
1535
1666
|
name: language.value.S3M,
|
|
1536
|
-
namePlaceholder: language.value.
|
|
1667
|
+
namePlaceholder: language.value.optional,
|
|
1537
1668
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/realspace/datas/xxx/config",
|
|
1538
1669
|
description: language.value.imagertyS3Mdescription
|
|
1539
1670
|
}, {
|
|
1540
1671
|
type: "arcgismapserver",
|
|
1541
1672
|
name: language.value.ArcGISMapServer,
|
|
1542
|
-
namePlaceholder: language.value.
|
|
1673
|
+
namePlaceholder: language.value.optional,
|
|
1543
1674
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/ArcGIS/rest/services/<servername>/MapServer",
|
|
1544
1675
|
description: language.value.imagertyArcGISMapServerdescription
|
|
1545
1676
|
}, {
|
|
1546
1677
|
type: "wms",
|
|
1547
1678
|
name: language.value.OGCWMS,
|
|
1548
|
-
namePlaceholder: language.value.
|
|
1679
|
+
namePlaceholder: language.value.optional,
|
|
1549
1680
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wms",
|
|
1550
1681
|
description: language.value.imagertyOGCWMSdescription
|
|
1551
1682
|
}, {
|
|
1552
1683
|
type: "wmts",
|
|
1553
1684
|
name: language.value.OGCWMTS,
|
|
1554
|
-
namePlaceholder: language.value.
|
|
1685
|
+
namePlaceholder: language.value.optional,
|
|
1555
1686
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
1556
1687
|
description: language.value.imagertyOGCWMTSdescription
|
|
1557
1688
|
}, {
|
|
1558
1689
|
type: "3dtiles",
|
|
1559
1690
|
name: language.value.Cesium3DTilesFile,
|
|
1560
|
-
namePlaceholder: language.value.
|
|
1691
|
+
namePlaceholder: language.value.optional,
|
|
1561
1692
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/tileset.json",
|
|
1562
1693
|
description: language.value.imagerty3DTilesFiledescription
|
|
1563
1694
|
}, {
|
|
1564
1695
|
type: "stkterrain",
|
|
1565
1696
|
name: language.value.StkTerrainTileFile,
|
|
1566
|
-
namePlaceholder: language.value.
|
|
1697
|
+
namePlaceholder: language.value.optional,
|
|
1567
1698
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/<foldername>/",
|
|
1568
1699
|
description: language.value.imagertyStkTerrainTileFiledescription
|
|
1569
1700
|
}, {
|
|
1570
1701
|
type: "geojson",
|
|
1571
1702
|
name: language.value.GeoJson,
|
|
1572
|
-
namePlaceholder: language.value.
|
|
1703
|
+
namePlaceholder: language.value.optional,
|
|
1573
1704
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
|
|
1574
1705
|
description: language.value.imagertyGeoJsondescription
|
|
1575
1706
|
}, {
|
|
1576
1707
|
type: "arcjson",
|
|
1577
1708
|
name: language.value.ArcJson,
|
|
1578
|
-
namePlaceholder: language.value.
|
|
1709
|
+
namePlaceholder: language.value.optional,
|
|
1579
1710
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.json",
|
|
1580
1711
|
description: language.value.imagertyArcJsondescription
|
|
1581
1712
|
}, {
|
|
1582
1713
|
type: "mvt",
|
|
1583
1714
|
name: language.value.MVT,
|
|
1584
|
-
namePlaceholder: language.value.
|
|
1715
|
+
namePlaceholder: language.value.optional,
|
|
1585
1716
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
|
|
1586
1717
|
description: language.value.imagertyMVTdescription
|
|
1587
1718
|
}
|
|
@@ -1594,13 +1725,13 @@ const __default__ = {
|
|
|
1594
1725
|
}, {
|
|
1595
1726
|
type: 'kml',
|
|
1596
1727
|
name: language.value.KML,
|
|
1597
|
-
namePlaceholder: language.value.
|
|
1728
|
+
namePlaceholder: language.value.optional,
|
|
1598
1729
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.kml',
|
|
1599
1730
|
description: language.value.imagertyKMLdescription
|
|
1600
1731
|
}, {
|
|
1601
1732
|
type: 'czml',
|
|
1602
1733
|
name: language.value.CZML,
|
|
1603
|
-
namePlaceholder: language.value.
|
|
1734
|
+
namePlaceholder: language.value.optional,
|
|
1604
1735
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.czml',
|
|
1605
1736
|
description: language.value.imagertyCZMLdescription
|
|
1606
1737
|
}*/
|
|
@@ -1688,7 +1819,7 @@ const __default__ = {
|
|
|
1688
1819
|
type: dataSourceType.value.type,
|
|
1689
1820
|
url: dataSource.url,
|
|
1690
1821
|
name: dataSource.name
|
|
1691
|
-
}, props.loadCallback);
|
|
1822
|
+
}, props.loadCallback, props.loadCustom);
|
|
1692
1823
|
} // 重置
|
|
1693
1824
|
|
|
1694
1825
|
|
|
@@ -1771,7 +1902,7 @@ const __default__ = {
|
|
|
1771
1902
|
"auto-upload": false,
|
|
1772
1903
|
"file-list": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList),
|
|
1773
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),
|
|
1774
|
-
accept:
|
|
1905
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(accept),
|
|
1775
1906
|
"on-change": changeFile,
|
|
1776
1907
|
ref_key: "upload_ref",
|
|
1777
1908
|
ref: upload_ref
|
|
@@ -1784,7 +1915,7 @@ const __default__ = {
|
|
|
1784
1915
|
|
|
1785
1916
|
}, 8
|
|
1786
1917
|
/* 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) => {
|
|
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) => {
|
|
1788
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, {
|
|
1789
1920
|
key: i,
|
|
1790
1921
|
gutter: 20
|
|
@@ -1839,7 +1970,7 @@ const __default__ = {
|
|
|
1839
1970
|
action: "",
|
|
1840
1971
|
"show-file-list": false,
|
|
1841
1972
|
"auto-upload": false,
|
|
1842
|
-
accept:
|
|
1973
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(accept),
|
|
1843
1974
|
ref_key: "upload_btn_ref",
|
|
1844
1975
|
ref: upload_btn_ref,
|
|
1845
1976
|
class: "kq3d-add-data-footer-upload",
|
|
@@ -1861,9 +1992,9 @@ const __default__ = {
|
|
|
1861
1992
|
_: 1
|
|
1862
1993
|
/* STABLE */
|
|
1863
1994
|
|
|
1864
|
-
},
|
|
1865
|
-
/*
|
|
1866
|
-
), (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, {
|
|
1867
1998
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => removeFiles(), ["stop"])),
|
|
1868
1999
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearFiles,
|
|
1869
2000
|
type: "primary"
|
|
@@ -1965,7 +2096,7 @@ const __default__ = {
|
|
|
1965
2096
|
|
|
1966
2097
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1967
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, {
|
|
1968
|
-
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
|
|
1969
2100
|
}, {
|
|
1970
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, {
|
|
1971
2102
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSource).name,
|
|
@@ -36482,8 +36613,8 @@ var isolineanalysis = __webpack_require__(9783);
|
|
|
36482
36613
|
var boxclip = __webpack_require__(4510);
|
|
36483
36614
|
// EXTERNAL MODULE: ./src/webgl/planeclip/index.js + 4 modules
|
|
36484
36615
|
var planeclip = __webpack_require__(9736);
|
|
36485
|
-
// EXTERNAL MODULE: ./src/webgl/adddata/index.js +
|
|
36486
|
-
var adddata = __webpack_require__(
|
|
36616
|
+
// EXTERNAL MODULE: ./src/webgl/adddata/index.js + 5 modules
|
|
36617
|
+
var adddata = __webpack_require__(5110);
|
|
36487
36618
|
// EXTERNAL MODULE: ./src/webgl/particleeffect/index.js + 4 modules
|
|
36488
36619
|
var particleeffect = __webpack_require__(828);
|
|
36489
36620
|
// EXTERNAL MODULE: ./src/webgl/weathereffect/index.js + 4 modules
|
|
@@ -38076,6 +38207,10 @@ class LayerManager {
|
|
|
38076
38207
|
}
|
|
38077
38208
|
} else if (layerData.sourceType === "kqimageserver") {
|
|
38078
38209
|
type = "kqgisimageserver";
|
|
38210
|
+
|
|
38211
|
+
if (layerData.renderType === "weather") {
|
|
38212
|
+
type = "kqgisweatherserver";
|
|
38213
|
+
}
|
|
38079
38214
|
} else if (layerData.sourceType === "kq3dserver") {
|
|
38080
38215
|
type = "kqgis3dserver";
|
|
38081
38216
|
} else if (layerData.sourceType === "mvt") {
|
|
@@ -38229,7 +38364,8 @@ class LayerManager {
|
|
|
38229
38364
|
case "kqgis3dserver":
|
|
38230
38365
|
var that = this;
|
|
38231
38366
|
layerData.visible = isAdd;
|
|
38232
|
-
promise = this._viewer.addKq3dServerLayerGroupExt(url
|
|
38367
|
+
promise = this._viewer.addKq3dServerLayerGroupExt(url, { ...params
|
|
38368
|
+
}).then(group => {
|
|
38233
38369
|
var layers = group._addedLayers || group._layers;
|
|
38234
38370
|
|
|
38235
38371
|
if (layers && layers.length > 0) {
|
|
@@ -38269,6 +38405,7 @@ class LayerManager {
|
|
|
38269
38405
|
break;
|
|
38270
38406
|
|
|
38271
38407
|
case "kqgisimageserver":
|
|
38408
|
+
//kqgis影像服务-栅格数据
|
|
38272
38409
|
layerData.visible = isAdd;
|
|
38273
38410
|
layerData.serverType = "imagerylayer";
|
|
38274
38411
|
layerData.type = "Image"; // 图层树显示图标使用
|
|
@@ -38285,6 +38422,26 @@ class LayerManager {
|
|
|
38285
38422
|
|
|
38286
38423
|
break;
|
|
38287
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
|
+
|
|
38288
38445
|
case "kqgismapserver":
|
|
38289
38446
|
if (layerData.sourceLayers) {
|
|
38290
38447
|
var layerInfo = layerData.sourceLayers.find(item => {
|
|
@@ -38376,7 +38533,7 @@ class LayerManager {
|
|
|
38376
38533
|
|
|
38377
38534
|
case "wms":
|
|
38378
38535
|
//配置id时只能是单个图层
|
|
38379
|
-
if (layerData.rect84 && layerData.sourceType !== "service") {
|
|
38536
|
+
if (layerData.rect84 && layerData.sourceType !== "service" && layerData.dataSourceType !== "service") {
|
|
38380
38537
|
// 大数据wms服务使用
|
|
38381
38538
|
layerData.visible = isAdd;
|
|
38382
38539
|
layerData.serverType = "imagerylayer";
|
|
@@ -38417,6 +38574,8 @@ class LayerManager {
|
|
|
38417
38574
|
layerData.serverType = "imagerylayer";
|
|
38418
38575
|
|
|
38419
38576
|
if (isAdd) {
|
|
38577
|
+
if (params.url) url = params.url; // 设置多子域时使用
|
|
38578
|
+
|
|
38420
38579
|
promise = this._viewer.addWMSLayerGroup(url, { ...params,
|
|
38421
38580
|
layers: layerData.id + ""
|
|
38422
38581
|
}).then(group => {
|
|
@@ -38455,6 +38614,8 @@ class LayerManager {
|
|
|
38455
38614
|
layerData.serverType = "imagerylayer"; //配置id时只能是单个图层
|
|
38456
38615
|
|
|
38457
38616
|
if (isAdd) {
|
|
38617
|
+
if (params.url) url = params.url; // 设置多子域时使用
|
|
38618
|
+
|
|
38458
38619
|
promise = this._viewer.addWMTSLayerGroup(url, { ...params,
|
|
38459
38620
|
layers: layerData.id + ""
|
|
38460
38621
|
}).then(group => {
|