Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[fix] fix image export (#2368)
Igor Dykhta1fcdfde9d2ce
diff --git a/src/components/src/modal-container.tsx b/src/components/src/modal-container.tsxindex fa6250a8c..24f3cb3c9 100644--- a/src/components/src/modal-container.tsx+++ b/src/components/src/modal-container.tsx@@ -25,7 +25,7 @@ import get from 'lodash.get';import document from 'global/document';import ModalDialogFactory from './modals/modal-dialog';-import {exportHtml, isValidMapInfo, exportMap, exportJson} from '@kepler.gl/utils';+import {exportHtml, isValidMapInfo, exportMap, exportJson, exportImage} from '@kepler.gl/utils';import {exportData,getFileFormatNames,@@ -201,7 +201,6 @@ export default function ModalContainerFactory(_onExportImage = () => {if (!this.props.uiState.exportImage.processing) {- // @ts-ignore TODO: fix exportImage methodexportImage(this.props.uiState.exportImage, `${this.props.appName}.png`);this.props.uiStateActions.cleanupExportImage();this._closeModal();