title: Dynamic visibility layer markers in LeafletJS
body: <p>I am trying to render 5 sets of data on a map, one at a time, selectable by the user.</p>
  
  <p>I'm using layers to store each set and I can switch between them - works well.</p>
  
  <p>I want to be able to filter each set based on user input. I was using <code>L.layerGroup</code> but tried reformatting my data at load time to GeoJSON so I could use the built in filter feature. That only seems to work if I remove the layers and re-add each marker.</p>
  
  <p>Example here: <a href="http://jsfiddle.net/callum/5sunB/" rel="nofollow">http://jsfiddle.net/callum/5sunB/</a></p>
  
  <p>For 1000 points, on my system it takes about 200ms which is too slow.</p>
  
  <p>Is there a way to only show/hide the markers already in a layer based on a filter function?</p>
  
  <p>Thanks.</p>