Updates layer.visible too.
Merge pull request #30 from jenslohmann/master

Updates layer.visible too.