new ol.supermap.DataFlowService(url, options)
openlayers/services/DataFlowService.js, line 5
Name | Type | Description |
---|---|---|
url |
string |
与客户端交互的实时数据服务地址。 |
options |
Object |
加载实时数据可选参数。如: |
Example
new ol.supermap.DataFlowService(url)
.queryChart(param,function(result){
//doSomething
})
Extends
Methods
-
broadcast(obj)
openlayers/services/DataFlowService.js, line 54 -
加载广播数据
Name Type Description obj
JSON json格式的要素数据
-
initBroadcast(){ol.supermap.DataFlowService}
openlayers/services/DataFlowService.js, line 44 -
初始化广播
Returns:
Type Description ol.supermap.DataFlowService -
initSubscribe()
openlayers/services/DataFlowService.js, line 63 -
初始化订阅数据
-
setExcludeField(excludeField)
openlayers/services/DataFlowService.js, line 72 -
设置排除字段
Name Type Description excludeField
Object 排除字段
-
setGeometry(geometry)
openlayers/services/DataFlowService.js, line 83 -
设置添加的几何要素数据
Name Type Description geometry
Array.<Object> 设置增添的几何要素对象数组。
-
unBroadcast()
openlayers/services/DataFlowService.js, line 102 -
结束加载广播
-
unSubscribe()
openlayers/services/DataFlowService.js, line 94 -
结束订阅数据