卷帘模式下隐藏点属性框

This commit is contained in:
zh
2025-08-26 18:08:21 +08:00
parent 92ef4a68fd
commit 349c91f8df
3 changed files with 16 additions and 3 deletions

View File

@ -102,11 +102,20 @@ function off() {
let leftCanvas = leftBox.getElementsByTagName('canvas')[0]
leftBox.style.width = '100%'
leftCanvas.style.width = '100%'
let billboardAttributeBoxs = sdkP.viewer._element.getElementsByClassName('billboard-attribute-box')
for (let i = 0; i < billboardAttributeBoxs.length; i++) {
billboardAttributeBoxs[i].style.display = 'block'
}
sdkP = null
}
async function init(sdk) {
let billboardAttributeBoxs = sdk.viewer._element.getElementsByClassName('billboard-attribute-box')
for (let i = 0; i < billboardAttributeBoxs.length; i++) {
billboardAttributeBoxs[i].style.display = 'none'
}
sdk.entityMap.forEach((item, key) => {
if (item.type && item.type == 'TrajectoryMotion' && item.viewFollow) {
item.viewFollow = false
@ -911,7 +920,7 @@ async function setSplitDirection(v, id, isoff = false, entityId) {
}
if (thatP.type === 'GroundSvg' && thatP.text) {
thatP.text.show = thatP.textShow
target.textShow = false
target && (target.textShow = false)
}
if (thatP.label && thatP.labelShow) {
thatP.label.entity.show = true

View File

@ -29,7 +29,8 @@ import MouseTip from '../../../MouseTip'
import {
setSplitDirection,
syncSplitData,
setActiveId
setActiveId,
getState
} from '../../../Global/SplitScreen'
import {
setActiveViewer,
@ -2943,6 +2944,9 @@ class BillboardObject extends Base {
attributeElm.style.left = '0px'
attributeElm.style.width = 0
attributeElm.style.height = 0
if(getState()) {
attributeElm.style.display = 'none'
}
// attributeElm.innerHTML = this.options.richTextContent
this.sdk.viewer._element.appendChild(attributeElm)
let linkHtml = ''

View File

@ -137,7 +137,7 @@ class Base extends Tools {
this.originalOptions.show = v
}
}
this.entity._showView = this.showView
this.entity && (this.entity._showView = this.showView)
if (this.type == 'layer') {
if (this.entity) {
this.entity._objectState = this.options.show