Fix map height and add distance calculation