new vcs.vcm.SelectBehavior(options)
| Name | Type | Description |
|---|---|---|
options |
Object |
Methods
-
vcs.vcm.SelectBehavior.getInstance(options){vcs.vcm.SelectBehavior}
-
Singleton getter for this class
Name Type Description optionsObject -
activateClickBehavior()
-
activate Click Behaviour
-
addToSelectionSet(array)
-
Add to the SelectionSet.
Name Type Description arrayArray.<string> an array of ids to be added to the selection set
-
clearCurrentItem(silent)
-
clears the current item. In case a balloon is attached, also clears the balloon
Name Type Description silentboolean whether to call an event or not
-
clearSelectionSet()
-
Clears the selectionset
-
deactivateClickBehavior()
-
deactivate Click Behaviour
-
getCurrentItem(){vcs.vcm.SelectBehavior.CurrentItem}
-
Gets the current item
-
getInvertClickBehaviorForCesium()
-
Returns whether the clickbehavior is inverted or not
-
getSelectionSet(){Array.<Object>}
-
Gets the selectionSet
-
isClickBehaviorActivated()
-
returns true if clickbehaviour is activated
-
removeFromSelectionSet(array)
-
Remove from SelectionSet
Name Type Description arrayArray.<string> the ids to remove from the current selection set
-
setCurrentItem(id, object, layer)
-
Sets the current item and styles it according to layer and selectBehavior defined settings If an object and layer are provided and the [BalloonInfo]
vcs.vcm.widgets.BalloonInfowidget is active, it is attempted to render the ballon for the current itemName Type Description idstring of the object to select
objectObject if not provided, no balloon will be displayed
layervcs.vcm.layer.Layer of the matching object
-
setInvertClickBehaviorForCesium(bool)
-
Set whether the clickbehavior is inverted or not
Name Type Description boolboolean
Type Definitions
-
vcs.vcm.SelectBehavior.CurrentItem{Object}
-
Properties:
Name Type Description idstring | undefined objectObject | ol.Feature | undefined layervcs.vcm.layer.Layer | Array.<vcs.vcm.layer.Layer> | undefined
virtualcityMAP 3.6