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",
|
"open": "~6.4.0",
|
||||||
"parseurl": "~1.3.2",
|
"parseurl": "~1.3.2",
|
||||||
"postcss-url": "^8.0.0",
|
"postcss-url": "^8.0.0",
|
||||||
"pre-commit": "~1.2.2",
|
"pre-commit": "^1.2.2",
|
||||||
"rollup": "^1.16.2",
|
"rollup": "^1.16.2",
|
||||||
"rollup-plugin-buble": "^0.19.6",
|
"rollup-plugin-buble": "^0.19.6",
|
||||||
"rollup-plugin-commonjs": "^9.2.1",
|
"rollup-plugin-commonjs": "^9.2.1",
|
||||||
|
|
|
@ -49,7 +49,7 @@ export default class GaodeMap extends Base {
|
||||||
this.set('mapStyle', mapStyle);
|
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');
|
const map = this.get('map');
|
||||||
if (map instanceof AMap.Map) {
|
if (map instanceof AMap.Map) {
|
||||||
this.map = map;
|
this.map = map;
|
||||||
|
@ -74,7 +74,7 @@ export default class GaodeMap extends Base {
|
||||||
}
|
}
|
||||||
asyncCamera(engine) {
|
asyncCamera(engine) {
|
||||||
this._engine = engine;
|
this._engine = engine;
|
||||||
this.updateCamera();
|
this.updateCamera();
|
||||||
this.map.on('camerachange', this.updateCamera.bind(this));
|
this.map.on('camerachange', this.updateCamera.bind(this));
|
||||||
}
|
}
|
||||||
updateCamera() {
|
updateCamera() {
|
||||||
|
@ -178,7 +178,7 @@ export default class GaodeMap extends Base {
|
||||||
return map.setFeature(features);
|
return map.setFeature(features);
|
||||||
};
|
};
|
||||||
scene.setBounds = extent => {
|
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 => {
|
scene.setRotation = rotation => {
|
||||||
return map.setRotation(rotation);
|
return map.setRotation(rotation);
|
||||||
|
|
Loading…
Reference in New Issue