GeoVideoLayer
方法
addVideoCameras
根据相机参数添加视频对应的虚拟相机。
参数
| 名称 | 类型 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| camerasData | Object/Array[Object] | 必填需要添加的相机参数对象或对象组。
  | 
getViewPoint
获取当前窗口的视点,返回值可用于setViewPoint接口。
setVideoCameraActiveByIndex
根据索引设置相机的开启。
参数
| 名称 | 类型 | 描述 | 
|---|---|---|
| active | Bollean | 必填设置相机画面的开启和隐藏, true 表示开启。 | 
| index | Number | 必填相机索引序列。 | 
案例
        let models_geo = ["ATModelNew.glb"].map(item => ({
            type: 'glb',
            url: "../example_data/aoti_models/" + item
        }));
        let options = {
                id: 'model_id1',
                type: 'geoVideo',
                models: models_geo,
                exposure: 1.2,
                center: [120.744471002000068, 31.306768408000039, 3.617],
                project: "3857",
                cameraData: cameraData,
                callback: function (geoVideo) {
                    GeoVideo = geoVideo;
                }
            }
        map.addLayer(options);
        map.on('click', function (e) {
            GeoVideo.setVideoCameraActiveByIndex(0, true);
            GeoVideo.setViewPoint(viewData)
        })
参考 示例。
setViewPoint
根据视点信息设置地图视域。
参数
| 名称 | 类型 | 描述 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| viewData | Object | 必填视点信息对象。
  |