Zoom large/small
This commit is contained in:
parent
45980c3abe
commit
84989714e5
@ -1,5 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="EditBar">
|
<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-edit" v-on:click="edit" :show="!editing" tooltip="Edit"></EditButton>
|
||||||
<EditButton
|
<EditButton
|
||||||
icon="fas fa-undo"
|
icon="fas fa-undo"
|
||||||
@ -57,6 +59,12 @@
|
|||||||
created () {
|
created () {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
zoomout() {
|
||||||
|
this.$parent.$parent.zoomUpdated(9)
|
||||||
|
},
|
||||||
|
zoomin() {
|
||||||
|
this.$parent.$parent.zoomUpdated(14)
|
||||||
|
},
|
||||||
edit () {
|
edit () {
|
||||||
this.editing = true
|
this.editing = true
|
||||||
this.$parent.$parent.$refs.editLayer.enableEdit()
|
this.$parent.$parent.$refs.editLayer.enableEdit()
|
||||||
|
@ -134,12 +134,14 @@
|
|||||||
if (zoom !== this.$store.state.Settings.zoom) {
|
if (zoom !== this.$store.state.Settings.zoom) {
|
||||||
this.$store.dispatch('setZoom', zoom)
|
this.$store.dispatch('setZoom', zoom)
|
||||||
this.$refs.airportLayer.setVisible(zoom < 12)
|
this.$refs.airportLayer.setVisible(zoom < 12)
|
||||||
|
this.$refs.pavementLayer.setVisible(zoom < 12)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async centerUpdated (center) {
|
async centerUpdated (center) {
|
||||||
if (center !== this.$store.state.Settings.center) {
|
if (center !== this.$store.state.Settings.center) {
|
||||||
this.$store.dispatch('setCenter', center)
|
this.$store.dispatch('setCenter', center)
|
||||||
this.$refs.airportLayer.setVisible(this.zoom < 12)
|
this.$refs.airportLayer.setVisible(this.zoom < 12)
|
||||||
|
this.$refs.pavementLayer.setVisible(this.zoom < 12)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async boundsUpdated (bounds) {
|
async boundsUpdated (bounds) {
|
||||||
|
@ -54,6 +54,15 @@ var scanMethods = {
|
|||||||
});
|
});
|
||||||
return promise;
|
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) => {
|
99: async (l) => {
|
||||||
logger('info','Finished');
|
logger('info','Finished');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user