Mercurial > gemma
changeset 4806:a905438a7935
map: disable rotation
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 28 Oct 2019 13:07:01 +0100 |
parents | 7de099c4824c |
children | 7cd40008124b |
files | client/src/components/layers/LegendElement.vue client/src/components/map/Map.vue |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/layers/LegendElement.vue Mon Oct 28 12:24:35 2019 +0100 +++ b/client/src/components/layers/LegendElement.vue Mon Oct 28 13:07:01 2019 +0100 @@ -150,6 +150,7 @@ controls: [], interactions: [], view: new View({ + enableRotation: false, center: [0, 0], zoom: 3, projection: "EPSG:4326"
--- a/client/src/components/map/Map.vue Mon Oct 28 12:24:35 2019 +0100 +++ b/client/src/components/map/Map.vue Mon Oct 28 13:07:01 2019 +0100 @@ -104,6 +104,7 @@ } else { this.map.setView( new View({ + enableRotation: false, center: [this.extent.lon, this.extent.lat], minZoom: 5, // restrict zooming out to ~size of Europe for width 1000px zoom: this.extent.zoom, @@ -229,6 +230,7 @@ this.$store.commit( "map/syncedView", new View({ + enableRotation: false, center: [this.extent.lon, this.extent.lat], minZoom: 5, // restrict zooming out to ~size of Europe for width 1000px zoom: this.extent.zoom,