Skip to content

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

[Enhancement] expand bottom widget to full length if in read only mode(#465)

Shan Hecd8325325e0b
diff --git a/examples/demo-app/src/app.js b/examples/demo-app/src/app.js
index 65759c15d..13ca0d506 100644
--- a/examples/demo-app/src/app.js
+++ b/examples/demo-app/src/app.js
@@ -160,8 +160,8 @@ class App extends Component {
_loadSampleData() {
// this._loadTripData();
- // this._loadGeojsonData();
- this._loadIconData();
+ this._loadGeojsonData();
+ // this._loadIconData();
this._loadH3HexagonData();
}
@@ -175,7 +175,7 @@ class App extends Component {
},
data: sampleTripData
},
- option: {
+ options: {
centerMap: true,
readOnly: false
},
diff --git a/src/components/kepler-gl.js b/src/components/kepler-gl.js
index 78723cbe2..db3827b31 100644
--- a/src/components/kepler-gl.js
+++ b/src/components/kepler-gl.js
@@ -324,7 +324,7 @@ function KeplerGlFactory(
uiState={uiState}
visStateActions={visStateActions}
sidePanelWidth={
- DIMENSIONS.sidePanel.width + DIMENSIONS.sidePanel.margin.left
+ uiState.readOnly ? 0 : DIMENSIONS.sidePanel.width + DIMENSIONS.sidePanel.margin.left
}
containerW={containerW}
/>