I have some cloud-optimized geotiffs (COGs) with elevation data that I'd like to display using the pre-defined color ramps (for instance, "Blue and Brown 1") and using custom min/max values set by the user.
Unfortunately, this type of functionality seems to be completely undocumented---or, where it is documented, the documentation no longer applies. I was able to find a forum post where they did roughly what I want to do, but that no longer works with the Javascript API v4.32.
In my mind, this should be a relatively simple task:
const renderer = new RasterStretchRenderer({
colorRampName: "Blue and Brown 1",
type: "min-max",
min: 123,
max: 456,
layer: myLayer
});
So what's the obvious solution that I'm missing, which isn't pointed out in the ImageryTileLayer documentation?