Open umonkey opened 6 months ago
An alternative approach would be to add a map element to all pages, like in the App
component, then hide or show and position it correctly on each page via a map-placeholder element. Adding new elements to the map would still be problematic. We'd probably need to control the map state via store.
When entering tree preview from the home page, the map reloads, because that's actually a separate map control which has to be initialized anew. To avoid this, we might put both functions on the home page, with a parameter like "sidebar mode", and keep separate wrapper pages to extract parameters and make this friendly to the navigation history.