I have a sidebar that expands / collapses on hover. When I click to go to the page the map draws only on the available canvas space, but then as I hover away from the sidebar the map does not redraw.
It seems the map only resizes on window.resize - how could I resize the map based on the page elements resizing?
I've been working with similar stuff, but with four charts so I found that you can use window.dispatchEvent(new Event('resize')); to trigger the event manually.
I have a sidebar that expands / collapses on hover. When I click to go to the page the map draws only on the available canvas space, but then as I hover away from the sidebar the map does not redraw.
It seems the map only resizes on
window.resize
- how could I resize the map based on the page elements resizing?App.vue
Map.vue