Class: dataFlowLayer

L.supermap.dataFlowLayer

The dataFlowLayer class.

L.supermap.dataFlowLayer(url, options)

DataFlowLayer.js, line 17
Name Type Description
url string

The url of data flow layer service.

options Object

The optional parameters of the layer.

Name Type Default Description
render Object 'normal' optional

Render method. The optional values are 'normal', 'mapv'.
'normal' means to draw real-time data in the form of {( L.LatLng|L.Polyline|L.Polygon|L.Marker )}.'mapv' means to draw real-time data in the form of L.supermap.mapVLayer.

geometry GeoJSONObject optional

GeoJSON geometric object.

prjCoordSys Object optional

The projection coordinate system.

excludeField string optional

The field to be excluded.

idField string 'id' optional

The id field.

pointToLayer function optional

Define how point features are drawn on the map. function(geoJsonPoint, latlng) { return L.marker(latlng); }

style function optional

Define point, line, and polygon feature styles. The parameter is L.Path-option. function (feature) { return { fillColor: "red", fillOpacity: 1, radius: 6, weight: 0 }; }

deg function | number optional

Define the rotation angle of the icon. options.render is valid for mapv.
function (feature,latlng) { return feature.properties['rotate']; }

Fires

Extends

Events

dataupdated

DataFlowLayer.js, line 136

Triggered after the layer data update is successful.

Properties:
Name Type Description
layer Object

Update the layer of successful data.

data Object

Updated features.

setfilterparamsucceeded

DataFlowLayer.js, line 89

Triggered after the filter parameter setting is successful.

Properties:
Name Type Description
e Object

Event object.

subscribesucceeded

DataFlowLayer.js, line 81

Triggered after successful initialization.

Properties:
Name Type Description
e Object

Event object.

Methods

setExcludeField(excludeField)

DataFlowLayer.js, line 112

Set the unique field to be excluded.

Name Type Description
excludeField string

The unique field to be excluded.

setGeometry(geometry)

DataFlowLayer.js, line 123

Set geometry data to be added.

Name Type Description
geometry GeoJSONObject

Object of GeoJSON geometry data to be added.