Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Feat] add kepler.gl to info.source in exported kepler.gl.json (#2195)

Shan He44aafd1504dc
diff --git a/src/utils/src/export-utils.ts b/src/utils/src/export-utils.ts
index fb9f3f4f6..aa840b932 100644
--- a/src/utils/src/export-utils.ts
+++ b/src/utils/src/export-utils.ts
@@ -185,7 +185,7 @@ export function getMapJSON(state, options = DEFAULT_EXPORT_JSON_SETTINGS) {
export function exportJson(state, options: any = {}) {
const map = getMapJSON(state, options);
-
+ map.info.source = 'kepler.gl';
const fileBlob = new Blob([exportToJsonString(map)], {type: 'application/json'});
const fileName = state.appName ? `${state.appName}.json` : DEFAULT_JSON_NAME;
downloadFile(fileBlob, fileName);