This commit is contained in:
thinkinggis 2019-09-02 16:27:10 +08:00
parent 3cebf3b416
commit 1c0702cc7f
2 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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;
@ -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);