---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/geoObject.OverlayFactory.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/llms.txt

# geoObject.OverlayFactory

Расширяет [IOverlayFactory](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/IOverlayFactory.md), [util.Storage](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md).

Фабрика оверлеев для геообъекта.

## Конструктор {#constructor}

```javascript
geoObject.OverlayFactory()
```

## Методы {#method}

#|
|| **Имя** | **Возвращает** | **Описание** ||
|| [add](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md#add)([key](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md#add-param-key), [object](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md#add-param-object)) | [util.Storage](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md) | Добавляет объект в хранилище.

Унаследован от [util.Storage](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md#add). ||
|| [createOverlay](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/IOverlayFactory.md#createOverlay)([pixelGeometry](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/IOverlayFactory.md#createOverlay-param-pixelGeometry)[, [data](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/IOverlayFactory.md#createOverlay-param-data)[, [options](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/IOverlayFactory.md#createOverlay-param-options)]]) | [IOverlay](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/IOverlay.md) | Создает и возвращает экземпляр оверлея на основе типа пиксельной геометрии.

Унаследован от [IOverlayFactory](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/IOverlayFactory.md#createOverlay). ||
|| [get](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md#get)([key](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md#get-param-key)) | Object | Returns объект, хранящийся под указанным ключом или исходный key, в случае, если это не строка.

Унаследован от [util.Storage](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md#get). ||
|| [remove](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md#remove)([key](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md#remove-param-key)) | [util.Storage](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md) | Удаляет пару "ключ: значение" из хранилища.

Унаследован от [util.Storage](https://yandex.ru/dev/maps/archive/doc/jsapi/2-0/ru/ref/reference/util.Storage.md#remove). ||
|#