Leaflet js: invalidateSize when delaying initial load
I’m using Leaflet.js inside an HTMX component (it’s only loaded after the view is switched to ‘map’) so I need to delay the loading of the map. Without this, the map doesn’t load at all.
I’m using Leaflet.js inside an HTMX component (it’s only loaded after the view is switched to ‘map’) so I need to delay the loading of the map. Without this, the map doesn’t load at all.