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

# control.storage

Static object.

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

Storage for map controls. Defines control keys with their constructors.

By default, the following controls are added to the storage:

- "rulerControl" - Ruler and scale line [control.RulerControl](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.RulerControl.md).
- "searchControl" - Search box [control.SearchControl](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.SearchControl.md).
- "trafficControl" - Traffic panel [control.TrafficControl](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.TrafficControl.md).
- "typeSelector" - Panel for selecting the map type [control.TypeSelector](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.TypeSelector.md).
- "zoomControl" - Zoom slider [control.ZoomControl](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.ZoomControl.md).
- "geolocationControl" - Geolocation control [control.GeolocationControl](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.GeolocationControl.md).
- "routeEditor" - Route editor [control.RouteEditor](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.RouteEditor.md).
- "fullscreenControl" - Control for full-screen mode [control.FullscreenControl](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.FullscreenControl.md).
- "routeButtonControl" - Button with route panel popup [control.RouteButton](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.RouteButton.md).
- "routePanelControl" - The Route Panel control [control.RoutePanel](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/control.RoutePanel.md).

[Methods](#methods-summary)

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [add](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#add)([key](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#add-param-key), [object](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#add-param-object)) | [util.Storage](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md)
| Adds an object to storage. ||
|| [get](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#get)([key](https://yandex.ru/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.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#remove)([key](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md#remove-param-key)) | [util.Storage](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.Storage.md)
| Deletes the "key: value" pair from storage. ||
|#

