|
@@ -81,7 +81,7 @@ class Panorama extends THREE.EventDispatcher{
|
|
|
if(e.reason == 'screenshot' || e.visible){
|
|
|
this.label && (this.label.visible = e.visible)//截图时隐藏下
|
|
|
}
|
|
|
- this.label2 && Potree.Utils.updateVisible(this.label2, 'panoVisi', e.visible)
|
|
|
+ //this.label2 && Potree.Utils.updateVisible(this.label2, 'panoVisi', e.visible)
|
|
|
})
|
|
|
/*
|
|
|
漫游点可见性:旧
|
|
@@ -298,7 +298,7 @@ class Panorama extends THREE.EventDispatcher{
|
|
|
})
|
|
|
|
|
|
this.marker = marker
|
|
|
-
|
|
|
+ marker.pano = this;
|
|
|
this.images360.node.add(marker)
|
|
|
Potree.settings.isTest && this.addLabel()
|
|
|
//this.addLabel2()
|
|
@@ -341,15 +341,15 @@ class Panorama extends THREE.EventDispatcher{
|
|
|
this.label.update()
|
|
|
}
|
|
|
|
|
|
- if(this.label2){
|
|
|
+ /* if(this.label2){
|
|
|
if(Potree.settings.editType == 'pano'){
|
|
|
this.label2.position.copy(this.position)
|
|
|
}else{
|
|
|
this.label2.position.copy(this.floorPosition)
|
|
|
}
|
|
|
- this.label2.position.copy(this.marker.position)
|
|
|
+ this.label2.position.copy(this.marker.position)
|
|
|
this.label2.update()
|
|
|
- }
|
|
|
+ } */
|
|
|
|
|
|
}
|
|
|
|
|
@@ -553,12 +553,14 @@ class Panorama extends THREE.EventDispatcher{
|
|
|
this.label2 = new TextSprite(Object.assign({},
|
|
|
labelProp2, {text: /* this.originID */ parseInt(this.id)+1 }) //{text: `id:${this.id}, dataset:${this.pointcloud.name}, 4dkkId:${this.originID}`}
|
|
|
);
|
|
|
- this.images360.node.add(this.label2);
|
|
|
- this.floorPosition && this.label2.position.copy(this.floorPosition)
|
|
|
- let s = 0.4
|
|
|
+ //this.images360.node.add(this.label2);
|
|
|
+ this.marker.add(this.label2)
|
|
|
+
|
|
|
+ //this.floorPosition && this.label2.position.copy(this.floorPosition)
|
|
|
+ let s = 0.2
|
|
|
this.label2.scale.set(s,s,s)
|
|
|
Potree.Utils.updateVisible(this.label2, 'notDisplay', false)
|
|
|
- Potree.Utils.updateVisible(this.label2, 'panoVisi', this.visible)
|
|
|
+ //Potree.Utils.updateVisible(this.label2, 'panoVisi', this.visible)
|
|
|
}
|
|
|
|
|
|
removeTextLabel(){
|