Change the default background layer according to the topic
No need to call setCurrentLayer

setting scope.currentLayer is sufficient, setCurrentLayer is already
called in the $watch callback.
Remove layerId param from setCurrentLayer function

And only use the value from the scope (scope.currentLayer)