Hi there,
How can I destroy a map in a div without removing the div from the DOM?
My map div container is dynamic which means the user can change the content of the div, for instance a plot chart instead of the map.
However if I remove the map and then add it to the same div, I always get a Uncaught TypeError: Cannot read property '_leaflet' of undefined on leaflet.js 6.
Cheers,
Filipe