From 00132e46fb80da76ca93554ed7eb9f6cc4092ca2 Mon Sep 17 00:00:00 2001 From: portree_kid Date: Sun, 2 Aug 2020 21:36:37 +0200 Subject: [PATCH] Restore Min Zoom after Edit --- src/renderer/components/FlightgearMap.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/FlightgearMap.vue b/src/renderer/components/FlightgearMap.vue index c1c5076..44d137c 100644 --- a/src/renderer/components/FlightgearMap.vue +++ b/src/renderer/components/FlightgearMap.vue @@ -228,7 +228,11 @@ You should have received a copy of the GNU General Public License along with FG this.$refs.sidebar.setData(parkings) }, onEdit (event) { - this.$refs.map.mapObject.options.minZoom = 13 + if (this.$refs.editBar.isEditing) { + this.$refs.map.mapObject.options.minZoom = 13 + } else { + this.$refs.map.mapObject.options.minZoom = 1 + } this.$refs.editLayer.enableEdit() this.$refs.toolBar.setEdit(this.$refs.editBar.isEditing) this.$refs.sidebar.setEditing(this.$refs.editBar.isEditing)