🐛 Bug -- Map: prevent re-render when switching routes #79
Labels
effort: 4 (high)
Much work required, may need to break out
focus: functionality
Requires script changes (TypeScript or JS), e.g. handle form submission, fetch API endpoint, etc.
focus: ui/design
Style or user-interface changes
priority: 1 (wishlist)
Some day!
type: bug
Something isn't working
Description
Not really a bug but... it's annoying that your map position and (eventually if/when we have a control for it) current symbology is lost when you leave the map page and come back.
Expected behavior
Map view should stay as-is when switching between pages.
How to reproduce the problem
Zoom and extent are back to the initial.
Related items
Jira CSR-64
Resolution
Sub-routes do not see the way to go here, but maybe in
react-router v6
.Jason idea: rm map from route. Show 24/7, but have all non-map non-modal routes in a
<Switch>
component inside a generic layout component withzIndex
higher than map.The text was updated successfully, but these errors were encountered: