二三维增加单独展示在二维或者三维的功能,贴地图片增加设置锚点功能

This commit is contained in:
zh
2025-08-09 18:20:02 +08:00
parent 656a21a6dd
commit e38dd4d029
17 changed files with 510 additions and 120 deletions

View File

@ -94,6 +94,10 @@ function off(sdk) {
activeViewer = null
syncObject = {}
}
sdk.entityMap.forEach((item, key) => {
item.showView = undefined
})
}
async function syncData2(sdk, id, entityId) {
@ -119,7 +123,11 @@ async function syncData2(sdk, id, entityId) {
options.heightMode = 0
options.height = 0
}
if (!that.type || (that.type !== 'tileset' && that.type !== 'bim' && that.type !== 'glb' && that.type !== 'layer')) {
if(that.showView==3) {
options.show=false
}
let newObject = await new that.constructor(sdk2D, options)
newObject.onClick = that.onClick
newObject.onRightClick = that.onRightClick