From 97c0d13a886721b49a28cf9bfb76f1d87bd203bf Mon Sep 17 00:00:00 2001 From: zh <972939975@qq.com> Date: Fri, 22 Aug 2025 17:36:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E4=B8=89=E7=BB=B4=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=BA=95=E5=9B=BE=E9=80=8F=E6=98=8E=E5=BA=A6=EF=BC=8C=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E7=94=B5=E5=AD=90=E5=9B=B4=E5=A2=99=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Global/MultiViewportMode/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Global/MultiViewportMode/index.js b/src/Global/MultiViewportMode/index.js index 53ec9c0..9e61089 100644 --- a/src/Global/MultiViewportMode/index.js +++ b/src/Global/MultiViewportMode/index.js @@ -49,7 +49,11 @@ async function init(sdk) { sdk2D.viewer.imageryLayers.removeAll() for (let i = 0; i < imageryLayers.length; i++) { let entity = sdk2D.viewer.imageryLayers.addImageryProvider(imageryLayers[i].imageryProvider, imageryLayers[i]._layerIndex) + if(imageryLayers[i]._id) { + entity._id = imageryLayers[i]._id + } entity.show = imageryLayers[i].show + entity.alpha = imageryLayers[i].alpha if (imageryLayers[i]._objectState) { if (imageryLayers[i]._showView == 3) { entity.show = false @@ -136,7 +140,7 @@ async function syncData2(sdk, id, entityId) { options.height = 0 } - if (!that.type || (that.type !== 'tileset' && that.type !== 'bim' && that.type !== 'glb' && that.type !== 'layer')) { + if (!that.type || (that.type !== 'tileset' && that.type !== 'bim' && that.type !== 'glb' && that.type !== 'layer' && that.type !== 'wallStereoscopic')) { if (that.showView == 3) { options.show = false } @@ -227,7 +231,7 @@ async function syncData2(sdk, id, entityId) { obj.options.heightReference = 1 } let options = syncObject.tools.deepCopyObj(obj.options) - if (!obj.type || (obj.type !== 'tileset' && obj.type !== 'bim' && obj.type !== 'glb' && obj.type !== 'layer')) { + if (!obj.type || (obj.type !== 'tileset' && obj.type !== 'bim' && obj.type !== 'glb' && obj.type !== 'layer' && obj.type !== 'wallStereoscopic')) { if (obj.showView == 3) { options.show = false }