Function changeLayerOpacity

change the opacity of a layer. layerId is the id of the layer. Opacity is a number between 0 and 1.