MapStore2 icon indicating copy to clipboard operation
MapStore2 copied to clipboard

3D mode remains enabled on other map

Open ElenaGallo opened this issue 3 years ago • 3 comments

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

ElenaGallo avatar Jul 07 '22 12:07 ElenaGallo

@allyoucanmap can you please do a quick check to understand the reason of this regression and report back?

tdipisa avatar Jul 12 '22 16:07 tdipisa

@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.

allyoucanmap avatar Jul 12 '22 16:07 allyoucanmap

Thank you so much @allyoucanmap for the rapid check. That's really appreciated.

tdipisa avatar Jul 12 '22 16:07 tdipisa