L.supermap.dataFlowService(url, options)
leaflet/services/DataFlowService.js, line 5
Name | Type | Description |
---|---|---|
url |
string |
实时数据服务地址 |
options |
Object |
加载实时数据可选参数。如: |
Extends
Methods
-
broadcast(obj)
leaflet/services/DataFlowService.js, line 55 -
加载广播数据
Name Type Description obj
JSONObject json格式的要素数据
-
inherited destroy()
leaflet/services/ServiceBase.js, line 30 -
释放资源,将引用的资源属性置空。
-
initBroadcast()
leaflet/services/DataFlowService.js, line 46 -
初始化广播
-
initSubscribe()
leaflet/services/DataFlowService.js, line 64 -
初始化订阅数据
-
setExcludeField(excludeField)
leaflet/services/DataFlowService.js, line 74 -
设置排除字段
Name Type Description excludeField
Object 排除字段
-
setGeometry(geometry)
leaflet/services/DataFlowService.js, line 85 -
设置添加的GeoJSON几何要素数据
Name Type Description geometry
Array.<Object> 设置增添的GeoJSON几何要素对象数组。
-
unBroadcast()
leaflet/services/DataFlowService.js, line 104 -
结束加载广播
-
unSubscribe()
leaflet/services/DataFlowService.js, line 96 -
结束订阅数据