[#1058] Initialize layers to the actual layers in the map