update height of map