The DataflowPointTrackLayer object is used to define the attributes in the point tracking layer generated by the data flow service.
Attribute | Type | Description |
layerType |
string |
[Required] The layer type. Fixed constant: "DATAFLOW_POINT_TRACK". |
url |
string |
[Required] The address (URI) of the data flow service. |
name |
string |
[Required] The layer name. |
visible |
boolean |
[Required] The visibility of the layer. |
opacity |
number |
[Optional] The opacity of the layer. The maximum value is 1 and the minimum value is 0. |
pointStyle |
PointStyle |
[Required] The style of point features |
identifyField |
string |
[Required] Identify field. |
credential |
[Required] According to the security verification method "token" or "key" of the data flow service, fill in the corresponding security verification information. |
|
lineStyle |
LineStyle |
[Optional] The style of the trajectory line. |
labelStyle | LabelStyle |
[Optional] The style of the label. |
directionField |
string |
[Optional] The direction Field |
enableFields |
array<string> |
[Optional] The fields displayed in attribute table |
captions |
string |
[Optional] Sets the display name corresponding to the identification field. |
filterCondition | string |
[Optional] Filter condition, for example: "id<\"T0010\"". |
maxPointCount |
integer |
[Optional] The maximum number of nodes in the trajectory line. |
legendSetting |
LegendSetting |
[Optional] Legend settings. |
popupInfo |
[Optional] The layer property pop-up window setting. |
|
visibleScale |
VisibleScale |
[Optional] Stores the visible scale range of the current layer. |
Use the data flow service to create a point tracking layer that conforms to the WebMap specification.
{
"layers": [
{
"layerType": "DATAFLOW_POINT_TRACK",
"name": "dataflow",
"visible": true,
"pointStyle": {
"fillColor": "#ee4d5a",
"fillOpacity": 0.9,
"strokeColor": "#b8e986",
"strokeWidth": 7,
"strokeOpacity": 1,
"type": "SYMBOL_POINT",
"className": "supermapol-icons-Shape-2",
"name": "Shape10-4",
"unicode": "\r\n#xe661",
"fontSize": "16px"
},
"visibleScale": {
"maxScale": "1:2256.999",
"minScale": "1:591658710.909"
},
"lineStyle": {
"strokeColor": "#56b781",
"strokeWidth": 1,
"strokeOpacity": 1,
"type": "LINE",
"lineDash": "solid"
},
"maxPointCount": 5,
"credential": {
"token": "BzuTq0anfyuIb_Y1Pr6xVmZZpO2SRnPX2WN4jDpUOoXLfoq0lZ2QyPj3QR-b0xgpnQ9MRottAJpedduHGUxjxg.."
},
"url": "http://192.168.17.199:8090/iserver/services/dataflow/dataflow",
"identifyField": "1",
"labelStyle": {
"fill": "#333",
"fontFamily": "Microsoft Yahei",
"labelField": "",
"backgroundFill": [
50,
34,
34,
0.8
],
"fontSize": "14px",
"offsetY": -21.4,
"textBaseline": "bottom",
"textAlign": "center",
"outlineColor": "#000000",
"outlineWidth": 0
}
}
],
}