I have the fallowing code:
map: function (events) { var arrayOfLatLngs = []; var _this = this; // setup a marker group var markers = L.markerClu
You can clear all markers withought saving it
map.eachLayer((layer) => { layer.remove(); });
from https://leafletjs.com/reference-1.0.3.html#map-event