Skip to main content

Interface: useClickProps

The prop type for the [[useClick]] hook.

Properties

center

center: Coordinate

The map center.

Defined in

hooks/useClick.ts:14


delay

Optional delay: number

The time to wait in milliseconds for a double click.

Defined in

hooks/useClick.ts:18


ref

ref: RefObject<HTMLDivElement>

A reference to the map component.

Defined in

hooks/useClick.ts:12


tileSize

tileSize: Size

The size of a map tile

Defined in

hooks/useClick.ts:20


zoom

zoom: number

The current zoom level

Defined in

hooks/useClick.ts:16

Methods

onClick

Optional onClick(coordinate, point): void

The handler for a single click event.

Parameters

NameType
coordinateCoordinate
pointPoint

Returns

void

Defined in

hooks/useClick.ts:22


onDoubleClick

Optional onDoubleClick(coordinate, point): void

The handler for a multi click event

Parameters

NameType
coordinateCoordinate
pointPoint

Returns

void

Defined in

hooks/useClick.ts:24