The weights for traits is clearly discussed in the docs but I can't find how to add weights to layers ..