Skip to main content

Interface: ZoomButtonPops

The prop type for a [[ZoomButton]] component.

Properties​

maxZoom​

• Optional maxZoom: number

The maximum zoom level.

Defined in​

components/ZoomButton.tsx:28


minZoom​

• Optional minZoom: number

The minimum zoom level.

Defined in​

components/ZoomButton.tsx:26


point​

• Optional point: Point

The screen point where the button will be placed.

Defined in​

components/ZoomButton.tsx:24


zoomStep​

• Optional zoomStep: number

The amount by which the zoom will be changed on each click.

Defined in​

components/ZoomButton.tsx:30

Methods​

onChange​

▸ onChange(value): void

A callback with the requested zoom level.

Parameters​

NameType
valuenumber

Returns​

void

Defined in​

components/ZoomButton.tsx:32