I am working with the Google maps api. I have a page that loads with a map and it has a button to make it bigger. The only problem is I can't seem to make it recenter. It just makes the map bigger. If I move the map around and click the button again it goes back to the center as if the map was stil small. I guess what is happening is even though the map is bigger it still thinks the center is the center of when it was smaller. How can I center it when I make it bigger?