在使用卷帘功能对影像底图进行卷帘操作师,出现四个黑块,黑块在鼠标缩放的过程中会频繁消失和出现,代码如下:
const imageLayers = viewer?.imageryLayers?._layers || [] // 所有影像
for (let i = 0; i < imageLayers.length; i++) {
imageLayers[i].swipeEnabled = true
imageLayers[i].splitDirection = new SuperMap3D.Cartesian2(SuperMap3D.ImagerySplitDirection.NONE, SuperMap3D.ImagerySplitDirection.LEFT)
viewer.scene.imagerySplitPosition.y = 0.5
}