new VideoLayer(options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/mapboxgl/iclient-mapboxgl.js"></script>
<script type="text/javascript" src="https://iclient.supermap.io/web/libs/opencv/3.4/opencv.js"></script>
<script>
new mapboxgl.supermap.VideoLayer(options);
</script>
// ES6 Import
import { VideoLayer } from "@supermapgis/iclient-mapboxgl";
// 将上面 opencv 源码拷贝到本地路径引用
options.opencv = "your opencv path";
new VideoLayer(options);
mapboxgl/overlay/VideoLayer.js, line 12
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
构造参数。
|
- Version:
- 11.2.0
Extends
Methods
-
moveLayer(beforeId)
mapboxgl/overlay/VideoLayer.js, line 268 -
移动图层。
Name Type Description beforeId
string 要移动到的图层前的 id。
-
onAdd(map)
mapboxgl/overlay/VideoLayer.js, line 78 -
添加该图层。
Name Type Description map
mapboxgl.Map 地图实例。
-
setVisibility(visibility)
mapboxgl/overlay/VideoLayer.js, line 277 -
设置图层可见性。
Name Type Description visibility
boolean 可选 是否显示图层。