add Map distance method, close #1442
simplify calculations in scale control