Skip to main content

PanoControlOptions

Since version 4.0.0

Options for PanoControl

interface PanoControlOptions

Properties

Disable context menu which pops up on mouse right click.

Options for GyroControl.
false to disable gyroscope control.

Options for RotateControl.
false to disable rotation.

If true, enables scroll on mobile(touch) devices on canvas.

caution

When this option is enabled, users must swipe horizontally first then vertically to change view up or down.

Apply CSS cursor by current state of input when using mouse.
If true, this will add CSS style to canvas element. It'll apply cursor: "grab" by default and cursor: "grabbing" when holding the mouse button.

If true, enables scroll by mouse wheel on canvas.

caution

When this option is enabled, zoom by mouse wheel will be disabled.

Options for ZoomControl.
false to disable zoom.

Properties

disableContextMenu

>=4.0.0
disableContextMenu

boolean

false

Disable context menu which pops up on mouse right click.

gyro

>=4.0.0
gyro

boolean | Partial<GyroControlOptions>

Options for GyroControl.
false to disable gyroscope control.

rotate

>=4.0.0
rotate

boolean | Partial<RotateControlOptions>

Options for RotateControl.
false to disable rotation.

scrollable

>=4.0.0
scrollable

boolean

true

If true, enables scroll on mobile(touch) devices on canvas.

caution

When this option is enabled, users must swipe horizontally first then vertically to change view up or down.

useGrabCursor

>=4.0.0
useGrabCursor

boolean

true

Apply CSS cursor by current state of input when using mouse.
If true, this will add CSS style to canvas element. It'll apply cursor: "grab" by default and cursor: "grabbing" when holding the mouse button.

wheelScrollable

>=4.0.0
wheelScrollable

boolean

false

If true, enables scroll by mouse wheel on canvas.

caution

When this option is enabled, zoom by mouse wheel will be disabled.

zoom

>=4.0.0
zoom

boolean | Partial<ZoomControlOptions>

Options for ZoomControl.
false to disable zoom.