Class: Heatmap

cercalia.Heatmap

new cercalia.Heatmap(name)

Name Type Description
name

Name of layer

Name Type Description
format string | undefined optional

File format. Accepts 'kml' or 'geojson'. Default: 'kml'.

map cercalia.Map

Map where markers will be painted.

name string | undefined optional

Layer name.

url string

The url of the file.

projection string

Projection code. Default: 'EPSG:900913'

radius number | undefined optional

Radius of an entity. Default: 5.

gradient Array.<string> | undefined optional

The color gradient of the heatmap, specified as an array of CSS color strings. Default is ['#00f', '#0ff', '#0f0', '#ff0', '#f00'].

opacity number | undefined optional

Opacity. 0-1. Default is 1.

blur number | undefined optional

Blur size in pixels. Default is 15.

saturation number | undefined optional

Saturation

Methods

Elimina el objeto junto a todos sus atributos

Get the blur of the layer.

Returns:
ClassName del objeto cercalia.WMS.

getGradient(){Array.<string>}

Get the gradient of the layer.

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

Get the opacity of the layer.

Get the radius of the layer.

Get the saturation of the layer.

getSource(){ol.source.Vector}

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

Get the visibility of the layer.

Set the blur of the layer.

Name Type Description
blur number

The blur of the layer.

Set the gradient of the layer.

Name Type Description
gradient Array.<string>

The gradient of the layer.

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.

Set the opacity of the layer.

Name Type Description
opacity number

The opacity of the layer.

Set the radius of the layer.

Name Type Description
radius boolean

The radius of the layer.

Set the saturation of the layer.

Name Type Description
saturation number

The saturation of the layer.

Set the visibility of the layer.

Name Type Description
visibility boolean

The visibility of the layer.