I am using Leaflet library and stuck with following issue: To generate Map i am calling map function on button click. So on each generatemap function call, I want to clear
You can use this
$(".leaflet-marker-icon").remove(); $(".leaflet-popup").remove();