src/js/filter/handler/Filter.Polygon.js
function(filter) {

		// Create a poly and return it
		var poly = new L.Polygon(filter.latlngs, this.options.shapeOptions);
		return { type: 'polygon', layer: poly };

	}
function(filter) {

		// Create a poly and return it
		var poly = new L.Polygon(filter.latlngs, this.options.shapeOptions);
		return { type: 'polygon', layer: poly };

	}
Programmatic way to draw a filter rectangle (bit of a hack)