Skip to content

Commit

Permalink
feat(frontend): specify opacity from datatype
Browse files Browse the repository at this point in the history
Specify DataLayer opacity from the corresponding DataType instead of
hard-coding it.
  • Loading branch information
allynt committed Jul 6, 2023
1 parent b44d435 commit 60073a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/DataLayer/DataLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const DataLayer = ({
const layers = [
new TiledRasterLayer({
data,
opacity: 0.5,
opacity: currentLayer?.opacity,
}),
];

Expand Down
1 change: 1 addition & 0 deletions src/pages/DataLayer/OnDemandDataLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const OnDemandDataLayer = ({
layers.push(
new TiledRasterLayer({
data,
opacity: currentLayer?.opacity,
}),
);
layers.push(tempLayerData);
Expand Down

0 comments on commit 60073a6

Please sign in to comment.