I am plotting the lines from geojson file on a leaflet map. Now I need to read the fetaures back which exist within the map bounds based on current view.
I cam across this link: https://github.com/stefanocudini/leaflet-list-markers/blob/master/src/leaflet-list-markers.js which basically checks if the markers exist within the bounds using layer.getLatLng() function. Tried using this but it throws "method does not exist" in my case.
Is there anyway to check if the line feature exists within map bounds after they have been added on the map.