add mapOutput and renderMap functions.