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
-
getLayer()
-
Get the layer for the revealed features
-
selectCluster(a)
-
Select a cluster
Parameters:
Name Type Description a
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.