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.

Fires

Extends

Events

broadcastFailed

DataFlowService.js, line 50

The broadcast failed.

broadcastSocketConnected

DataFlowService.js, line 42

Broadcast Socket connection succeeded.

broadcastSocketError

DataFlowService.js, line 46

Broadcast Socket connection failed.

broadcastSucceeded

DataFlowService.js, line 54

The broadcast was successful.

inherited destroy

ServiceBase.js, line 47

Triggered after the resource is successfully released.

Properties:
Name Type Description
this L.supermap.ServiceBase

This object.

inherited initialized

ServiceBase.js, line 34

Triggered after the constructor is constructed successfully.

Properties:
Name Type Description
this L.supermap.ServiceBase

This object.

messageSucceeded

DataFlowService.js, line 66

The information was obtained successfully.

setFilterParamSucceeded

DataFlowService.js, line 70

Set the filter parameters successfully.

subscribeSocketConnected

DataFlowService.js, line 58

The subscription data connection was successful.

subscribeSocketError

DataFlowService.js, line 62

Subscription data connection failed.

Methods

broadcast(obj)

DataFlowService.js, line 96

Load broadcast data.

Name Type Description
obj JSONObject

Data in JSON format.

inherited destroy()

ServiceBase.js, line 42

Disposes the resource. The property that references resource is set to null.

initBroadcast()

DataFlowService.js, line 87

Initialize the broadcast.

initSubscribe()

DataFlowService.js, line 105

Initialize the subscription.

setExcludeField(excludeField)

DataFlowService.js, line 115

Set field to be excluded.

Name Type Description
excludeField Object

Field to be excluded.

setGeometry(geometry)

DataFlowService.js, line 126

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 145

End the broadcast.

unSubscribe()

DataFlowService.js, line 137

End the subscription.