diff --git a/app/three/SceneView.ts b/app/three/SceneView.ts index 12533d4..53b1a24 100644 --- a/app/three/SceneView.ts +++ b/app/three/SceneView.ts @@ -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; } diff --git a/app/three/utils/build-scene.ts b/app/three/utils/build-scene.ts index d168462..6f491de 100644 --- a/app/three/utils/build-scene.ts +++ b/app/three/utils/build-scene.ts @@ -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