Correctly resize map when browser window is resized