[OpenLayers-Users] Forcing a refresh of a layer
noreply at geocartic.com
Wed Jan 31 16:48:15 EST 2007
The Layer.mergeNewParams() function can be called to trigger the redraw of a
specific layer. If you want the layer to be redrawn with a new parameter
value, then do something like:
If you aren't changing a specific parameter value in the WMS layer, but you
want the layer to be refreshed (and not use any browser cached images), then
you can tack on an unused parameter name and give it a random value:
Hope that helps,
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On
Behalf Of Matthew White
Sent: Wednesday, January 31, 2007 2:40 PM
To: users at openlayers.org
Subject: [OpenLayers-Users] Forcing a refresh of a layer
Please forgive me if this is a basic question, as I am relatively new to
OpenLayers. What I would like to do is force a refresh\reload of a layer
when the user performs an action. I am using a WMS layer, and the data being
rendered may be changed or rendered differently when the user performs an
action. Is there a way to force the redraw of a layer, or failing that the
whole map (i.e., layer.redraw() etc)?
Thanks in advance,
The fish are biting.
visitors on your site using Yahoo!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users