Add filter.SetMap to generate generic mapping functions