<div dir="ltr">oh ho ! <div>it's working fine. </div><div>i missed this.</div><div>better solution than mine : </div><div><br></div><div>wmsLayer.setVisibility(false);</div><div><div>wmsLayer.setVisibility(true);</div>
</div><div><br></div><div>now, why 'true' is needed now ? </div><div><br></div><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/1 Alexandre Dubé <span dir="ltr"><<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Marc-André,<br>
<br>
Have you tried forcing the layer to redraw using the force
parameter ? <br>
<br>
<a href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer/HTTPRequest-js.html#OpenLayers.Layer.HTTPRequest.redraw" target="_blank">http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer/HTTPRequest-js.html#OpenLayers.Layer.HTTPRequest.redraw</a><br>
<br>
wmsLayer.redraw(true);<br>
<br>
HTH,<br>
<br>
Alexandre<div><div class="h5"><br>
<br>
<br>
On <a href="tel:13-10-31%2009" value="+13103109" target="_blank">13-10-31 09</a>:49 AM, Marc-André Trottier wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">i'm using :
<div>-OL 2.13.1</div>
<div>-a wms layer </div>
<div>-the function redraw().</div>
<div><br>
</div>
<div>the problem : the function don't redraw the layer. I
watched the code in lib\OpenLayers\Layer.js line 570 and this
launch the trigger 'moveend' of the wms layer but it do not
exist.</div>
<div><br>
</div>
<div>is it normal ? </div>
<div><br>
</div>
<div>Marc-André T. </div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
<pre cols="72">--
Alexandre Dubé
Mapgears
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a>
</pre>
</font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br></blockquote></div><br></div>