code: function(filter) {
  
  		// Create a poly and return it
  		var poly = new L.Polygon(filter.latlngs, this.options.shapeOptions);
  		return { type: 'polygon', layer: poly };
  
  	}
docs: Programmatic way to draw a filter rectangle (bit of a hack)