3D mode remains enabled on other map
Only in mapstore dev, when a map in 3D mode is closed, the mode 3D is active when another map or a new map is opened.
How to Reproduce
- Open a map
- Enable the 3D mode
- Go back to the homepage
- Open a map or a new one
Expected Result The 3D mode is not enable
Current Result The 3D mode is enable
@allyoucanmap can you please do a quick check to understand the reason of this regression and report back?
@tdipisa the map viewer is currently looking for some query parameters: heading, pitch and roll to switch the map to cesium (this is used mainly for share and embed pages) If we follow the steps described in the issue we will see that cesiumViewerOptions is true if the previous map type was cesium even if the query parameters of the url are empty. I think we need to review how the getCesiumViewerOptions works.
Thank you so much @allyoucanmap for the rapid check. That's really appreciated.