refresh leaflet map: map container is already initialized

Try map.remove(); before you try to reload the map. This removes the previous map element using Leaflet’s library (instead of jquery’s).

Leave a Comment