[OpenLayers-Users] WMS layer redraw problem
Nathan Gerber
ngerber999 at gmail.com
Wed May 12 16:26:20 EDT 2010
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
<eric.lemoine at camptocamp.com>wrote:
> On Wed, May 12, 2010 at 1:35 PM, Walter Lorenzetti <lorenzetti at gis3w.it>
> 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 : eric.lemoine at camptocamp.com
> http://www.camptocamp.com
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100512/acd99695/attachment.html
More information about the Users
mailing list