|
@@ -97132,12 +97132,17 @@ ENDSEC
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ dispose(){
|
|
|
|
|
+ this.dispatchEvent('dispose');
|
|
|
|
|
+ this.marker.parent.remove(this.marker);
|
|
|
|
|
+ this.label && this.label.parent.remove(this.label);
|
|
|
|
|
+ this.label2 && this.label2.parent.remove(this.label2);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addLabel(){
|
|
addLabel(){
|
|
|
- this.removeTextLabel();
|
|
|
|
|
|
|
+ this.label && this.label.parent.remove(this.label);
|
|
|
this.label = new TextSprite$2(Object.assign({},
|
|
this.label = new TextSprite$2(Object.assign({},
|
|
|
labelProp, {text: this.id + "("+this.originID+")"}) //{text: `id:${this.id}, dataset:${this.pointcloud.name}, 4dkkId:${this.originID}`}
|
|
labelProp, {text: this.id + "("+this.originID+")"}) //{text: `id:${this.id}, dataset:${this.pointcloud.name}, 4dkkId:${this.originID}`}
|
|
|
);
|
|
);
|
|
@@ -97158,11 +97163,6 @@ ENDSEC
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- removeTextLabel(){
|
|
|
|
|
- if(this.label){
|
|
|
|
|
- this.label.parent.remove(this.label);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -99056,7 +99056,7 @@ ENDSEC
|
|
|
if(i>-1){
|
|
if(i>-1){
|
|
|
this.panos.splice(i,1);
|
|
this.panos.splice(i,1);
|
|
|
this.currentPano == pano && (this.currentPano = null);
|
|
this.currentPano == pano && (this.currentPano = null);
|
|
|
- pano.dispatchEvent('dispose');
|
|
|
|
|
|
|
+ pano.dispose();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|