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

# map.action.Continuous

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

Map movement consisting of one or more steps. Intended for implementing complex map movements.

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

## Constructor {#constructor-summary}

```javascript
map.action.Continuous()
```

## Fields {#properties-summary}

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

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

## Events {#events-summary}

#|
|| **Name** | **Description** ||
|| [end](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#event-end) | Event that notifies the map that movement has finished.

Inherited from [IMapAction](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#event-end). ||
|| [tick](https://yandex.ru/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.

Inherited from [IMapAction](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#event-tick). ||
|#

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [begin](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#begin)([mapActionManager](https://yandex.ru/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.ru/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.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#event-tick) and [IMapAction.event:end](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#event-end) and executes them.

Inherited from [IMapAction](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#begin). ||
|| [end](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#end)() | | Stops movement.

Inherited from [IMapAction](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapAction.md#end). ||
|| [isActive](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/map.action.Continuous.md#isActive)() | Boolean | Checks whether map movement is being performed at this moment. ||
|| [tick](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/map.action.Continuous.md#tick)([tick](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/map.action.Continuous.md#tick-param-tick)) | [map.action.Continuous](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/map.action.Continuous.md) | Performs a single step of the map movement.||
|#

## Methods details {#method_detail}

### isActive {#isActive}

```javascript
{Boolean} isActive()
```

Checks whether map movement is being performed at this moment.

**Returns** true if the movement is currently being performed by the map, otherwise false.

### tick {#tick}

```javascript
{map.action.Continuous} tick(tick)
```

Performs a single step of the map movement.

**Returns** self-reference.

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`tick`](#tick-param-tick)[*](*star) | — | Type: Object

Movement parameters. ||
|| [`tick.duration`](#tick-param-tick.duration) | 0 | Type: Number

Duration of making the move, in milliseconds. ||
|| [`tick.globalPixelCenter`](#tick-param-tick.globalPixelCenter) | — | Type: Number[]

The new map center in global pixels. One of the parameters must be set: either pixelOffset, or globalPixelCenter. ||
|| [`tick.pixelOffset`](#tick-param-tick.pixelOffset) | — | Type: Number[]

The offset in pixels relative to the previous center. One of the parameters must be set: either pixelOffset, or globalPixelCenter. ||
|| [`tick.timingFunction`](#tick-param-tick.timingFunction) | 'linear' | Type: String

Timing function. ||
|| [`tick.zoom`](#tick-param-tick.zoom) | — | Type: Number

The new map zoom. If omitted, the map zoom does not change. ||
|#

\* Mandatory parameter/option.

[*star]: Mandatory parameter/option.