@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/adddata/index.js
CHANGED
|
@@ -213,11 +213,15 @@ var util_ = __webpack_require__(9519);
|
|
|
213
213
|
var message = __webpack_require__(1349);
|
|
214
214
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
|
|
215
215
|
var const_image_ = __webpack_require__(9702);
|
|
216
|
+
;// CONCATENATED MODULE: external "papaparse"
|
|
217
|
+
var external_papaparse_namespaceObject = require("papaparse");
|
|
218
|
+
var external_papaparse_default = /*#__PURE__*/__webpack_require__.n(external_papaparse_namespaceObject);
|
|
216
219
|
;// CONCATENATED MODULE: ./src/webgl/adddata/AddDataViewModel.js
|
|
217
220
|
|
|
218
221
|
|
|
219
222
|
|
|
220
223
|
|
|
224
|
+
|
|
221
225
|
//添加数据逻辑类
|
|
222
226
|
|
|
223
227
|
class AddDataViewModel {
|
|
@@ -241,13 +245,15 @@ class AddDataViewModel {
|
|
|
241
245
|
style: Cesium.LabelStyle.FILL_AND_OUTLINE,
|
|
242
246
|
eyeOffset: Cesium.Cartesian3.ZERO,
|
|
243
247
|
pixelOffset: new Cesium.Cartesian2(0, -8),
|
|
244
|
-
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
248
|
+
disableDepthTestDistance: 10000000 // disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
249
|
+
|
|
245
250
|
},
|
|
246
251
|
billboard: {
|
|
247
252
|
image: const_image_.BILLBOARD_IMAGE_URL,
|
|
248
253
|
width: 12,
|
|
249
254
|
height: 12,
|
|
250
|
-
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
255
|
+
disableDepthTestDistance: 10000000 // disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
256
|
+
|
|
251
257
|
},
|
|
252
258
|
polyline: {
|
|
253
259
|
width: 2.0,
|
|
@@ -302,8 +308,7 @@ class AddDataViewModel {
|
|
|
302
308
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
303
309
|
|
|
304
310
|
|
|
305
|
-
that.
|
|
306
|
-
|
|
311
|
+
that.flyToLayer(ds);
|
|
307
312
|
resolve("success");
|
|
308
313
|
var layer = {
|
|
309
314
|
guid: ds.guid,
|
|
@@ -321,7 +326,7 @@ class AddDataViewModel {
|
|
|
321
326
|
cb && cb(layer);
|
|
322
327
|
});
|
|
323
328
|
} else {
|
|
324
|
-
reject(file.name + "
|
|
329
|
+
reject(file.name + " file parser error.");
|
|
325
330
|
cb && cb("error");
|
|
326
331
|
}
|
|
327
332
|
});
|
|
@@ -344,8 +349,129 @@ class AddDataViewModel {
|
|
|
344
349
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
345
350
|
|
|
346
351
|
|
|
347
|
-
that.
|
|
352
|
+
that.flyToLayer(ds);
|
|
353
|
+
resolve("success");
|
|
354
|
+
var layer = {
|
|
355
|
+
guid: ds.guid,
|
|
356
|
+
name: name,
|
|
357
|
+
visible: true,
|
|
358
|
+
serverType: "datasource",
|
|
359
|
+
lsType: "ls",
|
|
360
|
+
url: res,
|
|
361
|
+
addType: "geojson",
|
|
362
|
+
shapeType: that._layerManager.getShapeType(ds)
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
that._layerManager.addTempLayerNode(layer);
|
|
366
|
+
|
|
367
|
+
cb && cb(layer);
|
|
368
|
+
});
|
|
369
|
+
} else {
|
|
370
|
+
reject(file.name + " file parser error.");
|
|
371
|
+
cb && cb("error");
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
} else if (ext === "csv") {
|
|
375
|
+
(0,util_.readFile)(file, res => {
|
|
376
|
+
var features = external_papaparse_default().parse(res, {
|
|
377
|
+
skipEmptyLines: true,
|
|
378
|
+
header: true
|
|
379
|
+
}).data;
|
|
380
|
+
let _featureCollection = {
|
|
381
|
+
type: "FeatureCollection",
|
|
382
|
+
features: []
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
for (var i = 0; i < features.length; i++) {
|
|
386
|
+
let item = features[i];
|
|
387
|
+
let lat = null;
|
|
388
|
+
let lng = null;
|
|
389
|
+
let properties = {};
|
|
390
|
+
|
|
391
|
+
for (var j in item) {
|
|
392
|
+
if (j.toUpperCase().indexOf("LAT") != -1) {
|
|
393
|
+
lat = item[j];
|
|
394
|
+
} else if (j.toUpperCase().indexOf("LNG") != -1 || j.toUpperCase().indexOf("LON") != -1) {
|
|
395
|
+
lng = item[j];
|
|
396
|
+
} else if (j.toUpperCase() === "X") {
|
|
397
|
+
lat = item[j];
|
|
398
|
+
} else if (j.toUpperCase() === "Y") {
|
|
399
|
+
lng = item[j];
|
|
400
|
+
} else {
|
|
401
|
+
properties[j] = item[j];
|
|
402
|
+
}
|
|
403
|
+
} // 点数据
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
if (lat && lng) {
|
|
407
|
+
let _point = {
|
|
408
|
+
type: "Feature",
|
|
409
|
+
geometry: {
|
|
410
|
+
type: "Point",
|
|
411
|
+
coordinates: [Number(lng), Number(lat)]
|
|
412
|
+
},
|
|
413
|
+
properties: properties
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
_featureCollection.features.push(_point);
|
|
417
|
+
} else {}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
if (_featureCollection.features.length > 0) {
|
|
421
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
422
|
+
ds.load(_featureCollection, that._geojsonStyle).then(ds => {
|
|
423
|
+
ds.entities.values.forEach(entity => {
|
|
424
|
+
if (entity.polygon) {
|
|
425
|
+
entity.polyline = {
|
|
426
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
427
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
428
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
|
|
433
|
+
that._viewer.dataSources.add(ds);
|
|
434
|
+
|
|
435
|
+
that.flyToLayer(ds);
|
|
436
|
+
resolve("success");
|
|
437
|
+
var layer = {
|
|
438
|
+
guid: ds.guid,
|
|
439
|
+
name: name,
|
|
440
|
+
visible: true,
|
|
441
|
+
serverType: "datasource",
|
|
442
|
+
lsType: "ls",
|
|
443
|
+
url: _featureCollection,
|
|
444
|
+
addType: "geojson",
|
|
445
|
+
shapeType: that._layerManager.getShapeType(ds)
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
that._layerManager.addTempLayerNode(layer);
|
|
449
|
+
|
|
450
|
+
cb && cb(layer);
|
|
451
|
+
});
|
|
452
|
+
} else {
|
|
453
|
+
reject(file.name + " file parser error.");
|
|
454
|
+
cb && cb("error");
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
} else if (ext === "xls" || ext === "xlsx") {
|
|
458
|
+
(0,util_.readExcel)(file, this._language, res => {
|
|
459
|
+
if (res) {
|
|
460
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
461
|
+
ds.load(res, that._geojsonStyle).then(ds => {
|
|
462
|
+
ds.entities.values.forEach(entity => {
|
|
463
|
+
if (entity.polygon) {
|
|
464
|
+
entity.polyline = {
|
|
465
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
466
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
467
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
|
|
472
|
+
that._viewer.dataSources.add(ds);
|
|
348
473
|
|
|
474
|
+
that.flyToLayer(ds);
|
|
349
475
|
resolve("success");
|
|
350
476
|
var layer = {
|
|
351
477
|
guid: ds.guid,
|
|
@@ -363,7 +489,8 @@ class AddDataViewModel {
|
|
|
363
489
|
cb && cb(layer);
|
|
364
490
|
});
|
|
365
491
|
} else {
|
|
366
|
-
reject(file.name + "
|
|
492
|
+
reject(file.name + " file parser error.");
|
|
493
|
+
cb && cb("error");
|
|
367
494
|
}
|
|
368
495
|
});
|
|
369
496
|
} else {
|
|
@@ -417,8 +544,7 @@ class AddDataViewModel {
|
|
|
417
544
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
418
545
|
|
|
419
546
|
|
|
420
|
-
that.
|
|
421
|
-
|
|
547
|
+
that.flyToLayer(ds);
|
|
422
548
|
resolve("success");
|
|
423
549
|
var layer = {
|
|
424
550
|
guid: ds.guid,
|
|
@@ -451,8 +577,7 @@ class AddDataViewModel {
|
|
|
451
577
|
ds.load(data).then(ds => {
|
|
452
578
|
that._viewer.dataSources.add(ds);
|
|
453
579
|
|
|
454
|
-
that.
|
|
455
|
-
|
|
580
|
+
that.flyToLayer(ds);
|
|
456
581
|
resolve("success");
|
|
457
582
|
var layer = {
|
|
458
583
|
guid: ds.guid,
|
|
@@ -480,8 +605,7 @@ class AddDataViewModel {
|
|
|
480
605
|
ds.load(file).then(ds => {
|
|
481
606
|
that._viewer.dataSources.add(ds);
|
|
482
607
|
|
|
483
|
-
that.
|
|
484
|
-
|
|
608
|
+
that.flyToLayer(ds);
|
|
485
609
|
resolve("success");
|
|
486
610
|
var layer = {
|
|
487
611
|
guid: ds.guid,
|
|
@@ -513,8 +637,7 @@ class AddDataViewModel {
|
|
|
513
637
|
that._viewer.dataSources.add(Cesium.CzmlDataSource.load(ret, {
|
|
514
638
|
name: name
|
|
515
639
|
})).then(ds => {
|
|
516
|
-
that.
|
|
517
|
-
|
|
640
|
+
that.flyToLayer(ds);
|
|
518
641
|
resolve("success");
|
|
519
642
|
var layer = {
|
|
520
643
|
guid: ds.guid,
|
|
@@ -554,7 +677,7 @@ class AddDataViewModel {
|
|
|
554
677
|
} //解析数据源
|
|
555
678
|
|
|
556
679
|
|
|
557
|
-
parseDataSource(options, cb) {
|
|
680
|
+
parseDataSource(options, cb, loadCustom) {
|
|
558
681
|
options = options || {};
|
|
559
682
|
|
|
560
683
|
if (options.url && options.url !== "") {
|
|
@@ -573,13 +696,13 @@ class AddDataViewModel {
|
|
|
573
696
|
} catch (error) {
|
|
574
697
|
(0,message/* default */.Z)({
|
|
575
698
|
message: this._language.errorUrlAddress,
|
|
576
|
-
type: "
|
|
699
|
+
type: "warning"
|
|
577
700
|
});
|
|
578
701
|
return;
|
|
579
702
|
}
|
|
580
703
|
|
|
581
704
|
if (options.type === "kml") {
|
|
582
|
-
this.parseService(options, cb);
|
|
705
|
+
this.parseService(options, cb, loadCustom);
|
|
583
706
|
return;
|
|
584
707
|
}
|
|
585
708
|
|
|
@@ -589,17 +712,17 @@ class AddDataViewModel {
|
|
|
589
712
|
if (data.status !== 200) {
|
|
590
713
|
(0,message/* default */.Z)({
|
|
591
714
|
message: this._language.serviceNotAvailable,
|
|
592
|
-
type: "
|
|
715
|
+
type: "warning"
|
|
593
716
|
});
|
|
594
717
|
} else {
|
|
595
718
|
try {
|
|
596
|
-
this.parseService(options, cb);
|
|
719
|
+
this.parseService(options, cb, loadCustom);
|
|
597
720
|
} catch {}
|
|
598
721
|
}
|
|
599
722
|
}).catch(() => {
|
|
600
723
|
(0,message/* default */.Z)({
|
|
601
724
|
message: this._language.serviceNotAvailable,
|
|
602
|
-
type: "
|
|
725
|
+
type: "warning"
|
|
603
726
|
});
|
|
604
727
|
});
|
|
605
728
|
} else {
|
|
@@ -611,7 +734,7 @@ class AddDataViewModel {
|
|
|
611
734
|
} //解析服务
|
|
612
735
|
|
|
613
736
|
|
|
614
|
-
parseService(options, cb) {
|
|
737
|
+
parseService(options, cb, loadCustom) {
|
|
615
738
|
let that = this;
|
|
616
739
|
let url = options.url;
|
|
617
740
|
let type = options.type || "";
|
|
@@ -924,6 +1047,14 @@ class AddDataViewModel {
|
|
|
924
1047
|
break;
|
|
925
1048
|
|
|
926
1049
|
case "kqgismapserver":
|
|
1050
|
+
if (loadCustom) {
|
|
1051
|
+
loadCustom({
|
|
1052
|
+
name,
|
|
1053
|
+
url
|
|
1054
|
+
});
|
|
1055
|
+
return;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
927
1058
|
node = {
|
|
928
1059
|
guid: Cesium.createGuid(),
|
|
929
1060
|
name: name,
|
|
@@ -947,7 +1078,7 @@ class AddDataViewModel {
|
|
|
947
1078
|
if (mapInfo.resultcode === "error") {
|
|
948
1079
|
(0,message/* default */.Z)({
|
|
949
1080
|
message: mapInfo.message,
|
|
950
|
-
type: "
|
|
1081
|
+
type: "warning"
|
|
951
1082
|
});
|
|
952
1083
|
return;
|
|
953
1084
|
}
|
|
@@ -1178,8 +1309,7 @@ class AddDataViewModel {
|
|
|
1178
1309
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
1179
1310
|
|
|
1180
1311
|
|
|
1181
|
-
that.
|
|
1182
|
-
|
|
1312
|
+
that.flyToLayer(ds);
|
|
1183
1313
|
node = {
|
|
1184
1314
|
guid: ds.guid,
|
|
1185
1315
|
name: name,
|
|
@@ -1213,8 +1343,7 @@ class AddDataViewModel {
|
|
|
1213
1343
|
this._viewer.dataSources.add(ds); // ds.autoAvoid(this._viewer);
|
|
1214
1344
|
|
|
1215
1345
|
|
|
1216
|
-
|
|
1217
|
-
|
|
1346
|
+
that.flyToLayer(ds);
|
|
1218
1347
|
node = {
|
|
1219
1348
|
guid: ds.guid,
|
|
1220
1349
|
name: name,
|
|
@@ -1250,8 +1379,7 @@ class AddDataViewModel {
|
|
|
1250
1379
|
|
|
1251
1380
|
this._viewer.dataSources.add(ds);
|
|
1252
1381
|
|
|
1253
|
-
|
|
1254
|
-
|
|
1382
|
+
that.flyToLayer(ds);
|
|
1255
1383
|
node = {
|
|
1256
1384
|
guid: ds.guid,
|
|
1257
1385
|
name: name,
|
|
@@ -1278,8 +1406,7 @@ class AddDataViewModel {
|
|
|
1278
1406
|
ds.load(url).then(ds => {
|
|
1279
1407
|
this._viewer.dataSources.add(ds);
|
|
1280
1408
|
|
|
1281
|
-
|
|
1282
|
-
|
|
1409
|
+
that.flyToLayer(ds);
|
|
1283
1410
|
node = {
|
|
1284
1411
|
guid: ds.guid,
|
|
1285
1412
|
name: name,
|
|
@@ -1301,8 +1428,7 @@ class AddDataViewModel {
|
|
|
1301
1428
|
ds.load(url).then(ds => {
|
|
1302
1429
|
this._viewer.dataSources.add(ds);
|
|
1303
1430
|
|
|
1304
|
-
|
|
1305
|
-
|
|
1431
|
+
that.flyToLayer(ds);
|
|
1306
1432
|
node = {
|
|
1307
1433
|
guid: ds.guid,
|
|
1308
1434
|
name: name,
|
|
@@ -1365,7 +1491,7 @@ class AddDataViewModel {
|
|
|
1365
1491
|
destination: tileset.rectangle
|
|
1366
1492
|
});
|
|
1367
1493
|
});
|
|
1368
|
-
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource) {
|
|
1494
|
+
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource || layer instanceof Cesium.Kq3dEsriGeoJsonDataSource) {
|
|
1369
1495
|
let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
|
|
1370
1496
|
viewer.flyTo(layer, {
|
|
1371
1497
|
offset
|
|
@@ -1445,7 +1571,6 @@ const _hoisted_12 = {
|
|
|
1445
1571
|
|
|
1446
1572
|
|
|
1447
1573
|
|
|
1448
|
-
//accept=".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt"
|
|
1449
1574
|
|
|
1450
1575
|
const __default__ = {
|
|
1451
1576
|
name: "Kq3dAddData"
|
|
@@ -1482,6 +1607,11 @@ const __default__ = {
|
|
|
1482
1607
|
type: Function,
|
|
1483
1608
|
default: null
|
|
1484
1609
|
},
|
|
1610
|
+
// 自定义加载函数, 只对KQGIS REST服务生效, earthstudio使用
|
|
1611
|
+
loadCustom: {
|
|
1612
|
+
type: Function,
|
|
1613
|
+
default: null
|
|
1614
|
+
},
|
|
1485
1615
|
// 是否生成HeaderTemp
|
|
1486
1616
|
showHeaderTemp: {
|
|
1487
1617
|
type: Boolean,
|
|
@@ -1516,6 +1646,7 @@ const __default__ = {
|
|
|
1516
1646
|
expose
|
|
1517
1647
|
}) {
|
|
1518
1648
|
const props = __props;
|
|
1649
|
+
let accept = ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt";
|
|
1519
1650
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
1520
1651
|
let selectTypeIndex = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0); //URL服务支持的数据源类型
|
|
1521
1652
|
|
|
@@ -1574,104 +1705,104 @@ const __default__ = {
|
|
|
1574
1705
|
return [// {
|
|
1575
1706
|
// type: 'kq3dimageryfile',
|
|
1576
1707
|
// name: language.value.ImagertyTileFile,
|
|
1577
|
-
// namePlaceholder: language.value.
|
|
1708
|
+
// namePlaceholder: language.value.optional,
|
|
1578
1709
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
1579
1710
|
// description: language.value.imagertyTileFiledescription
|
|
1580
1711
|
// }, {
|
|
1581
1712
|
// type: 'obterrain',
|
|
1582
1713
|
// name: language.value.ObTerrainTileFile,
|
|
1583
|
-
// namePlaceholder: language.value.
|
|
1714
|
+
// namePlaceholder: language.value.optional,
|
|
1584
1715
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
1585
1716
|
// description: language.value.imagertyObTerrainTileFiledescription
|
|
1586
1717
|
// },
|
|
1587
1718
|
{
|
|
1588
1719
|
type: "kqgis3dserver",
|
|
1589
1720
|
name: language.value.KQGIS3DServer,
|
|
1590
|
-
namePlaceholder: language.value.
|
|
1721
|
+
namePlaceholder: language.value.optional,
|
|
1591
1722
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/realspace",
|
|
1592
1723
|
description: language.value.imagerty3DServerdescription
|
|
1593
1724
|
}, {
|
|
1594
1725
|
type: "kqgismapserver",
|
|
1595
1726
|
name: language.value.KQGISMapServer,
|
|
1596
|
-
namePlaceholder: language.value.
|
|
1727
|
+
namePlaceholder: language.value.optional,
|
|
1597
1728
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map",
|
|
1598
1729
|
description: language.value.imagertyMapServerdescription
|
|
1599
1730
|
}, {
|
|
1600
1731
|
type: "kqgisimageserver",
|
|
1601
1732
|
name: language.value.KQGISImageServer,
|
|
1602
|
-
namePlaceholder: language.value.
|
|
1733
|
+
namePlaceholder: language.value.optional,
|
|
1603
1734
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/image",
|
|
1604
1735
|
description: language.value.imagertyImageServerdescription
|
|
1605
1736
|
}, {
|
|
1606
1737
|
type: "kqgisdataflowserver",
|
|
1607
1738
|
name: language.value.KQGISDataflowServer,
|
|
1608
|
-
namePlaceholder: language.value.
|
|
1739
|
+
namePlaceholder: language.value.optional,
|
|
1609
1740
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/streaming/rest/services/<servername>/dataflow",
|
|
1610
1741
|
description: language.value.imagertyDataflowServerdescription
|
|
1611
1742
|
}, {
|
|
1612
1743
|
type: "kqgistileserver",
|
|
1613
1744
|
name: language.value.KQGISTileServer,
|
|
1614
|
-
namePlaceholder: language.value.
|
|
1745
|
+
namePlaceholder: language.value.optional,
|
|
1615
1746
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
|
|
1616
1747
|
description: language.value.imagertyTileServerdescription
|
|
1617
1748
|
}, {
|
|
1618
1749
|
type: "kqgisaggregationserver",
|
|
1619
1750
|
name: language.value.KQGISAggregationServer,
|
|
1620
|
-
namePlaceholder: language.value.
|
|
1751
|
+
namePlaceholder: language.value.optional,
|
|
1621
1752
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
1622
1753
|
description: language.value.imagertyAggregationServerdescription
|
|
1623
1754
|
}, {
|
|
1624
1755
|
type: "s3m",
|
|
1625
1756
|
name: language.value.S3M,
|
|
1626
|
-
namePlaceholder: language.value.
|
|
1757
|
+
namePlaceholder: language.value.optional,
|
|
1627
1758
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/realspace/datas/xxx/config",
|
|
1628
1759
|
description: language.value.imagertyS3Mdescription
|
|
1629
1760
|
}, {
|
|
1630
1761
|
type: "arcgismapserver",
|
|
1631
1762
|
name: language.value.ArcGISMapServer,
|
|
1632
|
-
namePlaceholder: language.value.
|
|
1763
|
+
namePlaceholder: language.value.optional,
|
|
1633
1764
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/ArcGIS/rest/services/<servername>/MapServer",
|
|
1634
1765
|
description: language.value.imagertyArcGISMapServerdescription
|
|
1635
1766
|
}, {
|
|
1636
1767
|
type: "wms",
|
|
1637
1768
|
name: language.value.OGCWMS,
|
|
1638
|
-
namePlaceholder: language.value.
|
|
1769
|
+
namePlaceholder: language.value.optional,
|
|
1639
1770
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wms",
|
|
1640
1771
|
description: language.value.imagertyOGCWMSdescription
|
|
1641
1772
|
}, {
|
|
1642
1773
|
type: "wmts",
|
|
1643
1774
|
name: language.value.OGCWMTS,
|
|
1644
|
-
namePlaceholder: language.value.
|
|
1775
|
+
namePlaceholder: language.value.optional,
|
|
1645
1776
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
1646
1777
|
description: language.value.imagertyOGCWMTSdescription
|
|
1647
1778
|
}, {
|
|
1648
1779
|
type: "3dtiles",
|
|
1649
1780
|
name: language.value.Cesium3DTilesFile,
|
|
1650
|
-
namePlaceholder: language.value.
|
|
1781
|
+
namePlaceholder: language.value.optional,
|
|
1651
1782
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/tileset.json",
|
|
1652
1783
|
description: language.value.imagerty3DTilesFiledescription
|
|
1653
1784
|
}, {
|
|
1654
1785
|
type: "stkterrain",
|
|
1655
1786
|
name: language.value.StkTerrainTileFile,
|
|
1656
|
-
namePlaceholder: language.value.
|
|
1787
|
+
namePlaceholder: language.value.optional,
|
|
1657
1788
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/<foldername>/",
|
|
1658
1789
|
description: language.value.imagertyStkTerrainTileFiledescription
|
|
1659
1790
|
}, {
|
|
1660
1791
|
type: "geojson",
|
|
1661
1792
|
name: language.value.GeoJson,
|
|
1662
|
-
namePlaceholder: language.value.
|
|
1793
|
+
namePlaceholder: language.value.optional,
|
|
1663
1794
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
|
|
1664
1795
|
description: language.value.imagertyGeoJsondescription
|
|
1665
1796
|
}, {
|
|
1666
1797
|
type: "arcjson",
|
|
1667
1798
|
name: language.value.ArcJson,
|
|
1668
|
-
namePlaceholder: language.value.
|
|
1799
|
+
namePlaceholder: language.value.optional,
|
|
1669
1800
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.json",
|
|
1670
1801
|
description: language.value.imagertyArcJsondescription
|
|
1671
1802
|
}, {
|
|
1672
1803
|
type: "mvt",
|
|
1673
1804
|
name: language.value.MVT,
|
|
1674
|
-
namePlaceholder: language.value.
|
|
1805
|
+
namePlaceholder: language.value.optional,
|
|
1675
1806
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
|
|
1676
1807
|
description: language.value.imagertyMVTdescription
|
|
1677
1808
|
}
|
|
@@ -1684,13 +1815,13 @@ const __default__ = {
|
|
|
1684
1815
|
}, {
|
|
1685
1816
|
type: 'kml',
|
|
1686
1817
|
name: language.value.KML,
|
|
1687
|
-
namePlaceholder: language.value.
|
|
1818
|
+
namePlaceholder: language.value.optional,
|
|
1688
1819
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.kml',
|
|
1689
1820
|
description: language.value.imagertyKMLdescription
|
|
1690
1821
|
}, {
|
|
1691
1822
|
type: 'czml',
|
|
1692
1823
|
name: language.value.CZML,
|
|
1693
|
-
namePlaceholder: language.value.
|
|
1824
|
+
namePlaceholder: language.value.optional,
|
|
1694
1825
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.czml',
|
|
1695
1826
|
description: language.value.imagertyCZMLdescription
|
|
1696
1827
|
}*/
|
|
@@ -1778,7 +1909,7 @@ const __default__ = {
|
|
|
1778
1909
|
type: dataSourceType.value.type,
|
|
1779
1910
|
url: dataSource.url,
|
|
1780
1911
|
name: dataSource.name
|
|
1781
|
-
}, props.loadCallback);
|
|
1912
|
+
}, props.loadCallback, props.loadCustom);
|
|
1782
1913
|
} // 重置
|
|
1783
1914
|
|
|
1784
1915
|
|
|
@@ -1861,7 +1992,7 @@ const __default__ = {
|
|
|
1861
1992
|
"auto-upload": false,
|
|
1862
1993
|
"file-list": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList),
|
|
1863
1994
|
"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),
|
|
1864
|
-
accept:
|
|
1995
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(accept),
|
|
1865
1996
|
"on-change": changeFile,
|
|
1866
1997
|
ref_key: "upload_ref",
|
|
1867
1998
|
ref: upload_ref
|
|
@@ -1874,7 +2005,7 @@ const __default__ = {
|
|
|
1874
2005
|
|
|
1875
2006
|
}, 8
|
|
1876
2007
|
/* PROPS */
|
|
1877
|
-
, ["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) => {
|
|
2008
|
+
, ["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) => {
|
|
1878
2009
|
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, {
|
|
1879
2010
|
key: i,
|
|
1880
2011
|
gutter: 20
|
|
@@ -1929,7 +2060,7 @@ const __default__ = {
|
|
|
1929
2060
|
action: "",
|
|
1930
2061
|
"show-file-list": false,
|
|
1931
2062
|
"auto-upload": false,
|
|
1932
|
-
accept:
|
|
2063
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(accept),
|
|
1933
2064
|
ref_key: "upload_btn_ref",
|
|
1934
2065
|
ref: upload_btn_ref,
|
|
1935
2066
|
class: "kq3d-add-data-footer-upload",
|
|
@@ -1951,9 +2082,9 @@ const __default__ = {
|
|
|
1951
2082
|
_: 1
|
|
1952
2083
|
/* STABLE */
|
|
1953
2084
|
|
|
1954
|
-
},
|
|
1955
|
-
/*
|
|
1956
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
2085
|
+
}, 8
|
|
2086
|
+
/* PROPS */
|
|
2087
|
+
, ["accept"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1957
2088
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => removeFiles(), ["stop"])),
|
|
1958
2089
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearFiles,
|
|
1959
2090
|
type: "primary"
|
|
@@ -2055,7 +2186,7 @@ const __default__ = {
|
|
|
2055
2186
|
|
|
2056
2187
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
2057
2188
|
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, {
|
|
2058
|
-
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).
|
|
2189
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).nodeName
|
|
2059
2190
|
}, {
|
|
2060
2191
|
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, {
|
|
2061
2192
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataSource).name,
|