We set up AnimatedFlowRender with 4.22 and had no issues setting the raster-stretch type renderer's ColorRamp property using ImageryLayer layers. It seems that ImageryLayer in 4.23 does not apply the ColorRamp property for the RasterStretchRenderer to an ImageryLayer but does apply it to ImageryTileLayer.
I have confirmed this using the FlowRender codepen provided in the example at FlowRenderer with effects and blending | Sample Code | ArcGIS API for JavaScript 4.23 | ArcGIS Developer. I can apply my ColorRamp to ESRI's data using ImageryTileLayer but cannot apply it to my data using ImageryLayer. ImageryLayer applies the service default color ramp. The layer's renderer object has all of the proper data in the ColorRamp object, but it is ignored. At this point, using a tiled image server is not an option.
Has anyone found a way around this? Our current undesirable options include:
- Using visualVariable and dynamically changing the stops according to min/max values and number of colors in the desired ramp.
-Set up multiple image servers with different default color ramps.