Skip to main content

Interface: useZoomProps

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

Properties

defaultZoom

Optional defaultZoom: number

An optional default zoom level

Defined in

hooks/useZoom.ts:14


maxZoom

Optional maxZoom: number

The maximum zoom level

Defined in

hooks/useZoom.ts:18


minZoom

Optional minZoom: number

The minimum zoom level

Defined in

hooks/useZoom.ts:16


ref

ref: RefObject<HTMLDivElement>

A reference to the map component

Defined in

hooks/useZoom.ts:12


zoomStep

Optional zoomStep: number

The incremental value applied to each wheel event to the zoom level

Defined in

hooks/useZoom.ts:20