Add visible property to layer.