1.0.1 • Published 2 years ago
ol-video v1.0.1
ol-video
ol-video 是基于HTML5 Video Element进行渲染至ol地图上的一个插件,因此所有对DOM的操作都会实时的反应到该视频图层中。 为此如果你需要对该视频图层进行操作,可以通过操作VideoLayer的__VDOM属性得到需要的结果。
notice!
this package just work in EPSG:4326 and EPSG:3857 now. I didn't do the imagery transform by rotation and scale in other projection.
if you check out my code , you can find that there is not a source to describe a video frame imagery..
so if you want to contribute this package:
gitee: https://gitee.com/li_zuo_hong/ol-video
注意!
这个包现在只能再EPSG:4326 与 EPSG:3857 中正常使用。 因为我没有在其他的投影坐标系中做图像的变换。
如果你看过了我的代码,你会发现该图层的结构中间只有一个渲染器与图层类,没有用于描述图像帧图像的类。
所以如果你想为这个包贡献的话:
码云: https://gitee.com/li_zuo_hong/ol-video
使用示例
import VideoLayer from 'ol-video';
// ...map initMap
// 文件路径 以及 extent in EPSG:4326
let videoLayer = new VideoLayer({
src: '/cloud.webm',
extent: [68.17665, 7.96553, 97.40256, 35.49401]
})
map.addLayer(videoLayer)
待优化结果
- 鼠标事件输入时,视频图层会停止渲染
待完成的测试用例
- proj4转换的任意坐标系
1.0.1
2 years ago
1.0.0-beta0.0.4
2 years ago
1.0.0-beta0.0.3
2 years ago
1.0.0-beta0.0.2
2 years ago
1.0.0-beta0.0.1
2 years ago
1.0.0
2 years ago