浏览代码

倾斜摄影模型高度

maxiaoxiao 10 月之前
父节点
当前提交
5e8b30f7d2

+ 8 - 2
src/components/Combinations/LayerManage/LayerManage.vue

@@ -231,9 +231,15 @@ export default {
           }
           // store.state.S3MList.push(layers[0]);
           layers[0].forEach((item) => {
-            item.RGBTOBGR = true
+            item.RGBTOBGR = true;
+            if (obj.title == "倾斜摄影") {
+              let style = new Cesium.Style3D();
+              style.bottomAltitude = window.modelBottomAltitude; //底部高度
+              item.style3D = style;
+            }
             if (
-              eneityName.indexOf("雨水") > -1 || eneityName.indexOf("管线") > -1
+              eneityName.indexOf("雨水") > -1 ||
+              eneityName.indexOf("管线") > -1
             ) {
               item._baseUri.query = obj.id;
             }

+ 3 - 0
src/views/ConstructionApplication3D/projectManagement/projectManagement.vue

@@ -993,6 +993,9 @@ export default {
         layers.forEach((layer) => {
           layer.shadowType = 2;
           that.layerList.push(layer.name);
+          let style = new Cesium.Style3D();
+          style.bottomAltitude = window.modelBottomAltitude; //底部高度
+          layer.style3D = style;
         });
 
         //获取模型信息

+ 1 - 1
static/Config/config.js

@@ -3,7 +3,7 @@ window.axiosURI = "http://192.168.100.30:8080";
 // window.axiosURI = "http://3wz57758kj72.vicp.fun";
 
 //倾斜模型高度配置
-window.modelBottomAltitude = 10;
+window.modelBottomAltitude = -10;
 // 服务器ip
 window.hostconfig = "127.0.0.1";
 //地图初始化中心点