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

# behavior.storage

Static object.

Instance of [util.Storage](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md)

Storage for map behavior classes. A new behavior is added to the map via this storage.

By default, the following behaviors are added to the storage: 
- "drag" - Dragging the map when the left mouse button is held down, or by a single touch [behavior.Drag](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/behavior.Drag.md).
- "scrollZoom" - Changing the zoom with the mouse wheel [behavior.ScrollZoom](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/behavior.ScrollZoom.md) (only for desktop browsers).
- "dblClickZoom" - Zooming the map on a double click [behavior.DblClickZoom](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/behavior.DblClickZoom.md).
- "multiTouch" - Zooming the map with a multi touch (i.e. on a touch screen) [behavior.MultiTouch](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/behavior.MultiTouch.md) (only for mobile browsers).
- "rightMouseButtonMagnifier" - Magnifying the area that is selected using the right mouse button (for desktop browsers only), [behavior.RightMouseButtonMagnifier](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/behavior.RightMouseButtonMagnifier.md) (for desktop browsers only).
- "leftMouseButtonMagnifier" - Magnifying the area selected by the left mouse button or a single touch, [behavior.LeftMouseButtonMagnifier](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/behavior.LeftMouseButtonMagnifier.md).
- "ruler" - Measuring distance [behavior.Ruler](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/behavior.Ruler.md).
- "routeEditor" - Route editor [behavior.RouteEditor](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/behavior.RouteEditor.md).

[Methods](#methods-summary)

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [add](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#add)([key](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#add-param-key), [object](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#add-param-object)) | [util.Storage](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md)
| Adds an object to storage. ||
|| [get](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#get)([key](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#get-param-key)) | Object
| Returns object stored for the specified key, or the primary key, if this is not a string. ||
|| [remove](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#remove)([key](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#remove-param-key)) | [util.Storage](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md)
| Deletes the "key: value" pair from storage. ||
|#