When clicking on another tab, then clicking back to Map on the navigation bar, the Leaflet map is more or less created from scratch each time. This introduces a little lag.
Is there a way to hold the map reference somewhere, or another way to just hide and display the map easily when another tab is clicked on?
When clicking on another tab, then clicking back to Map on the navigation bar, the Leaflet map is more or less created from scratch each time. This introduces a little lag.
Is there a way to hold the map reference somewhere, or another way to just hide and display the map easily when another tab is clicked on?