change map height based on view type