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
I was hit with the same problem and @Tomik's answer helped me resolving it. Here is the snippets of the code I used.
To save the previous zoom and center.
const lastMapZoom = this.map.getZoom();
const lastMapCenter = this.map.getCenter();
To set the values back.
this.map.setCenter(lastMapZoom);
this.map.setZoom(lastMapCenter);