mirror of https://gitee.com/antv-l7/antv-l7
fix: getImage async method (#1549)
This commit is contained in:
parent
dd1ccb7d03
commit
ef317bfb26
|
@ -31,7 +31,7 @@ export default class ExportImage extends ButtonControl<IExportImageControlOption
|
|||
public async getImage() {
|
||||
const mapImage = await this.mapsService.exportMap('png');
|
||||
const layerImage = await this.scene.exportPng('png');
|
||||
return await this.mergeImage(mapImage, layerImage);
|
||||
return this.mergeImage(mapImage, layerImage);
|
||||
}
|
||||
|
||||
protected onClick = async () => {
|
||||
|
|
Loading…
Reference in New Issue