二三维增加单独展示在二维或者三维的功能,贴地图片增加设置锚点功能
This commit is contained in:
@ -159,10 +159,18 @@ class GroundSvg extends Base {
|
||||
|
||||
set show(v) {
|
||||
if (typeof v === "boolean") {
|
||||
super.show = v
|
||||
if (this.options.text && this.options.text.show && this.text) {
|
||||
this.text.show = v
|
||||
if (this.options.text && this.options.text.show) {
|
||||
if(this.text) {
|
||||
if((!this.showView || this.showView == 3)) {
|
||||
this.text.show = v
|
||||
}
|
||||
else {
|
||||
this.text.show = false
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
super.show = v
|
||||
} else {
|
||||
console.error("参数必须为boolean")
|
||||
}
|
||||
@ -308,7 +316,12 @@ class GroundSvg extends Base {
|
||||
set textShow(v) {
|
||||
this.options.text.show = v
|
||||
if (this.show) {
|
||||
this.text && (this.text.show = v)
|
||||
if((!this.showView || this.showView == 3)) {
|
||||
this.text && (this.text.show = v)
|
||||
}
|
||||
else {
|
||||
this.text && (this.text.show = false)
|
||||
}
|
||||
if (this.options.text.position) {
|
||||
setTimeout(() => {
|
||||
if (this.options.text.position.alt) {
|
||||
|
Reference in New Issue
Block a user