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

# IMapObjectCollection

Extends [ICollection](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md), [ICustomizable](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICustomizable.md), [IParentOnMap](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IParentOnMap.md).

Collection of objects on the map.

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

## Constructor {#constructor-summary}

```javascript
IMapObjectCollection()
```

## Fields {#properties-summary}

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

Inherited from [IEventEmitter](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventEmitter.md#events). ||
|| [options](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICustomizable.md#options) | [IOptionManager](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IOptionManager.md) | Options manager.

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

## Events {#events-summary}

#|
|| **Name** | **Description** ||
|| [add](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md#event-add) | A child object was added.

Inherited from [ICollection](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md#event-add). ||
|| [mapchange](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IParentOnMap.md#event-mapchange) | Map reference changed. Data fields: 
- oldMap - Old map.
- newMap - New map.

Inherited from [IParentOnMap](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IParentOnMap.md#event-mapchange). ||
|| [optionschange](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICustomizable.md#event-optionschange) | Change to the object options.

Inherited from [ICustomizable](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICustomizable.md#event-optionschange). ||
|| [remove](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md#event-remove) | A child object was deleted.

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

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [add](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md#add)([object](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md#add-param-object)) | [ICollection](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md) | Adds a child object to the collection.

Inherited from [ICollection](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md#add). ||
|| [getIterator](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md#getIterator)() | [IIterator](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IIterator.md) | Returns iterator for the collection.

Inherited from [ICollection](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md#getIterator). ||
|| [getMap](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IParentOnMap.md#getMap)() | [Map](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/Map.md) | Returns reference to the map.

Inherited from [IParentOnMap](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IParentOnMap.md#getMap). ||
|| [remove](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md#remove)([object](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md#remove-param-object)) | [ICollection](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICollection.md) | Removes a child object from the collection.

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