@kq_npm/client3d_webgl_vue 3.3.5-beta → 3.3.7-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/index.js +14 -3
- package/package.json +1 -1
- package/scenceview/index.js +14 -3
package/index.js
CHANGED
|
@@ -1014,6 +1014,16 @@ class DrawManager {
|
|
|
1014
1014
|
if (index > -1) {
|
|
1015
1015
|
this._layerGroup.splice(index, 1);
|
|
1016
1016
|
}
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
getGeometry(idCustom) {
|
|
1020
|
+
let dsList = this._viewer.dataSources.getByName(idCustom);
|
|
1021
|
+
|
|
1022
|
+
if (dsList.length <= 0) {
|
|
1023
|
+
return "";
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
return dsList;
|
|
1017
1027
|
} //删除所有geojson绘图
|
|
1018
1028
|
|
|
1019
1029
|
|
|
@@ -1653,13 +1663,14 @@ class LayerManager {
|
|
|
1653
1663
|
|
|
1654
1664
|
case "geojson":
|
|
1655
1665
|
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
1656
|
-
|
|
1666
|
+
var geojsonStyle = layerData.geojsonStyle || this._geojsonStyle;
|
|
1667
|
+
promise = ds.load(url, geojsonStyle).then(ds => {
|
|
1657
1668
|
ds.entities.values.forEach(entity => {
|
|
1658
1669
|
if (entity.polygon) {
|
|
1659
1670
|
entity.polyline = {
|
|
1660
1671
|
positions: entity.polygon.hierarchy._value.positions,
|
|
1661
|
-
width:
|
|
1662
|
-
material:
|
|
1672
|
+
width: geojsonStyle.polygon.outlineWidth,
|
|
1673
|
+
material: geojsonStyle.polygon.outlineColor
|
|
1663
1674
|
};
|
|
1664
1675
|
}
|
|
1665
1676
|
}, this);
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"3.3.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"3.3.7-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"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.3","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"}}
|
package/scenceview/index.js
CHANGED
|
@@ -26331,6 +26331,16 @@ class DrawManager {
|
|
|
26331
26331
|
if (index > -1) {
|
|
26332
26332
|
this._layerGroup.splice(index, 1);
|
|
26333
26333
|
}
|
|
26334
|
+
}
|
|
26335
|
+
|
|
26336
|
+
getGeometry(idCustom) {
|
|
26337
|
+
let dsList = this._viewer.dataSources.getByName(idCustom);
|
|
26338
|
+
|
|
26339
|
+
if (dsList.length <= 0) {
|
|
26340
|
+
return "";
|
|
26341
|
+
}
|
|
26342
|
+
|
|
26343
|
+
return dsList;
|
|
26334
26344
|
} //删除所有geojson绘图
|
|
26335
26345
|
|
|
26336
26346
|
|
|
@@ -26957,13 +26967,14 @@ class LayerManager {
|
|
|
26957
26967
|
|
|
26958
26968
|
case "geojson":
|
|
26959
26969
|
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
26960
|
-
|
|
26970
|
+
var geojsonStyle = layerData.geojsonStyle || this._geojsonStyle;
|
|
26971
|
+
promise = ds.load(url, geojsonStyle).then(ds => {
|
|
26961
26972
|
ds.entities.values.forEach(entity => {
|
|
26962
26973
|
if (entity.polygon) {
|
|
26963
26974
|
entity.polyline = {
|
|
26964
26975
|
positions: entity.polygon.hierarchy._value.positions,
|
|
26965
|
-
width:
|
|
26966
|
-
material:
|
|
26976
|
+
width: geojsonStyle.polygon.outlineWidth,
|
|
26977
|
+
material: geojsonStyle.polygon.outlineColor
|
|
26967
26978
|
};
|
|
26968
26979
|
}
|
|
26969
26980
|
}, this);
|