rotate
Options for camera rotation.
If true
, enable rotation via mouse/touch/keyboard with the default options (default)
If false
, disable rotation control. If gyro: true
, rotation through gyro is still possible.
In addition to the boolean value, detailed options can be specified through objects of type RotateControlOptions.
Example
Here's an example of disabling rotation.
- JSON
- Javascript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
rotate: 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 disabling the pitch (X-axis rotation).
Refer to the sub-items on the left sidebar for detailed options and related descriptions.
- JSON
- Javascript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
rotate: {
disablePitch: true
},
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}