When you change the map size, it does exactly what you mentioned - it
extends the canvas. If you want the center point to be reset, you'll
need to get the map center before you resize, then resize the map and
trigger the resize event, then reset the map center to your previous
center point.
Chad Killingsworth