mapfileparser - fixing addlayer method