# HG changeset patch # User Thomas Junk # Date 1572264421 -3600 # Node ID a905438a7935d22279dbe6a1462759bd332f46dd # Parent 7de099c4824c5ca60463b71cffb74d8a8b339363 map: disable rotation diff -r 7de099c4824c -r a905438a7935 client/src/components/layers/LegendElement.vue --- 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" diff -r 7de099c4824c -r a905438a7935 client/src/components/map/Map.vue --- 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,