Add a constructor to map.class.php