L.supermap.dataFlowService(url, options)
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. |
||||||||||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
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
DataFlowService.js, line 52 -
The broadcast failed.
-
broadcastSocketConnected
DataFlowService.js, line 44 -
Broadcast Socket connection succeeded.
-
broadcastSocketError
DataFlowService.js, line 48 -
Broadcast Socket connection failed.
-
broadcastSucceeded
DataFlowService.js, line 56 -
The broadcast was successful.
-
inherited destroy
ServiceBase.js, line 49 -
Triggered after the resource is successfully released.
Properties:
Name Type Description this
L.supermap.ServiceBase This object.
-
inherited initialized
ServiceBase.js, line 36 -
Triggered after the constructor is constructed successfully.
Properties:
Name Type Description this
L.supermap.ServiceBase This object.
-
messageSucceeded
DataFlowService.js, line 68 -
The information was obtained successfully.
-
setFilterParamSucceeded
DataFlowService.js, line 72 -
Set the filter parameters successfully.
-
subscribeSocketConnected
DataFlowService.js, line 60 -
The subscription data connection was successful.
-
subscribeSocketError
DataFlowService.js, line 64 -
Subscription data connection failed.
Methods
-
broadcast(obj)
DataFlowService.js, line 98 -
Load broadcast data.
Name Type Description obj
JSONObject Data in JSON format.
-
inherited destroy()
ServiceBase.js, line 44 -
Disposes the resource. The property that references resource is set to null.
-
initBroadcast()
DataFlowService.js, line 89 -
Initialize the broadcast.
-
initSubscribe()
DataFlowService.js, line 107 -
Initialize the subscription.
-
setExcludeField(excludeField)
DataFlowService.js, line 117 -
Set field to be excluded.
Name Type Description excludeField
Object Field to be excluded.
-
setGeometry(geometry)
DataFlowService.js, line 128 -
Set GeoJSON geometry data to be added.
Name Type Description geometry
Array.<Object> Array of GeoJSON geometry data to be added.
-
unBroadcast()
DataFlowService.js, line 147 -
End the broadcast.
-
unSubscribe()
DataFlowService.js, line 139 -
End the subscription.