Class: VideoFeature

VideoFeature

视频要素类,用于表示视频流及其空间范围等相关属性的要素。

new VideoFeature(options)

Usage
import { VideoFeature } from '@supermapgis/iclient-leaflet';

new VideoFeature(options);
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.VideoFeature({paramsNames});
</script>
common/iServer/VideoFeature.js, line 6
Name Type Description
options Object

参数。

Name Type Description
geometry L.Bounds | L.LatLngBounds | L.Rectangle | L.Polygon | L.GeoJSON | GeoJSONObject

视频参数对应的视频视角空间范围,只支持矩形。

id string | number 可选

要素ID。

name string 可选

视频名称。

address string 可选

视频流地址。目前支持m3u8格式视频流。

attributes string 可选

要素属性信息。

Version:
  • 11.2.0

Members

addressstring

视频流地址

attributesObject

要素属性信息

视频参数对应的视频视角空间范围,只支持矩形

idstring number

要素 ID。

namestring

视频名称

Methods

destroy()

common/iServer/VideoFeature.js, line 59

销毁此对象。

toGeoJSONFeature(){Object}

common/iServer/VideoFeature.js, line 74

转换为GeoJSON Feature Object

Returns:
Type Description
Object

toServerFeature(){Object}

common/iServer/VideoFeature.js, line 89

转换为iServer Feature Object

Returns:
Type Description
Object