From 1c0702cc7f5c9d79aeef26969e3c9fbd49811b51 Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Mon, 2 Sep 2019 16:27:10 +0800 Subject: [PATCH] test --- package.json | 2 +- src/map/AMap.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d826e2a0d0..193c47b3bf 100755 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "open": "~6.4.0", "parseurl": "~1.3.2", "postcss-url": "^8.0.0", - "pre-commit": "~1.2.2", + "pre-commit": "^1.2.2", "rollup": "^1.16.2", "rollup-plugin-buble": "^0.19.6", "rollup-plugin-commonjs": "^9.2.1", diff --git a/src/map/AMap.js b/src/map/AMap.js index db350a4b7f..9d340c5cf9 100644 --- a/src/map/AMap.js +++ b/src/map/AMap.js @@ -49,7 +49,7 @@ export default class GaodeMap extends Base { this.set('mapStyle', mapStyle); } } - this.set('zooms', [ this.get('minZoom'), this.get('maxZoom')]); + this.set('zooms', [ this.get('minZoom'), this.get('maxZoom') ]); const map = this.get('map'); if (map instanceof AMap.Map) { this.map = map; @@ -74,7 +74,7 @@ export default class GaodeMap extends Base { } asyncCamera(engine) { this._engine = engine; - this.updateCamera(); + this.updateCamera(); this.map.on('camerachange', this.updateCamera.bind(this)); } updateCamera() { @@ -178,7 +178,7 @@ export default class GaodeMap extends Base { return map.setFeature(features); }; scene.setBounds = extent => { - return map.setBounds(new AMap.Bounds([extent[0], extent[1]], [extent[2], extent[3]])); + return map.setBounds(new AMap.Bounds([ extent[0], extent[1] ], [ extent[2], extent[3] ])); }; scene.setRotation = rotation => { return map.setRotation(rotation);