M/impl/style/Cluster~Cluster


import Cluster from 'M/impl/style/Cluster';

Main constructor of the class. Creates a Cluster control

new Cluster(options, optionsVendor)

impl/ol/style/Cluster.js, line 44
Name Type Description
options Object

config options of user

optionsVendor Object

specified options from ol

Methods

module:M/impl/style/Cluster~Cluster.updateRangeImpl(min, max, newRange, layer, cluster){M.style.Cluster}

impl/ol/style/Cluster.js, line 251

This function set a specified range

Name Type Description
min number

as range minimal value to be overwritten

max number

as range max value to be overwritten

newRange number

as the new range

layer M.layer.Vector

is the Cluster layer

cluster M.style.Cluster

as the cluster to update his range

activateChangeEvent(canvas)

impl/ol/style/Cluster.js, line 579

TODO

Name Type Description
canvas object

addSelectInteraction()

impl/ol/style/Cluster.js, line 290

Add selected interaction and layer to see the features of cluster

applyToLayer(layer, map)

impl/ol/style/Cluster.js, line 114

Apply the style cluster to layer vectorresolution

Name Type Description
layer M.layer.Vector

layer where the user apply the cluster

map M.Map

deactivateChangeEvent(canvas)

impl/ol/style/Cluster.js, line 594

TODO

Name Type Description
canvas object

deactivateChangeResolutionEvent(canvas)

impl/ol/style/Cluster.js, line 615

TODO

Name Type Description
canvas object

deactivateTemporarilyChangeEvent(canvas)

impl/ol/style/Cluster.js, line 639

TODO

Name Type Description
canvas object

removeSelectInteraction()

impl/ol/style/Cluster.js, line 324

Remove selected interaction and layer to see the features of cluster

selectClusterInteraction()

impl/ol/style/Cluster.js, line 136

Gets the select cluster interaction

setAnimated(animated, layer, Cluster){M.style.Cluster}

impl/ol/style/Cluster.js, line 272

This function set if layer must be animated

Name Type Description
animated boolean

defining if layer must be animated

layer M.layer.Vector

is the Cluster layer

Cluster M.style.Cluster

is the Cluster being chamge the animation

setRanges(newRanges){M.style.Cluster}

impl/ol/style/Cluster.js, line 200

This function update a set of ranges defined by user

Name Type Description
newRanges Array.<Object>

as new Ranges

unapply()

impl/ol/style/Cluster.js, line 537

This function remove the style to specified layer

updateCanvas(canvas)

impl/ol/style/Cluster.js, line 570

This function

Name Type Description
canvas object

updateLastRange_(){object}

impl/ol/style/Cluster.js, line 217

This function add the max limit to the last range of cluster options if not exists