So I'm working on a map using leaflet and I want to use custom check boxes, not the default controls. I'm returning the correct json information when I check the boxes. I'm just not sure how to swap out the json reference and trigger marker refresh. Any thoughts would be welcome. The project can be seen here: https://codepen.io/sharperwebdev/pen/PQvMqR?editors=1010
Basically what I'm asking is how do I swap out the original geoJSON for a reduced version on an external (outwith the map) click event.