Should be function argument, filter should contain only contain customization about polygon flags and areas.