behavior.LeftMouseButtonMagnifier

Extends IBehavior.

The "zooming the map when selecting an area with the left mouse button" behavior.

Constructor | Fields | Events | Methods

Constructor

behavior.LeftMouseButtonMagnifier([options])

Creates the "zooming the map when selecting an area with the left mouse button" behavior.

Parameters:

Parameter

Default value

Description

options

Type: Object

Options.

options.actionCursor

'crosshair'

Type: String

The cursor when selecting the area to magnify with the enabled behavior behavior.LeftMouseButtonMagnifier. The list of all available cursors is provided in the cursors manager.

options.cursor

'zoom'

Type: String

The cursor for the enabled behavior behavior.LeftMouseButtonMagnifier. The list of all available cursors is provided in the cursors manager.

options.duration

300

Type: Number

The duration of magnification animation when using the behavior behavior.LeftMouseButtonMagnifier, in ms.

Fields

Name

Type

Description

events

IEventManager

Event manager.

Inherited from IEventEmitter.

options

IOptionManager

Options manager.

Inherited from ICustomizable.

Events

Name

Description

disable

Disabling behaviors.

Inherited from IBehavior.

enable

Enabling behaviors.

Inherited from IBehavior.

optionschange

Change to the object options.

Inherited from ICustomizable.

parentchange

The parent object reference changed.

Data fields:

  • oldParent - Old parent.
  • newParent - New parent.

Inherited from IChild.

Methods

Name

Returns

Description

disable()

Disables the behavior.

Inherited from IBehavior.

enable()

Enables the behavior.

Inherited from IBehavior.

getParent()

IParentOnMap|null

Returns link to the parent object, or null if the parent element was not set.

Inherited from IChildOnMap.

isEnabled()

Boolean

Checks whether the behavior is enabled.

Inherited from IBehavior.

setParent(parent)

IChildOnMap

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.