Browse Source

修复bug

xushiting 2 years ago
parent
commit
cff6738242
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/graphic/Coordinate.js

+ 1 - 0
src/graphic/Coordinate.js

@@ -103,6 +103,7 @@ export default class Coordinate {
       this.width = canvas.width;
       this.height = canvas.height;
     }
+    this.zoom = defaultZoom;
     this.setCenter(canvas);
     Constant.minAdsorbPix = minAdsorbPix * this.ratio;
     console.log(