Skip to main content

initialZoom

Typenumber
Default1
Added inv4.0.0

The initial zoom value.
The area shown will be enlarged by zoom * 100%.
For example, zoom: 2 magnifies the image by 200% horizontally.

Value must be within the range of zoomRange.

Example

{
initialZoom: 2,
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}
{
initialZoom: 0.3,
zoomRange: {
min: 0.3,
max: 5
},
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}