Closed goord closed 1 year ago
@goord could you clarify these points?
Hi @kretep with zooming I mean the camera position when going to a new page. I am running the receipt branch locally. The problem can be observed in the soy test storyline, when I progress to the 'drivers of degradation' page, the camera remains focused on Europe (see image). When I manually set my focus to argentina and click 'reset zoom' (top right navigation button in map), the focus switches back to Europe.
I think I see where this bug comes from, working on it.
Almost fixed: in the new version the view returns to the json-defined zoom level when changing scenarios, which is undesirable. Typically a user wants to zoom into a region to observe the difference between scenarios and this resetting to the default makes that a lot harder.
I reopen the issue because the above behavior seems a side-effect of the fix.
@goord I pushed some changes to fix this (storylines branches in both repos). It now doesn't reset the zoom when switching between scenarios, as long as "zoomOnEnable": false
in the story initfile.
Indeed fixed.
Possibly due to the scenario button refactoring, zooming on the map seems to be broken. Also the home camera resets the view to an incorrect position