[OpenLayers-Users] Reload Layer

Christopher Schmidt crschmidt at metacarta.com
Tue Feb 26 11:29:43 EST 2008


On Tue, Feb 26, 2008 at 05:22:47PM +0100, Gérald Quintana wrote:
> Dear Open Layers users,
> 
> I would like to reload (=request+repaint) a layer (to do some kind of
> animation). I tried Layer.redraw(), but it doesn't work as I expected.
> What should I do?
> 
> I am using OpenLayers+GeoServer, will I have problems with server or
> browser cache?

2.5: layer.mergeNewParams({'random':Math.random()});
trunk: layer.redraw(true);

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list