Class: GoHeatMapTool

GoHeatMapTool

Create a HeatMap density layer from any puntual layer

new GoHeatMapTool(layer, features, field)

Interactions/Analysis/interact/DensityTools/GoHeatMapTool.ts, line 9

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

GoHeatMapTool

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
blur number

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
maxResolution number

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
minResolution number

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
radius number

Points radius

Returns:
Type Description
void Return nothing