Mercurial > gemma
changeset 4422:562f9da8ba0b
map: restore zoom to extent functionality
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 18 Sep 2019 15:33:43 +0200 |
parents | b4f04f9076b2 |
children | f42c6efd76fe |
files | client/src/components/map/Map.vue |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/map/Map.vue Wed Sep 18 15:25:42 2019 +0200 +++ b/client/src/components/map/Map.vue Wed Sep 18 15:33:43 2019 +0200 @@ -194,6 +194,7 @@ } }) .then(response => { + this.mountMap(); this.$store.dispatch("map/moveToBoundingBox", { boundingBox: [ response.data.extent.x1, @@ -207,14 +208,12 @@ }); }) .catch(error => { + this.mountMap(); const { status, data } = error.response; displayError({ title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); - }) - .finally(() => { - this.mountMap(); }); } else { this.mountMap();