Class: Heatmap

IDEE/style/Heatmap~Heatmap


import Heatmap from 'IDEE/style/Heatmap';

Crea un mapa de calor de estilo con parámetros especificados por el usuario.

new Heatmap(attribute, optionsParam, vendorOptionsParam)

facade/js/style/Heatmap.js, line 20

Constructor principal de la clase.

Name Type Description
attribute string | function

El atributo del objetos geográficos a utilizar (entre 0 y 1).

optionsParam Mx.HeatmapStyleOptions

Opciones del estilo.

  • gradient. Degradado.
  • blur. Difuminar.
  • radius. Radio
  • opacity. Opacidad.
  • weight. Peso.
vendorOptionsParam object

Opciones de la librería base.

  • opacity: Opacidad.

Extends

  • IDEE.style

Members

module:IDEE/style/Heatmap~Heatmap.DEFAULT_OPTIONS

Opciones por defecto del mapa de calor.

attribute_{string} {function}

Methods

drawGeometryToCanvas(vectorContext)

facade/js/style/Heatmap.js, line 233

Este método dibuja el estilo en el "canvas".

Name Type Description
vectorContext CanvasRenderingContext2D

"Canvas".

getAttributeName(){string|function}

facade/js/style/Heatmap.js, line 117

Este método devuelve los atributos.

Returns:
Atributos

getBlurSize(){number}

facade/js/style/Heatmap.js, line 195

Este método devuelve el "blur" del mapa de calor.

getGradient(){Array.<string>}

facade/js/style/Heatmap.js, line 141

Este método devuelve el degradado.

Returns:
Degradado.

getRadius(){number}

facade/js/style/Heatmap.js, line 172

Este método devuelve el radio del mapa de calor.

setAttributeName(attribute)

facade/js/style/Heatmap.js, line 128

Este método establece el atributo del mapa de calor.

Name Type Description
attribute string | function

Atributos.

setBlurSize(blur)

facade/js/style/Heatmap.js, line 206

Este método establece el "blur" del mapa de calor.

Name Type Description
blur number

setGradient(gradient)

facade/js/style/Heatmap.js, line 152

Este método establece del degradado al mapa de calor.

Name Type Description
gradient Array.<string>

Degradado.

setRadius(radius)

facade/js/style/Heatmap.js, line 183

Este método establece el radio del mapa de calor.

Name Type Description
radius number

toJSON(){object}

facade/js/style/Heatmap.js, line 267

Esta función implementa el mecanismo para generar el JSON de esta instancia.

Returns:
Devuelve el JSON.

unapply(layer)

facade/js/style/Heatmap.js, line 105

Este método elimina los estilos.

Name Type Description
layer IDEE.Layer.Vector

Capa.

update_()

facade/js/style/Heatmap.js, line 218

Este método actualiza el mapa de calor.

  • ⚠️ Advertencia: Este método no debe ser llamado por el usuario.

updateCanvas()

facade/js/style/Heatmap.js, line 254

Este método actualiza el "canvas".