[OpenLayers-Users] OL 2.12 and Image layer flicker

Roald de Wit list at rdewit.net
Fri Jun 29 18:55:50 PDT 2012


Hi,

The image flickering should be gone when you enable transitionEffect: 
"resize" in your layer options with OL 2.12. It least, that works for me.

Regards, Roald

On 30/06/12 00:28, teknocreator wrote:
> Good day list!
>
> Our application has an Image layer which is fed different png images via the
> setUrl function.  However, when the new image was loaded into the layer,
> there was a flicker due to the previous image being hidden before the next
> image was loaded.  So, there was a work around when this topic was
> previously discussed to just comment out that part in Tile/Image.js which
> hid the previous image (it was in the clear function).  This has worked
> fairly well for our app and there's a smooth transition when images are
> loaded with no flicker, especially in Firefox.
>
> However, as the Tile/Image.js code has been radically changed with OL 2.12,
> this issue is back.  I can see going through the debugger what's happening,
> but my attempts to comment out sections of the code causing this have not
> worked.
>
> I saw where there are tile transitions using CSS but the Release notes
> indicate that it's turned off for single tile by default.  Not sure if that
> can be applied to an Image layer or not.
>
> Suggestions for a work around?
>
> Thanks
>
> Dave Miller
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/OL-2-12-and-Image-layer-flicker-tp4984910.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users




More information about the Users mailing list