Interface: useClickProps
The prop type for the [[useClick
]] hook.
Properties
center
• center: Coordinate
The map center.
Defined in
delay
• Optional
delay: number
The time to wait in milliseconds for a double click.
Defined in
ref
• ref: RefObject
<HTMLDivElement
>
A reference to the map component.
Defined in
tileSize
• tileSize: Size
The size of a map tile
Defined in
zoom
• zoom: number
The current zoom level
Defined in
Methods
onClick
▸ Optional
onClick(coordinate
, point
): void
The handler for a single click event.
Parameters
Name | Type |
---|---|
coordinate | Coordinate |
point | Point |
Returns
void
Defined in
onDoubleClick
▸ Optional
onDoubleClick(coordinate
, point
): void
The handler for a multi click event
Parameters
Name | Type |
---|---|
coordinate | Coordinate |
point | Point |
Returns
void