Class: dataFlowService

L.supermap.dataFlowService

The DataFlowService class.

L.supermap.dataFlowService(url, options)

DataFlowService.js, line 6
Name Type Description
url string

The url of service.

options Object

The optional parameters.

Name Type Default Description
serverType SuperMap.ServerType SuperMap.ServerType.ISERVER optional

Type of server iServer|iPortal|online。

style function optional

The style of features to be loaded.

onEachFeature function optional

Set popup or other options for each feature.

geometry Array.<Object> optional

An array of geometry data to be added.

excludeField Object optional

The field to be excluded.

crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

Fires

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.