Skip to content

Commit

Permalink
fix: colorScaleImage not working #13
Browse files Browse the repository at this point in the history
  • Loading branch information
hongfaqiu committed Jun 21, 2023
1 parent 4f4481e commit 99812c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/TIFFImageryProvider/src/TIFFImageryProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,13 @@ export class TIFFImageryProvider {
})
this.plot.setNoDataValue(this.noData);

const { expression, colors } = single;
const { expression, colors, colorScaleImage } = single;
this.plot.setExpression(expression);
if (colors) {
const colorScale = generateColorScale(colors)
addColorScale('temp', colorScale.colors, colorScale.positions);
this.plot.setColorScale('temp' as any);
} else {
} else if (!colorScaleImage) {
this.plot.setColorScale(single?.colorScale ?? 'blackwhite');
}
}
Expand Down

0 comments on commit 99812c8

Please sign in to comment.