Skip to content

Class: BoxZoomHandler

The BoxZoomHandler allows the user to zoom the map to fit within a bounding box. The bounding box is defined by clicking and holding shift while dragging the cursor.

Implements

Methods

disable

disable(): void

Disables the "box zoom" interaction.

Returns

void

Example

map.boxZoom.disable();

Implementation of

Handler.disable

Defined in

src/ui/handler/box_zoom.ts:78


enable

enable(): void

Enables the "box zoom" interaction.

Returns

void

Example

map.boxZoom.enable();

Implementation of

Handler.enable

Defined in

src/ui/handler/box_zoom.ts:65


isActive

isActive(): boolean

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

Returns

boolean

true if the "box zoom" interaction is active.

Implementation of

Handler.isActive

Defined in

src/ui/handler/box_zoom.ts:53


isEnabled

isEnabled(): boolean

Returns a Boolean indicating whether the "box zoom" interaction is enabled.

Returns

boolean

true if the "box zoom" interaction is enabled.

Implementation of

Handler.isEnabled

Defined in

src/ui/handler/box_zoom.ts:44

facebook
Tổng đài hỗ trợ
089.616.4567
facebook Chat Facebook zalo Chat Zalo