fix pan zoom
This commit is contained in:
+1
-11
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user