new CenterTouch(options)
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
options |
olx.interaction.InteractionOptions | Options Properties
|
Extends
- ol.interaction.Interaction
Methods
-
getPosition()
-
Get the position of the target
Returns:
- Type
- ol.coordinate
-
setActive(active)
-
Activate or deactivate the interaction.
Parameters:
Name Type Description activeboolean Active.
-
setMap(map)
-
Remove the interaction from its current map, if any, and attach it to a new map, if any. Pass
nullto just remove the interaction from the current map.Parameters:
Name Type Description map_ol_Map_ Map.