L.supermap.dataFlowService(url, options)
leaflet/services/DataFlowService.js, line 9
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
数据流服务地址。 |
|||||||||||||||||||||
options |
Object |
参数。
|
Fires
- L.supermap.dataFlowService#event:broadcastSocketConnected
- L.supermap.dataFlowService#event:broadcastSocketError
- L.supermap.dataFlowService#event:broadcastFailed
- L.supermap.dataFlowService#event:broadcastSucceeded
- L.supermap.dataFlowService#event:subscribeSocketError
- L.supermap.dataFlowService#event:messageSucceeded
- L.supermap.dataFlowService#event:setFilterParamSucceeded
Extends
Events
-
broadcastFailed
leaflet/services/DataFlowService.js, line 54 -
广播失败。
-
broadcastSocketConnected
leaflet/services/DataFlowService.js, line 46 -
broadcast Socket 连接成功。
-
broadcastSocketError
leaflet/services/DataFlowService.js, line 50 -
broadcast Socket 连接失败。
-
broadcastSucceeded
leaflet/services/DataFlowService.js, line 58 -
广播成功。
-
inherited destroy
leaflet/services/ServiceBase.js, line 51 -
资源释放成功后触发。
Properties:
Name Type Description this
L.supermap.ServiceBase this 对象。
-
inherited initialized
leaflet/services/ServiceBase.js, line 38 -
构造函数构造成功后触发。
Properties:
Name Type Description this
L.supermap.ServiceBase this 对象。
-
messageSucceeded
leaflet/services/DataFlowService.js, line 70 -
获取信息成功。
-
setFilterParamSucceeded
leaflet/services/DataFlowService.js, line 74 -
设置过滤参数成功。
-
subscribeSocketConnected
leaflet/services/DataFlowService.js, line 62 -
订阅数据连接成功。
-
subscribeSocketError
leaflet/services/DataFlowService.js, line 66 -
订阅数据连接失败。
Methods
-
broadcast(obj)
leaflet/services/DataFlowService.js, line 100 -
加载广播数据。
Name Type Description obj
JSONObject JSON 格式的要素数据。
-
inherited destroy()
leaflet/services/ServiceBase.js, line 46 -
释放资源,将引用的资源属性置空。
-
initBroadcast()
leaflet/services/DataFlowService.js, line 91 -
初始化广播。
-
initSubscribe()
leaflet/services/DataFlowService.js, line 109 -
初始化订阅数据。
-
setExcludeField(excludeField)
leaflet/services/DataFlowService.js, line 119 -
设置排除字段。
Name Type Description excludeField
Object 排除字段。
-
setGeometry(geometry)
leaflet/services/DataFlowService.js, line 130 -
设置添加的 GeoJSON 几何要素数据。
Name Type Description geometry
GeoJSONObject 指定几何范围,该范围内的要素才能被订阅。
-
unBroadcast()
leaflet/services/DataFlowService.js, line 149 -
结束加载广播。
-
unSubscribe()
leaflet/services/DataFlowService.js, line 141 -
结束订阅数据。