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) {

		
		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)
Programmatic way to draw a filter rectangle ( bit of a hack )