Hi Yann,
Yeah I've been trying to use BaseLayerView2D, but just can't get it quite right. It's working ok without the fade out of the existing drawing, so essentially an object will move around the canvas but without the trail. I can't stop it from clearing the context on each render call. Even with this happening, there is some flicker when zoomed out though.
I'm using render() and requestRender() to form the animation loop, so something is happening in that pipeline that won't maintain the previously drawn frame into the current frame...or more likely I'm just doing it wrong .
I'm guessing this has to do with the copying of the 2d context canvas to the webgl context for the actual drawing?? Have overridden the BaseLayerView2D containers doRender() method and played around in it a little to try and get around this, but no joy so far. Didn't want to go too far down the hole of overriding api code though.
I've been trying all of this on a new layer that which will behave very similar to the existing one, but will be driven by feature polygons and not just GRIB data so it's more generic. If I put the progress on github, whenever you get a chance would you be able to take a look?
Thanks,
Nick