add next_first_gid into Map class