I\'ve run into a problem where calling map.fitBounds seems to zoom out. I\'m trying to use the backbone.js router to save the map bounds in the url. I want to be able to boo
For people seeing this question in 2018, Google Maps API v3 now supports a second padding
argument that specifies the amount of padding to include around the bounds you specify.
To avoid zooming out, simply just call fitBounds
with a padding of 0
. For this example it would be map.fitBounds(map.getBounds(), 0)