Class: Heatmap

cercalia.Heatmap

new cercalia.Heatmap(name)

Name Type Description
name cercaliax.HeatmapOptions

Name of layer

Methods

Elimina el objeto junto a todos sus atributos

getBlur(){number}

Get the blur of the layer.

getClass(){string}

Returns:
ClassName del objeto cercalia.WMS.

getGradient(){Array.<string>}

Get the gradient of the layer.

getLayer(){ol.layer.Tile}

Returns:
WMS Source. Objeto OL3 ol.layer.Tile
Returns:
map Mapa si es que la capa WMS esta pintada en un mapa. Sino, devuelve null

getOpacity(){number}

Get the opacity of the layer.

getRadius(){number}

Get the radius of the layer.

getSaturation(){number}

Get the saturation of the layer.

getSource(){ol.source.Vector}

Returns:
WMS Source. Objeto OL3 ol.source.TileWMS

getVisible(){boolean}

Get the visibility of the layer.

setBlur(blur)

Set the blur of the layer.

Name Type Description
blur number

The blur of the layer.

setGradient(gradient)

Set the gradient of the layer.

Name Type Description
gradient Array.<string>

The gradient of the layer.

setMap(map, position)

Le asignamos un mapa al objeto. En caso que exista se elimina en el mapa existente y se pinta la capa WMS en el mapa pasado por parametro. Si el parametro es 'null' se borra del mapa del que esta pintado

Name Type Description
map cercalia.Map | null

Mapa.

position number

Posición zIndex en los layers.

setOpacity(opacity)

Set the opacity of the layer.

Name Type Description
opacity number

The opacity of the layer.

setRadius(radius)

Set the radius of the layer.

Name Type Description
radius number

The radius of the layer.

setSaturation(saturation)

Set the saturation of the layer.

Name Type Description
saturation number

The saturation of the layer.

setVisible(visibility)

Set the visibility of the layer.

Name Type Description
visibility boolean

The visibility of the layer.