Skip to main content

scale

Typenumber
Default1
Added inv4.0.0

Scale factor of the zoom control.
If this value is set to 2, the zoom increasing and decreasing for single mouse wheel will be doubled.
Similarly for mobile, the amount of zoom that increases or decreases in the amount of increased distance between two fingers in the pinch action doubles.

Example

Below is an example of doubling the zoom scale.

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