[OpenLayers-Users] Flickering while updating overlay
Adrian Popa
adrian_gh.popa at romtelecom.ro
Fri Jul 24 01:29:14 EDT 2009
Hi,
I'm also interested in stopping the flickering - or keeping the old
markers until the new ones have been loaded.
Also, I would like this for my Mapserver layers - the images dissapear
as soon as panning stops and reappear when reloaded. It would be nice to
keep what image is still relevant and replace it when the new image is
ready. By the way, I'm using singleTile=true in my mapserver layer.
Regards,
Adrian
tommy408 wrote:
> Anyone know how to get rid of the flickering when refreshing an overlay
> layer?
>
> I've tried
>
> my_layer.redraw(true)
> and
> my_layer.mergeNewParams({'foo': Math.random()});
>
> I'm trying to update user map periodically. But the layer disappears for a
> split sec and appears.
>
> I've tried something like this but it doesn't work.
>
> var temp_layer = my_later.clone();
> temp_layer.redraw(true);
> map.addLayer(test_layer);
> map.removeLayer(my_later);
>
>
>
More information about the Users
mailing list