setLayerView sets view to a layer independently. Fixes #30