Strategy for vector feature clustering.
NOTE: This code includes a patch for OpenLayers.Layer.Vector.getDataExtent function.
| OpenLayers. | Strategy for vector feature clustering. |
| Properties | |
| centered | {Boolean} |
| enabled | {Boolean} |
| zoomSettings | {Boolean} |
| candidateMatches | {Function} |
| 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. | Create a new CenteredCluster strategy. |
| Functions | |
| activate | Activate the strategy. |
| deactivate | Deactivate the strategy. |
| OpenLayers. | Instances of OpenLayers.Layer.Vector are used to render vector data from a variety of sources. |
| Functions | |
| getDataExtent | Calculates the max extent which includes all of the features, even if they are clustered. |
{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)
Instances of OpenLayers.Layer.Vector are used to render vector data from a variety of sources. Create a new vector layer with the OpenLayers.Layer.Vector constructor.
| Functions | |
| getDataExtent | Calculates the max extent which includes all of the features, even if they are clustered. |
Activate the strategy.
activate: function()
Deactivate the strategy.
deactivate: function()
Calculates the max extent which includes all of the features, even if they are clustered.
OpenLayers.Layer.Vector.prototype.getDataExtent = function()