Skip to content

Commit

Permalink
fix(deck.gl): multiple layers map size is shrunk (#18939)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenLYZ authored Feb 25, 2022
1 parent 0b1bc5b commit 2cb3635
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -134,6 +134,8 @@ class DeckMulti extends React.PureComponent {
mapStyle={formData.mapbox_style}
setControlValue={setControlValue}
onViewportChange={this.onViewportChange}
height={height}
width={width}
/>
);
}
Expand Down

0 comments on commit 2cb3635

Please sign in to comment.