I am managing four 2MB geoJson files with four different Layers that need to be loaded. Each layer is loaded using the following code:
LayerBoon = L.geoJSON.ajax(URL, {pointToLayer:returnBoonMarker, filter:filtertext});
There is also a button click function that triggers the refresh of all layers:
$("#btnFindText").click(function(){
SeachTXT = $("#txtFind").val();
LayerSt.refresh();
LayerPr.refresh();
LayerHL.refresh();
LayerBoon.refresh();
})
Every time the button is clicked, all layers need to be re-filtered. Is there a way to keep the files in cache and just filter them again without reloading?