@kq_npm/client3d_webgl_vue 3.0.8-beta → 3.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 +250 -142
- package/adddata/style/adddata.css +1 -1
- package/baseterraingallery/index.js +2 -1
- package/baseterraingallery/style/baseterraingallery.css +1 -1
- package/excavatefillanalysis/index.js +2 -13
- package/flight/index.js +42 -177
- package/floodanalysis/index.js +56 -194
- package/gpuspatialquery/index.js +42 -177
- package/headertemp/index.js +34 -83
- package/index.js +1011 -564
- package/isolineanalysis/index.js +42 -177
- package/measure/index.js +42 -177
- package/modelselect/index.js +41 -177
- package/package.json +1 -1
- package/particleeffect/index.js +40 -176
- package/planeclip/index.js +42 -177
- package/profileanalysis/index.js +42 -177
- package/roller/index.js +43 -188
- package/scenceview/index.js +1065 -635
- package/screenshot/index.js +47 -179
- package/screenshot/style/screenshot.css +1 -1
- package/shadowanalysis/index.js +42 -177
- package/sightlineanalysis/index.js +41 -177
- package/skylineanalysis/index.js +42 -177
- package/slopeanalysis/index.js +42 -177
- package/style.css +1 -1
- package/terrainoperation/index.js +42 -177
- package/underground/index.js +32 -20
- package/viewshedanalysis/index.js +40 -176
- package/weathereffect/index.js +42 -177
package/adddata/index.js
CHANGED
|
@@ -260,183 +260,271 @@ class AddDataViewModel {
|
|
|
260
260
|
this._layerManager = scenceView._layerManager;
|
|
261
261
|
this._geojsonStyle.billboard.image = options.billboardImage;
|
|
262
262
|
this._language = scenceView._language;
|
|
263
|
+
this._geometryServerUrl = options.geometryServerUrl;
|
|
264
|
+
this._geometryServerToken = options.geometryServerToken;
|
|
263
265
|
} //解析文件
|
|
264
266
|
|
|
265
267
|
|
|
266
|
-
parseFile(file,
|
|
267
|
-
var reader = new FileReader();
|
|
268
|
-
reader.readAsText(file); //文本
|
|
269
|
-
//readAsDataURL(file); //base64 图片
|
|
270
|
-
//readAsArrayBuffer(file); //原始二进制数据
|
|
271
|
-
//readAsBinaryString(file);//二进制字符串
|
|
272
|
-
//reader.readAsBinaryString(file);
|
|
273
|
-
|
|
268
|
+
parseFile(file, cb) {
|
|
274
269
|
var that = this;
|
|
275
|
-
|
|
276
|
-
reader.onload = function (event) {
|
|
277
|
-
var ret = event.target.result;
|
|
270
|
+
return new Promise((resolve, reject) => {
|
|
278
271
|
var ext = file.name.replace(/.+\./, "").toLowerCase(); //文件扩展名
|
|
279
272
|
|
|
280
273
|
var name = file.name.replace(/(.*\/)*([^.]+).*/gi, "$2"); //文件名
|
|
281
274
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
275
|
+
if (ext === "zip") {
|
|
276
|
+
(0,util_.uploadSHP)(that._geometryServerUrl, file, that._geometryServerToken, null, function (res) {
|
|
277
|
+
if (res) {
|
|
278
|
+
if (res.srs) {
|
|
279
|
+
//返回的geojson数据已经做了处理,返回数据坐标系为4326
|
|
280
|
+
delete res.srs;
|
|
281
|
+
}
|
|
288
282
|
|
|
289
|
-
|
|
290
|
-
|
|
283
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
284
|
+
ds.load(res, that._geojsonStyle).then(ds => {
|
|
285
|
+
ds.entities.values.forEach(entity => {
|
|
286
|
+
if (entity.polygon) {
|
|
287
|
+
entity.polyline = {
|
|
288
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
289
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
290
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
});
|
|
291
294
|
|
|
292
|
-
|
|
293
|
-
ret = data;
|
|
294
|
-
}
|
|
295
|
-
} catch (e) {}
|
|
295
|
+
that._viewer.dataSources.add(ds);
|
|
296
296
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
297
|
+
ds.autoAvoid(that._viewer);
|
|
298
|
+
|
|
299
|
+
that._viewer.flyTo(ds);
|
|
300
|
+
|
|
301
|
+
resolve("success");
|
|
302
|
+
var layer = {
|
|
303
|
+
guid: ds.guid,
|
|
304
|
+
name: name,
|
|
305
|
+
visible: true,
|
|
306
|
+
serverType: "datasource",
|
|
307
|
+
lsType: "ls"
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
that._layerManager.addTempLayerNode(layer);
|
|
311
|
+
|
|
312
|
+
cb && cb(layer);
|
|
307
313
|
});
|
|
314
|
+
} else {
|
|
315
|
+
reject(file.name + " service parse error.");
|
|
316
|
+
cb && cb("error");
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
} else if (ext === "txt") {
|
|
320
|
+
let dataUrl = that._geometryServerUrl + (that._geometryServerToken ? "?ua_token=" + that._geometryServerToken : "");
|
|
321
|
+
(0,util_.readTxT)(file, dataUrl, "4326", res => {
|
|
322
|
+
if (res) {
|
|
323
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
324
|
+
ds.load(res, that._geojsonStyle).then(ds => {
|
|
325
|
+
ds.entities.values.forEach(entity => {
|
|
326
|
+
if (entity.polygon) {
|
|
327
|
+
entity.polyline = {
|
|
328
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
329
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
330
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
});
|
|
308
334
|
|
|
309
|
-
|
|
335
|
+
that._viewer.dataSources.add(ds);
|
|
310
336
|
|
|
311
|
-
|
|
337
|
+
ds.autoAvoid(that._viewer);
|
|
312
338
|
|
|
313
|
-
|
|
339
|
+
that._viewer.flyTo(ds);
|
|
314
340
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
341
|
+
resolve("success");
|
|
342
|
+
var layer = {
|
|
343
|
+
guid: ds.guid,
|
|
344
|
+
name: name,
|
|
345
|
+
visible: true,
|
|
346
|
+
serverType: "datasource",
|
|
347
|
+
lsType: "ls"
|
|
348
|
+
};
|
|
322
349
|
|
|
323
|
-
|
|
350
|
+
that._layerManager.addTempLayerNode(layer);
|
|
324
351
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
352
|
+
cb && cb(layer);
|
|
353
|
+
});
|
|
354
|
+
} else {
|
|
355
|
+
reject(file.name + " service parse error.");
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
} else {
|
|
359
|
+
var reader = new FileReader();
|
|
360
|
+
reader.readAsText(file); //文本
|
|
361
|
+
//readAsDataURL(file); //base64 图片
|
|
362
|
+
//readAsArrayBuffer(file); //原始二进制数据
|
|
363
|
+
//readAsBinaryString(file);//二进制字符串
|
|
364
|
+
//reader.readAsBinaryString(file);
|
|
365
|
+
|
|
366
|
+
reader.onload = function (event) {
|
|
367
|
+
var ret = event.target.result;
|
|
368
|
+
|
|
369
|
+
switch (ext) {
|
|
370
|
+
case "json":
|
|
371
|
+
case "geojson":
|
|
372
|
+
case "topojson":
|
|
373
|
+
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
374
|
+
ret = ret.substring(ret.indexOf("{"));
|
|
375
|
+
|
|
376
|
+
try {
|
|
377
|
+
var data = JSON.parse(ret);
|
|
378
|
+
|
|
379
|
+
if (typeof data == "object" && data) {
|
|
380
|
+
ret = data;
|
|
381
|
+
}
|
|
382
|
+
} catch (e) {}
|
|
383
|
+
|
|
384
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
385
|
+
ds.load(ret, that._geojsonStyle).then(ds => {
|
|
386
|
+
ds.entities.values.forEach(entity => {
|
|
387
|
+
if (entity.polygon) {
|
|
388
|
+
entity.polyline = {
|
|
389
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
390
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
391
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
});
|
|
328
395
|
|
|
329
|
-
|
|
330
|
-
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
331
|
-
var options = {
|
|
332
|
-
name: name,
|
|
333
|
-
camera: that._viewer.scene.camera,
|
|
334
|
-
canvas: that._viewer.scene.canvas
|
|
335
|
-
};
|
|
336
|
-
var ds = new Cesium.KmlDataSource(options);
|
|
337
|
-
var data = new Blob([ret], {
|
|
338
|
-
type: "text/xml"
|
|
339
|
-
});
|
|
340
|
-
ds.load(data).then(ds => {
|
|
341
|
-
that._viewer.dataSources.add(ds);
|
|
396
|
+
that._viewer.dataSources.add(ds);
|
|
342
397
|
|
|
343
|
-
|
|
398
|
+
ds.autoAvoid(that._viewer);
|
|
344
399
|
|
|
345
|
-
|
|
346
|
-
guid: ds.guid,
|
|
347
|
-
name: name,
|
|
348
|
-
visible: true,
|
|
349
|
-
serverType: "datasource",
|
|
350
|
-
lsType: "ls"
|
|
351
|
-
};
|
|
400
|
+
that._viewer.flyTo(ds);
|
|
352
401
|
|
|
353
|
-
|
|
402
|
+
resolve("success");
|
|
403
|
+
var layer = {
|
|
404
|
+
guid: ds.guid,
|
|
405
|
+
name: name,
|
|
406
|
+
visible: true,
|
|
407
|
+
serverType: "datasource",
|
|
408
|
+
lsType: "ls"
|
|
409
|
+
};
|
|
354
410
|
|
|
355
|
-
|
|
356
|
-
});
|
|
357
|
-
break;
|
|
411
|
+
that._layerManager.addTempLayerNode(layer);
|
|
358
412
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
camera: that._viewer.scene.camera,
|
|
363
|
-
canvas: that._viewer.scene.canvas
|
|
364
|
-
};
|
|
365
|
-
var ds = new Cesium.KmlDataSource(options);
|
|
366
|
-
ds.load(file).then(ds => {
|
|
367
|
-
that._viewer.dataSources.add(ds);
|
|
413
|
+
cb && cb(layer);
|
|
414
|
+
});
|
|
415
|
+
break;
|
|
368
416
|
|
|
369
|
-
|
|
417
|
+
case "kml":
|
|
418
|
+
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
419
|
+
var options = {
|
|
420
|
+
name: name,
|
|
421
|
+
camera: that._viewer.scene.camera,
|
|
422
|
+
canvas: that._viewer.scene.canvas
|
|
423
|
+
};
|
|
424
|
+
var ds = new Cesium.KmlDataSource(options);
|
|
425
|
+
var data = new Blob([ret], {
|
|
426
|
+
type: "text/xml"
|
|
427
|
+
});
|
|
428
|
+
ds.load(data).then(ds => {
|
|
429
|
+
that._viewer.dataSources.add(ds);
|
|
370
430
|
|
|
371
|
-
|
|
372
|
-
guid: ds.guid,
|
|
373
|
-
name: name,
|
|
374
|
-
visible: true,
|
|
375
|
-
serverType: "datasource",
|
|
376
|
-
lsType: "ls"
|
|
377
|
-
};
|
|
431
|
+
that._viewer.flyTo(ds);
|
|
378
432
|
|
|
379
|
-
|
|
433
|
+
resolve("success");
|
|
434
|
+
var layer = {
|
|
435
|
+
guid: ds.guid,
|
|
436
|
+
name: name,
|
|
437
|
+
visible: true,
|
|
438
|
+
serverType: "datasource",
|
|
439
|
+
lsType: "ls"
|
|
440
|
+
};
|
|
380
441
|
|
|
381
|
-
|
|
382
|
-
});
|
|
383
|
-
break;
|
|
442
|
+
that._layerManager.addTempLayerNode(layer);
|
|
384
443
|
|
|
385
|
-
|
|
386
|
-
|
|
444
|
+
cb && cb(layer);
|
|
445
|
+
});
|
|
446
|
+
break;
|
|
387
447
|
|
|
388
|
-
|
|
389
|
-
|
|
448
|
+
case "kmz":
|
|
449
|
+
var options = {
|
|
450
|
+
name: name,
|
|
451
|
+
camera: that._viewer.scene.camera,
|
|
452
|
+
canvas: that._viewer.scene.canvas
|
|
453
|
+
};
|
|
454
|
+
var ds = new Cesium.KmlDataSource(options);
|
|
455
|
+
ds.load(file).then(ds => {
|
|
456
|
+
that._viewer.dataSources.add(ds);
|
|
390
457
|
|
|
391
|
-
|
|
392
|
-
ret = data;
|
|
393
|
-
}
|
|
394
|
-
} catch (e) {}
|
|
458
|
+
that._viewer.flyTo(ds);
|
|
395
459
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
460
|
+
resolve("success");
|
|
461
|
+
var layer = {
|
|
462
|
+
guid: ds.guid,
|
|
463
|
+
name: name,
|
|
464
|
+
visible: true,
|
|
465
|
+
serverType: "datasource",
|
|
466
|
+
lsType: "ls"
|
|
467
|
+
};
|
|
400
468
|
|
|
401
|
-
|
|
402
|
-
guid: ds.guid,
|
|
403
|
-
name: name,
|
|
404
|
-
visible: true,
|
|
405
|
-
serverType: "datasource",
|
|
406
|
-
lsType: "ls"
|
|
407
|
-
};
|
|
469
|
+
that._layerManager.addTempLayerNode(layer);
|
|
408
470
|
|
|
409
|
-
|
|
471
|
+
cb && cb(layer);
|
|
472
|
+
});
|
|
473
|
+
break;
|
|
410
474
|
|
|
411
|
-
|
|
412
|
-
|
|
475
|
+
case "czml":
|
|
476
|
+
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
477
|
+
|
|
478
|
+
try {
|
|
479
|
+
var data = JSON.parse(ret);
|
|
413
480
|
|
|
414
|
-
|
|
481
|
+
if (typeof data == "object" && data) {
|
|
482
|
+
ret = data;
|
|
483
|
+
}
|
|
484
|
+
} catch (e) {}
|
|
415
485
|
|
|
416
|
-
|
|
417
|
-
|
|
486
|
+
that._viewer.dataSources.add(Cesium.CzmlDataSource.load(ret, {
|
|
487
|
+
name: name
|
|
488
|
+
})).then(ds => {
|
|
489
|
+
that._viewer.flyTo(ds);
|
|
418
490
|
|
|
419
|
-
|
|
420
|
-
|
|
491
|
+
resolve("success");
|
|
492
|
+
var layer = {
|
|
493
|
+
guid: ds.guid,
|
|
494
|
+
name: name,
|
|
495
|
+
visible: true,
|
|
496
|
+
serverType: "datasource",
|
|
497
|
+
lsType: "ls"
|
|
498
|
+
};
|
|
421
499
|
|
|
422
|
-
|
|
423
|
-
break;
|
|
500
|
+
that._layerManager.addTempLayerNode(layer);
|
|
424
501
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
break;
|
|
502
|
+
cb && cb(layer);
|
|
503
|
+
});
|
|
428
504
|
|
|
429
|
-
|
|
430
|
-
break;
|
|
431
|
-
}
|
|
505
|
+
break;
|
|
432
506
|
|
|
433
|
-
|
|
434
|
-
|
|
507
|
+
case "txt":
|
|
508
|
+
break;
|
|
435
509
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
510
|
+
case "csv":
|
|
511
|
+
break;
|
|
512
|
+
|
|
513
|
+
case "xls":
|
|
514
|
+
case "xlsx":
|
|
515
|
+
break;
|
|
516
|
+
|
|
517
|
+
default:
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
reader.onerror = function () {
|
|
523
|
+
console.log(file.name + " read error.");
|
|
524
|
+
reject(file.name + " read error.");
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
});
|
|
440
528
|
} //解析数据源
|
|
441
529
|
|
|
442
530
|
|
|
@@ -1040,6 +1128,16 @@ const __default__ = {
|
|
|
1040
1128
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
1041
1129
|
*/
|
|
1042
1130
|
position: [String, Object],
|
|
1131
|
+
// 几何服务地址前缀,例:http://support.kqgeo.com:29800/geometry-proxy/kqgis/rest/services/geometry
|
|
1132
|
+
geometryServerUrl: {
|
|
1133
|
+
type: String,
|
|
1134
|
+
required: true
|
|
1135
|
+
},
|
|
1136
|
+
// 几何服务token,例:eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJob3N0IiwiY3JlYXRlZCI6MTY1NTk2MzU1NzUyMywiZXhwIjoxNzY3MTEwNDAwfQ.BiNOr6vL6liHzlMK89XSvqmFY9fuWiYqDEwYmWxk-6vFKBgLeMC8FloBXyKcxOCl9Rd28y_pX4PhVRYP5cZTwA
|
|
1137
|
+
geometryServerToken: {
|
|
1138
|
+
type: String,
|
|
1139
|
+
required: true
|
|
1140
|
+
},
|
|
1043
1141
|
// 当前展示的tab标签页
|
|
1044
1142
|
activeName: {
|
|
1045
1143
|
type: String,
|
|
@@ -1092,7 +1190,8 @@ const __default__ = {
|
|
|
1092
1190
|
});
|
|
1093
1191
|
let upload_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
1094
1192
|
let upload_btn_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
1095
|
-
let fileList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
1193
|
+
let fileList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
1194
|
+
let loadingFile = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 获取组件传参
|
|
1096
1195
|
|
|
1097
1196
|
let operatorArray = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)(() => {
|
|
1098
1197
|
let array = [];
|
|
@@ -1240,7 +1339,9 @@ const __default__ = {
|
|
|
1240
1339
|
];
|
|
1241
1340
|
dataSourceType.value = dataSourceTypeList.value[0];
|
|
1242
1341
|
let options = {
|
|
1243
|
-
billboardImage: const_image_.BILLBOARD_IMAGE_URL
|
|
1342
|
+
billboardImage: const_image_.BILLBOARD_IMAGE_URL,
|
|
1343
|
+
geometryServerUrl: props.geometryServerUrl,
|
|
1344
|
+
geometryServerToken: props.geometryServerToken
|
|
1244
1345
|
};
|
|
1245
1346
|
viewModel = new AddDataViewModel(scenceView, options);
|
|
1246
1347
|
}
|
|
@@ -1290,8 +1391,14 @@ const __default__ = {
|
|
|
1290
1391
|
|
|
1291
1392
|
|
|
1292
1393
|
function loadFiles() {
|
|
1394
|
+
loadingFile.value = true;
|
|
1395
|
+
let promiseList = [];
|
|
1293
1396
|
fileList.value.forEach(file => {
|
|
1294
|
-
viewModel.parseFile(file.raw,
|
|
1397
|
+
promiseList.push(viewModel.parseFile(file.raw, props.loadCallback));
|
|
1398
|
+
});
|
|
1399
|
+
Promise.all(promiseList).then(() => {
|
|
1400
|
+
removeFiles();
|
|
1401
|
+
loadingFile.value = false;
|
|
1295
1402
|
});
|
|
1296
1403
|
} //加载URL
|
|
1297
1404
|
|
|
@@ -1360,7 +1467,7 @@ const __default__ = {
|
|
|
1360
1467
|
name: "upload"
|
|
1361
1468
|
}, {
|
|
1362
1469
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
1363
|
-
class: ""
|
|
1470
|
+
class: "kq3d-add-data-title"
|
|
1364
1471
|
}, {
|
|
1365
1472
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fileFormatDescription), 1
|
|
1366
1473
|
/* TEXT */
|
|
@@ -1384,7 +1491,7 @@ const __default__ = {
|
|
|
1384
1491
|
"auto-upload": false,
|
|
1385
1492
|
"file-list": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList),
|
|
1386
1493
|
"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),
|
|
1387
|
-
accept: ".geojson,.topojson,.json,.kml,.kmz,.czml",
|
|
1494
|
+
accept: ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.txt",
|
|
1388
1495
|
"on-change": changeFile,
|
|
1389
1496
|
ref_key: "upload_ref",
|
|
1390
1497
|
ref: upload_ref
|
|
@@ -1452,7 +1559,7 @@ const __default__ = {
|
|
|
1452
1559
|
action: "",
|
|
1453
1560
|
"show-file-list": false,
|
|
1454
1561
|
"auto-upload": false,
|
|
1455
|
-
accept: ".geojson,.topojson,.json,.kml,.kmz,.czml",
|
|
1562
|
+
accept: ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.txt",
|
|
1456
1563
|
ref_key: "upload_btn_ref",
|
|
1457
1564
|
ref: upload_btn_ref,
|
|
1458
1565
|
class: "kq3d-add-data-footer-upload",
|
|
@@ -1493,7 +1600,8 @@ const __default__ = {
|
|
|
1493
1600
|
onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => loadFiles(), ["stop"])),
|
|
1494
1601
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).loadFiles,
|
|
1495
1602
|
type: "primary",
|
|
1496
|
-
disabled: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(disabled)
|
|
1603
|
+
disabled: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(disabled),
|
|
1604
|
+
loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(loadingFile)
|
|
1497
1605
|
}, {
|
|
1498
1606
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).loadFiles), 1
|
|
1499
1607
|
/* TEXT */
|
|
@@ -1503,7 +1611,7 @@ const __default__ = {
|
|
|
1503
1611
|
|
|
1504
1612
|
}, 8
|
|
1505
1613
|
/* PROPS */
|
|
1506
|
-
, ["title", "disabled"])])])]),
|
|
1614
|
+
, ["title", "disabled", "loading"])])])]),
|
|
1507
1615
|
_: 3
|
|
1508
1616
|
/* FORWARDED */
|
|
1509
1617
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.kq3d-add-data{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-add-data .
|
|
1
|
+
.kq3d-add-data{z-index:999;width:536px;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-add-data .kq-form-item{width:100%}.kq3d-add-data .kq-tabs__item{height:28px;line-height:20px;font-weight:400;font-size:var(--kq-font-size-medium);padding:0 16px}.kq3d-add-data .kq3d-add-data-desc{margin-bottom:16px}.kq3d-add-data .kq3d-add-data-title{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base);padding-bottom:8px}.kq3d-add-data .kq3d-add-data-tip{color:var(--kq-text-color-secondary);font-size:13px;white-space:pre-wrap}.kq3d-add-data .kq3d-add-data-upload_text{color:#606266}.kq3d-add-data .kq-select{width:100%}.kq3d-add-data .kq-upload-dragger{background:var(--kq-bg-color);border:1px dashed var(--kq-border-color);border-radius:4px}.kq3d-add-data .kq3d-add-data-filelist{width:99%;min-height:101px;height:auto;background:#f2f6fc;border:1px dashed #409eff;border-radius:4px}.kq3d-add-data .kq3d-add-data-filelist .kq-row{margin:10px 0;display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:0!important;margin-right:0!important}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file{background:#d9ecff;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 8px;height:40px;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file .kq3d-add-data-doc{font-size:28px;color:#409eff;padding:4px}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file p{overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file .kq3d-add-data-close{font-size:18px;color:#f56c6c;padding:4px;cursor:pointer}.kq3d-add-data .kq3d-add-data-footer{width:100%;padding-top:16px}.kq3d-add-data .kq3d-add-data-footer .btns_box{float:right;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.kq3d-add-data .kq3d-add-data-footer .kq3d-add-data-footer-upload{padding:0 12px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.kq3d-baseterrain-gallery{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-baseterrain-gallery .kq3d-baseterrain-gallery-box{width:372px;min-width:220px}.kq3d-baseterrain-gallery .kq-form-item__label{height:48px;line-height:48px}.kq3d-baseterrain-gallery .kq-form-item{margin-bottom:0;width:100%}.kq3d-baseterrain-gallery .kq-form-item__content{text-align:end;display:block}.kq3d-baseterrain-gallery .divSpan{width:calc(100% - 16px);height:24px;line-height:24px;border-radius:var(--kq-border-radius-base);background-color:var(--kq-fill-color-
|
|
1
|
+
.kq3d-baseterrain-gallery{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-baseterrain-gallery .kq3d-baseterrain-gallery-box{width:372px;min-width:220px}.kq3d-baseterrain-gallery .kq-form-item__label{height:48px;line-height:48px}.kq3d-baseterrain-gallery .kq-form-item{margin-bottom:0;width:100%}.kq3d-baseterrain-gallery .kq-form-item__content{text-align:end;display:block}.kq3d-baseterrain-gallery .divSpan{width:calc(100% - 16px);height:24px;line-height:24px;border-radius:var(--kq-border-radius-base);background-color:var(--kq-fill-color-light);text-align:left;padding:12px 8px;font-family:Noto Sans SC;font-style:normal;font-weight:400;font-size:16px;color:var(--kq-text-color-primary);-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-font-feature-settings:"tnum" on,"lnum" on;font-feature-settings:"tnum" on,"lnum" on}.kq3d-baseterrain-gallery .kq-col-24{padding:8px;margin-top:16px;border:1px solid var(--kq-border-color);border-radius:var(--kq-border-radius-base);background-color:var(--kq-fill-color-lighter)}.kq3d-baseterrain-gallery .kq-form .kq-row{margin-left:0!important;margin-right:0!important;cursor:pointer;position:relative}.kq3d-baseterrain-gallery .kq-form .kq-row .divImg{height:72px;line-height:72px;font-family:Noto Sans SC;font-style:normal;font-weight:400;font-size:14px;padding-left:0!important;padding-right:0!important;color:var(--kq-text-color-primary)}.kq3d-baseterrain-gallery .kq-form .kq-row .divImg img{width:64px;height:64px;margin:4px;border:1px solid #c0c4cc}.kq3d-baseterrain-gallery .kq-form .kq-row .divText{position:absolute;right:8px;top:4px;bottom:4px;left:76px}.kq3d-baseterrain-gallery .kq-form .kq-row .divText .text{display:inline-block;height:64px;line-height:64px}.kq3d-baseterrain-gallery .kq-form .kq-row.active{background-color:var(--kq-color-primary-light-8)}
|
|
@@ -499,8 +499,6 @@ const __default__ = {
|
|
|
499
499
|
clearResult
|
|
500
500
|
});
|
|
501
501
|
return (_ctx, _cache) => {
|
|
502
|
-
const _component_HeaderTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("HeaderTemp");
|
|
503
|
-
|
|
504
502
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
505
503
|
|
|
506
504
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
@@ -533,16 +531,7 @@ const __default__ = {
|
|
|
533
531
|
ref: headerTempRef
|
|
534
532
|
}, null, 512
|
|
535
533
|
/* NEED_PATCH */
|
|
536
|
-
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true),
|
|
537
|
-
key: 1,
|
|
538
|
-
showShadow: __props.showShadow,
|
|
539
|
-
headerTempTitle: __props.headerTempTitle || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).excavateFillAnalysis,
|
|
540
|
-
headerTempIcon: __props.headerTempIcon,
|
|
541
|
-
isCollapse: __props.isCollapseHeaderTemp,
|
|
542
|
-
isRight: __props.isRight
|
|
543
|
-
}, null, 8
|
|
544
|
-
/* PROPS */
|
|
545
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
534
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
546
535
|
style: {
|
|
547
536
|
"display": "flex"
|
|
548
537
|
}
|
|
@@ -550,7 +539,7 @@ const __default__ = {
|
|
|
550
539
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
551
540
|
class: "kq3d-excavate-fill-analysis-label",
|
|
552
541
|
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)({
|
|
553
|
-
width: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '
|
|
542
|
+
width: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '100px' : '130px'
|
|
554
543
|
})
|
|
555
544
|
}, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).altitudeHeight), 5
|
|
556
545
|
/* TEXT, STYLE */
|