vasturiano / react-globe.gl

React component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/react-globe.gl/example/world-population/
MIT License
904 stars 156 forks source link

Make it possible to change camera pitch #169

Open mcdc64 opened 8 months ago

mcdc64 commented 8 months ago

Currently the camera is always centered on the centre of the globe, and clicking and dragging rotates the globe around that. This means the camera is always looking directly down at the globe.

I'd like to be able to change the camera's pitch - the angle that the camera makes with the ground. This is because I want to be able to look at paths from the side, as well as from directly above them.

Mapbox does this, e.g. in the example here. Right-clicking and dragging allows you to change the pitch and view the scene from different angles.