This commit is contained in:
=
2020-09-28 10:24:29 +02:00
parent 39f5be6d9c
commit a382a313e2
@@ -129,12 +129,20 @@ export default class Warmers extends Vue {
}
zoomOut() {
this.zoomController?.zoomOut();
var result = this.zoomController?.getZoom();
if (result > 1.01)
this.zoomController?.zoomOut();
}
zoomReset() {
this.zoomController?.center();
this.zoomController?.fit();
this.$nextTick(() => this.zoomController?.zoom(1));
// // this.zoomController?.fit();
// // this.zoomController?.resetPan();
// this.zoomController?.resetZoom();
}
async mounted() {