fix: getImage async method (#1549)

This commit is contained in:
@thinkinggis 2022-12-21 10:51:27 +08:00 committed by GitHub
parent dd1ccb7d03
commit ef317bfb26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 () => {