Leaflet big GeoJson file Ajax filter best performance
I have four 2MB geoJson files with four Layer to load like
LayerBoon = L.geoJSON.ajax(URL, {pointToLayer:returnBoonMarker, filter:filtertext});
with a filter function and this button click function
$("#btnFindText").click(function(){
SeachTXT = $("#txtFind").val();
LayerSt.refresh();
LayerPr.refresh();
LayerHL.refresh();
LayerBoon.refresh();
})
every Layer have to re-filter by clicking the button.
when filtering, is it possible not to reload the file each time, keep it in cache and filter it again?
from Recent Questions - Stack Overflow https://ift.tt/3Hixwv2
https://ift.tt/eA8V8J
Comments
Post a Comment