Zoom large/small

This commit is contained in:
portree_kid 2020-03-14 08:05:37 +01:00
parent 45980c3abe
commit 84989714e5
3 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,7 @@
<template>
<div id="EditBar">
<EditButton icon="fas fa-th" v-on:click="zoomin" :show="true" tooltip="Zoomin"></EditButton>
<EditButton icon="fas fa-th-large" v-on:click="zoomout" :show="true" tooltip="Zoomout"></EditButton>
<EditButton icon="fas fa-edit" v-on:click="edit" :show="!editing" tooltip="Edit"></EditButton>
<EditButton
icon="fas fa-undo"
@ -57,6 +59,12 @@
created () {
},
methods: {
zoomout() {
this.$parent.$parent.zoomUpdated(9)
},
zoomin() {
this.$parent.$parent.zoomUpdated(14)
},
edit () {
this.editing = true
this.$parent.$parent.$refs.editLayer.enableEdit()

View File

@ -134,12 +134,14 @@
if (zoom !== this.$store.state.Settings.zoom) {
this.$store.dispatch('setZoom', zoom)
this.$refs.airportLayer.setVisible(zoom < 12)
this.$refs.pavementLayer.setVisible(zoom < 12)
}
},
async centerUpdated (center) {
if (center !== this.$store.state.Settings.center) {
this.$store.dispatch('setCenter', center)
this.$refs.airportLayer.setVisible(this.zoom < 12)
this.$refs.pavementLayer.setVisible(this.zoom < 12)
}
},
async boundsUpdated (bounds) {

View File

@ -54,6 +54,15 @@ var scanMethods = {
});
return promise;
},
111: (l, apts) => {
var promise = new Promise(function (resolve, reject) {
logger('info','Node :', l);
saveCoordinates(apts, icao, l[1], l[2]).then(result => {
resolve(result)
}).catch( err => {reject(err)});;
});
return promise;
},
99: async (l) => {
logger('info','Finished');
}