new ol.supermap.DataFlowService(url, options)
DataFlowService.js, line 5
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service |
||||||||||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
new ol.supermap.DataFlowService(url)
.queryChart(param,function(result){
//doSomething
})
Extends
Methods
-
broadcast(obj)
DataFlowService.js, line 57 -
Load broadcast data.
Name Type Description obj
Object Data in GeoJSON format.
-
initBroadcast(){ol.supermap.DataFlowService}
DataFlowService.js, line 47 -
Initialize the broadcast.
Returns:
Type Description ol.supermap.DataFlowService -
initSubscribe()
DataFlowService.js, line 66 -
Initialize the subscription.
-
setExcludeField(excludeField)
DataFlowService.js, line 75 -
Set field to be excluded.
Name Type Description excludeField
Object Field to be excluded.
-
setGeometry(geometry)
DataFlowService.js, line 86 -
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 105 -
End the broadcast.
-
unSubscribe()
DataFlowService.js, line 97 -
End the subscription.