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

# IMapState

Object descriptor of the map state. Objects with this interface are returned by the YMapsML loader service.

**See** [geoXml.load](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geoXml.load.md)

[Constructor](#constructor-summary) | [Methods](#methods-summary)

## Constructor {#constructor-summary}

```javascript
IMapState()
```

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [applyToMap](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapState.md#applyToMap)([map](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IMapState.md#applyToMap-param-map)) | [vow.Promise](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/vow.Promise.md) | Applies the state to the map that was passed.||
|#

## Methods details {#method_detail}

### applyToMap {#applyToMap}

```javascript
{vow.Promise} applyToMap(map)
```

Applies the state to the map that was passed.

**Returns** Promise object.

**Parameters:**

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

Map. ||
|#

\* Mandatory parameter/option.

[*star]: Mandatory parameter/option.