Ensure the map is resized properly initially and on resize events