二三维同步底图透明度,取消电子围墙二维显示
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user