Remove constrainResolution property in fit options

This commit is contained in:
Frederic Junod
2019-04-23 10:19:21 +02:00
parent 93c25d4f82
commit 2f6f110fa3

View File

@@ -75,8 +75,7 @@ exportButton.addEventListener('click', function() {
// Reset original map size
map.setSize(size);
map.getView().fit(extent, {
size: size,
constrainResolution: false
size: size
});
exportButton.disabled = false;
document.body.style.cursor = 'auto';