Hi all,
I was using ImageLayer.setSource to, well, configure the source for the ImageLayer :) with an image that I was loading using Assets.getRemoteImage(), and I noticed the following:
- If the supplied TileSource is ready when setSource() is called, it will be used regardless of whether it was successfully loaded or in an error state.
- However, if the TileSource it is not ready, once it becomes ready it will only be set if loaded successfully.
This means that for an image that is loaded asynchronusly, the result of calling setSource() depends on the timing.
Guillermo