Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Bug] mapState not applied in exported map html (#913)
Shan Heb7f7d7e9215e
diff --git a/src/templates/export-map-html.js b/src/templates/export-map-html.jsindex db9212306..1f6ecd9db 100644--- a/src/templates/export-map-html.js+++ b/src/templates/export-map-html.js@@ -248,7 +248,13 @@ export const exportMapToHTML = (options, version = KEPLER_GL_VERSION) => {config);- store.dispatch(keplerGl.addDataToMap(loadedData));+ store.dispatch(keplerGl.addDataToMap({+ datasets: loadedData.datasets,+ config: loadedData.config,+ options: {+ centerMap: false+ }+ }));}(KeplerGl, store))</script></body>