[OpenLayers-Users] OL 2.12 and Image layer flicker

teknocreator teknocreator at gmail.com
Fri Jun 29 07:28:06 PDT 2012


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.


More information about the Users mailing list