Class: TouchCursorSelect

ol.interaction. TouchCursorSelect

A TouchCursor to select objects on hovering the cursor


new TouchCursorSelect(options)

Parameters:
Name Type Description
options olx.interaction.InteractionOptions

Options

Properties
Name Type Description
className string

cursor class name

coordinate ol.coordinate

position of the cursor

Extends

Methods


addOverlay(ov)

Add an overlay to the interacton

Parameters:
Name Type Description
ov ol.Overlay
Inherited From:
Overrides:

getSelection()

Get current selection

Returns:
Type
ol.Feature | null

removeOverlay(ov)

Remove an overlay from the interacton

Parameters:
Name Type Description
ov ol.Overlay
Inherited From:
Overrides:

select(f)

Select feature

Parameters:
Name Type Description
f ol.Feature | undefined

a feature to select or select at the cursor position


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.


setPosition(coord)

Set position

Parameters:
Name Type Description
coord ol.coordinate