---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md
  - https://yandex.com.tr/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/IMapAction.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/dev/jsapi-v2-1/doc/en/llms.txt

# IMapAction

Extends [IEventEmitter](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventEmitter.md).

Interface of an object that manages map movement.

[Constructor](#constructor-summary) | [Fields](#properties-summary) | [Events](#events-summary) | [Methods](#methods-summary)

## Constructor {#constructor-summary}

```javascript
IMapAction()
```

## Fields {#properties-summary}

#|
|| **Name** | **Type** | **Description** ||
|| [events](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventEmitter.md#events) | [IEventManager](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventManager.md) | Event manager.

Inherited from [IEventEmitter](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventEmitter.md#events). ||
|#

## Events {#events-summary}

#|
|| **Name** | **Description** ||
|| [end](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#event-end) | Event that notifies the map that movement has finished. ||
|| [tick](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#event-tick) | Event that notifies the map of the next step. Contains the fields: 
- globalPixelCenter - The new map center, in global pixels.
- zoom - The new map zoom.
- duration - The time that is allowed for performing the step.
- timingFunction - Function describing the type of movement. ||
|#

## Methods {#methods-summary}

#|
|| **Name** | **Description** ||
|| [begin](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#begin)([mapActionManager](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#begin-param-mapActionManager)) | Starts the movement to be performed by the map. This method is called automatically by the map movement manager. From the moment when [IMapAction.begin](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#begin) is called, the movement manager listens for [IMapAction.event:tick](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#event-tick) and [IMapAction.event:end](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#event-end) and executes them. ||
|| [end](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#end)() | Stops movement. ||
|#

## Events details {#event_detail}

### end {#end}

Event that notifies the map that movement has finished.

### tick {#tick}

Event that notifies the map of the next step. Contains the fields: 
- globalPixelCenter - The new map center, in global pixels.
- zoom - The new map zoom.
- duration - The time that is allowed for performing the step.
- timingFunction - Function describing the type of movement.

## Methods details {#method_detail}

### begin {#begin}

```javascript
{} begin(mapActionManager)
```

Starts the movement to be performed by the map. This method is called automatically by the map movement manager. From the moment when [IMapAction.begin](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#begin) is called, the movement manager listens for [IMapAction.event:tick](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#event-tick) and [IMapAction.event:end](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#event-end) and executes them.

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`mapActionManager`](#begin-param-mapActionManager)[*](*star) | — | Type: [map.action.Manager](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/map.action.Manager.md)

The movement manager for the map that movement is being performed on. ||
|#

\* Mandatory parameter/option.

### end {#end}

```javascript
{} end()
```

Stops movement.

[*star]: Mandatory parameter/option.