Skip to content

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

[Fix] Image export change resolution (#2105)

Igor Dykhta4e06992b2df3
diff --git a/src/components/src/map-container.tsx b/src/components/src/map-container.tsx
index 8a04cebaa..409d1bd92 100644
--- a/src/components/src/map-container.tsx
+++ b/src/components/src/map-container.tsx
@@ -720,6 +720,11 @@ export default function MapContainerFactory(
}
_onViewportChange = ({viewState}) => {
+ if (this.props.isExport) {
+ // Image export map shouldn't be interactive (otherwise this callback can
+ // lead to inadvertent changes to the state of the main map)
+ return;
+ }
onViewPortChange(
viewState,
this.props.mapStateActions.updateMap,