New feature - hide layer in Legend but displayed in map

* A layer can be displayed in the map but hidden in the legend tree, for example a mask
* A group, which is "group as layer" can also benefit from this feature