mirror of https://gitee.com/antv-l7/antv-l7
test
This commit is contained in:
parent
3cebf3b416
commit
1c0702cc7f
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue