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

# pane.MovablePane

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

Movable map panes.

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

## Constructor {#constructor-summary}

```javascript
pane.MovablePane(map, params)
```

**Parameters:**

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

Map. ||
|| [`params`](#param-params)[*](*star) | — | Type: Object

Parameters. ||
|| [`params.css`](#param-params.css) | — | Type: Object

CSS styles of the DOM element of the pane. ||
|| [`params.margin`](#param-params.margin) | 0 | Type: Number

Extra padding around the edges of the map container, extending the viewport of the pane. ||
|| [`params.overflow`](#param-params.overflow) | "hidden" | Type: String

This parameter defines visibility of the pane contents when going outside of the map container. This parameter can take one of the following string values: 
- "visible" - When you go off the map container, the content of the pane remains visible.
- "hidden" - The viewport for the pane content is limited by the map container.
. ||
|| [`params.zIndex`](#param-params.zIndex) | 0 | Type: Number

The zIndex of the pane. ||
|#

\* Mandatory parameter/option.

## 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** ||
|| [actionbegin](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IContainerPane.md#event-actionbegin) | The start of pane movement. Instance of [IEvent](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEvent.md).

Inherited from [IContainerPane](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IContainerPane.md#event-actionbegin). ||
|| [actionend](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IContainerPane.md#event-actionend) | The end of pane movement. Instance of [IEvent](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEvent.md).

Inherited from [IContainerPane](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IContainerPane.md#event-actionend). ||
|| [clientpixelschange](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IContainerPane.md#event-clientpixelschange) | Change to the pane's local coordinate system. This event means that objects that calculate their positions inside the pane from the map's global pixel coordinates must recalculate it and update their positions inside the pane's DOM element. Instance of [IEvent](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEvent.md).

Inherited from [IContainerPane](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IContainerPane.md#event-clientpixelschange). ||
|| [overflowchange](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#event-overflowchange) | Change to the "overflow" parameter, which defines visibility of the pane contents when going outside of the map container. Instance of [IEvent](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEvent.md).

Inherited from [IPane](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#event-overflowchange). ||
|| [viewportchange](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IContainerPane.md#event-viewportchange) | Change to a pane's viewport. Instance of [IEvent](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEvent.md).

Inherited from [IContainerPane](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IContainerPane.md#event-viewportchange). ||
|| [zindexchange](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#event-zindexchange) | Change to the zIndex value of a pane. Instance of [IEvent](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEvent.md).

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

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [destroy](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#destroy)() | | Destroys the pane.

Inherited from [IPane](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#destroy). ||
|| [fromClientPixels](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPositioningContext.md#fromClientPixels)([clientPixelPoint](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPositioningContext.md#fromClientPixels-param-clientPixelPoint)) | Number[] | Converts client pixel coordinates to global coordinates.

Inherited from [IPositioningContext](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPositioningContext.md#fromClientPixels). ||
|| [getElement](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#getElement)() | HTMLElement | Returns a reference to the pane's DOM container.

Inherited from [IPane](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#getElement). ||
|| [getMap](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#getMap)() | [Map](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/Map.md) | Returns the map that the pane belongs to.

Inherited from [IPane](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#getMap). ||
|| [getOverflow](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#getOverflow)() | String | Returns value of the "overflow" parameter, which defines visibility of the pane contents when going outside of the map container. This parameter can take one of the following string values: 
- "visible" - When you go off the map container, the content of the pane remains visible.
- "hidden" - The viewport for the pane content is limited by the map container.

Inherited from [IPane](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#getOverflow). ||
|| [getViewport](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IContainerPane.md#getViewport)() | Number[][] | Returns the viewport for the pane, in client coordinates.

Inherited from [IContainerPane](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IContainerPane.md#getViewport). ||
|| [getZIndex](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#getZIndex)() | Number | Returns the zIndex of the pane.

Inherited from [IPane](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPane.md#getZIndex). ||
|| [getZoom](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPositioningContext.md#getZoom)() | Number | Returns the current zoom level at which the positioning context works.

Inherited from [IPositioningContext](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPositioningContext.md#getZoom). ||
|| [toClientPixels](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPositioningContext.md#toClientPixels)([globalPixelPoint](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPositioningContext.md#toClientPixels-param-globalPixelPoint)) | Number[] | Converts global pixel coordinates to client coordinates.

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


[*star]: Mandatory parameter/option.