Added getMap(mapId) function