I would like to populate a GeoJson layer with data and then dynamically filter what features to show.
I have gotten the filter function to work but I do not know how
See example below, you have a map and a myBus layer.
map.removeLayer(myBus); ...add your data edit something ... myBus.addTo(map);