behavior.Drag
Extends IBehavior.
The "dragging the map using the mouse or single touch" behavior.
Constructor | Fields | Events | Methods
Constructor
behavior.Drag([options])
Parameters:
| Parameter | Default value | Description | 
| — | Type: Object Options. | |
| 'grabbing' | Type: String Cursor for the behavior behavior.Drag when dragging the map. | |
| 'grab' | Type: String Cursor for the behavior behavior.Drag when pointing at the map. | |
| true | Type: Boolean Enables kinetic inertia at the end of dragging. | |
| 400 | Type: Number|String Duration of inertia, in ms. The "auto" string value sets the duration of inertia proportional to the distance. | |
| 2 | Type: Integer Minimal cursor movement after pressing the mouse button, before the map begins to move. | 
Fields
| Name | Type | Description | 
| Event manager. Inherited from IEventEmitter. | ||
| Options manager. Inherited from ICustomizable. | 
Events
| Name | Description | 
| Disabling behaviors. Inherited from IBehavior. | |
| Enabling behaviors. Inherited from IBehavior. | |
| Change to the object options. Inherited from ICustomizable. | |
| The parent object reference changed. Data fields: 
 Inherited from IChild. | 
Methods
| Name | Returns | Description | 
| disable() | Disables the behavior. Inherited from IBehavior. | |
| enable() | Enables the behavior. Inherited from IBehavior. | |
| IParentOnMap|null | Returns link to the parent object, or null if the parent element was not set. Inherited from IChildOnMap. | |
| Boolean | Checks whether the behavior is enabled. Inherited from IBehavior. | |
| Sets the parent object. If the null value is passed, the manager element will only be deleted from the current parent object. Inherited from IChildOnMap. |