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 55 -
广播失败。
-
broadcastSocketConnected
leaflet/services/DataFlowService.js, line 47 -
broadcast Socket 连接成功。
-
broadcastSocketError
leaflet/services/DataFlowService.js, line 51 -
broadcast Socket 连接失败。
-
broadcastSucceeded
leaflet/services/DataFlowService.js, line 59 -
广播成功。
-
inherited destroy
leaflet/services/ServiceBase.js, line 54 -
资源释放成功后触发。
Properties:
Name Type Description this
L.supermap.ServiceBase this 对象。
-
inherited initialized
leaflet/services/ServiceBase.js, line 41 -
构造函数构造成功后触发。
Properties:
Name Type Description this
L.supermap.ServiceBase this 对象。
-
messageSucceeded
leaflet/services/DataFlowService.js, line 71 -
获取信息成功。
-
setFilterParamSucceeded
leaflet/services/DataFlowService.js, line 75 -
设置过滤参数成功。
-
subscribeSocketConnected
leaflet/services/DataFlowService.js, line 63 -
订阅数据连接成功。
-
subscribeSocketError
leaflet/services/DataFlowService.js, line 67 -
订阅数据连接失败。
Methods
-
broadcast(obj)
leaflet/services/DataFlowService.js, line 101 -
加载广播数据。
Name Type Description obj
JSONObject JSON 格式的要素数据。
-
inherited destroy()
leaflet/services/ServiceBase.js, line 49 -
释放资源,将引用的资源属性置空。
-
initBroadcast()
leaflet/services/DataFlowService.js, line 92 -
初始化广播。
-
initSubscribe()
leaflet/services/DataFlowService.js, line 110 -
初始化订阅数据。
-
setExcludeField(excludeField)
leaflet/services/DataFlowService.js, line 120 -
设置排除字段。
Name Type Description excludeField
Object 排除字段。
-
setGeometry(geometry)
leaflet/services/DataFlowService.js, line 131 -
设置添加的 GeoJSON 几何要素数据。
Name Type Description geometry
GeoJSONObject 指定几何范围,该范围内的要素才能被订阅。
-
unBroadcast()
leaflet/services/DataFlowService.js, line 150 -
结束加载广播。
-
unSubscribe()
leaflet/services/DataFlowService.js, line 142 -
结束订阅数据。