Determine allowed layer constraints, optionally filtered by category.