implemented layered map