</code></pre><p><a href="https://www.mapbox.com/mapbox.js/example/v1.0.0/multiple-marker-filters/">See a live example of .setFilter</a></p>
<p><em>Returns</em> the featureLayer object.</p>
<h3 id="section-featurelayer-getfilter">featureLayer.getFilter()</h3>
<p>Gets the filter function for this data layer.</p>
<p><em>Example</em>:</p>
<pre><code>var featureLayer = L.mapbox.featureLayer(geojson)
    // hide all markers
    .setFilter(function() { return false; })
    .addTo(map);

// get the filter function
