Restore Min Zoom after Edit

This commit is contained in:
portree_kid 2020-08-02 21:36:37 +02:00
parent 0172b49450
commit 00132e46fb

View File

@ -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)