Moved all getter methods in map.js to the same place