Updated gettter & setter of mapdata