function(t,e){
// Default the options
e=e||{suppressEvents:!1,fitBounds:!1};
// Check to see if a change is being applied
var i=null!=this._filterState?this._getGeo(this._filterState.type,this._filterState.shape):void 0;
// If there is no change, then we're just going to short circuit out of here
if(!this._toolbar.equals(i,t)){if(null!=t){
// Clear the old filter
this._clearFilter(!0);
// Ask the handler for the filter object
var o=this._toolbar.setFilter(t,e.suppressEvents);
// Create the new filter
this._createFilter(o,e.suppressEvents),e.fitBounds&&this._map.fitBounds(o.layer.getBounds())}else this._clearFilter();return this}}
function(t,e){

e=e||{suppressEvents:!1,fitBounds:!1};

var i=null!=this._filterState?this._getGeo(this._filterState.type,this._filterState.shape):void 0;

if(!this._toolbar.equals(i,t)){if(null!=t){

this._clearFilter(!0);

var o=this._toolbar.setFilter(t,e.suppressEvents);

this._createFilter(o,e.suppressEvents),e.fitBounds&&this._map.fitBounds(o.layer.getBounds())}else this._clearFilter();return this}}
function ( t , e ) { // Default the options e = e || { suppressEvents : ! 1 , fitBounds : ! 1 } ; // Check to see if a change is being applied var i = null != this . _filterState ? this . _getGeo ( this . _filterState . type , this . _filterState . shape ) : void 0 ; // If there is no change, then we're just going to short circuit out of here if ( ! this . _toolbar . equals ( i , t ) ) { if ( null != t ) { // Clear the old filter this . _clearFilter ( ! 0 ) ; // Ask the handler for the filter object var o = this . _toolbar . setFilter ( t , e . suppressEvents ) ; // Create the new filter this . _createFilter ( o , e . suppressEvents ) , e . fitBounds && this . _map . fitBounds ( o . layer . getBounds ( ) ) } else this . _clearFilter ( ) ; return this } }
Public method to programatically set the state of the filter
Public method to programatically set the state of the filter