Skip to content

Commit

Permalink
fix: use defaultLayerProps
Browse files Browse the repository at this point in the history
  • Loading branch information
Polygens committed Apr 26, 2023
1 parent 6a29eba commit 933d78b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/layers/float-bitmap-layer/float-bitmap-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,15 @@ export default class FloatBitmapLayer extends Layer {

renderLayer(opts) {
const {data} = opts;
const defaultLayerProps = this.getDefaultDeckLayerProps(opts);

// override default layer props
defaultLayerProps.extensions = [];
defaultLayerProps.opacity = 1;

return [
new BitmapLayer({
id: 'binary-bitmap-layer',
...defaultLayerProps,
binaryData: data.data,
width: data.width,
height: data.height,
Expand Down

0 comments on commit 933d78b

Please sign in to comment.