fix pan zoom

This commit is contained in:
=
2020-09-28 14:36:23 +02:00
parent 7d57c489d1
commit 63e7629a72
@@ -137,8 +137,8 @@ export default class Warmers extends Vue {
zoomReset() {
this.zoomController?.zoom(1);
this.zoomController?.center();
this.$nextTick(() => this.zoomController?.zoom(1));
// // this.zoomController?.fit();
// // this.zoomController?.resetPan();
@@ -153,16 +153,6 @@ export default class Warmers extends Vue {
zoomEnabled: true,
controlIconsEnabled: false,
center: true,
beforePan: function () {
var z = this.getZoom();
return z > 1;
},
beforeZoom: function (o, n) {
if (n < 1) {
return false;
}
return true;
}
});
}, 500);
}