Strategy for vector feature clustering.
OpenLayers. Strategy. Cluster | Strategy for vector feature clustering. |
Properties | |
distance | {Integer} Pixel distance between features that should be considered a single cluster. |
threshold | {Integer} Optional threshold below which original features will be added to the layer instead of clusters. |
Constructor | |
OpenLayers. Strategy. Cluster | Create a new clustering strategy. |
Functions | |
activate | Activate the strategy. |
deactivate | Deactivate the strategy. |
{Integer} Optional threshold below which original features will be added to the layer instead of clusters. For example, a threshold of 3 would mean that any time there are 2 or fewer features in a cluster, those features will be added directly to the layer instead of a cluster representing those features. Default is null (which is equivalent to 1 - meaning that clusters may contain just one feature).
Activate the strategy.
activate: function()
Deactivate the strategy.
deactivate: function()