kalisio / kano

Map and weather forecast data explorer in 2D/3D
https://kalisio.github.io/kano/
MIT License
24 stars 7 forks source link

When switching between 2D/3D mode the view is not correctly restored #69

Closed claustres closed 4 years ago

claustres commented 5 years ago

Although it is impossible to restore the same view when the camera does not point downwards in globe, the view seems to be narrowed when jumping from 3D to 2D, not the other way around.

claustres commented 4 years ago

It appears that fitBounds only detects the right zoom level to ensure the bounds fit entirely in view but it does not try to exactly fit the bound to the viewport. Closing for now as we would probably have to develop our own fitting method, not sure if it is worth it...