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