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 active
boolean Active.
-
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.