Enable rotation around z-axis
This commit is contained in:
parent
9ea7b3290d
commit
419b58fe56
2 changed files with 3 additions and 2 deletions
|
@ -12,9 +12,9 @@ export class SceneView {
|
|||
private _dragControls: DragControls;
|
||||
private _model: Group;
|
||||
|
||||
constructor(scene: Scene, model: Group, dragControls: DragControls) {
|
||||
constructor(scene: Scene, model: Group, controls: DragControls) {
|
||||
this._scene = scene;
|
||||
this._dragControls = dragControls;
|
||||
this._dragControls = controls;
|
||||
this._model = model;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ export function buildScene(container: HTMLElement, extent: Extent) {
|
|||
);
|
||||
|
||||
camera.position.set(center.x, center.y - 125000, extent.zmax + 100000);
|
||||
camera.up.set(0, 0, 1);
|
||||
camera.lookAt(center);
|
||||
|
||||
// Initialize the renderer
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue