Skip to content

DoubleClickZoomHandler

The DoubleClickZoomHandler allows the user to zoom the map at a point by double clicking or double tapping.

Methods

disable()

disable(): void

Disables the "double click to zoom" interaction.

Returns

void

Example

map.doubleClickZoom.disable();

Source

src/ui/handler/shim/dblclick_zoom.ts:42


enable()

enable(): void

Enables the "double click to zoom" interaction.

Returns

void

Example

map.doubleClickZoom.enable();

Source

src/ui/handler/shim/dblclick_zoom.ts:29


isActive()

isActive(): boolean

Returns a Boolean indicating whether the "double click to zoom" interaction is active, i.e. currently being used.

Returns

boolean

true if the "double click to zoom" interaction is active.

Source

src/ui/handler/shim/dblclick_zoom.ts:61


isEnabled()

isEnabled(): boolean

Returns a Boolean indicating whether the "double click to zoom" interaction is enabled.

Returns

boolean

true if the "double click to zoom" interaction is enabled.

Source

src/ui/handler/shim/dblclick_zoom.ts:52