The DataflowHeatLayer object defines the relevant properties of the heatmap generated using the data flow service.
| Attribute | Type | Description |
|
layerType |
string |
[Required] The layer type. Fixed constant: "DATAFLOW_HEAT". |
|
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. |
| themeSetting | HeatLayerThemeSetting |
[Required] The theme setting of the heatmap. |
| identifyField |
string |
[Required] Identify field. |
|
opacity |
number |
[Optional] The opacity of the layer. The maximum value is 1 and the minimum value is 0. |
|
visibleScale |
[Optional] Stores the visible scale range of the current layer. |
|
| filterCondition | string |
[Optional] The filter condition of the attribute field, for example, "province=\"Anhui \"". |
|
legendSetting |
LegendSetting |
[Optional] Legend settings. |
|
credential |
[Required] According to the security verification method "token" or "key" of the data flow service, fill in the corresponding security verification information. |
|
|
captions |
object |
[Optional] The key is the field name, and the value is the user-defined string type field display name, for example: {"ADDRESS":"ADDRESS display name"}. |
Use the data flow service to create a heatmap layer that conforms to the WebMap specification.
{
"layers": [
{
"layerType": "DATAFLOW_HEAT",
"visible": true,
"url": "http://server:8090/iserver/services/dataflow/rest",
"name": "sample",
"themeSetting": {
"customSettings": {
"2": "#d0021b",
"4": "#000000"
},
"weight": "Latitude",
"colors": [
"#0000ff",
"#00ffff",
"#00ff00",
"#ffff00",
"#ff0000"
],
"radius": 10
},
"filterCondition": "City = \"Anhui\"",
"credential": {
"token": "token_value"
}
}
],
}