Class: Choropleth

IDEE/style/Choropleth~Choropleth


import Choropleth from 'IDEE/style/Choropleth';

Crea una coropleta de estilo con parámetros especificados por el usuario.

new Choropleth(attributeName, styles, quantification, options)

facade/js/style/Choropleth.js, line 49

Constructor principal de la clase.

Name Type Description
attributeName String

Nombre del atributo.

styles Array.<Style>

Estilos.

quantification Style.quantification

Cuantificación.

options object

Opciones.

Properties:
Name Type Description
attributeName_ String

Nombre del atributo.

quantification_ IDEE.quantification | function

Cuantificación.

breakPoints_ Array.<Number>

Puntos de "puntos de ruptura".

choroplethStyles_ Array.<Style.Simple>

Estilos de coropletas.

borderColor String

Color del borde.

Extends

  • IDEE.style.Composite

Members

module:IDEE/style/Choropleth~Choropleth.END_COLOR_DEFAULT

Colores por defecto, "end".

module:IDEE/style/Choropleth~Choropleth.START_COLOR_DEFAULT

Colores por defecto, "start".

ORDER

Este método devuelve el orden, 2.

Methods

module:IDEE/style/Choropleth~Choropleth.DEFAULT_STYLE(c){Style.Point}

facade/js/style/Choropleth.js, line 400

Este método devuelve un estilo de punto por defecto.

Name Type Description
c String

Color en formato hexadecimal.

Returns:
Estilo.

add(stylesParam)

facade/js/style/Choropleth.js, line 443

Añade el estilo.

Name Type Description
stylesParam Object

Estilo.

applyInternal(layer)

facade/js/style/Choropleth.js, line 104

Este método aplica el estilo especificado a la capa.

Name Type Description
layer IDEE.Layer.Vector

Capa.

drawGeometryToCanvas(canvasImages, callbackFn)

facade/js/style/Choropleth.js, line 284

Dibuja la geometría en el "canvas".

Name Type Description
canvasImages HTMLCanvasElement

"Canvas".

callbackFn function

Función "callbackFn".

getAttributeName(){String}

facade/js/style/Choropleth.js, line 116

Este método devuelve el nombre del atributo.

Returns:
Nombre del atributo.

getChoroplethStyles(){Array(Style)|null}

facade/js/style/Choropleth.js, line 185

Devuelve el estilos de coropletas.

Returns:
Estilos de coropletas.

getQuantification(){Style.quantification|function}

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

Devuelve la cuantificación.

Returns:
Devuelve la cuantificación.

getValues(){Array.<number>}

facade/js/style/Choropleth.js, line 330

Este método obtiene los valores numéricos de los objetos geográficos de la capa cuyo atributo es igual al atributo especificado por el usuario.

Returns:
Valores numéricos de las características de la capa.

loadCanvasImages_(currentIndex, canvasImages, callbackFn)

facade/js/style/Choropleth.js, line 235

Genera el "canvas".

  • ⚠️ Advertencia: Este método no debe ser llamado por el usuario.
Name Type Description
currentIndex Number

Índice.

canvasImages Array

Imagen.

callbackFn function

Función "callbackFn".

setAttributeName(attributeName)

facade/js/style/Choropleth.js, line 127

Modifica el atributo.

Name Type Description
attributeName String

Nuevo nombre.

setQuantification(quantification){IDEE.style.Choropleth}

facade/js/style/Choropleth.js, line 153

Modifica la cuantificación.

Name Type Description
quantification Style.quantification | function

Modifica la cuantificación.

Returns:
"this".

setStyles(styles){IDEE.style.Choropleth}

facade/js/style/Choropleth.js, line 197

Modifica el estilo.

Name Type Description
styles Array.<StylePoint> | Array.<StyleLine> | Array.<StylePolygon>

Estilo.

Returns:
"this".

toJSON(){object}

facade/js/style/Choropleth.js, line 474

Este método implementa el mecanismo para generar el JSON de esta instancia.

Returns:
Devuelve parámetros y el método para deserializar.

update_()

facade/js/style/Choropleth.js, line 357

Este método actualiza el estilo.

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

updateCanvas()

facade/js/style/Choropleth.js, line 214

Actualiza el canvas.