Smarter  calc of height for map