Class: AnimatedCluster

IDEE/impl/layer/AnimatedCluster~AnimatedCluster


import AnimatedCluster from 'IDEE/impl/layer/AnimatedCluster';

La capa se crea con un ol.source.Cluster como capas vectoriales de "cluster" estándar.

new AnimatedCluster(options)

impl/ol/js/layer/AnimatedCluster.js, line 19

Constructor principal de la clase. Crea una capa "AnimatedCluster" con parámetros especificados por el usuario.

Name Type Description
options Mx.parameters.LayerOptions

Opciones personalizadas para esta capa.

  • style: Estilo del "cluster".
  • animationDuration: Duración de la animación, por defecto 700.
  • animationMethod: Efecto de la animación, por defecto easeOut.

Extends

  • ol.layer.Vector

Methods

module:IDEE/impl/layer/AnimatedCluster~AnimatedCluster.getClusterForFeature(feature, clusters){Array.<Feature>}

impl/ol/js/layer/AnimatedCluster.js, line 100

Este método devuelve los objetos geográficos del "cluster".

Name Type Description
feature IDEE.feature

Objetos geográficos.

clusters IDEE.cluster

Agrupaciones.

Returns:
Objetos geográficos del "cluster".

animate(event)

impl/ol/js/layer/AnimatedCluster.js, line 119

Animación del "cluster".

Name Type Description
event IDEE.event

Evento.

postanimate(e)

impl/ol/js/layer/AnimatedCluster.js, line 252

Evento tras la animación.

Name Type Description
e IDEE.event

Evento tras la animación.

prepareAnimation_(extent, resolution)

impl/ol/js/layer/AnimatedCluster.js, line 213

Este método prepara la animación.

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

Extensión.

resolution Number

Resolución.

saveCluster_(map)

impl/ol/js/layer/AnimatedCluster.js, line 78

Este método incluye el "cluster" al mapa.

  • ⚠️ Advertencia: Este método no debe ser llamado por el usuario.
Name Type Description
map IDEE.impl.Map

Implementación del mapa.

setStyle(style)

impl/ol/js/layer/AnimatedCluster.js, line 267

Sobrescribe el estilo del "cluster".

Name Type Description
style IDEE.style

Nuevo estilo para aplicar.