跳到主要内容
版本:9.1.1

BoxVideoLayer

方法

setVisiable

设置平面的可见性。

参数

名称类型描述
nameEnum必填[指定平面,可选值为 "front"、"back"、"left"、"right"、"bottom"。
visibleBoolean必填true为可见,false为不可见
案例
    let options = {
id: 'boxVideoLayer',
type: 'boxVideo',
center: [120.68152338516848, 31.321349947429432, 0.1],
cameraData = {...} // 视频融合参数
}

// 添加视频融合
map.addLayer(options);

// 设置指定面可见
layer.setVisiable('front', false);