@kq_npm/client3d_webgl_vue 4.0.8-beta → 4.0.9-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adddata/index.js +193 -62
- package/index.js +225 -64
- package/package.json +1 -1
- package/scenceview/index.js +228 -67
package/index.js
CHANGED
|
@@ -1985,6 +1985,10 @@ class LayerManager {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
} else if (layerData.sourceType === "kqimageserver") {
|
|
1987
1987
|
type = "kqgisimageserver";
|
|
1988
|
+
|
|
1989
|
+
if (layerData.renderType === "weather") {
|
|
1990
|
+
type = "kqgisweatherserver";
|
|
1991
|
+
}
|
|
1988
1992
|
} else if (layerData.sourceType === "kq3dserver") {
|
|
1989
1993
|
type = "kqgis3dserver";
|
|
1990
1994
|
} else if (layerData.sourceType === "mvt") {
|
|
@@ -2138,7 +2142,8 @@ class LayerManager {
|
|
|
2138
2142
|
case "kqgis3dserver":
|
|
2139
2143
|
var that = this;
|
|
2140
2144
|
layerData.visible = isAdd;
|
|
2141
|
-
promise = this._viewer.addKq3dServerLayerGroupExt(url
|
|
2145
|
+
promise = this._viewer.addKq3dServerLayerGroupExt(url, { ...params
|
|
2146
|
+
}).then(group => {
|
|
2142
2147
|
var layers = group._addedLayers || group._layers;
|
|
2143
2148
|
|
|
2144
2149
|
if (layers && layers.length > 0) {
|
|
@@ -2178,6 +2183,7 @@ class LayerManager {
|
|
|
2178
2183
|
break;
|
|
2179
2184
|
|
|
2180
2185
|
case "kqgisimageserver":
|
|
2186
|
+
//kqgis影像服务-栅格数据
|
|
2181
2187
|
layerData.visible = isAdd;
|
|
2182
2188
|
layerData.serverType = "imagerylayer";
|
|
2183
2189
|
layerData.type = "Image"; // 图层树显示图标使用
|
|
@@ -2194,6 +2200,26 @@ class LayerManager {
|
|
|
2194
2200
|
|
|
2195
2201
|
break;
|
|
2196
2202
|
|
|
2203
|
+
case "kqgisweatherserver":
|
|
2204
|
+
//kqgis影像服务-气象数据
|
|
2205
|
+
layerData.visible = isAdd;
|
|
2206
|
+
layerData.serverType = "imagerylayer";
|
|
2207
|
+
|
|
2208
|
+
if (isAdd) {
|
|
2209
|
+
if (url.indexOf("/image/wmts") < 0) {
|
|
2210
|
+
url = url.replace("/image", "/image/wmts");
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dContourImageryProviderExt({
|
|
2214
|
+
name: name,
|
|
2215
|
+
url: url,
|
|
2216
|
+
...params
|
|
2217
|
+
}));
|
|
2218
|
+
layer._guid = layerData.guid;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
break;
|
|
2222
|
+
|
|
2197
2223
|
case "kqgismapserver":
|
|
2198
2224
|
if (layerData.sourceLayers) {
|
|
2199
2225
|
var layerInfo = layerData.sourceLayers.find(item => {
|
|
@@ -2285,7 +2311,7 @@ class LayerManager {
|
|
|
2285
2311
|
|
|
2286
2312
|
case "wms":
|
|
2287
2313
|
//配置id时只能是单个图层
|
|
2288
|
-
if (layerData.rect84 && layerData.sourceType !== "service") {
|
|
2314
|
+
if (layerData.rect84 && layerData.sourceType !== "service" && layerData.dataSourceType !== "service") {
|
|
2289
2315
|
// 大数据wms服务使用
|
|
2290
2316
|
layerData.visible = isAdd;
|
|
2291
2317
|
layerData.serverType = "imagerylayer";
|
|
@@ -2326,6 +2352,8 @@ class LayerManager {
|
|
|
2326
2352
|
layerData.serverType = "imagerylayer";
|
|
2327
2353
|
|
|
2328
2354
|
if (isAdd) {
|
|
2355
|
+
if (params.url) url = params.url; // 设置多子域时使用
|
|
2356
|
+
|
|
2329
2357
|
promise = this._viewer.addWMSLayerGroup(url, { ...params,
|
|
2330
2358
|
layers: layerData.id + ""
|
|
2331
2359
|
}).then(group => {
|
|
@@ -2364,6 +2392,8 @@ class LayerManager {
|
|
|
2364
2392
|
layerData.serverType = "imagerylayer"; //配置id时只能是单个图层
|
|
2365
2393
|
|
|
2366
2394
|
if (isAdd) {
|
|
2395
|
+
if (params.url) url = params.url; // 设置多子域时使用
|
|
2396
|
+
|
|
2367
2397
|
promise = this._viewer.addWMTSLayerGroup(url, { ...params,
|
|
2368
2398
|
layers: layerData.id + ""
|
|
2369
2399
|
}).then(group => {
|
|
@@ -26495,11 +26525,15 @@ PlaneClip.install = (Vue, opts) => {
|
|
|
26495
26525
|
};
|
|
26496
26526
|
|
|
26497
26527
|
|
|
26528
|
+
;// CONCATENATED MODULE: external "papaparse"
|
|
26529
|
+
var external_papaparse_namespaceObject = require("papaparse");
|
|
26530
|
+
var external_papaparse_default = /*#__PURE__*/__webpack_require__.n(external_papaparse_namespaceObject);
|
|
26498
26531
|
;// CONCATENATED MODULE: ./src/webgl/adddata/AddDataViewModel.js
|
|
26499
26532
|
|
|
26500
26533
|
|
|
26501
26534
|
|
|
26502
26535
|
|
|
26536
|
+
|
|
26503
26537
|
//添加数据逻辑类
|
|
26504
26538
|
|
|
26505
26539
|
class AddDataViewModel {
|
|
@@ -26523,13 +26557,15 @@ class AddDataViewModel {
|
|
|
26523
26557
|
style: Cesium.LabelStyle.FILL_AND_OUTLINE,
|
|
26524
26558
|
eyeOffset: Cesium.Cartesian3.ZERO,
|
|
26525
26559
|
pixelOffset: new Cesium.Cartesian2(0, -8),
|
|
26526
|
-
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
26560
|
+
disableDepthTestDistance: 10000000 // disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
26561
|
+
|
|
26527
26562
|
},
|
|
26528
26563
|
billboard: {
|
|
26529
26564
|
image: const_image_namespaceObject.BILLBOARD_IMAGE_URL,
|
|
26530
26565
|
width: 12,
|
|
26531
26566
|
height: 12,
|
|
26532
|
-
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
26567
|
+
disableDepthTestDistance: 10000000 // disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
26568
|
+
|
|
26533
26569
|
},
|
|
26534
26570
|
polyline: {
|
|
26535
26571
|
width: 2.0,
|
|
@@ -26584,8 +26620,7 @@ class AddDataViewModel {
|
|
|
26584
26620
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
26585
26621
|
|
|
26586
26622
|
|
|
26587
|
-
that.
|
|
26588
|
-
|
|
26623
|
+
that.flyToLayer(ds);
|
|
26589
26624
|
resolve("success");
|
|
26590
26625
|
var layer = {
|
|
26591
26626
|
guid: ds.guid,
|
|
@@ -26603,7 +26638,7 @@ class AddDataViewModel {
|
|
|
26603
26638
|
cb && cb(layer);
|
|
26604
26639
|
});
|
|
26605
26640
|
} else {
|
|
26606
|
-
reject(file.name + "
|
|
26641
|
+
reject(file.name + " file parser error.");
|
|
26607
26642
|
cb && cb("error");
|
|
26608
26643
|
}
|
|
26609
26644
|
});
|
|
@@ -26626,8 +26661,129 @@ class AddDataViewModel {
|
|
|
26626
26661
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
26627
26662
|
|
|
26628
26663
|
|
|
26629
|
-
that.
|
|
26664
|
+
that.flyToLayer(ds);
|
|
26665
|
+
resolve("success");
|
|
26666
|
+
var layer = {
|
|
26667
|
+
guid: ds.guid,
|
|
26668
|
+
name: name,
|
|
26669
|
+
visible: true,
|
|
26670
|
+
serverType: "datasource",
|
|
26671
|
+
lsType: "ls",
|
|
26672
|
+
url: res,
|
|
26673
|
+
addType: "geojson",
|
|
26674
|
+
shapeType: that._layerManager.getShapeType(ds)
|
|
26675
|
+
};
|
|
26676
|
+
|
|
26677
|
+
that._layerManager.addTempLayerNode(layer);
|
|
26678
|
+
|
|
26679
|
+
cb && cb(layer);
|
|
26680
|
+
});
|
|
26681
|
+
} else {
|
|
26682
|
+
reject(file.name + " file parser error.");
|
|
26683
|
+
cb && cb("error");
|
|
26684
|
+
}
|
|
26685
|
+
});
|
|
26686
|
+
} else if (ext === "csv") {
|
|
26687
|
+
(0,util_namespaceObject.readFile)(file, res => {
|
|
26688
|
+
var features = external_papaparse_default().parse(res, {
|
|
26689
|
+
skipEmptyLines: true,
|
|
26690
|
+
header: true
|
|
26691
|
+
}).data;
|
|
26692
|
+
let _featureCollection = {
|
|
26693
|
+
type: "FeatureCollection",
|
|
26694
|
+
features: []
|
|
26695
|
+
};
|
|
26630
26696
|
|
|
26697
|
+
for (var i = 0; i < features.length; i++) {
|
|
26698
|
+
let item = features[i];
|
|
26699
|
+
let lat = null;
|
|
26700
|
+
let lng = null;
|
|
26701
|
+
let properties = {};
|
|
26702
|
+
|
|
26703
|
+
for (var j in item) {
|
|
26704
|
+
if (j.toUpperCase().indexOf("LAT") != -1) {
|
|
26705
|
+
lat = item[j];
|
|
26706
|
+
} else if (j.toUpperCase().indexOf("LNG") != -1 || j.toUpperCase().indexOf("LON") != -1) {
|
|
26707
|
+
lng = item[j];
|
|
26708
|
+
} else if (j.toUpperCase() === "X") {
|
|
26709
|
+
lat = item[j];
|
|
26710
|
+
} else if (j.toUpperCase() === "Y") {
|
|
26711
|
+
lng = item[j];
|
|
26712
|
+
} else {
|
|
26713
|
+
properties[j] = item[j];
|
|
26714
|
+
}
|
|
26715
|
+
} // 点数据
|
|
26716
|
+
|
|
26717
|
+
|
|
26718
|
+
if (lat && lng) {
|
|
26719
|
+
let _point = {
|
|
26720
|
+
type: "Feature",
|
|
26721
|
+
geometry: {
|
|
26722
|
+
type: "Point",
|
|
26723
|
+
coordinates: [Number(lng), Number(lat)]
|
|
26724
|
+
},
|
|
26725
|
+
properties: properties
|
|
26726
|
+
};
|
|
26727
|
+
|
|
26728
|
+
_featureCollection.features.push(_point);
|
|
26729
|
+
} else {}
|
|
26730
|
+
}
|
|
26731
|
+
|
|
26732
|
+
if (_featureCollection.features.length > 0) {
|
|
26733
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
26734
|
+
ds.load(_featureCollection, that._geojsonStyle).then(ds => {
|
|
26735
|
+
ds.entities.values.forEach(entity => {
|
|
26736
|
+
if (entity.polygon) {
|
|
26737
|
+
entity.polyline = {
|
|
26738
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
26739
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
26740
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
26741
|
+
};
|
|
26742
|
+
}
|
|
26743
|
+
});
|
|
26744
|
+
|
|
26745
|
+
that._viewer.dataSources.add(ds);
|
|
26746
|
+
|
|
26747
|
+
that.flyToLayer(ds);
|
|
26748
|
+
resolve("success");
|
|
26749
|
+
var layer = {
|
|
26750
|
+
guid: ds.guid,
|
|
26751
|
+
name: name,
|
|
26752
|
+
visible: true,
|
|
26753
|
+
serverType: "datasource",
|
|
26754
|
+
lsType: "ls",
|
|
26755
|
+
url: _featureCollection,
|
|
26756
|
+
addType: "geojson",
|
|
26757
|
+
shapeType: that._layerManager.getShapeType(ds)
|
|
26758
|
+
};
|
|
26759
|
+
|
|
26760
|
+
that._layerManager.addTempLayerNode(layer);
|
|
26761
|
+
|
|
26762
|
+
cb && cb(layer);
|
|
26763
|
+
});
|
|
26764
|
+
} else {
|
|
26765
|
+
reject(file.name + " file parser error.");
|
|
26766
|
+
cb && cb("error");
|
|
26767
|
+
}
|
|
26768
|
+
});
|
|
26769
|
+
} else if (ext === "xls" || ext === "xlsx") {
|
|
26770
|
+
(0,util_namespaceObject.readExcel)(file, this._language, res => {
|
|
26771
|
+
if (res) {
|
|
26772
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
26773
|
+
ds.load(res, that._geojsonStyle).then(ds => {
|
|
26774
|
+
ds.entities.values.forEach(entity => {
|
|
26775
|
+
if (entity.polygon) {
|
|
26776
|
+
entity.polyline = {
|
|
26777
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
26778
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
26779
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
26780
|
+
};
|
|
26781
|
+
}
|
|
26782
|
+
});
|
|
26783
|
+
|
|
26784
|
+
that._viewer.dataSources.add(ds);
|
|
26785
|
+
|
|
26786
|
+
that.flyToLayer(ds);
|
|
26631
26787
|
resolve("success");
|
|
26632
26788
|
var layer = {
|
|
26633
26789
|
guid: ds.guid,
|
|
@@ -26645,7 +26801,8 @@ class AddDataViewModel {
|
|
|
26645
26801
|
cb && cb(layer);
|
|
26646
26802
|
});
|
|
26647
26803
|
} else {
|
|
26648
|
-
reject(file.name + "
|
|
26804
|
+
reject(file.name + " file parser error.");
|
|
26805
|
+
cb && cb("error");
|
|
26649
26806
|
}
|
|
26650
26807
|
});
|
|
26651
26808
|
} else {
|
|
@@ -26699,8 +26856,7 @@ class AddDataViewModel {
|
|
|
26699
26856
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
26700
26857
|
|
|
26701
26858
|
|
|
26702
|
-
that.
|
|
26703
|
-
|
|
26859
|
+
that.flyToLayer(ds);
|
|
26704
26860
|
resolve("success");
|
|
26705
26861
|
var layer = {
|
|
26706
26862
|
guid: ds.guid,
|
|
@@ -26733,8 +26889,7 @@ class AddDataViewModel {
|
|
|
26733
26889
|
ds.load(data).then(ds => {
|
|
26734
26890
|
that._viewer.dataSources.add(ds);
|
|
26735
26891
|
|
|
26736
|
-
that.
|
|
26737
|
-
|
|
26892
|
+
that.flyToLayer(ds);
|
|
26738
26893
|
resolve("success");
|
|
26739
26894
|
var layer = {
|
|
26740
26895
|
guid: ds.guid,
|
|
@@ -26762,8 +26917,7 @@ class AddDataViewModel {
|
|
|
26762
26917
|
ds.load(file).then(ds => {
|
|
26763
26918
|
that._viewer.dataSources.add(ds);
|
|
26764
26919
|
|
|
26765
|
-
that.
|
|
26766
|
-
|
|
26920
|
+
that.flyToLayer(ds);
|
|
26767
26921
|
resolve("success");
|
|
26768
26922
|
var layer = {
|
|
26769
26923
|
guid: ds.guid,
|
|
@@ -26795,8 +26949,7 @@ class AddDataViewModel {
|
|
|
26795
26949
|
that._viewer.dataSources.add(Cesium.CzmlDataSource.load(ret, {
|
|
26796
26950
|
name: name
|
|
26797
26951
|
})).then(ds => {
|
|
26798
|
-
that.
|
|
26799
|
-
|
|
26952
|
+
that.flyToLayer(ds);
|
|
26800
26953
|
resolve("success");
|
|
26801
26954
|
var layer = {
|
|
26802
26955
|
guid: ds.guid,
|
|
@@ -26836,7 +26989,7 @@ class AddDataViewModel {
|
|
|
26836
26989
|
} //解析数据源
|
|
26837
26990
|
|
|
26838
26991
|
|
|
26839
|
-
parseDataSource(options, cb) {
|
|
26992
|
+
parseDataSource(options, cb, loadCustom) {
|
|
26840
26993
|
options = options || {};
|
|
26841
26994
|
|
|
26842
26995
|
if (options.url && options.url !== "") {
|
|
@@ -26855,13 +27008,13 @@ class AddDataViewModel {
|
|
|
26855
27008
|
} catch (error) {
|
|
26856
27009
|
message({
|
|
26857
27010
|
message: this._language.errorUrlAddress,
|
|
26858
|
-
type: "
|
|
27011
|
+
type: "warning"
|
|
26859
27012
|
});
|
|
26860
27013
|
return;
|
|
26861
27014
|
}
|
|
26862
27015
|
|
|
26863
27016
|
if (options.type === "kml") {
|
|
26864
|
-
this.parseService(options, cb);
|
|
27017
|
+
this.parseService(options, cb, loadCustom);
|
|
26865
27018
|
return;
|
|
26866
27019
|
}
|
|
26867
27020
|
|
|
@@ -26871,17 +27024,17 @@ class AddDataViewModel {
|
|
|
26871
27024
|
if (data.status !== 200) {
|
|
26872
27025
|
message({
|
|
26873
27026
|
message: this._language.serviceNotAvailable,
|
|
26874
|
-
type: "
|
|
27027
|
+
type: "warning"
|
|
26875
27028
|
});
|
|
26876
27029
|
} else {
|
|
26877
27030
|
try {
|
|
26878
|
-
this.parseService(options, cb);
|
|
27031
|
+
this.parseService(options, cb, loadCustom);
|
|
26879
27032
|
} catch {}
|
|
26880
27033
|
}
|
|
26881
27034
|
}).catch(() => {
|
|
26882
27035
|
message({
|
|
26883
27036
|
message: this._language.serviceNotAvailable,
|
|
26884
|
-
type: "
|
|
27037
|
+
type: "warning"
|
|
26885
27038
|
});
|
|
26886
27039
|
});
|
|
26887
27040
|
} else {
|
|
@@ -26893,7 +27046,7 @@ class AddDataViewModel {
|
|
|
26893
27046
|
} //解析服务
|
|
26894
27047
|
|
|
26895
27048
|
|
|
26896
|
-
parseService(options, cb) {
|
|
27049
|
+
parseService(options, cb, loadCustom) {
|
|
26897
27050
|
let that = this;
|
|
26898
27051
|
let url = options.url;
|
|
26899
27052
|
let type = options.type || "";
|
|
@@ -27206,6 +27359,14 @@ class AddDataViewModel {
|
|
|
27206
27359
|
break;
|
|
27207
27360
|
|
|
27208
27361
|
case "kqgismapserver":
|
|
27362
|
+
if (loadCustom) {
|
|
27363
|
+
loadCustom({
|
|
27364
|
+
name,
|
|
27365
|
+
url
|
|
27366
|
+
});
|
|
27367
|
+
return;
|
|
27368
|
+
}
|
|
27369
|
+
|
|
27209
27370
|
node = {
|
|
27210
27371
|
guid: Cesium.createGuid(),
|
|
27211
27372
|
name: name,
|
|
@@ -27229,7 +27390,7 @@ class AddDataViewModel {
|
|
|
27229
27390
|
if (mapInfo.resultcode === "error") {
|
|
27230
27391
|
message({
|
|
27231
27392
|
message: mapInfo.message,
|
|
27232
|
-
type: "
|
|
27393
|
+
type: "warning"
|
|
27233
27394
|
});
|
|
27234
27395
|
return;
|
|
27235
27396
|
}
|
|
@@ -27460,8 +27621,7 @@ class AddDataViewModel {
|
|
|
27460
27621
|
that._viewer.dataSources.add(ds); // ds.autoAvoid(that._viewer);
|
|
27461
27622
|
|
|
27462
27623
|
|
|
27463
|
-
that.
|
|
27464
|
-
|
|
27624
|
+
that.flyToLayer(ds);
|
|
27465
27625
|
node = {
|
|
27466
27626
|
guid: ds.guid,
|
|
27467
27627
|
name: name,
|
|
@@ -27495,8 +27655,7 @@ class AddDataViewModel {
|
|
|
27495
27655
|
this._viewer.dataSources.add(ds); // ds.autoAvoid(this._viewer);
|
|
27496
27656
|
|
|
27497
27657
|
|
|
27498
|
-
|
|
27499
|
-
|
|
27658
|
+
that.flyToLayer(ds);
|
|
27500
27659
|
node = {
|
|
27501
27660
|
guid: ds.guid,
|
|
27502
27661
|
name: name,
|
|
@@ -27532,8 +27691,7 @@ class AddDataViewModel {
|
|
|
27532
27691
|
|
|
27533
27692
|
this._viewer.dataSources.add(ds);
|
|
27534
27693
|
|
|
27535
|
-
|
|
27536
|
-
|
|
27694
|
+
that.flyToLayer(ds);
|
|
27537
27695
|
node = {
|
|
27538
27696
|
guid: ds.guid,
|
|
27539
27697
|
name: name,
|
|
@@ -27560,8 +27718,7 @@ class AddDataViewModel {
|
|
|
27560
27718
|
ds.load(url).then(ds => {
|
|
27561
27719
|
this._viewer.dataSources.add(ds);
|
|
27562
27720
|
|
|
27563
|
-
|
|
27564
|
-
|
|
27721
|
+
that.flyToLayer(ds);
|
|
27565
27722
|
node = {
|
|
27566
27723
|
guid: ds.guid,
|
|
27567
27724
|
name: name,
|
|
@@ -27583,8 +27740,7 @@ class AddDataViewModel {
|
|
|
27583
27740
|
ds.load(url).then(ds => {
|
|
27584
27741
|
this._viewer.dataSources.add(ds);
|
|
27585
27742
|
|
|
27586
|
-
|
|
27587
|
-
|
|
27743
|
+
that.flyToLayer(ds);
|
|
27588
27744
|
node = {
|
|
27589
27745
|
guid: ds.guid,
|
|
27590
27746
|
name: name,
|
|
@@ -27647,7 +27803,7 @@ class AddDataViewModel {
|
|
|
27647
27803
|
destination: tileset.rectangle
|
|
27648
27804
|
});
|
|
27649
27805
|
});
|
|
27650
|
-
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource) {
|
|
27806
|
+
} else if (layer instanceof Cesium.GeoJsonDataSource || layer instanceof Cesium.Kq3dGeoJsonDataSource || layer instanceof Cesium.Kq3dEsriGeoJsonDataSource) {
|
|
27651
27807
|
let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
|
|
27652
27808
|
viewer.flyTo(layer, {
|
|
27653
27809
|
offset
|
|
@@ -27725,7 +27881,6 @@ const AddDatavue_type_script_setup_true_lang_js_hoisted_12 = {
|
|
|
27725
27881
|
|
|
27726
27882
|
|
|
27727
27883
|
|
|
27728
|
-
//accept=".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt"
|
|
27729
27884
|
|
|
27730
27885
|
const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
27731
27886
|
name: "Kq3dAddData"
|
|
@@ -27762,6 +27917,11 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
27762
27917
|
type: Function,
|
|
27763
27918
|
default: null
|
|
27764
27919
|
},
|
|
27920
|
+
// 自定义加载函数, 只对KQGIS REST服务生效, earthstudio使用
|
|
27921
|
+
loadCustom: {
|
|
27922
|
+
type: Function,
|
|
27923
|
+
default: null
|
|
27924
|
+
},
|
|
27765
27925
|
// 是否生成HeaderTemp
|
|
27766
27926
|
showHeaderTemp: {
|
|
27767
27927
|
type: Boolean,
|
|
@@ -27796,6 +27956,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
27796
27956
|
expose
|
|
27797
27957
|
}) {
|
|
27798
27958
|
const props = __props;
|
|
27959
|
+
let accept = ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.csv,.xls,.xlsx,.txt";
|
|
27799
27960
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
27800
27961
|
let selectTypeIndex = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(0); //URL服务支持的数据源类型
|
|
27801
27962
|
|
|
@@ -27854,104 +28015,104 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
27854
28015
|
return [// {
|
|
27855
28016
|
// type: 'kq3dimageryfile',
|
|
27856
28017
|
// name: language.value.ImagertyTileFile,
|
|
27857
|
-
// namePlaceholder: language.value.
|
|
28018
|
+
// namePlaceholder: language.value.optional,
|
|
27858
28019
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
27859
28020
|
// description: language.value.imagertyTileFiledescription
|
|
27860
28021
|
// }, {
|
|
27861
28022
|
// type: 'obterrain',
|
|
27862
28023
|
// name: language.value.ObTerrainTileFile,
|
|
27863
|
-
// namePlaceholder: language.value.
|
|
28024
|
+
// namePlaceholder: language.value.optional,
|
|
27864
28025
|
// urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
|
|
27865
28026
|
// description: language.value.imagertyObTerrainTileFiledescription
|
|
27866
28027
|
// },
|
|
27867
28028
|
{
|
|
27868
28029
|
type: "kqgis3dserver",
|
|
27869
28030
|
name: language.value.KQGIS3DServer,
|
|
27870
|
-
namePlaceholder: language.value.
|
|
28031
|
+
namePlaceholder: language.value.optional,
|
|
27871
28032
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/realspace",
|
|
27872
28033
|
description: language.value.imagerty3DServerdescription
|
|
27873
28034
|
}, {
|
|
27874
28035
|
type: "kqgismapserver",
|
|
27875
28036
|
name: language.value.KQGISMapServer,
|
|
27876
|
-
namePlaceholder: language.value.
|
|
28037
|
+
namePlaceholder: language.value.optional,
|
|
27877
28038
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map",
|
|
27878
28039
|
description: language.value.imagertyMapServerdescription
|
|
27879
28040
|
}, {
|
|
27880
28041
|
type: "kqgisimageserver",
|
|
27881
28042
|
name: language.value.KQGISImageServer,
|
|
27882
|
-
namePlaceholder: language.value.
|
|
28043
|
+
namePlaceholder: language.value.optional,
|
|
27883
28044
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/image",
|
|
27884
28045
|
description: language.value.imagertyImageServerdescription
|
|
27885
28046
|
}, {
|
|
27886
28047
|
type: "kqgisdataflowserver",
|
|
27887
28048
|
name: language.value.KQGISDataflowServer,
|
|
27888
|
-
namePlaceholder: language.value.
|
|
28049
|
+
namePlaceholder: language.value.optional,
|
|
27889
28050
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/streaming/rest/services/<servername>/dataflow",
|
|
27890
28051
|
description: language.value.imagertyDataflowServerdescription
|
|
27891
28052
|
}, {
|
|
27892
28053
|
type: "kqgistileserver",
|
|
27893
28054
|
name: language.value.KQGISTileServer,
|
|
27894
|
-
namePlaceholder: language.value.
|
|
28055
|
+
namePlaceholder: language.value.optional,
|
|
27895
28056
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
|
|
27896
28057
|
description: language.value.imagertyTileServerdescription
|
|
27897
28058
|
}, {
|
|
27898
28059
|
type: "kqgisaggregationserver",
|
|
27899
28060
|
name: language.value.KQGISAggregationServer,
|
|
27900
|
-
namePlaceholder: language.value.
|
|
28061
|
+
namePlaceholder: language.value.optional,
|
|
27901
28062
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
27902
28063
|
description: language.value.imagertyAggregationServerdescription
|
|
27903
28064
|
}, {
|
|
27904
28065
|
type: "s3m",
|
|
27905
28066
|
name: language.value.S3M,
|
|
27906
|
-
namePlaceholder: language.value.
|
|
28067
|
+
namePlaceholder: language.value.optional,
|
|
27907
28068
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/realspace/datas/xxx/config",
|
|
27908
28069
|
description: language.value.imagertyS3Mdescription
|
|
27909
28070
|
}, {
|
|
27910
28071
|
type: "arcgismapserver",
|
|
27911
28072
|
name: language.value.ArcGISMapServer,
|
|
27912
|
-
namePlaceholder: language.value.
|
|
28073
|
+
namePlaceholder: language.value.optional,
|
|
27913
28074
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/ArcGIS/rest/services/<servername>/MapServer",
|
|
27914
28075
|
description: language.value.imagertyArcGISMapServerdescription
|
|
27915
28076
|
}, {
|
|
27916
28077
|
type: "wms",
|
|
27917
28078
|
name: language.value.OGCWMS,
|
|
27918
|
-
namePlaceholder: language.value.
|
|
28079
|
+
namePlaceholder: language.value.optional,
|
|
27919
28080
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wms",
|
|
27920
28081
|
description: language.value.imagertyOGCWMSdescription
|
|
27921
28082
|
}, {
|
|
27922
28083
|
type: "wmts",
|
|
27923
28084
|
name: language.value.OGCWMTS,
|
|
27924
|
-
namePlaceholder: language.value.
|
|
28085
|
+
namePlaceholder: language.value.optional,
|
|
27925
28086
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map/wmts",
|
|
27926
28087
|
description: language.value.imagertyOGCWMTSdescription
|
|
27927
28088
|
}, {
|
|
27928
28089
|
type: "3dtiles",
|
|
27929
28090
|
name: language.value.Cesium3DTilesFile,
|
|
27930
|
-
namePlaceholder: language.value.
|
|
28091
|
+
namePlaceholder: language.value.optional,
|
|
27931
28092
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/tileset.json",
|
|
27932
28093
|
description: language.value.imagerty3DTilesFiledescription
|
|
27933
28094
|
}, {
|
|
27934
28095
|
type: "stkterrain",
|
|
27935
28096
|
name: language.value.StkTerrainTileFile,
|
|
27936
|
-
namePlaceholder: language.value.
|
|
28097
|
+
namePlaceholder: language.value.optional,
|
|
27937
28098
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx/<foldername>/",
|
|
27938
28099
|
description: language.value.imagertyStkTerrainTileFiledescription
|
|
27939
28100
|
}, {
|
|
27940
28101
|
type: "geojson",
|
|
27941
28102
|
name: language.value.GeoJson,
|
|
27942
|
-
namePlaceholder: language.value.
|
|
28103
|
+
namePlaceholder: language.value.optional,
|
|
27943
28104
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
|
|
27944
28105
|
description: language.value.imagertyGeoJsondescription
|
|
27945
28106
|
}, {
|
|
27946
28107
|
type: "arcjson",
|
|
27947
28108
|
name: language.value.ArcJson,
|
|
27948
|
-
namePlaceholder: language.value.
|
|
28109
|
+
namePlaceholder: language.value.optional,
|
|
27949
28110
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.json",
|
|
27950
28111
|
description: language.value.imagertyArcJsondescription
|
|
27951
28112
|
}, {
|
|
27952
28113
|
type: "mvt",
|
|
27953
28114
|
name: language.value.MVT,
|
|
27954
|
-
namePlaceholder: language.value.
|
|
28115
|
+
namePlaceholder: language.value.optional,
|
|
27955
28116
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
|
|
27956
28117
|
description: language.value.imagertyMVTdescription
|
|
27957
28118
|
}
|
|
@@ -27964,13 +28125,13 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
27964
28125
|
}, {
|
|
27965
28126
|
type: 'kml',
|
|
27966
28127
|
name: language.value.KML,
|
|
27967
|
-
namePlaceholder: language.value.
|
|
28128
|
+
namePlaceholder: language.value.optional,
|
|
27968
28129
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.kml',
|
|
27969
28130
|
description: language.value.imagertyKMLdescription
|
|
27970
28131
|
}, {
|
|
27971
28132
|
type: 'czml',
|
|
27972
28133
|
name: language.value.CZML,
|
|
27973
|
-
namePlaceholder: language.value.
|
|
28134
|
+
namePlaceholder: language.value.optional,
|
|
27974
28135
|
urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.czml',
|
|
27975
28136
|
description: language.value.imagertyCZMLdescription
|
|
27976
28137
|
}*/
|
|
@@ -28058,7 +28219,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28058
28219
|
type: dataSourceType.value.type,
|
|
28059
28220
|
url: dataSource.url,
|
|
28060
28221
|
name: dataSource.name
|
|
28061
|
-
}, props.loadCallback);
|
|
28222
|
+
}, props.loadCallback, props.loadCustom);
|
|
28062
28223
|
} // 重置
|
|
28063
28224
|
|
|
28064
28225
|
|
|
@@ -28141,7 +28302,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28141
28302
|
"auto-upload": false,
|
|
28142
28303
|
"file-list": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(fileList),
|
|
28143
28304
|
"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:
|
|
28305
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(accept),
|
|
28145
28306
|
"on-change": changeFile,
|
|
28146
28307
|
ref_key: "upload_ref",
|
|
28147
28308
|
ref: upload_ref
|
|
@@ -28154,7 +28315,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28154
28315
|
|
|
28155
28316
|
}, 8
|
|
28156
28317
|
/* 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) => {
|
|
28318
|
+
, ["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
28319
|
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
28320
|
key: i,
|
|
28160
28321
|
gutter: 20
|
|
@@ -28209,7 +28370,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28209
28370
|
action: "",
|
|
28210
28371
|
"show-file-list": false,
|
|
28211
28372
|
"auto-upload": false,
|
|
28212
|
-
accept:
|
|
28373
|
+
accept: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(accept),
|
|
28213
28374
|
ref_key: "upload_btn_ref",
|
|
28214
28375
|
ref: upload_btn_ref,
|
|
28215
28376
|
class: "kq3d-add-data-footer-upload",
|
|
@@ -28231,9 +28392,9 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28231
28392
|
_: 1
|
|
28232
28393
|
/* STABLE */
|
|
28233
28394
|
|
|
28234
|
-
},
|
|
28235
|
-
/*
|
|
28236
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
28395
|
+
}, 8
|
|
28396
|
+
/* PROPS */
|
|
28397
|
+
, ["accept"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
28237
28398
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withModifiers)($event => removeFiles(), ["stop"])),
|
|
28238
28399
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).clearFiles,
|
|
28239
28400
|
type: "primary"
|
|
@@ -28335,7 +28496,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28335
28496
|
|
|
28336
28497
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
28337
28498
|
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).
|
|
28499
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).nodeName
|
|
28339
28500
|
}, {
|
|
28340
28501
|
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
28502
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(dataSource).name,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.0.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.0.9-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"restrictedVersion":true,"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"1.1.1","echarts":"5.3.0","echarts-stat":"1.2.0","js-cookie":"3.0.1","omit.js":"2.0.2","save":"2.5.0","tinycolor2":"1.4.2","vue-i18n":"9.2.0-beta.36","xlsx":"0.18.5","css-vars-ponyfill":"2.4.8","html2canvas":"1.4.1","xe-utils":"3.5.4"}}
|