Class: dataFlowService

L.supermap.dataFlowService

The DataFlowService class.

L.supermap.dataFlowService(url, options)

D:/iClient9_English0919/src/leaflet/services/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

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 52

The broadcast failed.

broadcastSocketConnected

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 44

Broadcast Socket connection succeeded.

broadcastSocketError

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 48

Broadcast Socket connection failed.

broadcastSucceeded

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 56

The broadcast was successful.

inherited destroy

D:/iClient9_English0919/src/leaflet/services/ServiceBase.js, line 49

Triggered after the resource is successfully released.

Properties:
Name Type Description
this L.supermap.ServiceBase

This object.

inherited initialized

D:/iClient9_English0919/src/leaflet/services/ServiceBase.js, line 36

Triggered after the constructor is constructed successfully.

Properties:
Name Type Description
this L.supermap.ServiceBase

This object.

messageSucceeded

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 68

The information was obtained successfully.

setFilterParamSucceeded

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 72

Set the filter parameters successfully.

subscribeSocketConnected

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 60

The subscription data connection was successful.

subscribeSocketError

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 64

Subscription data connection failed.

Methods

broadcast(obj)

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 98

Load broadcast data.

Name Type Description
obj JSONObject

Data in JSON format.

inherited destroy()

D:/iClient9_English0919/src/leaflet/services/ServiceBase.js, line 44

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

initBroadcast()

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 89

Initialize the broadcast.

initSubscribe()

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 107

Initialize the subscription.

setExcludeField(excludeField)

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 117

Set field to be excluded.

Name Type Description
excludeField Object

Field to be excluded.

setGeometry(geometry)

D:/iClient9_English0919/src/leaflet/services/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()

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 147

End the broadcast.

unSubscribe()

D:/iClient9_English0919/src/leaflet/services/DataFlowService.js, line 139

End the subscription.