Merges the map.