Open alberto-taiuti-skydio opened 1 year ago
Any updates? 👀
According to https://github.com/mapbox/mapbox-gl-js/issues/13081 the syntax is:
map.setCamera({"camera-projection": "orthographic"})
/ map.setCamera({"camera-projection": "perspective"})
The link I saw in the documentation itself appeared broken. This blog post discussed the difference: https://blog.mapbox.com/designing-perspective-maps-in-studio-9194ce6a5f22
Motivation
It would be very useful to have an orthographic projection rather than only a perspective one available. This would allow us to present the Mapbox 3D map view, alongside some other ThreeJS content, both with an orthographic projection, and hence create some interactions that would work much better if shown while using an orthographic projection.
Design
The best option would be to offer the ability to change the projection being used like ThreeJS does: ThreeJS offers a perspective camera and an orthographic camera which you can change at runtime.