fix(superset-ui-legacy-preset-chart-deckgl): fix download map as image (#25)

* fix(superset-ui-legacy-preset-chart-deckgl): fix download map as image

* fix(superset-ui-legacy-preset-chart-deckgl): lint fix
This commit is contained in:
Kamil Gabryjelski 2021-02-20 09:13:45 +01:00 committed by Yongjie Zhao
parent e105a37cd2
commit 18d0c48333

View File

@ -113,9 +113,11 @@ class DeckGLContainer extends React.Component {
height={adjustedHeight} height={adjustedHeight}
layers={layers} layers={layers}
viewState={viewState} viewState={viewState}
glOptions={{ preserveDrawingBuffer: true }}
onViewStateChange={this.onViewStateChange} onViewStateChange={this.onViewStateChange}
> >
<StaticMap <StaticMap
preserveDrawingBuffer
mapStyle={this.props.mapStyle} mapStyle={this.props.mapStyle}
mapboxApiAccessToken={this.props.mapboxApiAccessToken} mapboxApiAccessToken={this.props.mapboxApiAccessToken}
/> />