new GoHeatMapTool(layer, features, field)
Creates a new GoHeatMapTool instance.
| Name | Type | Description |
|---|---|---|
layer |
string |
The name of the layer to add the heatmap to. |
features |
Array.<Feature.<Geometry>> |
The features to use for the heatmap. |
field |
string |
The field to use for weighting the heatmap points. |
Properties:
| Name | Type | Description |
|---|---|---|
layerHeatMap |
Heatmap | The OpenLayers heatmap layer object. |
layer |
string | The name of the layer that the heatmap will be added to. |
heatMapSource |
Vector | The source object that the heatmap layer uses. |
radius |
number | Private - The radius of the heatmap points. |
blur |
number | Private - Value of blur to apply over the heatmap. |
gradient |
Array.<string> | Private - The color gradient to use for the heatmap. |
weight |
string | null | The field to use for weighting the heatmap points. |
blurHandler |
function | The handler for the blur control. |
radiusHandler |
function | The handler for the radius control. |
gradientHandler |
function | The handler for the gradient control. |
Classes
Methods
-
getBlur(){number}
Interactions/Analysis/interact/DensityTools/GoHeatMapTool.ts, line 148 -
Returns points blur
Returns:
Type Description number Return points blur -
getGradient(){Array.<string>}
Interactions/Analysis/interact/DensityTools/GoHeatMapTool.ts, line 185 -
Returns points radius
Returns:
Type Description Array.<string> Return color gradient to set in heatmap -
getLayer(){Heatmap}
Interactions/Analysis/interact/DensityTools/GoHeatMapTool.ts, line 130 -
Returns layer
Returns:
Type Description Heatmap Return a Heatmap layer -
getLayerName(){string}
Interactions/Analysis/interact/DensityTools/GoHeatMapTool.ts, line 139 -
Returns layer name
Returns:
Type Description string Return layer name -
getRadius(){number}
Interactions/Analysis/interact/DensityTools/GoHeatMapTool.ts, line 166 -
Returns points radius
Returns:
Type Description number Return points radius -
setBlur(blur){void}
Interactions/Analysis/interact/DensityTools/GoHeatMapTool.ts, line 157 -
Set points blur
Name Type Description blurnumber points blur
Returns:
Type Description void Return nothing -
setMaxResolution(maxResolution){void}
Interactions/Analysis/interact/DensityTools/GoHeatMapTool.ts, line 205 -
Set the max resolution
Name Type Description maxResolutionnumber Max resolution
Returns:
Type Description void Return nothing -
setMinResolution(minResolution){void}
Interactions/Analysis/interact/DensityTools/GoHeatMapTool.ts, line 215 -
Set the min resolution
Name Type Description minResolutionnumber Min resolution
Returns:
Type Description void Return nothing -
setRadius(radius){void}
Interactions/Analysis/interact/DensityTools/GoHeatMapTool.ts, line 176 -
Set points radius
Name Type Description radiusnumber Points radius
Returns:
Type Description void Return nothing
