Class: DataFlowService

ol.supermap.DataFlowService

The DataFlowService class.

new ol.supermap.DataFlowService(url, options)

DataFlowService.js, line 5
Name Type Description
url string

The url of service

options Object

The optional parameters.

Name Type Default Description
proxy string optional

Service agent address.

serverType SuperMap.ServerType SuperMap.ServerType.ISERVER optional

Type of server iServer|iPortal|online.

withCredentials boolean false optional

Request whether to carry a cookie.

geometry Array.<Object> optional

Set the array of geometry feature objects that need to be added.

excludeField Object optional

Exclude fields.

crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

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.