Function activateViewLayers

Activate the layers of a views's layerTree and updates the sun position.