Updating the layer switcher and positions of the scalebar