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.
Merge pull request #6 from MatthieuBarthel/master

Resize must be triggered before MapOptions are resetted