VCityTeam / UD-Viz

UD-Viz is a javascript mono repository for creating web applications for visualizing and interacting with geospatial 3D urban data.
Other
35 stars 18 forks source link

Move camera using keyboard #367

Open agrignard opened 2 years ago

agrignard commented 2 years ago

Like in google maps it would be great to be able to navigate in the world using the keyboard (arrow to move, ctrl to orbit etc)

mathieuLivebardon commented 1 year ago

Currently, the camera is managed the PlanarController of iTowns if we want to modify his behavior it must be done in iTowns.

valentinMachado commented 1 year ago

We could use the THREE.OrbitControl which already implements an orbit control, we should just have to implement an "ArrowControl" that could be in THREEUtil since there is no itowns dependency to move the camera (unless we decide to integrate the refresh call view.notifyChange() inside the control). It's could also be nice to create an UI with it to create directly a widget, in that case this should be solve after https://github.com/VCityTeam/UD-Viz/issues/512