new cercalia.Heatmap(name)
| Name | Type | Description |
|---|---|---|
name |
cercaliax.HeatmapOptions |
Name of layer |
Methods
-
destroy()
-
Elimina el objeto junto a todos sus atributos
-
getBlur(){number}
-
Get the blur of the layer.
-
getClass(){string}
-
Returns:
ClassName del objetocercalia.WMS.
-
getGradient(){Array.<string>}
-
Get the gradient of the layer.
-
getLayer(){ol.layer.Tile}
-
Returns:
WMS Source. Objeto OL3 ol.layer.Tile
-
getMap(){cercalia.Map|null}
-
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 blurnumber The blur of the layer.
-
setGradient(gradient)
-
Set the gradient of the layer.
Name Type Description gradientArray.<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 mapcercalia.Map | null Mapa.
positionnumber Posición zIndex en los layers.
-
setOpacity(opacity)
-
Set the opacity of the layer.
Name Type Description opacitynumber The opacity of the layer.
-
setRadius(radius)
-
Set the radius of the layer.
Name Type Description radiusnumber The radius of the layer.
-
setSaturation(saturation)
-
Set the saturation of the layer.
Name Type Description saturationnumber The saturation of the layer.
-
setVisible(visibility)
-
Set the visibility of the layer.
Name Type Description visibilityboolean The visibility of the layer.