fixed the size of the map to be in the boundary box