IBehavior
Extends IChildOnMap, ICustomizable.
Map behavior. Adds a map reaction to certain user actions (such as dragging, right-click zooming, or multitouch). The default behavior is disabled and can be enabled using the "enable" method.
Constructor | Fields | Events | Methods
Constructor
IBehavior([options])
Parameters:
Parameter |
Default value |
Description |
— |
Type: Object Behavior options. |
Fields
Name |
Type |
Description |
Event manager. Inherited from IEventEmitter. |
||
Options manager. Inherited from ICustomizable. |
Events
Name |
Description |
Disabling behaviors. |
|
Enabling behaviors. |
|
Change to the object options. Inherited from ICustomizable. |
|
The parent object reference changed. Data fields:
Inherited from IChild. |
Methods
Name |
Returns |
Description |
disable() |
Disables the behavior. |
|
enable() |
Enables the behavior. |
|
IParentOnMap|null |
Returns link to the parent object, or null if the parent element was not set. Inherited from IChildOnMap. |
|
Boolean |
Checks whether the behavior is enabled. |
|
Sets the parent object. If the null value is passed, the manager element will only be deleted from the current parent object. Inherited from IChildOnMap. |
Events details
disable
Disabling behaviors.
enable
Enabling behaviors.
Methods details
disable
{} disable()
Disables the behavior.
enable
{} enable()
Enables the behavior.
isEnabled
{Boolean} isEnabled()
Checks whether the behavior is enabled.
Returns true if the behavior is enabled, otherwise false.