Resize must be triggered before MapOptions are resetted

It fix an issue when a map is reused with a different size, the center was calculated on the size of the map loaded previously.