diff --git a/src/view/park/Label.js b/src/view/park/Label.js index baf8f16..5e4033e 100644 --- a/src/view/park/Label.js +++ b/src/view/park/Label.js @@ -22,7 +22,6 @@ export default class Label extends THREE.Object3D{ this.#imgMesh=new THREE.Mesh(geometry,material) this.#imgMesh.renderOrder=6 this.#imgMesh.position.set(115*this.#pos[0],this.#pos[1],115*(this.#pos[2] -0.01)) - this.#imgMesh.rotation.x=-Math.PI/6 this.add(this.#imgMesh) var nameGeometry=new THREE.PlaneGeometry(this.#nameObj.box.width/16,this.#nameObj.box.height/16) @@ -35,7 +34,6 @@ export default class Label extends THREE.Object3D{ this.#nameMesh=new THREE.Mesh(nameGeometry, nameMaterial) this.#nameMesh.renderOrder=6 this.#nameMesh.position.set(115*this.#pos[0],this.#pos[1]-0.5,115*(this.#pos[2] +0.01)) - this.#nameMesh.rotation.x=-Math.PI/8 this.add(this.#nameMesh) } refesh(){ diff --git a/src/view/park/center.vue b/src/view/park/center.vue index eab062d..4637827 100644 --- a/src/view/park/center.vue +++ b/src/view/park/center.vue @@ -321,8 +321,7 @@ import Label from './Label' //数据展示弹框 popover = new CSS2DObject(model.value) popover.position.set(-10,7,0) - popover.visible=false - console.log('---123-----',popover) + popover.element.style.opacity=0 scene.add(popover) var controls = new MapControls(camera, map.value)