These docs are for an old release.
View the v7 docs
unselect
Triggered when the current selection is cleared.
function( info )
A selection might be cleared for a number of reasons:
-
The user clicks away from the current selection (doesn’t happen when unselectAuto is
false). -
The user makes a new selection. The
unselectcallback will be fired before the new selection occurs. -
The user moves forward or backward in the current view, or switches to a new view.
-
The unselect method is called through the API.
info is a plain object with the following properties:
jsEvent- the native JavaScript event with information such as mouse coordinates. Ifunselecthas been triggered via the unselect method,jsEventwill benull.view- the current View Object.