I have found that the most reliable way to avoid browser caching when I want
to force a redraw of a WMS layer is to do something like this:
wms_layer.mergeNewParams({'timestamp':datetime});
If you append the current timestamp to the layer each time you want to do a
redraw it will have a unique address and thus bypass browser caching. If you
do this you will not need to utilize the OpenLayers redraw function.
--
Nathan Gerber
On Wed, May 12, 2010 at 4:07 PM, Eric Lemoine
<[email protected]>wrote:
> On Wed, May 12, 2010 at 1:35 PM, Walter Lorenzetti <[email protected]>
> wrote:
> > Hi all,
> >
> > I build a webgis editing application with OL 2.8, all work fine, but
> > I've a problem with redraw wms layer background:
> >
> > In my application I edit several layers during the editing mode... but
> > on simple watching mode I show that layers like wms layer (by
> > mapserver...)... after a layer editing action I invoke a
> > wms_layer.redraw(true) method... but I think for browser cache, the
> > layer is redraw... but single tile doesn't change ad so for to see the
> > changes I've to pan the map until the layers wms are redraw....
> >
> > I hope you could understand my problem...
>
>
> Hi. redraw(true) is supposed to do the job. Could you please post a
> simple example demonstrating the problem?
>
>
>
> --
> Eric Lemoine
>
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
>
> Tel : 00 33 4 79 44 44 96
> Mail : [email protected]
> http://www.camptocamp.com
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users