Resize the map based on window size.