hides one of the layers
hides layers with no legends when the layer_selector is disabled