Skip to main content

zoom

Typeboolean | ZoomControlOptions
Defaulttrue
Added inv4.0.0

Options for camera zoom.

If true, enable zoom control with the default options.
If false, disable zoom control.

In addition to the boolean value, detailed options can be specified through objects of type ZoomControlOptions.

Example

Here's an example of disabling zoom.

{
zoom: false,
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}

For detailed options, you can specify the object as shown below.
Below is an example of changing the scale of the zoom
Refer to the sub-items on the left sidebar for detailed options and related descriptions.

{
zoom: {
scale: 2
},
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}