Skip to content

Commit

Permalink
Issue aurora-opensource#568. Add property that allows overriding glob…
Browse files Browse the repository at this point in the history
…al deck.gl parameters
  • Loading branch information
romaxa committed Apr 6, 2023
1 parent befae13 commit 35b1ed2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/api-reference/log-viewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ The log to render - an [XVIZLoader](/docs/api-reference/xviz-loader-interface.md

A [Mapbox API access token](https://www.mapbox.com).

##### deckParameters (Object, optional)

Override default Deck.gl parameters

For more information, see
[Deck parameters object](https://deck.gl/docs/api-reference/core/deck#parameters)

##### mapStyle (Object|String, optional)

A [Mapbox style](https://www.mapbox.com/mapbox-gl-js/api/#map) to render the base map with.
Expand Down
3 changes: 3 additions & 0 deletions modules/core/src/components/log-viewer/core-3d-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default class Core3DViewer extends PureComponent {
showMap: PropTypes.bool,
showTooltip: PropTypes.bool,
mapboxApiAccessToken: PropTypes.string,
deckParameters: PropTypes.object,
mapStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
xvizStyles: PropTypes.object,
car: PropTypes.object,
Expand Down Expand Up @@ -397,6 +398,7 @@ export default class Core3DViewer extends PureComponent {
customLayers,
getTransformMatrix,
style,
deckParameters,
mapStyle,
viewMode,
viewState,
Expand Down Expand Up @@ -435,6 +437,7 @@ export default class Core3DViewer extends PureComponent {
onViewStateChange={this._onViewStateChange}
ContextProvider={MapContext.Provider}
_onMetrics={this._onMetrics}
parameters={deckParameters || {}}
>
{showMap && (
<StaticMap
Expand Down

0 comments on commit 35b1ed2

Please # to comment.