Fix map centering and resizing issue