# HG changeset patch # User Bernhard Reiter # Date 1550572725 -3600 # Node ID 7bbf9ccda701dda26ed219d05b737c77ded59ec3 # Parent edaf0d22fc9c9f0b78a6a16755c5e5f129453425 client: fix resetting of zoom level after pdf-gen * Applying the upstream fix for resetting the zoom level after a pdf-generation. diff -r edaf0d22fc9c -r 7bbf9ccda701 client/src/components/Pdftool.vue --- a/client/src/components/Pdftool.vue Tue Feb 19 11:20:23 2019 +0100 +++ b/client/src/components/Pdftool.vue Tue Feb 19 11:38:45 2019 +0100 @@ -377,7 +377,12 @@ // reset to original size map.setSize(this.mapSize); - map.getView().fit(this.mapExtent, { size: this.mapSize }); + map.getView().fit(this.mapExtent, { + size: this.mapSize, + // necessary to get to the previous zoom level in all cases + // details see https://github.com/openlayers/openlayers/issues/9235 + constrainResolution: false + }); // as we are done: re-enable button this.readyToGenerate = true;