Add of a legend visible when the mouse goes over a layer and of color selection for the layers