OpenLayers.Strategy.Cluster - OpenLayers

# OpenLayers. Strategy. Cluster

Strategy for vector feature clustering.

#### Inherits from

- OpenLayers.Strategy

Summary

OpenLayers. Strategy. Cluster | Strategy for vector feature clustering.
Properties |
distance | {Integer} Pixel distance between features that should be considered a single cluster.
Constructor |
OpenLayers. Strategy. Cluster | Create a new clustering strategy.
Functions |
activate | Activate the strategy.
deactivate | Deactivate the strategy.

### Properties

### distance

{Integer} Pixel distance between features that should be considered a single cluster. Default is 20 pixels.

### Constructor

### OpenLayers. Strategy. Cluster

Create a new clustering strategy.

#### Parameters

options | {Object} Optional object whose properties will be set on the instance.

### Functions

### activate

> activate: function()

Activate the strategy. Register any listeners, do appropriate setup.

#### Returns

{Boolean} The strategy was successfully activated.

### deactivate

> deactivate: function()

Deactivate the strategy. Unregister any listeners, do appropriate tear-down.

#### Returns

{Boolean} The strategy was successfully deactivated.

> activate: function()

Activate the strategy.

> deactivate: function()

Deactivate the strategy.
Abstract vector layer strategy class.
Close