Facilitates clustering of markers on the default markers layer
The following example shows how to add this control to the map:
var clusterControl = new OpenSpace.Control.ClusterManager(); osMap.addControl(clusterControl); clusterControl.activate();
| OpenSpace. | Facilitates clustering of markers on the default markers layer |
| Properties | |
| OpenSpace marker | {Array} Container for markers in default markers layer when control activated. |
| Parameters for clustering process. globalScale deals with the fact that the | pixel of each marker never changes in its holding array (originalMarkers) |
| Parameters for cluster markers, can be set | |
| Constructor | |
| OpenSpace. | Constructs a new OpenSpace.Control.ClusterManager |
| Functions | |
| activate | |
| deactivate | inherits from OpenLayers.Control and therefore inherits control deactivate |
| doClustering | -called once listener set on activate. |
activate: function( clusterdist )
| query | {number} distance at which a marker will cluster with others. This is set for the standard OS marker icon(see Map help) but can be configured according to preference. Default is 30 view port pixels. |
inherits from OpenLayers.Control and therefore inherits control activate
activate: function( clusterdist )
inherits from OpenLayers.Control and therefore inherits control deactivate
deactivate: function()
-called once listener set on activate.
doClustering: function()