Mercurial > gemma
changeset 2325:7bbf9ccda701
client: fix resetting of zoom level after pdf-gen
* Applying the upstream fix for resetting the zoom level after
a pdf-generation.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Tue, 19 Feb 2019 11:38:45 +0100 |
parents | edaf0d22fc9c |
children | 7cf8a276a80c |
files | client/src/components/Pdftool.vue |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;