We are using ImageryLayers with AnimatedFlow vectors and a RasterStretchRenderer for color control in a GroupLayer (winds and wind speed) along with another ImageryLayers with AnimatedFlow vectors (waves) to be displayed at different times.
We use a button to toggle the two layers. The winds are the default layer.
When waves are activated, the winds layer group is removed and the waves layer is added (windWaveSwitch.JPG).
Toggling to waves works as expected/intended, but toggling to winds triggers an error (windWaveError.JPG). Toggling the waves back on displays the waves and toggling back to the wind causes the error again.
The initial map.add happens when the layers are established (windWaveCode.JPG). The windWave variable is string value of 'Wave' at that point in the code.
Solved! Go to Solution.
We can continue here. Will update you here.
Any updates?
Also, while it is not replicated in the FlowRenderer layer switch test (codepen.io) codepen, when we load the global dataset the raster-stretch layer shows up without the flow layer masking it. This is highly undesirable. Is there a way to prevent the raster-stretch layer layer from displaying before the flow layer has completed loading/calculating? I suppose we could programmatically deal with these issues with custom functions for displaying the raster-stretch layer only when the flow layer is present and fully loaded, but that seems like something that should be handled internally.