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