卷帘模式下隐藏点属性框

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