Added auto center on map resize.