其他分享
首页 > 其他分享> > cesium 图层构建的那些事 (二十三)

cesium 图层构建的那些事 (二十三)

作者:互联网

我们来构建视频图层

首先做定义

视频构建图层
```javascript

import { PVideoEntity } from './PVideoEntity';
import { Tuple } from "./Tuple";

export class VideoEntity extends Tuple {
type = "VideoEntity";
public video: any;
private _url: string = "";
constructor(option: PVideoEntity) {
super();
this.setVideoDOM(option.video);
this.createEntity(option.entity);
}
set stRotation(value) {
this.cesiumObj.polygon.stRotation = Cesium.Math.toRadians(value)
}
get stRotation() {
return Cesium.Math.toDegrees(this.cesiumObj.polygon.stRotation);
}
set url(value) {
this._url = value;
this.video.src = value;
this.cesiumObj.polygon.material = this.video;
}
get url() {
return this._url;
}

 更多参考 https://xiaozhuanlan.com/topic/0518672394

标签:map,二十三,Cesium,cesiumObj,cesium,video,图层,any,polygon
来源: https://www.cnblogs.com/haibalai/p/15827459.html