<br><br>On Wednesday, April 11, 2012, Bart van den Eijnden  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hey Eric,<div><br>
</div><div>thanks for your quick replies being at FOSS4GNA.</div><div><br></div><div>I wasn&#39;t, and mainly because I was looking at Layer.js where redraw has no argument:</div><div><br></div><div><a href="https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer.js#L553" target="_blank">https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer.js#L553</a></div>
<div><br></div><div>But I see HTTPRequest has the boolean argument:</div><div><br></div><div><a href="https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer/HTTPRequest.js#L146" target="_blank">https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer/HTTPRequest.js#L146</a></div>
<div><br></div><div>But I should not have to call force to get the layer to hide if it&#39;s out of scale right?</div><div></div></div></blockquote><div><br></div><div>Right. I initially thought you needed to reload images.</div>
<div><br></div><div>&quot;force&quot; places a random value in the query string. This is to &quot;break&quot; the cache.</div><div><br></div><div>Have you tried calling layer.display()?<span></span></div><div><br></div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Force is just to always fetch a new image from the server.</div><div><br>
</div><div>However, calling redraw(true) does not make the layer disappear unfortunately. </div><div><br></div><div>When zooming the overlay is also out of sync with the basemap, not sure if this is directly related to the redraw call though.</div>
</div></blockquote><div><br></div><div>Sorry I&#39;m not sure I understand what you mean by &quot;out of sync&quot;.</div><div><br></div><div dir="ltr">You may be hit by &lt;<a href="https://github.com/openlayers/openlayers/pull/393">https://github.com/openlayers/openlayers/pull/393</a>&gt;.</div>
<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>