Capítulo 311 de 859
This class is intended for transforming a camera over a map from bird's eye perspective. The class shares its implementation with OrbitControls but uses a specific preset for mouse/touch interaction and disables screen space panning by default.
false to pan orthogonal to world-space direction camera.up.import { MapControls } from 'three/addons/controls/MapControls.js';
Constructor
| Signature |
|---|
new MapControls() |
Properties
| Property | Description |
|---|---|
.mouseButtons : Object | This object contains references to the mouse actions used by the controls. |
.screenSpacePanning : boolean | Overwritten and set to false to pan orthogonal to world-space direction camera.up. |
.touches : Object | This object contains references to the touch actions used by the controls. |