I'm trying to save the bounds of my google map as it moves in local storage so that I can reopen the app and have the map at the exact same place. However, every time the page reloads, it seems to be centered on the same point, but slightly zooms out each time.
Is there a bug that is causing this in their bounds calculations, or am I utilizing their data wrong.
Here is a JSFiddle: http://jsfiddle.net/Hu65m/
Zoom in on a location, click run again and it will reload, but being a little zoomed out.
map.fitBounds(getBounds(), {
animate: false
});
google.maps.event.addListener(map, 'idle', function() {
console.log("idle");
saveBounds(map.getBounds());
});