Configuration properties in addition to those listed for Ext.util.Observable.
Function A function, called in the scope of this loader, with a layer record as argument. Is expected to return true for layers to be loaded, false otherwise. By default, the filter checks for displayInLayerSwitcher:
filter: function(record) {
return record.get("layer").displayInLayerSwitcher == true
}