Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces

geoObject.addon.editor

Note. The constructor of the geoObject.addon.editor class is hidden, as this class is not intended for autonomous initialization.

Static object.

The module that makes it possible to use the editor for a geo object. Adds the GeoObject#editor field to GeoObject. When enabling package.full (the standard set of modules), it is available by default. If GeoObject is enabled separately, this module must be explicitly specified in the loader. If geoObject.addon.editor is enabled separately after creating GeoObject, the GeoObject#editor field won't be added. Then you will need to use the geoObject.addon.editor#get method for the editor.

Methods

Attention! Do not create instances of the static class.

Methods

NameReturnsDescription
create(geoObject)

A function that creates the "editor" field for the passed geo object.

get(geoObject)

IGeometryEditor

Returns geo object editor.

Methods details

create

{} create(geoObject)

A function that creates the "editor" field for the passed geo object.

Parameters:

ParameterDefault valueDescription
geoObject*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: IGeoObject

Geo object.

* Mandatory parameter/option.

get

Returns geo object editor.

Parameters:

ParameterDefault valueDescription
geoObject*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: IGeoObject

Geo object

* Mandatory parameter/option.

Example:

ymaps.geoObject.addon.editor.get(geoObject)