@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/index.js
CHANGED
|
@@ -88,6 +88,22 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".coord-sightline{background:rgba(42,42
|
|
|
88
88
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
89
89
|
|
|
90
90
|
|
|
91
|
+
/***/ }),
|
|
92
|
+
|
|
93
|
+
/***/ 825:
|
|
94
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
95
|
+
|
|
96
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(705);
|
|
97
|
+
/* 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__);
|
|
98
|
+
// Imports
|
|
99
|
+
|
|
100
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
101
|
+
// Module
|
|
102
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".cesium-performanceDisplay-defaultContainer{top:unset !important;bottom:16px;right:64px !important}", ""]);
|
|
103
|
+
// Exports
|
|
104
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
105
|
+
|
|
106
|
+
|
|
91
107
|
/***/ }),
|
|
92
108
|
|
|
93
109
|
/***/ 854:
|
|
@@ -1482,6 +1498,105 @@ class DrawManager {
|
|
|
1482
1498
|
return layerList;
|
|
1483
1499
|
}
|
|
1484
1500
|
|
|
1501
|
+
createShapeFromFeature(feature, callFun, style, isLocation) {
|
|
1502
|
+
let type = feature.geometry.type;
|
|
1503
|
+
let shape = null,
|
|
1504
|
+
coordinate = null;
|
|
1505
|
+
let positions = [];
|
|
1506
|
+
|
|
1507
|
+
switch (type) {
|
|
1508
|
+
case "Point":
|
|
1509
|
+
case "MultiPoint":
|
|
1510
|
+
coordinate = feature.geometry.coordinates;
|
|
1511
|
+
if (type === "MultiPoint") coordinate = coordinate[0];
|
|
1512
|
+
let position = Cesium.Cartesian3.fromDegrees(coordinate[0], coordinate[1]);
|
|
1513
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type, '', {
|
|
1514
|
+
position: position,
|
|
1515
|
+
disableDepthTestDistance: Number.POSITIVE_INFINITY,
|
|
1516
|
+
width: 32,
|
|
1517
|
+
height: 32,
|
|
1518
|
+
image: const_image_namespaceObject.MARKER_URL
|
|
1519
|
+
});
|
|
1520
|
+
break;
|
|
1521
|
+
|
|
1522
|
+
case "LineString":
|
|
1523
|
+
case "MultiLineString":
|
|
1524
|
+
coordinate = feature.geometry.coordinates;
|
|
1525
|
+
if (type === "MultiLineString") coordinate = coordinate[0];
|
|
1526
|
+
positions = [];
|
|
1527
|
+
coordinate.forEach(arr => {
|
|
1528
|
+
positions.push(Cesium.Cartesian3.fromDegrees(arr[0], arr[1]));
|
|
1529
|
+
});
|
|
1530
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type, '线', {
|
|
1531
|
+
controlPoints: positions,
|
|
1532
|
+
color: Cesium.Color.fromCssColorString(style.color),
|
|
1533
|
+
width: style.weight,
|
|
1534
|
+
clampToGround: true
|
|
1535
|
+
});
|
|
1536
|
+
break;
|
|
1537
|
+
|
|
1538
|
+
case "Polygon":
|
|
1539
|
+
case "MultiPolygon":
|
|
1540
|
+
coordinate = feature.geometry.coordinates[0];
|
|
1541
|
+
if (type === "MultiPolygon") coordinate = coordinate[0];
|
|
1542
|
+
positions = [];
|
|
1543
|
+
coordinate.forEach(arr => {
|
|
1544
|
+
positions.push(Cesium.Cartesian3.fromDegrees(arr[0], arr[1]));
|
|
1545
|
+
});
|
|
1546
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type, '面', {
|
|
1547
|
+
controlPoints: positions,
|
|
1548
|
+
color: Cesium.Color.fromCssColorString(style.color),
|
|
1549
|
+
width: style.weight,
|
|
1550
|
+
fillColor: Cesium.Color.fromCssColorString(style.fillColor).withAlpha(style.fillOpacity),
|
|
1551
|
+
fill: true,
|
|
1552
|
+
clampToGround: true
|
|
1553
|
+
});
|
|
1554
|
+
break;
|
|
1555
|
+
|
|
1556
|
+
default:
|
|
1557
|
+
break;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
if (shape) {
|
|
1561
|
+
this._drawLayer.add(shape);
|
|
1562
|
+
|
|
1563
|
+
if (callFun) callFun(shape.guid);
|
|
1564
|
+
|
|
1565
|
+
if (isLocation) {
|
|
1566
|
+
setTimeout(() => {
|
|
1567
|
+
this._drawHandler.startEdit(shape);
|
|
1568
|
+
|
|
1569
|
+
let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
|
|
1570
|
+
|
|
1571
|
+
this._viewer.camera.flyToBoundingSphere(shape.boundingSphere, {
|
|
1572
|
+
duration: 1.5,
|
|
1573
|
+
offset
|
|
1574
|
+
});
|
|
1575
|
+
}, 200);
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
startEditById(id) {
|
|
1581
|
+
let shape = this._drawLayer.getById(id);
|
|
1582
|
+
|
|
1583
|
+
if (shape) {
|
|
1584
|
+
this._drawHandler.startEdit(shape);
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
getFeatureById(id) {
|
|
1589
|
+
let feature = null;
|
|
1590
|
+
|
|
1591
|
+
let shape = this._drawLayer.getById(id);
|
|
1592
|
+
|
|
1593
|
+
if (shape) {
|
|
1594
|
+
feature = shapeToGeoFeature(shape);
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
return feature;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1485
1600
|
removeGeometryById(id) {
|
|
1486
1601
|
this._drawLayer.removeById(id); // 删除图形关联的样式设置框
|
|
1487
1602
|
|
|
@@ -1985,6 +2100,10 @@ class LayerManager {
|
|
|
1985
2100
|
}
|
|
1986
2101
|
} else if (layerData.sourceType === "kqimageserver") {
|
|
1987
2102
|
type = "kqgisimageserver";
|
|
2103
|
+
|
|
2104
|
+
if (layerData.renderType === "weather") {
|
|
2105
|
+
type = "kqgisweatherserver";
|
|
2106
|
+
}
|
|
1988
2107
|
} else if (layerData.sourceType === "kq3dserver") {
|
|
1989
2108
|
type = "kqgis3dserver";
|
|
1990
2109
|
} else if (layerData.sourceType === "mvt") {
|
|
@@ -2138,7 +2257,8 @@ class LayerManager {
|
|
|
2138
2257
|
case "kqgis3dserver":
|
|
2139
2258
|
var that = this;
|
|
2140
2259
|
layerData.visible = isAdd;
|
|
2141
|
-
promise = this._viewer.addKq3dServerLayerGroupExt(url
|
|
2260
|
+
promise = this._viewer.addKq3dServerLayerGroupExt(url, { ...params
|
|
2261
|
+
}).then(group => {
|
|
2142
2262
|
var layers = group._addedLayers || group._layers;
|
|
2143
2263
|
|
|
2144
2264
|
if (layers && layers.length > 0) {
|
|
@@ -2178,6 +2298,7 @@ class LayerManager {
|
|
|
2178
2298
|
break;
|
|
2179
2299
|
|
|
2180
2300
|
case "kqgisimageserver":
|
|
2301
|
+
//kqgis影像服务-栅格数据
|
|
2181
2302
|
layerData.visible = isAdd;
|
|
2182
2303
|
layerData.serverType = "imagerylayer";
|
|
2183
2304
|
layerData.type = "Image"; // 图层树显示图标使用
|
|
@@ -2194,6 +2315,26 @@ class LayerManager {
|
|
|
2194
2315
|
|
|
2195
2316
|
break;
|
|
2196
2317
|
|
|
2318
|
+
case "kqgisweatherserver":
|
|
2319
|
+
//kqgis影像服务-气象数据
|
|
2320
|
+
layerData.visible = isAdd;
|
|
2321
|
+
layerData.serverType = "imagerylayer";
|
|
2322
|
+
|
|
2323
|
+
if (isAdd) {
|
|
2324
|
+
if (url.indexOf("/image/wmts") < 0) {
|
|
2325
|
+
url = url.replace("/image", "/image/wmts");
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dContourImageryProviderExt({
|
|
2329
|
+
name: name,
|
|
2330
|
+
url: url,
|
|
2331
|
+
...params
|
|
2332
|
+
}));
|
|
2333
|
+
layer._guid = layerData.guid;
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
break;
|
|
2337
|
+
|
|
2197
2338
|
case "kqgismapserver":
|
|
2198
2339
|
if (layerData.sourceLayers) {
|
|
2199
2340
|
var layerInfo = layerData.sourceLayers.find(item => {
|
|
@@ -2285,7 +2426,7 @@ class LayerManager {
|
|
|
2285
2426
|
|
|
2286
2427
|
case "wms":
|
|
2287
2428
|
//配置id时只能是单个图层
|
|
2288
|
-
if (layerData.rect84 && layerData.sourceType !== "service") {
|
|
2429
|
+
if (layerData.rect84 && layerData.sourceType !== "service" && layerData.dataSourceType !== "service") {
|
|
2289
2430
|
// 大数据wms服务使用
|
|
2290
2431
|
layerData.visible = isAdd;
|
|
2291
2432
|
layerData.serverType = "imagerylayer";
|
|
@@ -2326,6 +2467,8 @@ class LayerManager {
|
|
|
2326
2467
|
layerData.serverType = "imagerylayer";
|
|
2327
2468
|
|
|
2328
2469
|
if (isAdd) {
|
|
2470
|
+
if (params.url) url = params.url; // 设置多子域时使用
|
|
2471
|
+
|
|
2329
2472
|
promise = this._viewer.addWMSLayerGroup(url, { ...params,
|
|
2330
2473
|
layers: layerData.id + ""
|
|
2331
2474
|
}).then(group => {
|
|
@@ -2364,6 +2507,8 @@ class LayerManager {
|
|
|
2364
2507
|
layerData.serverType = "imagerylayer"; //配置id时只能是单个图层
|
|
2365
2508
|
|
|
2366
2509
|
if (isAdd) {
|
|
2510
|
+
if (params.url) url = params.url; // 设置多子域时使用
|
|
2511
|
+
|
|
2367
2512
|
promise = this._viewer.addWMTSLayerGroup(url, { ...params,
|
|
2368
2513
|
layers: layerData.id + ""
|
|
2369
2514
|
}).then(group => {
|
|
@@ -11604,7 +11749,9 @@ class LimitHeightAnalysisViewModel {
|
|
|
11604
11749
|
|
|
11605
11750
|
|
|
11606
11751
|
destroy() {
|
|
11607
|
-
this.
|
|
11752
|
+
this.clear();
|
|
11753
|
+
this._drawFinishedEventListener && this._drawFinishedEventListener();
|
|
11754
|
+
this._drawFinishedEventListener = null;
|
|
11608
11755
|
}
|
|
11609
11756
|
|
|
11610
11757
|
}
|
|
@@ -26495,11 +26642,15 @@ PlaneClip.install = (Vue, opts) => {
|
|
|
26495
26642
|
};
|
|
26496
26643
|
|
|
26497
26644
|
|
|
26645
|
+
;// CONCATENATED MODULE: external "papaparse"
|
|
26646
|
+
var external_papaparse_namespaceObject = require("papaparse");
|
|
26647
|
+
var external_papaparse_default = /*#__PURE__*/__webpack_require__.n(external_papaparse_namespaceObject);
|
|
26498
26648
|
;// CONCATENATED MODULE: ./src/webgl/adddata/AddDataViewModel.js
|
|
26499
26649
|
|
|
26500
26650
|
|
|
26501
26651
|
|
|
26502
26652
|
|
|
26653
|
+
|
|
26503
26654
|
//添加数据逻辑类
|
|
26504
26655
|
|
|
26505
26656
|
class AddDataViewModel {
|
|
@@ -26523,13 +26674,15 @@ class AddDataViewModel {
|
|
|
26523
26674
|
style: Cesium.LabelStyle.FILL_AND_OUTLINE,
|
|
26524
26675
|
eyeOffset: Cesium.Cartesian3.ZERO,
|
|
26525
26676
|
pixelOffset: new Cesium.Cartesian2(0, -8),
|
|
26526
|
-
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
26677
|
+
disableDepthTestDistance: 10000000 // disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
26678
|
+
|
|
26527
26679
|
},
|
|
26528
26680
|
billboard: {
|
|
26529
26681
|
image: const_image_namespaceObject.BILLBOARD_IMAGE_URL,
|
|
26530
26682
|
width: 12,
|
|
26531
26683
|
height: 12,
|
|
26532
|
-
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
26684
|
+
disableDepthTestDistance: 10000000 // disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
26685
|
+
|
|
26533
26686
|
},
|
|
26534
26687
|
polyline: {
|
|
26535
26688
|
width: 2.0,
|
|
@@ -26584,8 +26737,7 @@ class AddDataViewModel {
|
|
|
26584
26737
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
26585
26738
|
|
|
26586
26739
|
|
|
26587
|
-
that.
|
|
26588
|
-
|
|
26740
|
+
that.flyToLayer(ds);
|
|
26589
26741
|
resolve("success");
|
|
26590
26742
|
var layer = {
|
|
26591
26743
|
guid: ds.guid,
|
|
@@ -26603,7 +26755,7 @@ class AddDataViewModel {
|
|
|
26603
26755
|
cb && cb(layer);
|
|
26604
26756
|
});
|
|
26605
26757
|
} else {
|
|
26606
|
-
reject(file.name + "
|
|
26758
|
+
reject(file.name + " file parser error.");
|
|
26607
26759
|
cb && cb("error");
|
|
26608
26760
|
}
|
|
26609
26761
|
});
|
|
@@ -26626,8 +26778,129 @@ class AddDataViewModel {
|
|
|
26626
26778
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
26627
26779
|
|
|
26628
26780
|
|
|
26629
|
-
that.
|
|
26781
|
+
that.flyToLayer(ds);
|
|
26782
|
+
resolve("success");
|
|
26783
|
+
var layer = {
|
|
26784
|
+
guid: ds.guid,
|
|
26785
|
+
name: name,
|
|
26786
|
+
visible: true,
|
|
26787
|
+
serverType: "datasource",
|
|
26788
|
+
lsType: "ls",
|
|
26789
|
+
url: res,
|
|
26790
|
+
addType: "geojson",
|
|
26791
|
+
shapeType: that._layerManager.getShapeType(ds)
|
|
26792
|
+
};
|
|
26793
|
+
|
|
26794
|
+
that._layerManager.addTempLayerNode(layer);
|
|
26795
|
+
|
|
26796
|
+
cb && cb(layer);
|
|
26797
|
+
});
|
|
26798
|
+
} else {
|
|
26799
|
+
reject(file.name + " file parser error.");
|
|
26800
|
+
cb && cb("error");
|
|
26801
|
+
}
|
|
26802
|
+
});
|
|
26803
|
+
} else if (ext === "csv") {
|
|
26804
|
+
(0,util_namespaceObject.readFile)(file, res => {
|
|
26805
|
+
var features = external_papaparse_default().parse(res, {
|
|
26806
|
+
skipEmptyLines: true,
|
|
26807
|
+
header: true
|
|
26808
|
+
}).data;
|
|
26809
|
+
let _featureCollection = {
|
|
26810
|
+
type: "FeatureCollection",
|
|
26811
|
+
features: []
|
|
26812
|
+
};
|
|
26813
|
+
|
|
26814
|
+
for (var i = 0; i < features.length; i++) {
|
|
26815
|
+
let item = features[i];
|
|
26816
|
+
let lat = null;
|
|
26817
|
+
let lng = null;
|
|
26818
|
+
let properties = {};
|
|
26819
|
+
|
|
26820
|
+
for (var j in item) {
|
|
26821
|
+
if (j.toUpperCase().indexOf("LAT") != -1) {
|
|
26822
|
+
lat = item[j];
|
|
26823
|
+
} else if (j.toUpperCase().indexOf("LNG") != -1 || j.toUpperCase().indexOf("LON") != -1) {
|
|
26824
|
+
lng = item[j];
|
|
26825
|
+
} else if (j.toUpperCase() === "X") {
|
|
26826
|
+
lat = item[j];
|
|
26827
|
+
} else if (j.toUpperCase() === "Y") {
|
|
26828
|
+
lng = item[j];
|
|
26829
|
+
} else {
|
|
26830
|
+
properties[j] = item[j];
|
|
26831
|
+
}
|
|
26832
|
+
} // 点数据
|
|
26833
|
+
|
|
26834
|
+
|
|
26835
|
+
if (lat && lng) {
|
|
26836
|
+
let _point = {
|
|
26837
|
+
type: "Feature",
|
|
26838
|
+
geometry: {
|
|
26839
|
+
type: "Point",
|
|
26840
|
+
coordinates: [Number(lng), Number(lat)]
|
|
26841
|
+
},
|
|
26842
|
+
properties: properties
|
|
26843
|
+
};
|
|
26844
|
+
|
|
26845
|
+
_featureCollection.features.push(_point);
|
|
26846
|
+
} else {}
|
|
26847
|
+
}
|
|
26848
|
+
|
|
26849
|
+
if (_featureCollection.features.length > 0) {
|
|
26850
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
26851
|
+
ds.load(_featureCollection, that._geojsonStyle).then(ds => {
|
|
26852
|
+
ds.entities.values.forEach(entity => {
|
|
26853
|
+
if (entity.polygon) {
|
|
26854
|
+
entity.polyline = {
|
|
26855
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
26856
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
26857
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
26858
|
+
};
|
|
26859
|
+
}
|
|
26860
|
+
});
|
|
26861
|
+
|
|
26862
|
+
that._viewer.dataSources.add(ds);
|
|
26630
26863
|
|
|
26864
|
+
that.flyToLayer(ds);
|
|
26865
|
+
resolve("success");
|
|
26866
|
+
var layer = {
|
|
26867
|
+
guid: ds.guid,
|
|
26868
|
+
name: name,
|
|
26869
|
+
visible: true,
|
|
26870
|
+
serverType: "datasource",
|
|
26871
|
+
lsType: "ls",
|
|
26872
|
+
url: _featureCollection,
|
|
26873
|
+
addType: "geojson",
|
|
26874
|
+
shapeType: that._layerManager.getShapeType(ds)
|
|
26875
|
+
};
|
|
26876
|
+
|
|
26877
|
+
that._layerManager.addTempLayerNode(layer);
|
|
26878
|
+
|
|
26879
|
+
cb && cb(layer);
|
|
26880
|
+
});
|
|
26881
|
+
} else {
|
|
26882
|
+
reject(file.name + " file parser error.");
|
|
26883
|
+
cb && cb("error");
|
|
26884
|
+
}
|
|
26885
|
+
});
|
|
26886
|
+
} else if (ext === "xls" || ext === "xlsx") {
|
|
26887
|
+
(0,util_namespaceObject.readExcel)(file, this._language, res => {
|
|
26888
|
+
if (res) {
|
|
26889
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
26890
|
+
ds.load(res, that._geojsonStyle).then(ds => {
|
|
26891
|
+
ds.entities.values.forEach(entity => {
|
|
26892
|
+
if (entity.polygon) {
|
|
26893
|
+
entity.polyline = {
|
|
26894
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
26895
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
26896
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
26897
|
+
};
|
|
26898
|
+
}
|
|
26899
|
+
});
|
|
26900
|
+
|
|
26901
|
+
that._viewer.dataSources.add(ds);
|
|
26902
|
+
|
|
26903
|
+
that.flyToLayer(ds);
|
|
26631
26904
|
resolve("success");
|
|
26632
26905
|
var layer = {
|
|
26633
26906
|
guid: ds.guid,
|
|
@@ -26645,7 +26918,8 @@ class AddDataViewModel {
|
|
|
26645
26918
|
cb && cb(layer);
|
|
26646
26919
|
});
|
|
26647
26920
|
} else {
|
|
26648
|
-
reject(file.name + "
|
|
26921
|
+
reject(file.name + " file parser error.");
|
|
26922
|
+
cb && cb("error");
|
|
26649
26923
|
}
|
|
26650
26924
|
});
|
|
26651
26925
|
} else {
|
|
@@ -26699,8 +26973,7 @@ class AddDataViewModel {
|
|
|
26699
26973
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
26700
26974
|
|
|
26701
26975
|
|
|
26702
|
-
that.
|
|
26703
|
-
|
|
26976
|
+
that.flyToLayer(ds);
|
|
26704
26977
|
resolve("success");
|
|
26705
26978
|
var layer = {
|
|
26706
26979
|
guid: ds.guid,
|
|
@@ -26733,8 +27006,7 @@ class AddDataViewModel {
|
|
|
26733
27006
|
ds.load(data).then(ds => {
|
|
26734
27007
|
that._viewer.dataSources.add(ds);
|
|
26735
27008
|
|
|
26736
|
-
that.
|
|
26737
|
-
|
|
27009
|
+
that.flyToLayer(ds);
|
|
26738
27010
|
resolve("success");
|
|
26739
27011
|
var layer = {
|
|
26740
27012
|
guid: ds.guid,
|
|
@@ -26762,8 +27034,7 @@ class AddDataViewModel {
|
|
|
26762
27034
|
ds.load(file).then(ds => {
|
|
26763
27035
|
that._viewer.dataSources.add(ds);
|
|
26764
27036
|
|
|
26765
|
-
that.
|
|
26766
|
-
|
|
27037
|
+
that.flyToLayer(ds);
|
|
26767
27038
|
resolve("success");
|
|
26768
27039
|
var layer = {
|
|
26769
27040
|
guid: ds.guid,
|
|
@@ -26795,8 +27066,7 @@ class AddDataViewModel {
|
|
|
26795
27066
|
that._viewer.dataSources.add(Cesium.CzmlDataSource.load(ret, {
|
|
26796
27067
|
name: name
|
|
26797
27068
|
})).then(ds => {
|
|
26798
|
-
that.
|
|
26799
|
-
|
|
27069
|
+
that.flyToLayer(ds);
|
|
26800
27070
|
resolve("success");
|
|
26801
27071
|
var layer = {
|
|
26802
27072
|
guid: ds.guid,
|
|
@@ -26836,7 +27106,7 @@ class AddDataViewModel {
|
|
|
26836
27106
|
} //解析数据源
|
|
26837
27107
|
|
|
26838
27108
|
|
|
26839
|
-
parseDataSource(options, cb) {
|
|
27109
|
+
parseDataSource(options, cb, loadCustom) {
|
|
26840
27110
|
options = options || {};
|
|
26841
27111
|
|
|
26842
27112
|
if (options.url && options.url !== "") {
|
|
@@ -26855,13 +27125,13 @@ class AddDataViewModel {
|
|
|
26855
27125
|
} catch (error) {
|
|
26856
27126
|
message({
|
|
26857
27127
|
message: this._language.errorUrlAddress,
|
|
26858
|
-
type: "
|
|
27128
|
+
type: "warning"
|
|
26859
27129
|
});
|
|
26860
27130
|
return;
|
|
26861
27131
|
}
|
|
26862
27132
|
|
|
26863
27133
|
if (options.type === "kml") {
|
|
26864
|
-
this.parseService(options, cb);
|
|
27134
|
+
this.parseService(options, cb, loadCustom);
|
|
26865
27135
|
return;
|
|
26866
27136
|
}
|
|
26867
27137
|
|
|
@@ -26871,17 +27141,17 @@ class AddDataViewModel {
|
|
|
26871
27141
|
if (data.status !== 200) {
|
|
26872
27142
|
message({
|
|
26873
27143
|
message: this._language.serviceNotAvailable,
|
|
26874
|
-
type: "
|
|
27144
|
+
type: "warning"
|
|
26875
27145
|
});
|
|
26876
27146
|
} else {
|
|
26877
27147
|
try {
|
|
26878
|
-
this.parseService(options, cb);
|
|
27148
|
+
this.parseService(options, cb, loadCustom);
|
|
26879
27149
|
} catch {}
|
|
26880
27150
|
}
|
|
26881
27151
|
}).catch(() => {
|
|
26882
27152
|
message({
|
|
26883
27153
|
message: this._language.serviceNotAvailable,
|
|
26884
|
-
type: "
|
|
27154
|
+
type: "warning"
|
|
26885
27155
|
});
|
|
26886
27156
|
});
|
|
26887
27157
|
} else {
|
|
@@ -26893,7 +27163,7 @@ class AddDataViewModel {
|
|
|
26893
27163
|
} //解析服务
|
|
26894
27164
|
|
|
26895
27165
|
|
|
26896
|
-
parseService(options, cb) {
|
|
27166
|
+
parseService(options, cb, loadCustom) {
|
|
26897
27167
|
let that = this;
|
|
26898
27168
|
let url = options.url;
|
|
26899
27169
|
let type = options.type || "";
|
|
@@ -27024,6 +27294,7 @@ class AddDataViewModel {
|
|
|
27024
27294
|
break;
|
|
27025
27295
|
|
|
27026
27296
|
case "kqgis3dserver":
|
|
27297
|
+
// KQGIS 三维服务
|
|
27027
27298
|
var geojsonStyle0 = { ...this._geojsonStyle
|
|
27028
27299
|
};
|
|
27029
27300
|
|
|
@@ -27147,7 +27418,7 @@ class AddDataViewModel {
|
|
|
27147
27418
|
children: [],
|
|
27148
27419
|
lsType: "ls"
|
|
27149
27420
|
};
|
|
27150
|
-
const service = new KqGIS.Map.GetMapImageInfoService(url);
|
|
27421
|
+
const service = new window.KqGIS.Map.GetMapImageInfoService(url);
|
|
27151
27422
|
service.init(result => {
|
|
27152
27423
|
if (result.resultcode === "success") {
|
|
27153
27424
|
let list = service.collectionInfoList;
|
|
@@ -27181,31 +27452,24 @@ class AddDataViewModel {
|
|
|
27181
27452
|
} else {
|
|
27182
27453
|
console.log("解析服务原始信息失败.");
|
|
27183
27454
|
}
|
|
27184
|
-
});
|
|
27185
|
-
|
|
27186
|
-
// name: name,
|
|
27187
|
-
// url: url,
|
|
27188
|
-
// layerName: name
|
|
27189
|
-
// })
|
|
27190
|
-
// );
|
|
27191
|
-
// this.flyToLayer(layer);
|
|
27192
|
-
// node = {
|
|
27193
|
-
// guid: layer.guid,
|
|
27194
|
-
// name: name,
|
|
27195
|
-
// visible: true,
|
|
27196
|
-
// serverType: "imagerylayer",
|
|
27197
|
-
// lsType: "ls",
|
|
27198
|
-
// url: url,
|
|
27199
|
-
// addType: type,
|
|
27200
|
-
// layerName: name,
|
|
27201
|
-
// type: "Image" // 图层树显示图标使用
|
|
27202
|
-
// };
|
|
27203
|
-
// this._layerManager.addTempLayerNode(node);
|
|
27204
|
-
// cb && cb(node);
|
|
27455
|
+
});
|
|
27456
|
+
break;
|
|
27205
27457
|
|
|
27458
|
+
case "kqgisdataserver":
|
|
27459
|
+
// KQGIS 数据服务
|
|
27460
|
+
// addDataServer(url, name);
|
|
27206
27461
|
break;
|
|
27207
27462
|
|
|
27208
27463
|
case "kqgismapserver":
|
|
27464
|
+
// KQGIS 地图服务
|
|
27465
|
+
if (loadCustom) {
|
|
27466
|
+
loadCustom({
|
|
27467
|
+
name,
|
|
27468
|
+
url
|
|
27469
|
+
});
|
|
27470
|
+
return;
|
|
27471
|
+
}
|
|
27472
|
+
|
|
27209
27473
|
node = {
|
|
27210
27474
|
guid: Cesium.createGuid(),
|
|
27211
27475
|
name: name,
|
|
@@ -27229,7 +27493,7 @@ class AddDataViewModel {
|
|
|
27229
27493
|
if (mapInfo.resultcode === "error") {
|
|
27230
27494
|
message({
|
|
27231
27495
|
message: mapInfo.message,
|
|
27232
|
-
type: "
|
|
27496
|
+
type: "warning"
|
|
27233
27497
|
});
|
|
27234
27498
|
return;
|
|
27235
27499
|
}
|
|
@@ -27282,6 +27546,7 @@ class AddDataViewModel {
|
|
|
27282
27546
|
break;
|
|
27283
27547
|
|
|
27284
27548
|
case "arcgismapserver":
|
|
27549
|
+
// ARCGIS 地图服务
|
|
27285
27550
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dArcGISMapServerImageryProvider({
|
|
27286
27551
|
name: name,
|
|
27287
27552
|
url: url,
|
|
@@ -27305,6 +27570,7 @@ class AddDataViewModel {
|
|
|
27305
27570
|
break;
|
|
27306
27571
|
|
|
27307
27572
|
case "mvt":
|
|
27573
|
+
// 矢量瓦片
|
|
27308
27574
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dMvtImageryProviderExt({
|
|
27309
27575
|
name: name,
|
|
27310
27576
|
style: url
|
|
@@ -27328,6 +27594,7 @@ class AddDataViewModel {
|
|
|
27328
27594
|
break;
|
|
27329
27595
|
|
|
27330
27596
|
case "kqgisdataflowserver":
|
|
27597
|
+
// KQGIS 数据流服务
|
|
27331
27598
|
let guid = Cesium.createGuid();
|
|
27332
27599
|
layer = new Cesium.Kq3dDataFlowLayer(this._viewer, {
|
|
27333
27600
|
url: url,
|
|
@@ -27395,8 +27662,10 @@ class AddDataViewModel {
|
|
|
27395
27662
|
break;
|
|
27396
27663
|
|
|
27397
27664
|
case "wmts":
|
|
27398
|
-
case "kqgistileserver":
|
|
27665
|
+
case "kqgistileserver": // KQGIS 瓦片服务
|
|
27666
|
+
|
|
27399
27667
|
case "kqgisaggregationserver":
|
|
27668
|
+
// KQGIS 聚合服务
|
|
27400
27669
|
if (type === "kqgistileserver") {
|
|
27401
27670
|
if (url.indexOf("?") > 0) {
|
|
27402
27671
|
url = url.replace("?", "/wmts?");
|
|
@@ -27460,8 +27729,7 @@ class AddDataViewModel {
|
|
|
27460
27729
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
27461
27730
|
|
|
27462
27731
|
|
|
27463
|
-
that.
|
|
27464
|
-
|
|
27732
|
+
that.flyToLayer(ds);
|
|
27465
27733
|
node = {
|
|
27466
27734
|
guid: ds.guid,
|
|
27467
27735
|
name: name,
|
|
@@ -27495,8 +27763,7 @@ class AddDataViewModel {
|
|
|
27495
27763
|
this._viewer.dataSources.add(ds); // ds.autoAvoid(this._viewer);
|
|
27496
27764
|
|
|
27497
27765
|
|
|
27498
|
-
|
|
27499
|
-
|
|
27766
|
+
that.flyToLayer(ds);
|
|
27500
27767
|
node = {
|
|
27501
27768
|
guid: ds.guid,
|
|
27502
27769
|
name: name,
|
|
@@ -27532,8 +27799,7 @@ class AddDataViewModel {
|
|
|
27532
27799
|
|
|
27533
27800
|
this._viewer.dataSources.add(ds);
|
|
27534
27801
|
|
|
27535
|
-
|
|
27536
|
-
|
|
27802
|
+
that.flyToLayer(ds);
|
|
27537
27803
|
node = {
|
|
27538
27804
|
guid: ds.guid,
|
|
27539
27805
|
name: name,
|
|
@@ -27560,8 +27826,7 @@ class AddDataViewModel {
|
|
|
27560
27826
|
ds.load(url).then(ds => {
|
|
27561
27827
|
this._viewer.dataSources.add(ds);
|
|
27562
27828
|
|
|
27563
|
-
|
|
27564
|
-
|
|
27829
|
+
that.flyToLayer(ds);
|
|
27565
27830
|
node = {
|
|
27566
27831
|
guid: ds.guid,
|
|
27567
27832
|
name: name,
|
|
@@ -27583,8 +27848,7 @@ class AddDataViewModel {
|
|
|
27583
27848
|
ds.load(url).then(ds => {
|
|
27584
27849
|
this._viewer.dataSources.add(ds);
|
|
27585
27850
|
|
|
27586
|
-
|
|
27587
|
-
|
|
27851
|
+
that.flyToLayer(ds);
|
|
27588
27852
|
node = {
|
|
27589
27853
|
guid: ds.guid,
|
|
27590
27854
|
name: name,
|
|
@@ -27628,6 +27892,68 @@ class AddDataViewModel {
|
|
|
27628
27892
|
default:
|
|
27629
27893
|
break;
|
|
27630
27894
|
}
|
|
27895
|
+
} // 添加数据服务
|
|
27896
|
+
|
|
27897
|
+
|
|
27898
|
+
addDataServer(url, name) {
|
|
27899
|
+
window.KqGIS.datasourceService(url).getDatasources(async e => {
|
|
27900
|
+
if (e.result.resultcode === 'success') {
|
|
27901
|
+
let datasourceList = e.result.result.datasources;
|
|
27902
|
+
|
|
27903
|
+
if (datasourceList) {
|
|
27904
|
+
for (let i = 0; i < datasourceList.length; i++) {
|
|
27905
|
+
await _getDatasetList(url, datasourceList[i].datasourceName);
|
|
27906
|
+
}
|
|
27907
|
+
}
|
|
27908
|
+
} else {
|
|
27909
|
+
console.error(e);
|
|
27910
|
+
}
|
|
27911
|
+
}, err => {
|
|
27912
|
+
console.error(err);
|
|
27913
|
+
});
|
|
27914
|
+
}
|
|
27915
|
+
|
|
27916
|
+
_getDatasetList(url, dataSourceName) {
|
|
27917
|
+
let params = new window.KqGIS.Data.GetDatasetsInfoParams({
|
|
27918
|
+
datasourceName: dataSourceName
|
|
27919
|
+
});
|
|
27920
|
+
return new Promise((resolve, reject) => {
|
|
27921
|
+
window.KqGIS.datasetService(url).getDatasets(params, e => {
|
|
27922
|
+
if (e.result.resultcode === 'success') {
|
|
27923
|
+
resolve(e.result.result.datasets);
|
|
27924
|
+
} else {
|
|
27925
|
+
console.error(e);
|
|
27926
|
+
reject([]);
|
|
27927
|
+
}
|
|
27928
|
+
}, err => {
|
|
27929
|
+
console.error(err);
|
|
27930
|
+
reject([]);
|
|
27931
|
+
});
|
|
27932
|
+
});
|
|
27933
|
+
}
|
|
27934
|
+
|
|
27935
|
+
_getFeatureList(url, datasourceName, datasetName) {
|
|
27936
|
+
let params = new window.KqGIS.Data.GetFeaturesParamsBase({
|
|
27937
|
+
datasourceName: datasourceName,
|
|
27938
|
+
datasetName: datasetName,
|
|
27939
|
+
hasGeometry: true,
|
|
27940
|
+
returnContent: true,
|
|
27941
|
+
outSRS: 'EPSG:4326'
|
|
27942
|
+
});
|
|
27943
|
+
return new Promise((resolve, reject) => {
|
|
27944
|
+
window.KqGIS.dataFeatureService(url).getFeatureList(params, e => {
|
|
27945
|
+
if (e.result.resultcode === 'success') {
|
|
27946
|
+
e.result.result['datasetName'] = datasetName;
|
|
27947
|
+
resolve(e.result.result);
|
|
27948
|
+
} else {
|
|
27949
|
+
console.error(e);
|
|
27950
|
+
reject(null);
|
|
27951
|
+
}
|
|
27952
|
+
}, err => {
|
|
27953
|
+
console.error(err);
|
|
27954
|
+
resolve(null);
|
|
27955
|
+
});
|
|
27956
|
+
});
|
|
27631
27957
|
}
|
|
27632
27958
|
|
|
27633
27959
|
flyToLayer(layer) {
|
|
@@ -27647,7 +27973,7 @@ class AddDataViewModel {
|
|
|
27647
27973
|
destination: tileset.rectangle
|
|
27648
27974
|
});
|
|
27649
27975
|
});
|
|
27650
|
-
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource) {
|
|
27976
|
+
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource || layer instanceof Cesium.Kq3dEsriGeoJsonDataSource) {
|
|
27651
27977
|
let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
|
|
27652
27978
|
viewer.flyTo(layer, {
|
|
27653
27979
|
offset
|
|
@@ -27725,7 +28051,6 @@ const AddDatavue_type_script_setup_true_lang_js_hoisted_12 = {
|
|
|
27725
28051
|
|
|
27726
28052
|
|
|
27727
28053
|
|
|
27728
|
-
//accept=".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt"
|
|
27729
28054
|
|
|
27730
28055
|
const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
27731
28056
|
name: "Kq3dAddData"
|
|
@@ -27762,6 +28087,11 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
27762
28087
|
type: Function,
|
|
27763
28088
|
default: null
|
|
27764
28089
|
},
|
|
28090
|
+
// 自定义加载函数, 只对KQGIS REST服务生效, earthstudio使用
|
|
28091
|
+
loadCustom: {
|
|
28092
|
+
type: Function,
|
|
28093
|
+
default: null
|
|
28094
|
+
},
|
|
27765
28095
|
// 是否生成HeaderTemp
|
|
27766
28096
|
showHeaderTemp: {
|
|
27767
28097
|
type: Boolean,
|
|
@@ -27796,6 +28126,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
27796
28126
|
expose
|
|
27797
28127
|
}) {
|
|
27798
28128
|
const props = __props;
|
|
28129
|
+
let accept = ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt";
|
|
27799
28130
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
27800
28131
|
let selectTypeIndex = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(0); //URL服务支持的数据源类型
|
|
27801
28132
|
|
|
@@ -27854,104 +28185,111 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
27854
28185
|
return [// {
|
|
27855
28186
|
// type: 'kq3dimageryfile',
|
|
27856
28187
|
// name: language.value.ImagertyTileFile,
|
|
27857
|
-
// namePlaceholder: language.value.
|
|
28188
|
+
// namePlaceholder: language.value.optional,
|
|
27858
28189
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
27859
28190
|
// description: language.value.imagertyTileFiledescription
|
|
27860
28191
|
// }, {
|
|
27861
28192
|
// type: 'obterrain',
|
|
27862
28193
|
// name: language.value.ObTerrainTileFile,
|
|
27863
|
-
// namePlaceholder: language.value.
|
|
28194
|
+
// namePlaceholder: language.value.optional,
|
|
27864
28195
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
27865
28196
|
// description: language.value.imagertyObTerrainTileFiledescription
|
|
27866
28197
|
// },
|
|
27867
28198
|
{
|
|
27868
28199
|
type: "kqgis3dserver",
|
|
27869
28200
|
name: language.value.KQGIS3DServer,
|
|
27870
|
-
namePlaceholder: language.value.
|
|
28201
|
+
namePlaceholder: language.value.optional,
|
|
27871
28202
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/realspace",
|
|
27872
28203
|
description: language.value.imagerty3DServerdescription
|
|
27873
28204
|
}, {
|
|
27874
28205
|
type: "kqgismapserver",
|
|
27875
28206
|
name: language.value.KQGISMapServer,
|
|
27876
|
-
namePlaceholder: language.value.
|
|
28207
|
+
namePlaceholder: language.value.optional,
|
|
27877
28208
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map",
|
|
27878
28209
|
description: language.value.imagertyMapServerdescription
|
|
27879
|
-
}, {
|
|
28210
|
+
}, // {
|
|
28211
|
+
// type: "kqgisdataserver",
|
|
28212
|
+
// name: language.value.KQGISDataServer,
|
|
28213
|
+
// namePlaceholder: language.value.optional,
|
|
28214
|
+
// urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/data",
|
|
28215
|
+
// description: language.value.imagertyDataServerdescription
|
|
28216
|
+
// },
|
|
28217
|
+
{
|
|
27880
28218
|
type: "kqgisimageserver",
|
|
27881
28219
|
name: language.value.KQGISImageServer,
|
|
27882
|
-
namePlaceholder: language.value.
|
|
28220
|
+
namePlaceholder: language.value.optional,
|
|
27883
28221
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/image",
|
|
27884
28222
|
description: language.value.imagertyImageServerdescription
|
|
27885
28223
|
}, {
|
|
27886
28224
|
type: "kqgisdataflowserver",
|
|
27887
28225
|
name: language.value.KQGISDataflowServer,
|
|
27888
|
-
namePlaceholder: language.value.
|
|
28226
|
+
namePlaceholder: language.value.optional,
|
|
27889
28227
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/streaming/rest/services/<servername>/dataflow",
|
|
27890
28228
|
description: language.value.imagertyDataflowServerdescription
|
|
27891
28229
|
}, {
|
|
27892
28230
|
type: "kqgistileserver",
|
|
27893
28231
|
name: language.value.KQGISTileServer,
|
|
27894
|
-
namePlaceholder: language.value.
|
|
28232
|
+
namePlaceholder: language.value.optional,
|
|
27895
28233
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
|
|
27896
28234
|
description: language.value.imagertyTileServerdescription
|
|
27897
28235
|
}, {
|
|
27898
28236
|
type: "kqgisaggregationserver",
|
|
27899
28237
|
name: language.value.KQGISAggregationServer,
|
|
27900
|
-
namePlaceholder: language.value.
|
|
28238
|
+
namePlaceholder: language.value.optional,
|
|
27901
28239
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
27902
28240
|
description: language.value.imagertyAggregationServerdescription
|
|
27903
28241
|
}, {
|
|
27904
28242
|
type: "s3m",
|
|
27905
28243
|
name: language.value.S3M,
|
|
27906
|
-
namePlaceholder: language.value.
|
|
28244
|
+
namePlaceholder: language.value.optional,
|
|
27907
28245
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/realspace/datas/xxx/config",
|
|
27908
28246
|
description: language.value.imagertyS3Mdescription
|
|
27909
28247
|
}, {
|
|
27910
28248
|
type: "arcgismapserver",
|
|
27911
28249
|
name: language.value.ArcGISMapServer,
|
|
27912
|
-
namePlaceholder: language.value.
|
|
28250
|
+
namePlaceholder: language.value.optional,
|
|
27913
28251
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/ArcGIS/rest/services/<servername>/MapServer",
|
|
27914
28252
|
description: language.value.imagertyArcGISMapServerdescription
|
|
27915
28253
|
}, {
|
|
27916
28254
|
type: "wms",
|
|
27917
28255
|
name: language.value.OGCWMS,
|
|
27918
|
-
namePlaceholder: language.value.
|
|
28256
|
+
namePlaceholder: language.value.optional,
|
|
27919
28257
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wms",
|
|
27920
28258
|
description: language.value.imagertyOGCWMSdescription
|
|
27921
28259
|
}, {
|
|
27922
28260
|
type: "wmts",
|
|
27923
28261
|
name: language.value.OGCWMTS,
|
|
27924
|
-
namePlaceholder: language.value.
|
|
28262
|
+
namePlaceholder: language.value.optional,
|
|
27925
28263
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
27926
28264
|
description: language.value.imagertyOGCWMTSdescription
|
|
27927
28265
|
}, {
|
|
27928
28266
|
type: "3dtiles",
|
|
27929
28267
|
name: language.value.Cesium3DTilesFile,
|
|
27930
|
-
namePlaceholder: language.value.
|
|
28268
|
+
namePlaceholder: language.value.optional,
|
|
27931
28269
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/tileset.json",
|
|
27932
28270
|
description: language.value.imagerty3DTilesFiledescription
|
|
27933
28271
|
}, {
|
|
27934
28272
|
type: "stkterrain",
|
|
27935
28273
|
name: language.value.StkTerrainTileFile,
|
|
27936
|
-
namePlaceholder: language.value.
|
|
28274
|
+
namePlaceholder: language.value.optional,
|
|
27937
28275
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/<foldername>/",
|
|
27938
28276
|
description: language.value.imagertyStkTerrainTileFiledescription
|
|
27939
28277
|
}, {
|
|
27940
28278
|
type: "geojson",
|
|
27941
28279
|
name: language.value.GeoJson,
|
|
27942
|
-
namePlaceholder: language.value.
|
|
28280
|
+
namePlaceholder: language.value.optional,
|
|
27943
28281
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
|
|
27944
28282
|
description: language.value.imagertyGeoJsondescription
|
|
27945
28283
|
}, {
|
|
27946
28284
|
type: "arcjson",
|
|
27947
28285
|
name: language.value.ArcJson,
|
|
27948
|
-
namePlaceholder: language.value.
|
|
28286
|
+
namePlaceholder: language.value.optional,
|
|
27949
28287
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.json",
|
|
27950
28288
|
description: language.value.imagertyArcJsondescription
|
|
27951
28289
|
}, {
|
|
27952
28290
|
type: "mvt",
|
|
27953
28291
|
name: language.value.MVT,
|
|
27954
|
-
namePlaceholder: language.value.
|
|
28292
|
+
namePlaceholder: language.value.optional,
|
|
27955
28293
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
|
|
27956
28294
|
description: language.value.imagertyMVTdescription
|
|
27957
28295
|
}
|
|
@@ -27964,13 +28302,13 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
27964
28302
|
}, {
|
|
27965
28303
|
type: 'kml',
|
|
27966
28304
|
name: language.value.KML,
|
|
27967
|
-
namePlaceholder: language.value.
|
|
28305
|
+
namePlaceholder: language.value.optional,
|
|
27968
28306
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.kml',
|
|
27969
28307
|
description: language.value.imagertyKMLdescription
|
|
27970
28308
|
}, {
|
|
27971
28309
|
type: 'czml',
|
|
27972
28310
|
name: language.value.CZML,
|
|
27973
|
-
namePlaceholder: language.value.
|
|
28311
|
+
namePlaceholder: language.value.optional,
|
|
27974
28312
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.czml',
|
|
27975
28313
|
description: language.value.imagertyCZMLdescription
|
|
27976
28314
|
}*/
|
|
@@ -28058,7 +28396,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28058
28396
|
type: dataSourceType.value.type,
|
|
28059
28397
|
url: dataSource.url,
|
|
28060
28398
|
name: dataSource.name
|
|
28061
|
-
}, props.loadCallback);
|
|
28399
|
+
}, props.loadCallback, props.loadCustom);
|
|
28062
28400
|
} // 重置
|
|
28063
28401
|
|
|
28064
28402
|
|
|
@@ -28141,7 +28479,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28141
28479
|
"auto-upload": false,
|
|
28142
28480
|
"file-list": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(fileList),
|
|
28143
28481
|
"onUpdate:file-list": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.isRef)(fileList) ? fileList.value = $event : fileList = $event),
|
|
28144
|
-
accept:
|
|
28482
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(accept),
|
|
28145
28483
|
"on-change": changeFile,
|
|
28146
28484
|
ref_key: "upload_ref",
|
|
28147
28485
|
ref: upload_ref
|
|
@@ -28154,7 +28492,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28154
28492
|
|
|
28155
28493
|
}, 8
|
|
28156
28494
|
/* PROPS */
|
|
28157
|
-
, ["file-list"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(fileList).length === 0]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", AddDatavue_type_script_setup_true_lang_js_hoisted_4, [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(operatorArray), (rowItem, i) => {
|
|
28495
|
+
, ["file-list", "accept"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(fileList).length === 0]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", AddDatavue_type_script_setup_true_lang_js_hoisted_4, [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(operatorArray), (rowItem, i) => {
|
|
28158
28496
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_row, {
|
|
28159
28497
|
key: i,
|
|
28160
28498
|
gutter: 20
|
|
@@ -28209,7 +28547,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28209
28547
|
action: "",
|
|
28210
28548
|
"show-file-list": false,
|
|
28211
28549
|
"auto-upload": false,
|
|
28212
|
-
accept:
|
|
28550
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(accept),
|
|
28213
28551
|
ref_key: "upload_btn_ref",
|
|
28214
28552
|
ref: upload_btn_ref,
|
|
28215
28553
|
class: "kq3d-add-data-footer-upload",
|
|
@@ -28231,9 +28569,9 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28231
28569
|
_: 1
|
|
28232
28570
|
/* STABLE */
|
|
28233
28571
|
|
|
28234
|
-
},
|
|
28235
|
-
/*
|
|
28236
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
28572
|
+
}, 8
|
|
28573
|
+
/* PROPS */
|
|
28574
|
+
, ["accept"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
28237
28575
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withModifiers)($event => removeFiles(), ["stop"])),
|
|
28238
28576
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).clearFiles,
|
|
28239
28577
|
type: "primary"
|
|
@@ -28335,7 +28673,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28335
28673
|
|
|
28336
28674
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
28337
28675
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
28338
|
-
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).
|
|
28676
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).nodeName
|
|
28339
28677
|
}, {
|
|
28340
28678
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_input, {
|
|
28341
28679
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(dataSource).name,
|
|
@@ -32528,11 +32866,14 @@ class VideoProjectViewModel {
|
|
|
32528
32866
|
project() {
|
|
32529
32867
|
this.clear();
|
|
32530
32868
|
let position = Cesium.Cartesian3.clone(this._viewer.camera.positionWC);
|
|
32869
|
+
this._options.heading = this._viewer.camera.heading;
|
|
32870
|
+
this._options.pitch = this._viewer.camera.pitch;
|
|
32871
|
+
this._options.roll = this._viewer.camera.roll;
|
|
32531
32872
|
let options = {
|
|
32532
32873
|
position: position,
|
|
32533
|
-
heading:
|
|
32534
|
-
pitch:
|
|
32535
|
-
roll:
|
|
32874
|
+
heading: this._options.heading,
|
|
32875
|
+
pitch: this._options.pitch,
|
|
32876
|
+
roll: this._options.roll,
|
|
32536
32877
|
fov: Cesium.Math.toRadians(this._options.fov),
|
|
32537
32878
|
aspectRatio: this._options.aspectRatio,
|
|
32538
32879
|
far: this._options.far,
|
|
@@ -32561,6 +32902,15 @@ class VideoProjectViewModel {
|
|
|
32561
32902
|
height: cartographic.height
|
|
32562
32903
|
};
|
|
32563
32904
|
}
|
|
32905
|
+
} // 获取HeadingPitchRoll
|
|
32906
|
+
|
|
32907
|
+
|
|
32908
|
+
getHeadingPitchRoll() {
|
|
32909
|
+
return {
|
|
32910
|
+
heading: Math.round(Cesium.Math.toDegrees(this._options.heading)),
|
|
32911
|
+
pitch: Math.round(Cesium.Math.toDegrees(this._options.pitch)),
|
|
32912
|
+
roll: Math.round(Cesium.Math.toDegrees(this._options.roll))
|
|
32913
|
+
};
|
|
32564
32914
|
} //飞入
|
|
32565
32915
|
|
|
32566
32916
|
|
|
@@ -32569,9 +32919,9 @@ class VideoProjectViewModel {
|
|
|
32569
32919
|
this._viewer.camera.flyTo({
|
|
32570
32920
|
destination: this._projectVideo.position,
|
|
32571
32921
|
orientation: {
|
|
32572
|
-
heading:
|
|
32573
|
-
pitch:
|
|
32574
|
-
roll:
|
|
32922
|
+
heading: this._options.heading,
|
|
32923
|
+
pitch: this._options.pitch,
|
|
32924
|
+
roll: this._options.roll
|
|
32575
32925
|
}
|
|
32576
32926
|
});
|
|
32577
32927
|
}
|
|
@@ -32726,9 +33076,6 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
32726
33076
|
expose
|
|
32727
33077
|
}) {
|
|
32728
33078
|
const props = __props;
|
|
32729
|
-
const {
|
|
32730
|
-
proxy
|
|
32731
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.getCurrentInstance)();
|
|
32732
33079
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
32733
33080
|
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(""); // 获取组件传参
|
|
32734
33081
|
|
|
@@ -32744,18 +33091,20 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
32744
33091
|
height: 0,
|
|
32745
33092
|
minHeight: -heightOffset,
|
|
32746
33093
|
maxHeight: heightOffset,
|
|
33094
|
+
heading: 0,
|
|
33095
|
+
pitch: 0,
|
|
33096
|
+
roll: 0,
|
|
32747
33097
|
videoPath: props.settingParams && props.settingParams.videoPath || "",
|
|
32748
33098
|
projectType: props.settingParams && props.settingParams.projectType || 1,
|
|
32749
33099
|
fov: props.settingParams && props.settingParams.fov || 20,
|
|
32750
33100
|
aspectRatio: props.settingParams && props.settingParams.aspectRatio || 1.6,
|
|
32751
33101
|
far: props.settingParams && props.settingParams.far || 50,
|
|
32752
|
-
heading: props.settingParams && props.settingParams.heading || 330,
|
|
32753
|
-
pitch: props.settingParams && props.settingParams.pitch || -12,
|
|
32754
|
-
roll: props.settingParams && props.settingParams.roll || 0,
|
|
32755
33102
|
showHideLine: props.settingParams && props.settingParams.showHideLine !== undefined || true
|
|
32756
33103
|
}); // 显示坐标
|
|
32757
33104
|
|
|
32758
|
-
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
33105
|
+
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false); // 显示朝向角俯仰角翻转角
|
|
33106
|
+
|
|
33107
|
+
let showHpr = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
32759
33108
|
let viewModel = null; // 组件容器Ref
|
|
32760
33109
|
|
|
32761
33110
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
@@ -32790,9 +33139,6 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
32790
33139
|
fov: formItem.fov,
|
|
32791
33140
|
aspectRatio: formItem.aspectRatio,
|
|
32792
33141
|
far: formItem.far,
|
|
32793
|
-
heading: formItem.heading,
|
|
32794
|
-
pitch: formItem.pitch,
|
|
32795
|
-
roll: formItem.roll,
|
|
32796
33142
|
showHideLine: formItem.showHideLine
|
|
32797
33143
|
};
|
|
32798
33144
|
viewModel = new VideoProjectViewModel(scenceView, options);
|
|
@@ -32877,9 +33223,11 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
32877
33223
|
if (viewModel) {
|
|
32878
33224
|
viewModel.project();
|
|
32879
33225
|
setCoordinate();
|
|
33226
|
+
serHpr();
|
|
32880
33227
|
}
|
|
32881
33228
|
}
|
|
32882
|
-
}
|
|
33229
|
+
} // 设置坐标
|
|
33230
|
+
|
|
32883
33231
|
|
|
32884
33232
|
function setCoordinate() {
|
|
32885
33233
|
let coordinate = viewModel.getProjectCoordinate();
|
|
@@ -32896,6 +33244,18 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
32896
33244
|
formItem.maxHeight = coordinate.height + heightOffset;
|
|
32897
33245
|
showCoordinate.value = true;
|
|
32898
33246
|
}
|
|
33247
|
+
} // 设置朝向角俯仰角翻转角
|
|
33248
|
+
|
|
33249
|
+
|
|
33250
|
+
function serHpr() {
|
|
33251
|
+
let hpr = viewModel.getHeadingPitchRoll();
|
|
33252
|
+
|
|
33253
|
+
if (hpr) {
|
|
33254
|
+
formItem.heading = hpr.heading;
|
|
33255
|
+
formItem.pitch = hpr.pitch;
|
|
33256
|
+
formItem.roll = hpr.roll;
|
|
33257
|
+
showHpr.value = true;
|
|
33258
|
+
}
|
|
32899
33259
|
} // 飞入
|
|
32900
33260
|
|
|
32901
33261
|
|
|
@@ -32906,6 +33266,7 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
32906
33266
|
|
|
32907
33267
|
function clearResult() {
|
|
32908
33268
|
showCoordinate.value = false;
|
|
33269
|
+
showHpr.value = false;
|
|
32909
33270
|
viewModel && viewModel.clear();
|
|
32910
33271
|
} // 销毁
|
|
32911
33272
|
|
|
@@ -33427,7 +33788,7 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33427
33788
|
_: 1
|
|
33428
33789
|
/* STABLE */
|
|
33429
33790
|
|
|
33430
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
33791
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
33431
33792
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
33432
33793
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).heading
|
|
33433
33794
|
}, {
|
|
@@ -33483,7 +33844,9 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33483
33844
|
_: 1
|
|
33484
33845
|
/* STABLE */
|
|
33485
33846
|
|
|
33486
|
-
}
|
|
33847
|
+
}, 512
|
|
33848
|
+
/* NEED_PATCH */
|
|
33849
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
33487
33850
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
33488
33851
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).pitch
|
|
33489
33852
|
}, {
|
|
@@ -33539,7 +33902,9 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33539
33902
|
_: 1
|
|
33540
33903
|
/* STABLE */
|
|
33541
33904
|
|
|
33542
|
-
}
|
|
33905
|
+
}, 512
|
|
33906
|
+
/* NEED_PATCH */
|
|
33907
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
33543
33908
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
33544
33909
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).roll
|
|
33545
33910
|
}, {
|
|
@@ -33595,7 +33960,9 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33595
33960
|
_: 1
|
|
33596
33961
|
/* STABLE */
|
|
33597
33962
|
|
|
33598
|
-
}
|
|
33963
|
+
}, 512
|
|
33964
|
+
/* NEED_PATCH */
|
|
33965
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
33599
33966
|
style: {
|
|
33600
33967
|
"margin-bottom": "8px"
|
|
33601
33968
|
}
|
|
@@ -33742,11 +34109,20 @@ class VideoFusiontViewModel {
|
|
|
33742
34109
|
|
|
33743
34110
|
|
|
33744
34111
|
fusion() {
|
|
34112
|
+
let type = 3;
|
|
34113
|
+
|
|
34114
|
+
if (this._options.videoPath.indexOf('.m3u8') > 0) {
|
|
34115
|
+
type = 5;
|
|
34116
|
+
}
|
|
34117
|
+
|
|
33745
34118
|
this.clear();
|
|
33746
34119
|
let cartographic = Cesium.Cartographic.fromCartesian(this._viewer.camera.positionWC);
|
|
34120
|
+
this._options.heading = Cesium.Math.toDegrees(this._viewer.camera.heading);
|
|
34121
|
+
this._options.pitch = Cesium.Math.toDegrees(this._viewer.camera.pitch);
|
|
34122
|
+
this._options.roll = Cesium.Math.toDegrees(this._viewer.camera.roll);
|
|
33747
34123
|
var param = {
|
|
33748
34124
|
url: this._options.videoPath,
|
|
33749
|
-
type:
|
|
34125
|
+
type: type,
|
|
33750
34126
|
position: {
|
|
33751
34127
|
x: Cesium.Math.toDegrees(cartographic.longitude),
|
|
33752
34128
|
y: Cesium.Math.toDegrees(cartographic.latitude),
|
|
@@ -33776,6 +34152,15 @@ class VideoFusiontViewModel {
|
|
|
33776
34152
|
if (this._videoFusion) {
|
|
33777
34153
|
return this._videoFusion.param.position;
|
|
33778
34154
|
}
|
|
34155
|
+
} // 获取HeadingPitchRoll
|
|
34156
|
+
|
|
34157
|
+
|
|
34158
|
+
getHeadingPitchRoll() {
|
|
34159
|
+
return {
|
|
34160
|
+
heading: Math.round(this._options.heading),
|
|
34161
|
+
pitch: Math.round(this._options.pitch),
|
|
34162
|
+
roll: Math.round(this._options.roll)
|
|
34163
|
+
};
|
|
33779
34164
|
} //飞入
|
|
33780
34165
|
|
|
33781
34166
|
|
|
@@ -33973,9 +34358,6 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33973
34358
|
expose
|
|
33974
34359
|
}) {
|
|
33975
34360
|
const props = __props;
|
|
33976
|
-
const {
|
|
33977
|
-
proxy
|
|
33978
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.getCurrentInstance)();
|
|
33979
34361
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
33980
34362
|
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(""); // 获取组件传参
|
|
33981
34363
|
|
|
@@ -33994,15 +34376,17 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33994
34376
|
videoPath: props.settingParams && props.settingParams.videoPath || "",
|
|
33995
34377
|
fov: props.settingParams && props.settingParams.fov || 40,
|
|
33996
34378
|
far: props.settingParams && props.settingParams.far || 50,
|
|
33997
|
-
heading:
|
|
33998
|
-
pitch:
|
|
33999
|
-
roll:
|
|
34379
|
+
heading: 0,
|
|
34380
|
+
pitch: 0,
|
|
34381
|
+
roll: 0,
|
|
34000
34382
|
alpha: props.settingParams && props.settingParams.alpha || 1.0,
|
|
34001
34383
|
eclosion: props.settingParams && props.settingParams.eclosion || 0.5,
|
|
34002
34384
|
showHideLine: props.settingParams && props.settingParams.showHideLine !== undefined || false
|
|
34003
34385
|
}); // 显示坐标
|
|
34004
34386
|
|
|
34005
|
-
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
34387
|
+
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false); // 显示朝向角俯仰角翻转角
|
|
34388
|
+
|
|
34389
|
+
let showHpr = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
34006
34390
|
let viewModel = null; // 组件容器Ref
|
|
34007
34391
|
|
|
34008
34392
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
@@ -34035,9 +34419,6 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34035
34419
|
videoPath: formItem.videoPath,
|
|
34036
34420
|
fov: formItem.fov,
|
|
34037
34421
|
far: formItem.far,
|
|
34038
|
-
heading: formItem.heading,
|
|
34039
|
-
pitch: formItem.pitch,
|
|
34040
|
-
roll: formItem.roll,
|
|
34041
34422
|
alpha: formItem.alpha,
|
|
34042
34423
|
eclosion: formItem.eclosion,
|
|
34043
34424
|
showHideLine: formItem.showHideLine
|
|
@@ -34124,6 +34505,7 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34124
34505
|
if (viewModel) {
|
|
34125
34506
|
viewModel.fusion();
|
|
34126
34507
|
setCoordinate();
|
|
34508
|
+
serHpr();
|
|
34127
34509
|
}
|
|
34128
34510
|
}
|
|
34129
34511
|
}
|
|
@@ -34143,6 +34525,18 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34143
34525
|
formItem.maxHeight = coordinate.z + heightOffset;
|
|
34144
34526
|
showCoordinate.value = true;
|
|
34145
34527
|
}
|
|
34528
|
+
} // 设置朝向角俯仰角翻转角
|
|
34529
|
+
|
|
34530
|
+
|
|
34531
|
+
function serHpr() {
|
|
34532
|
+
let hpr = viewModel.getHeadingPitchRoll();
|
|
34533
|
+
|
|
34534
|
+
if (hpr) {
|
|
34535
|
+
formItem.heading = hpr.heading;
|
|
34536
|
+
formItem.pitch = hpr.pitch;
|
|
34537
|
+
formItem.roll = hpr.roll;
|
|
34538
|
+
showHpr.value = true;
|
|
34539
|
+
}
|
|
34146
34540
|
} // 飞入
|
|
34147
34541
|
|
|
34148
34542
|
|
|
@@ -34153,6 +34547,7 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34153
34547
|
|
|
34154
34548
|
function clearResult() {
|
|
34155
34549
|
showCoordinate.value = false;
|
|
34550
|
+
showHpr.value = false;
|
|
34156
34551
|
viewModel && viewModel.clear();
|
|
34157
34552
|
} // 销毁
|
|
34158
34553
|
|
|
@@ -34559,7 +34954,7 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34559
34954
|
_: 1
|
|
34560
34955
|
/* STABLE */
|
|
34561
34956
|
|
|
34562
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
34957
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
34563
34958
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
34564
34959
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).heading
|
|
34565
34960
|
}, {
|
|
@@ -34615,7 +35010,9 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34615
35010
|
_: 1
|
|
34616
35011
|
/* STABLE */
|
|
34617
35012
|
|
|
34618
|
-
}
|
|
35013
|
+
}, 512
|
|
35014
|
+
/* NEED_PATCH */
|
|
35015
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
34619
35016
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
34620
35017
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).pitch
|
|
34621
35018
|
}, {
|
|
@@ -34671,7 +35068,9 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34671
35068
|
_: 1
|
|
34672
35069
|
/* STABLE */
|
|
34673
35070
|
|
|
34674
|
-
}
|
|
35071
|
+
}, 512
|
|
35072
|
+
/* NEED_PATCH */
|
|
35073
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
34675
35074
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
34676
35075
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).roll
|
|
34677
35076
|
}, {
|
|
@@ -34727,7 +35126,9 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34727
35126
|
_: 1
|
|
34728
35127
|
/* STABLE */
|
|
34729
35128
|
|
|
34730
|
-
}
|
|
35129
|
+
}, 512
|
|
35130
|
+
/* NEED_PATCH */
|
|
35131
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
34731
35132
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
34732
35133
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).transparents
|
|
34733
35134
|
}, {
|
|
@@ -35017,6 +35418,7 @@ class SceneSetViewModel {
|
|
|
35017
35418
|
|
|
35018
35419
|
this._viewer = viewer;
|
|
35019
35420
|
this._defaultSkyBox = viewer.scene.skyBox;
|
|
35421
|
+
this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
|
|
35020
35422
|
} // 获取场景内容
|
|
35021
35423
|
|
|
35022
35424
|
|
|
@@ -35372,8 +35774,6 @@ class SceneSetViewModel {
|
|
|
35372
35774
|
|
|
35373
35775
|
|
|
35374
35776
|
showGrid(type) {
|
|
35375
|
-
console.log(this._viewer.scene.kq3dUndergroundManager);
|
|
35376
|
-
|
|
35377
35777
|
if (this._gridLayer) {
|
|
35378
35778
|
this._viewer.imageryLayers.remove(this._gridLayer);
|
|
35379
35779
|
|
|
@@ -35397,10 +35797,6 @@ class SceneSetViewModel {
|
|
|
35397
35797
|
|
|
35398
35798
|
|
|
35399
35799
|
openUnderground(isOpen) {
|
|
35400
|
-
if (!this._undergroundManager) {
|
|
35401
|
-
this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
|
|
35402
|
-
}
|
|
35403
|
-
|
|
35404
35800
|
this._undergroundManager.undergroundEnabled = isOpen;
|
|
35405
35801
|
this._undergroundManager.transparentEnabled = isOpen;
|
|
35406
35802
|
} // 设置地表透明度
|
|
@@ -36874,10 +37270,30 @@ const SceneSetvue_type_script_setup_true_lang_js_default_ = {
|
|
|
36874
37270
|
}));
|
|
36875
37271
|
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=script&setup=true&lang=js
|
|
36876
37272
|
|
|
37273
|
+
// 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
|
|
37274
|
+
var SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss = __webpack_require__(825);
|
|
37275
|
+
;// 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
|
|
37276
|
+
|
|
37277
|
+
|
|
37278
|
+
|
|
37279
|
+
var SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss_options = {};
|
|
37280
|
+
|
|
37281
|
+
SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss_options.insert = "head";
|
|
37282
|
+
SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss_options.singleton = false;
|
|
37283
|
+
|
|
37284
|
+
var SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss_update = injectStylesIntoStyleTag_default()(SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss/* default */.Z, SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss_options);
|
|
37285
|
+
|
|
37286
|
+
|
|
37287
|
+
|
|
37288
|
+
/* 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 || {});
|
|
37289
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
|
|
37290
|
+
|
|
36877
37291
|
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue
|
|
36878
37292
|
|
|
36879
37293
|
|
|
36880
37294
|
|
|
37295
|
+
;
|
|
37296
|
+
|
|
36881
37297
|
const SceneSet_exports_ = SceneSetvue_type_script_setup_true_lang_js;
|
|
36882
37298
|
|
|
36883
37299
|
/* harmony default export */ var SceneSet = (SceneSet_exports_);
|
|
@@ -37413,7 +37829,7 @@ const Lightvue_type_script_setup_true_lang_js_default_ = {
|
|
|
37413
37829
|
class: "rowclass"
|
|
37414
37830
|
}, {
|
|
37415
37831
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
37416
|
-
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).
|
|
37832
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).lightColor
|
|
37417
37833
|
}, {
|
|
37418
37834
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
37419
37835
|
style: {
|