信息栏样式
This commit is contained in:
@ -591,7 +591,12 @@ class BillboardObject extends Base {
|
||||
return this.options.position.lng
|
||||
}
|
||||
set lng(v) {
|
||||
this.options.position.lng = Number(Number(v).toFixed(8))
|
||||
if(v===null || v===undefined || v==='') {
|
||||
this.options.position.lng = v
|
||||
}
|
||||
else {
|
||||
this.options.position.lng = Number(Number(v).toFixed(8))
|
||||
}
|
||||
// this.scan && (this.scan.lng = v)
|
||||
// this.diffuse && (this.diffuse.lng = v)
|
||||
this.renewPoint()
|
||||
@ -607,7 +612,12 @@ class BillboardObject extends Base {
|
||||
return this.options.position.lat
|
||||
}
|
||||
set lat(v) {
|
||||
this.options.position.lat = Number(Number(v).toFixed(8))
|
||||
if(v===null || v===undefined || v==='') {
|
||||
this.options.position.lat = v
|
||||
}
|
||||
else {
|
||||
this.options.position.lat = Number(Number(v).toFixed(8))
|
||||
}
|
||||
// this.scan && (this.scan.lat = v)
|
||||
// this.diffuse && (this.diffuse.lat = v)
|
||||
this.renewPoint()
|
||||
@ -623,7 +633,12 @@ class BillboardObject extends Base {
|
||||
return this.options.position.alt
|
||||
}
|
||||
set alt(v) {
|
||||
this.options.position.alt = Number(Number(v).toFixed(2))
|
||||
if(v===null || v===undefined || v==='') {
|
||||
this.options.position.alt = v
|
||||
}
|
||||
else {
|
||||
this.options.position.alt = Number(Number(v).toFixed(2))
|
||||
}
|
||||
// this.scan && (this.scan.alt = v)
|
||||
// this.diffuse && (this.diffuse.alt = v)
|
||||
this.renewPoint()
|
||||
@ -2135,9 +2150,9 @@ class BillboardObject extends Base {
|
||||
this.labelShow = this.originalOptions.label.show
|
||||
this.labelFontSize = this.originalOptions.label.fontSize
|
||||
this.labelColor = this.originalOptions.label.color
|
||||
this.lng = this.originalOptions.position.lng
|
||||
this.lat = this.originalOptions.position.lat
|
||||
this.alt = this.originalOptions.position.alt
|
||||
this.lng = this.originalOptions.position.lng || 0
|
||||
this.lat = this.originalOptions.position.lat || 0
|
||||
this.alt = this.originalOptions.position.alt || 0
|
||||
this.attributeLink = this.options.attribute.link.content
|
||||
this.attributeVr = this.options.attribute.vr.content
|
||||
this.attributeCamera = this.options.attribute.camera.content
|
||||
|
||||
Reference in New Issue
Block a user