Import
MapControls is an addon, and must be imported explicitly, see Installation#Addons.
import { MapControls } from 'three/addons/controls/MapControls.js';
Properties
.mouseButtons : Object
This object contains references to the mouse actions used by the controls.
controls.mouseButtons = {
LEFT: THREE.MOUSE.PAN,
MIDDLE: THREE.MOUSE.DOLLY,
RIGHT: THREE.MOUSE.ROTATE
}
- Overrides: OrbitControls#mouseButtons
.screenSpacePanning : boolean
Overwritten and set to false to pan orthogonal to world-space direction camera.up.
Default is false.
- Overrides: OrbitControls#screenSpacePanning
.touches : Object
This object contains references to the touch actions used by the controls.
controls.mouseButtons = {
ONE: THREE.TOUCH.PAN,
TWO: THREE.TOUCH.DOLLY_ROTATE
}
- Overrides: OrbitControls#touches