distance from lines in the map class is a work in progress