Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces

behavior.DblClickZoom

Extends IBehavior.

The "zooming the map with double-click" behavior.

Constructor | Fields | Events | Methods

Constructor

behavior.DblClickZoom([options])

Parameters:

ParameterDefault valueDescription
options

Type: Object

Options.

options.centering true

Type: Boolean

If true, the map is zoomed on double-click so that the point under the mouse cursor becomes the map center; if false, the point under the mouse cursor stays in the same position when zooming on double-click.

options.duration 200

Type: Number

Duration of animation for zooming on double-click (0 - no animation).

options.useMapMargin true

Type: Boolean

When centering, whether to consider margins that were calculated in the margins manager map.margin.Manager.

Fields

NameTypeDescription
eventsIEventManager

Event manager.

Inherited from IEventEmitter.

optionsIOptionManager

Options manager.

Inherited from ICustomizable.

Events

NameDescription
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

NameReturnsDescription
disable()

Disables the behavior.

Inherited from IBehavior.

enable()

Enables the behavior.

Inherited from IBehavior.

getParent()

IControlParent|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.