new SelectCluster( [options])
Parameters:
Name | Type | Argument | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
olx.interaction.SelectOptions |
<optional> |
SelectOptions. Properties
|
Fires:
- ol.interaction.event:SelectEvent
Extends
- ol.interaction.Select
Methods
-
animateCluster_(the)
-
Animate the cluster and spread out the features
Parameters:
Name Type Description the
ol.Coordinates center of the cluster
-
clear()
-
Clear the selection, close the cluster and remove revealed features
-
getClusterExtent(feature)
-
Helper function to get the extent of a cluster
Parameters:
Name Type Description feature
ol.feature Returns:
the extent or null if extent is empty (no cluster or superimposed points)
- Type
- ol.extent | null
-
getLayer()
-
Get the layer for the revealed features
-
selectCluster(a)
-
Select a cluster
Parameters:
Name Type Description a
ol.SelectEvent | ol.Feature cluster feature ie. a feature with a 'features' attribute.
-
setMap(map)
-
Remove the interaction from its current map, if any, and attach it to a new map, if any. Pass
null
to just remove the interaction from the current map.Parameters:
Name Type Description map
ol.Map Map.