Преглед на файлове

加载地形开启深度检测

maxiaoxiao преди 10 месеца
родител
ревизия
db0a4e1975
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      src/components/Combinations/LayerManage/LayerManage.vue
  2. 1 0
      src/components/sceneAtttribute/basicOptions/basicOptions.vue

+ 1 - 0
src/components/Combinations/LayerManage/LayerManage.vue

@@ -187,6 +187,7 @@ export default {
         isSct: true,
         requestVertexNormals: true,
       });
+      this.bus.$emit("setDepthAgainst", true);
     },
 
     add3DTiles(obj) {

+ 1 - 0
src/components/sceneAtttribute/basicOptions/basicOptions.vue

@@ -208,6 +208,7 @@ export default {
       this.init();
     }
     this.depthAgainst = false;
+    this.bus.$on("setDepthAgainst", (val) => (this.depthAgainst = val));
   },
   methods: {
     //子组件部分