Changed the way the mapmanager gets the mapid