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)