From bc42f4c5926e26439c24d4cab354dc9ef6dbe56a Mon Sep 17 00:00:00 2001 From: stephenLYZ <750188453@qq.com> Date: Fri, 25 Feb 2022 17:12:21 +0800 Subject: [PATCH] fix(deck.gl): multiple layers map size is shrunk --- .../plugins/legacy-preset-chart-deckgl/src/Multi/Multi.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/Multi.jsx b/superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/Multi.jsx index 5af92b3a55017..e9f107ed95869 100644 --- a/superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/Multi.jsx +++ b/superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/Multi.jsx @@ -120,7 +120,7 @@ class DeckMulti extends React.PureComponent { }; render() { - const { payload, formData, setControlValue } = this.props; + const { payload, formData, setControlValue, height, width } = this.props; const { subSlicesLayers } = this.state; const layers = Object.values(subSlicesLayers); @@ -134,6 +134,8 @@ class DeckMulti extends React.PureComponent { mapStyle={formData.mapbox_style} setControlValue={setControlValue} onViewportChange={this.onViewportChange} + height={height} + width={width} /> ); }