Automatic map centering in viewport and size by window height